*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Surface hierarchy */
  --surface: #12121e;
  --surface-container-lowest: #0d0d19;
  --surface-container-low: #1a1a27;
  --surface-container: #1f1e2b;
  --surface-container-high: #292936;
  --surface-container-highest: #343341;
  --surface-bright: #383846;
  --surface-variant: #343341;

  /* Primary */
  --primary: #ddb7ff;
  --primary-container: #380064;
  --on-primary: #4a0080;
  --on-primary-container: #ab70e4;

  /* Secondary */
  --secondary: #c0c1ff;
  --secondary-container: #3d3f93;

  /* Tertiary (gold accent) */
  --tertiary: #e9c400;
  --tertiary-container: #c9a900;
  --tertiary-fixed: #ffe16d;

  /* Text */
  --on-surface: #e3e0f2;
  --on-surface-variant: #ccc4cf;
  --outline: #958e99;
  --outline-variant: #4a454e;

  /* Error */
  --error: #ffb4ab;

  /* Inverse */
  --inverse-primary: #7b41b3;
  --inverse-surface: #e3e0f2;

  /* Fonts */
  --font-display: 'Noto Serif', serif;
  --font-body: 'Manrope', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* Stars background */
.stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.stars::before, .stars::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(221,183,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 40%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(221,183,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 30%, rgba(233,196,0,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 70%, rgba(233,196,0,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 80%, rgba(221,183,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 15%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 85% 85%, rgba(233,196,0,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 55%, rgba(221,183,255,0.25) 0%, transparent 100%);
  animation: twinkle 8s ease-in-out infinite alternate;
}
.stars::after {
  background-image:
    radial-gradient(1px 1px at 5% 90%, rgba(221,183,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 22% 35%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 55%, rgba(233,196,0,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 58% 75%, rgba(221,183,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 45%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 15%, rgba(221,183,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 95%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 25%, rgba(233,196,0,0.25) 0%, transparent 100%);
  animation: twinkle 12s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===================== Nav — Glassmorphism ===================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(31, 30, 43, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--on-surface-variant);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--tertiary); }
.nav-toggle { display: none; background: none; border: none; color: var(--primary); font-size: 1.5rem; cursor: pointer; }

/* ===================== Hero ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(56, 0, 100, 0.5) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(18, 18, 30, 0.55) 0%, rgba(18, 18, 30, 0.75) 100%);
  z-index: 1;
}
.hero-label,
.hero h1,
.hero-subtitle,
.hero .btn-primary {
  position: relative;
  z-index: 2;
}
.hero-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--on-surface);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--on-surface-variant);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ===================== Buttons ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--on-primary);
  background: linear-gradient(135deg, var(--primary), var(--on-primary-container));
  padding: 16px 40px;
  border: none;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(221, 183, 255, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(221, 183, 255, 0.35);
}

/* ===================== Section styles ===================== */
section { padding: 100px 0; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--tertiary);
  text-align: center;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--on-surface);
  text-align: center;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--on-surface-variant);
  text-align: center;
  max-width: 550px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* ===================== Services ===================== */
#servicios {
  background: var(--surface-container-low);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--surface-container-high);
  border-radius: 0.75rem;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.4s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -12px rgba(44, 0, 80, 0.25);
}
.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: block;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--on-surface);
  margin-bottom: 12px;
  font-weight: 600;
}
.service-card p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.7;
}
.service-price {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tertiary);
  letter-spacing: 1px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* ===================== About ===================== */
#sobre-mi {
  background: var(--surface);
}
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.about-image {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--primary-container), var(--surface-container));
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-image-icon {
  font-size: 5rem !important;
  color: var(--on-surface-variant);
  opacity: 0.5;
}
.about-image-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--on-surface-variant);
  margin-top: 16px;
  text-transform: uppercase;
}
.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--on-surface);
  margin-bottom: 20px;
  font-weight: 700;
}
.about-text p {
  color: var(--on-surface-variant);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
}
.stat {
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  margin-top: 4px;
}

/* ===================== Testimonials ===================== */
.testimonials-section {
  background: var(--surface-container-low);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--surface-container);
  border-radius: 0.75rem;
  padding: 32px;
}
.testimonial-stars { color: var(--tertiary); font-size: 1rem; margin-bottom: 12px; }
.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--on-surface);
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.7;
}
.testimonial-author {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  letter-spacing: 0.5px;
}

/* ===================== CTA ===================== */
.cta-section {
  text-align: center;
  padding: 80px 0 100px;
  background: var(--surface);
}
.cta-box {
  background: var(--surface-container-high);
  border-radius: 1rem;
  padding: 56px 40px;
}
.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--on-surface);
  margin-bottom: 12px;
  font-weight: 700;
}
.cta-box p {
  color: var(--on-surface-variant);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: #25D366;
  padding: 16px 40px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.2);
}
.cta-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.3);
}
.cta-whatsapp svg { width: 20px; height: 20px; fill: #fff; }

/* ===================== Footer ===================== */
footer {
  background: var(--surface-container-lowest);
  padding: 32px 0;
  text-align: center;
}
footer p {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--outline);
  letter-spacing: 1px;
}

/* ===================== Animations ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== Mobile ===================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(31, 30, 43, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 24px;
    gap: 20px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .about-content { grid-template-columns: 1fr; }
  .about-image { max-height: 300px; aspect-ratio: auto; }
  .about-stats { justify-content: center; }
  .cta-box { padding: 40px 24px; }
  section { padding: 72px 0; }
}
