/* ========================================
   Self-hosted fonts
   Previously loaded from fonts.googleapis.com, which sent every visitor's
   IP and Referer to Google before any interaction — on a medical page,
   with no consent prompt. Self-hosting removes that transfer entirely and
   drops two origins from the CSP.

   These are variable fonts: Google serves ONE file per family/style/subset
   and declares several weights against it, so a weight RANGE here replaces
   what looked like 18 separate faces. 8 files, 220K.

   Licensing: DM Sans, Quicksand and JetBrains Mono are all SIL Open Font
   License 1.1, which permits redistribution. See fonts/LICENSE.md.
   To change weights, re-run the css2 request and regenerate — do not
   hand-edit unicode-range.
   ======================================== */

/* DM Sans — latin-ext */
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-sans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Sans — latin */
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans — latin-ext */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Sans — latin */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dm-sans-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono — latin-ext */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* JetBrains Mono — latin */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Quicksand — latin-ext */
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/quicksand-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Quicksand — latin */
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/quicksand-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
   DESIGN SYSTEM — Dra. Verónica Sosa
   Consultorio Odontológico
   ============================================ */

:root {
  /* Colors — pamphlet derived, warmed up */
  --color-primary: #1B1464;
  --color-primary-light: #2E2799;
  --color-teal: #2A6078;
  --color-teal-dark: #1D4A5C;
  --color-accent: #00AEEF;
  --color-accent-light: #5CE1FF;
  --color-surface: #F5F2F8;
  --color-surface-alt: #EAE5F0;
  --color-surface-warm: #FAF8F6;
  --color-sky: #5B9BD5;
  --color-sky-light: #8FBCE6;
  --color-bg: #FFFFFF;
  --color-text: #2D2A4A;
  --color-text-light: #FFFFFF;
  --color-text-muted: #6B6B8D;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #128C7E;
  --color-border: rgba(27, 20, 100, 0.1);
  --color-overlay: rgba(27, 20, 100, 0.65);
  --color-overlay-light: rgba(27, 20, 100, 0.50);

  /* Typography */
  --font-heading: 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-accent: 'Quicksand', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --section-padding-y: 80px;
  --section-padding-x: 24px;
  --container-max: 1140px;
  --card-radius: 12px;
  --btn-radius: 6px;
  --nav-height: 0px; /* dynamic — no fixed nav height since we use a top bar + centered logo nav */

  /* Shadows — Whisper-Soft Ambient (Clinical Sanctuary) */
  --shadow-soft: 0 4px 40px rgba(26, 23, 54, 0.04);
  --shadow-medium: 0 8px 50px rgba(26, 23, 54, 0.06);
  --shadow-hover: 0 12px 60px rgba(26, 23, 54, 0.08);

  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}


/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }


/* ============================================
   CONTAINER
   ============================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}


/* ============================================
   TOP CONTACT BAR (Sorrifacil Reference)
   ============================================ */

.top-bar {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 100%;
  padding: 0 4vw;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-separator {
  color: rgba(255, 255, 255, 0.4);
  user-select: none;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: color var(--transition-base), opacity var(--transition-base);
}

.top-bar-right a:hover {
  opacity: 0.8;
}

.top-bar a:hover {
  color: var(--color-teal-light);
}

.top-bar-left svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.top-bar-right svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* ============================================
   NAVBAR — Centered brand (like reference)
   ============================================ */

.navbar {
  /* Extending the frosty blue from the image across the entire navbar */
  background: linear-gradient(180deg, #E8F6FE 0%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-base), padding var(--transition-base), background var(--transition-base);
}

.navbar.scrolled {
  padding: 12px 0 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.navbar.scrolled .nav-logo-wrapper {
  width: 200px;
  height: 65px;
  margin-bottom: 8px;
}

.nav-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 80px;
  overflow: hidden;
  position: relative;
  margin: 0 auto 12px auto;
  border-radius: 8px;
  transition: width var(--transition-base), height var(--transition-base), margin var(--transition-base);
}

.nav-logo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Navigation links row */
.nav-links-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-links a {
  display: inline-block;
  font-family: var(--font-accent);
  padding: 14px 28px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  transition: background var(--transition-base), color var(--transition-base);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(27, 20, 100, 0.04);
  color: var(--color-accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.nav-links .nav-cta-link {
  color: var(--color-whatsapp-hover);
}

.nav-links .nav-cta-link:hover {
  color: var(--color-whatsapp);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================
   HERO — Full-width bg with overlay (like ref)
   ============================================ */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--section-padding-x);
  /* Scrim over hero photo. Lower the alphas to let more of the photo through;
     raise them if the H1 loses contrast. Gradient below is the load/fallback. */
  background:
    linear-gradient(135deg,
      rgba(27, 20, 100, 0.72) 0%,
      rgba(42, 96, 120, 0.60) 40%,
      rgba(29, 74, 92, 0.66) 70%,
      rgba(27, 20, 100, 0.74) 100%
    ),
    url("odoHERO.webp") center / cover no-repeat,
    linear-gradient(180deg,
      var(--color-surface) 0%,
      var(--color-surface-alt) 50%,
      var(--color-surface) 100%
    );
  overflow: hidden;
}

/* Decorative circles */
.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(91, 155, 213, 0.1);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(91, 155, 213, 0.08);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-quote {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-quote span {
  color: var(--color-sky-light);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-author {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.01em;
}

/* Location banner that sits below hero (like reference) */
.hero-location-banner {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
  padding: 22px 0;
  text-align: center;
  border-bottom: 3px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}

.hero-location-banner p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
}

.hero-location-banner svg {
  color: var(--color-accent);
  width: 22px;
  height: 22px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--btn-radius);
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-whatsapp {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--color-whatsapp) 0%, var(--color-whatsapp-hover) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
  border: none;
}

.btn-whatsapp:hover {
  background: linear-gradient(90deg, var(--color-whatsapp-hover) 0%, var(--color-whatsapp) 100%);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-whatsapp:active {
  transform: scale(0.95);
}

.btn-whatsapp-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 2;
}

.btn-whatsapp-icon-wrapper {
  position: relative;
  width: 20px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.btn-whatsapp-icon-current,
.btn-whatsapp-icon-next {
  position: absolute;
  width: 20px;
  height: 20px;
  fill: currentColor;
  left: 0;
  right: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.btn-whatsapp-icon-current {
  transform: translateY(0);
  opacity: 1;
}

.btn-whatsapp-icon-next {
  transform: translateY(-24px);
  opacity: 0;
}

.btn-whatsapp:hover .btn-whatsapp-icon-current {
  transform: translateY(24px);
  opacity: 0;
}

.btn-whatsapp:hover .btn-whatsapp-icon-next {
  transform: translateY(0);
  opacity: 1;
}

.btn-whatsapp-text {
  transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1);
  display: inline-block;
}

.btn-whatsapp:hover .btn-whatsapp-text {
  transform: translateX(4px);
}

/* Shine effect */
.btn-whatsapp::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-12deg);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.btn-whatsapp:hover::after {
  animation: btn-shine 0.9s cubic-bezier(0, 0, 0.2, 1) forwards;
}

@keyframes btn-shine {
  0% {
    opacity: 0;
    transform: skewX(-12deg) translateX(0);
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: skewX(-12deg) translateX(300%);
  }
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}


/* ============================================
   SECTIONS — Shared
   ============================================ */

.section {
  padding: var(--section-padding-y) var(--section-padding-x);
}

.section-alt {
  background: var(--color-surface);
}

.section-warm {
  background: var(--color-surface-warm);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 10px;
}


/* ============================================
   AURORA BACKGROUND (Aceternity Vanilla Port)
   ============================================ */
.aurora-bg {
  position: relative;
  overflow: hidden;
  background-color: #FAFAFA;
}

.aurora-bg > .container {
  position: relative;
  z-index: 10;
}

.aurora-background-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.aurora-fx {
  --a-white: #ffffff;
  --a-transparent: transparent;
  
  /* Reverted to the original Aceternity Tailwind solid hex values */
  --a-c1: #3b82f6;   /* blue-500 */
  --a-c2: #a5b4fc;   /* indigo-300 */
  --a-c3: #93c5fd;   /* blue-300 */
  --a-c4: #ddd6fe;   /* violet-200 */
  --a-c5: #60a5fa;   /* blue-400 */
  
  --a-white-gradient: repeating-linear-gradient(100deg, var(--a-white) 0%, var(--a-white) 7%, var(--a-transparent) 10%, var(--a-transparent) 12%, var(--a-white) 16%);
  --a-aurora: repeating-linear-gradient(100deg, var(--a-c1) 10%, var(--a-c2) 15%, var(--a-c3) 20%, var(--a-c4) 25%, var(--a-c5) 30%);

  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  opacity: 0.5;
  will-change: transform;
  filter: blur(10px) invert(1);
  background-image: var(--a-white-gradient), var(--a-aurora);
  background-size: 300% 200%;
  background-position: 50% 50%, 50% 50%;
  mask-image: radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%);
}

.aurora-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--a-white-gradient), var(--a-aurora);
  background-size: 200% 100%;
  animation: animate-aurora 60s linear infinite;
  background-attachment: fixed;
  mix-blend-mode: difference;
}

@keyframes animate-aurora {
  from {
    background-position: 50% 50%, 50% 50%;
  }
  to {
    background-position: 350% 50%, 350% 50%;
  }
}

.section-servicios,
#testimonios {
  position: relative;
  background:
    radial-gradient(ellipse 85% 65% at 8% 8%, rgba(91, 155, 213, 0.25), transparent 60%),
    radial-gradient(ellipse 75% 60% at 75% 35%, rgba(240, 236, 246, 0.8), transparent 62%),
    radial-gradient(ellipse 70% 60% at 15% 80%, rgba(42, 96, 120, 0.15), transparent 62%),
    radial-gradient(ellipse 70% 60% at 92% 92%, rgba(0, 174, 239, 0.20), transparent 62%),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.service-copy {
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

.service-card {
  background: var(--color-bg);
  border-radius: var(--card-radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-surface), var(--color-surface-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--color-primary);
  transition: background var(--transition-base), transform var(--transition-base);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
  color: #fff;
  transform: scale(1.1);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  margin-bottom: 8px;
  color: var(--color-primary);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   DIFERENCIADORES
   ============================================ */

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.value-card {
  background: var(--color-bg);
  border-radius: var(--card-radius);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.value-card a {
  display: inline-block;
  margin-top: 16px;
  color: var(--color-whatsapp);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color var(--transition-slow);
}

.value-card a:hover {
  color: var(--color-whatsapp-hover);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-sky), var(--color-primary));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.value-card:hover::before {
  opacity: 1;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--color-primary);
}

.value-icon svg {
  width: 24px;
  height: 24px;
}

.value-card h3 {
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.value-card p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}


/* ============================================
   SOBRE MÍ (About — reference style)
   ============================================ */

.section-about {
  position: relative;
  background:
    linear-gradient(
      var(--color-overlay-light),
      var(--color-overlay)
    ),
    var(--color-surface-alt);
  color: #fff;
}

.about-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.about-content h2 {
  color: #fff;
  margin-bottom: 4px;
}

.about-credential {
  font-size: 1rem;
  color: var(--color-sky-light);
  font-weight: 500;
  margin-bottom: 20px;
}

.about-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  }

@media (min-width: 1024px) {
  }

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-teal) 100%);
  padding: 64px var(--section-padding-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(91, 155, 213, 0.12);
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.cta-banner h2 span {
  color: var(--color-whatsapp);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}


/* ============================================
   CONTACTO
   ============================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.contact-item-value a {
  color: var(--color-whatsapp-hover);
  font-weight: 600;
}

.contact-item-value a:hover {
  color: var(--color-whatsapp);
}

.contact-map {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 260px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* ============================================
   FOOTER MODERN
   ============================================ */

.footer-modern {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-teal) 100%);
  color: #fff;
  padding: 64px 0 32px 0;
  position: relative;
  overflow: hidden;
}

.footer-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(91, 155, 213, 0.08);
  pointer-events: none;
}

.footer-modern-top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .footer-modern-top {
    flex-direction: row;
    align-items: flex-start;
  }
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

@media (min-width: 1024px) {
  .footer-brand-section {
    width: 35%;
  }
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  list-style: none;
}

.footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-base), transform var(--transition-short);
}

.footer-social-links a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.footer-social-links svg {
  width: 20px;
  height: 20px;
}

.footer-grid-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
}

@media (min-width: 768px) {
  .footer-grid-section {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

.footer-column h3 {
  font-size: 1.05rem;
  margin-bottom: 16px;
  font-weight: 600;
  color: #fff;
}

.footer-column p, .footer-column a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition-base);
  font-weight: 500;
}

.footer-column a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-modern-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .footer-modern-bottom {
    flex-direction: row;
    align-items: center;
  }
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-top-link svg {
  width: 16px;
  height: 16px;
}

.footer-top-link:hover {
  color: #fff;
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float-label {
  position: fixed;
  bottom: 40px;
  right: 98px;
  background: #fff;
  color: var(--color-text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--shadow-medium);
  z-index: 999;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  pointer-events: none;
  white-space: nowrap;
}

.whatsapp-float:hover + .whatsapp-float-label {
  opacity: 1;
  transform: translateX(0);
}


/* ============================================
   SCROLL REVEAL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ============================================
   RESPONSIVE — TABLET
   ============================================ */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

    .about-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image-wrapper {
    display: flex;
    justify-content: center;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding-y: 56px;
  }

  .top-bar .container {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 12px 4vw;
  }

  .top-bar-left {
    flex-direction: column;
    gap: 8px;
  }

  .top-bar-separator {
    display: none;
  }

  .top-bar-right {
    justify-content: center;
  }

  .nav-brand svg {
    width: 44px;
    height: 44px;
  }

  .nav-brand {
    position: relative;
  }

  .nav-links-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  /* When open, extend the wrapper */
  .nav-links-bar.open {
    max-height: 400px;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Fade and slide them in slowly when opened */
  .nav-links-bar.open .nav-links a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger delays per human-brain UX request */
  .nav-links-bar.open .nav-links a:nth-child(1) { transition-delay: 0.1s; }
  .nav-links-bar.open .nav-links a:nth-child(2) { transition-delay: 0.15s; }
  .nav-links-bar.open .nav-links a:nth-child(3) { transition-delay: 0.2s; }
  .nav-links-bar.open .nav-links a:nth-child(4) { transition-delay: 0.25s; }
  .nav-links-bar.open .nav-links a:nth-child(5) { transition-delay: 0.3s; }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 60px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

    }


/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */

@media (max-width: 480px) {
  :root {
    --section-padding-y: 44px;
    --section-padding-x: 16px;
  }

  .top-bar .container {
    flex-direction: column;
    gap: 6px;
  }

  .services-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float-label {
    display: none;
  }



  }


/* ========================================
   FAQ — native <details>, no JS
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition-slow);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--color-sky);
}

.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-sky);
  flex-shrink: 0;
  transition: transform var(--transition-slow);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item > p {
  padding: 0 26px 24px;
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* ========================================
   OPINIONES — live Google reviews
   Crossfade in a single grid cell (all slides share 1/1)
   ======================================== */
.reviews-summary {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.reviews {
  max-width: 760px;
  margin: 0 auto;
}

.reviews-stage {
  display: grid;
}

.review {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.review[data-active] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.review-stars {
  display: inline-flex;
  gap: 3px;
}

.review-stars svg {
  width: 17px;
  height: 17px;
  fill: #F5A623;
}

.review-text {
  margin: 0;
  max-width: 60ch;
  font-size: 1.08rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--color-text);
  text-wrap: pretty;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-surface-alt);
}

.review-avatar-initials {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--color-primary);
}

.review-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
}

.review-date {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.reviews-bars {
  display: flex;
  gap: 6px;
}

.review-bar {
  width: 18px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  background: var(--color-sky);
  opacity: 0.35;
  transition: width var(--transition-base), opacity var(--transition-base);
}

.review-bar[aria-current] {
  width: 40px;
  opacity: 1;
}

.reviews-arrows {
  display: flex;
  gap: 8px;
}

.reviews-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--color-sky);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
}

.reviews-arrow svg {
  width: 18px;
  height: 18px;
}

.reviews-arrow:hover {
  background: var(--color-primary);
  color: #fff;
}

.reviews-cta {
  margin-top: 26px;
  text-align: center;
  font-size: 0.9rem;
}

.reviews-cta a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

@media (max-width: 600px) {
  .review-text {
    font-size: 1rem;
  }
}


/* ========================================
   value-card photo backgrounds
   Images are greyscaled at encode time (not via CSS filter, which would
   also tint the scrim and cost paint). The white scrim keeps body text at
   roughly 8:1 contrast — comfortably past WCAG AA — even over black pixels.
   ======================================== */
#value-tiempo,
#value-claridad,
#value-miedo,
#value-personal {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#value-tiempo {
  background-image: linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.91)), url("apuro.webp");
}

#value-claridad {
  background-image: linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.91)), url("claras.webp");
}

#value-miedo {
  background-image: linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.91)), url("miedos.webp");
}

#value-personal {
  background-image: linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.91)), url("atencion.webp");
}


/* Was style="border:0;" inline on the iframe. Moved here so the CSP can
   drop style-src unsafe-inline. */
.map-frame {
  border: 0;
}


/* ========================================
   404
   ======================================== */
.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 60px 24px;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
}

.notfound-logo {
  width: 240px;
  height: auto;
  margin-bottom: 18px;
}

.notfound h1 {
  margin: 0;
  color: var(--color-primary);
}

.notfound-text {
  max-width: 46ch;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.notfound .btn-outline-light {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
