/* ============================================================
   DRA. MARISA S�NCHEZ � Boutique Dental Website
   Design System & Stylesheet
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* --- Custom Properties --- */
:root {
  --navy:        #1B2B4B;
  --navy-light:  #243A63;
  --gold:        #C9A96E;
  --gold-light:  #DFC28E;
  --gold-pale:   #F4EDD8;
  --bg:          #FAFAF8;
  --surface:     #F5F0EB;
  --surface-2:   #EDE5D8;
  --text:        #1C1C1C;
  --text-muted:  #6A6A6A;
  --text-light:  #9A9A9A;
  --border:      #E2D9CF;
  --white:       #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --container:   1220px;
  --radius-sm:   4px;
  --radius-md:   10px;
  --radius-lg:   20px;

  --shadow-sm:   0 2px 8px rgba(27,43,75,0.07);
  --shadow-md:   0 6px 24px rgba(27,43,75,0.10);
  --shadow-lg:   0 16px 48px rgba(27,43,75,0.14);

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --transition:  0.35s var(--ease);

  --header-h:    108px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Typography Scale --- */
.display   { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.01em; }
.display-md{ font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 300; line-height: 1.15; }
h1 { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 400; line-height: 1.2; }
h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 2.8vw, 2.5rem); font-weight: 400; line-height: 1.25; }
h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.85rem); font-weight: 400; line-height: 1.3; }
h4 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
p  { line-height: 1.75; }

.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.label--dark { color: var(--navy); }
.label--white { color: rgba(255,255,255,0.7); }

/* --- Layout --- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

.section { padding: 100px 0; }
.section--sm { padding: 64px 0; }
.section--lg { padding: 140px 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--gold {
  background: var(--gold);
  color: var(--white);
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,169,110,0.35);
}
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--navy);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(250,250,248,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header--hero:not(.scrolled) { background: transparent; }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header__logo {
  display: flex;
  align-items: center;
}
/* Logo always visible � inverted white on dark hero, normal on white header */
.header__logo-img {
  height: 96px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  transition: filter var(--transition);
}
.header--hero:not(.scrolled) .header__logo-img {
  mix-blend-mode: normal;
  filter: brightness(0) invert(1);
}
.header__logo-fallback { display: none; }

.header--hero.scrolled {
  background: rgba(250,250,248,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Nav link colors on dark hero */
.header--hero .nav__link { color: rgba(255,255,255,0.85); }
.header--hero .nav__link:hover { color: var(--white); }
.header--hero.scrolled .nav__link { color: var(--text); }
.header--hero.scrolled .nav__link:hover { color: var(--navy); }

.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; align-items: center; gap: 36px; }
.nav__link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link:hover { color: var(--navy); }
.nav__cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: currentColor;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Mobile Nav --- */
.nav-mobile {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 32px 40px 40px;
  transform: translateY(calc(-100% - var(--header-h)));
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
  z-index: 999;
}
.nav-mobile.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.4s var(--ease-out);
}
.nav-mobile__list { display: flex; flex-direction: column; gap: 0; }
.nav-mobile__link {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), padding-left var(--transition);
}
.nav-mobile__link:hover { color: var(--gold); padding-left: 10px; }
.nav-mobile__cta { margin-top: 28px; }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--navy);
  padding-bottom: 72px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--navy);
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  z-index: 0;
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-repeat: no-repeat;
  background-size: clamp(900px, 78vw, 1500px) auto;
  background-position: center center;
  opacity: 0.58;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(27,43,75,0.85) 0%, rgba(27,43,75,0.55) 50%, rgba(27,43,75,0.25) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  padding-top: var(--header-h);
}
.hero__content { max-width: 640px; }
.hero__label { margin-bottom: 20px; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
}
.hero__title em { font-style: italic; color: var(--gold-light); }
.hero__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}
.hero__text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__cta-wide {
  min-width: 544px;
  justify-content: center;
}
.hero__portrait {
  position: relative;
  align-self: flex-start;
}
.hero__portrait-img {
  width: 100%;
  max-height: 580px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__portrait-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__badge-icon {
  width: 44px; height: 44px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero__badge-icon svg { width: 22px; height: 22px; color: var(--gold); fill: currentColor; }
.hero__badge-text strong { display: block; font-size: 1.1rem; font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.hero__badge-text span { font-size: 0.75rem; color: var(--text-muted); }

/* --- SECTION HEADERS --- */
.section-header { margin-bottom: 64px; }
.section-header--center { text-align: center; }
.section-header h2 { margin-top: 10px; margin-bottom: 16px; color: var(--navy); }
.section-header p { color: var(--text-muted); max-width: 580px; }
.section-header--center p { margin: 0 auto; }

/* --- DIVIDER LINE --- */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.divider__line { flex: 1; height: 1px; background: var(--border); }
.divider__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* --- SERVICE CARDS (Homepage overview) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.service-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-card__img { transform: scale(1.07); }
.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,43,75,0.88) 0%, rgba(27,43,75,0.3) 50%, transparent 100%);
  transition: background var(--transition);
}
.service-card:hover .service-card__overlay {
  background: linear-gradient(to top, rgba(27,43,75,0.94) 0%, rgba(27,43,75,0.5) 60%, rgba(27,43,75,0.15) 100%);
}
.service-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px 30px;
  color: var(--white);
}
.service-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  margin-bottom: 8px;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.2;
}
.service-card__text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.4s;
  opacity: 0;
}
.service-card:hover .service-card__text { max-height: 120px; opacity: 1; }
.service-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: gap var(--transition);
}
.service-card:hover .service-card__arrow { gap: 14px; }
.service-card__arrow svg { width: 14px; height: 14px; }

/* --- ABOUT TEASER --- */
.about-teaser {
  background: var(--surface);
}
.about-teaser__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-teaser__image-wrap {
  position: relative;
}
.about-teaser__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
}
.about-teaser__accent {
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  opacity: 0.4;
  z-index: -1;
}
.about-teaser__accent-2 {
  position: absolute;
  bottom: -20px; left: -20px;
  width: 80px; height: 80px;
  background: var(--gold-pale);
  border-radius: var(--radius-md);
  z-index: -1;
}
.about-teaser__content { padding: 20px 0; }
.about-teaser__quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
  line-height: 1.5;
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin: 28px 0 32px;
}
.about-teaser__text { color: var(--text-muted); margin-bottom: 16px; }
.about-teaser__stats {
  display: flex;
  gap: 32px;
  margin: 36px 0;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-stat__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
}
.about-stat__label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* --- WHY US / VALUES --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.value-card {
  background: var(--surface);
  padding: 48px 32px;
  transition: background var(--transition);
}
.value-card:hover { background: var(--surface-2); }
.value-card:nth-child(2) { background: var(--navy); }
.value-card:nth-child(2):hover { background: var(--navy-light); }
.value-card:nth-child(2) .value-card__title,
.value-card:nth-child(2) .value-card__text { color: var(--white); }
.value-card:nth-child(2) .value-card__icon { background: rgba(255,255,255,0.1); color: var(--gold-light); }
.value-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--gold);
}
.value-card__icon svg { width: 24px; height: 24px; }
.value-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 12px;
}
.value-card__text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* --- CTA BANNER --- */
.cta-banner {
  background: var(--navy);
  padding: 100px 0;
}
.cta-banner--compact { padding: 56px 0; }
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.cta-banner__text h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner__text p { color: rgba(255,255,255,0.65); font-size: 1rem; }
.cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-shrink: 0;
  width: 100%;
}

/* --- CONTACT STRIP --- */
.contact-strip {
  background: var(--gold-pale);
  padding: 20px 0;
}
.contact-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--navy);
}
.contact-item svg { width: 18px; height: 18px; color: var(--gold); }
.contact-item a { font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

/* --- FOOTER --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 320px 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer__logo-img {
  height: 112px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  margin-bottom: 16px;
  display: block;
}
.footer__logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 4px;
}
.footer__logo-tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer__tagline { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer__col-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { font-size: 0.9rem; transition: color var(--transition); }
.footer__nav a:hover { color: var(--white); }
.footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__contact-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.footer__contact-item svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__legal { font-size: 0.8rem; }
.footer__legal a { transition: color var(--transition); }
.footer__legal a:hover { color: var(--white); }

/* ============================================================
   PAGE: SOBRE M�
   ============================================================ */

.page-hero {
  position: relative;
  height: 55vh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--navy);
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  z-index: 0;
}
.page-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-repeat: no-repeat;
  background-size: clamp(900px, 78vw, 1500px) auto;
  background-position: center center;
  opacity: 0.58;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(27,43,75,0.85) 0%, rgba(27,43,75,0.55) 50%, rgba(27,43,75,0.25) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
  width: 100%;
}
.page-hero__content .label { margin-bottom: 12px; }
.page-hero__content h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 300;
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: start;
}
.bio__text { color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }
.bio__quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 24px;
  margin: 36px 0;
  line-height: 1.5;
}
.bio__aside { position: sticky; top: 110px; }
.bio__img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 24px;
}
.bio__info-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px;
}
.bio__info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.bio__info-item:last-child { border-bottom: none; }
.bio__info-item svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.bio__info-label { font-weight: 600; color: var(--navy); margin-bottom: 2px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.bio__info-value { color: var(--text-muted); }

/* --- TIMELINE --- */
.formation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 18px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--border));
}
.timeline-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 36px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
}
.timeline-item--featured::before { background: var(--gold); }
.timeline-item__year {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 4px;
}
.timeline-item__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 4px;
}
.timeline-item__sub { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   PAGE: SERVICIOS
   ============================================================ */

.service-section { border-top: 1px solid var(--border); }
.service-section:nth-child(even) { background: var(--surface); }

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.service-detail--reverse { direction: rtl; }
.service-detail--reverse > * { direction: ltr; }

.service-detail__label { color: var(--gold); }
.service-detail__title { color: var(--navy); margin: 10px 0 20px; }
.service-detail__text { color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }

.service-cases { margin-top: 48px; }
.service-cases__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.cases-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cases-grid--spaced { gap: 28px; }
.case-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.4s var(--ease);
  cursor: zoom-in;
}
.case-img:hover { transform: scale(1.02); }
.case-img--wide {
  aspect-ratio: 16/9;
  grid-column: 1 / -1;
}
.case-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 6px;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.before-after__item { position: relative; }
.before-after__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.before-after__tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(27,43,75,0.85);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.before-after__tag--after { background: rgba(201,169,110,0.9); }

.service-media { position: sticky; top: 110px; }
.service-media__main {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
}
.service-media__main--wide {
  aspect-ratio: 16/9;
  object-fit: contain;
  background: var(--surface);
}

/* Sub-procedure */
.sub-procedure {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.sub-procedure:last-child { border-bottom: none; }
.sub-procedure__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.sub-procedure__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.sub-procedure__name { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); }
.sub-procedure__imgs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.sub-procedure__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ============================================================
   PAGE: CASOS CL�NICOS
   ============================================================ */
.casos-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.casos-masonry {
  columns: 3;
  column-gap: 8px;
}
.casos-masonry__item {
  break-inside: avoid;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.casos-masonry__img {
  width: 100%;
  display: block;
  transition: transform 0.5s var(--ease);
}
.casos-masonry__item:hover .casos-masonry__img { transform: scale(1.04); }
.casos-masonry__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(transparent, rgba(27,43,75,0.75));
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}
.casos-masonry__item:hover .casos-masonry__caption { transform: translateY(0); }

/* ============================================================
   PAGE: CONTACTO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}
.form-input, .form-textarea {
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,43,75,0.08);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-select {
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236A6A6A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-note { font-size: 0.8rem; color: var(--text-muted); }
.contact-info { padding-top: 10px; }
.contact-info__item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.contact-info__item:first-child { padding-top: 0; }
.contact-info__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.contact-info__value { font-size: 1rem; color: var(--navy); font-weight: 500; }
.contact-info__sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.horario-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; font-size: 0.88rem; margin-top: 4px; }
.horario-day { color: var(--text-muted); }
.horario-hours { color: var(--navy); font-weight: 500; }

/* ============================================================
   PAGE: LEGAL
   ============================================================ */
.legal-page {
  background: var(--white);
}
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
}
.legal-content h2 {
  margin: 36px 0 10px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 400;
  line-height: 1.2;
}
.legal-content h2:first-of-type {
  margin-top: 0;
}
.legal-content p {
  margin-bottom: 14px;
}
.legal-content a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-updated {
  margin-bottom: 32px;
  color: var(--text-light);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,10,20,0.95);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 28px;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
}
.lightbox__close:hover { color: var(--white); }
.lightbox__prev, .lightbox__next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 20px;
  transition: color var(--transition);
  user-select: none;
}
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__prev:hover, .lightbox__next:hover { color: var(--white); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--text-muted); }
.text-white  { color: var(--white); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.bg-surface { background: var(--surface); }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 900;
  pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--navy-light); }
.scroll-top svg { width: 20px; height: 20px; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 88px; right: 28px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 900;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 950;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid rgba(27,43,75,0.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner__title {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cookie-banner__text {
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.cookie-banner__link {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cookie-banner__btn {
  min-width: 108px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.cookie-banner__btn:hover {
  transform: translateY(-1px);
}
.cookie-banner__btn--ghost {
  background: var(--white);
  color: var(--navy);
}
.cookie-banner__btn--primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__portrait { display: none; }
  .hero__title { font-size: clamp(2.5rem, 6vw, 3.8rem); }
  .about-teaser__grid { grid-template-columns: 1fr; }
  .about-teaser__image-wrap { max-width: 480px; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .cta-banner__actions { justify-content: center; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-grid > *,
  .service-detail > *,
  .formation-grid > * {
    min-width: 0;
    max-width: 100%;
  }
  .bio__aside { position: static; }
  .bio__img { max-width: 400px; }
  .service-detail { grid-template-columns: 1fr; gap: 40px; }
  .service-detail--reverse { direction: ltr; }
  .service-media { position: static; }
  .service-media__main { aspect-ratio: 16/9; max-height: 400px; }
  .contact-grid { grid-template-columns: 1fr; }
  .casos-masonry { columns: 2; }
}

@media (max-width: 768px) {
  :root { --header-h: 80px; }
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .header__logo-img { height: 64px; }
  .header__inner { min-width: 0; }
  .nav__list, .nav__cta { display: none; }
  .hamburger { display: flex; color: var(--navy); }
  .header--hero .hamburger { color: var(--white); }
  .header--hero.scrolled .hamburger { color: var(--navy); }
  .nav-mobile { padding: 24px 20px 28px; }
  .nav-mobile__cta { width: 100%; justify-content: center; }
  .hero {
    min-height: auto;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
  }
  .hero .container { max-width: 100vw; overflow: hidden; }
  .hero__inner {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    min-height: 760px;
    padding-top: calc(var(--header-h) + 18px);
    padding-bottom: 64px;
    align-items: center;
  }
  .hero__content {
    min-width: 0;
    width: 100%;
    max-width: 350px;
  }
  .hero__label {
    margin-bottom: 14px;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    line-height: 1.7;
  }
  .hero__title {
    max-width: 350px;
    font-size: clamp(2.18rem, 8.5vw, 2.7rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .hero__subtitle {
    max-width: 350px;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }
  .hero__text {
    width: 100%;
    max-width: 350px;
    font-size: 0.96rem;
    line-height: 1.7;
  }
  .hero__actions { margin-top: 34px; }
  .hero__cta-wide {
    min-width: 0;
    width: 100%;
    max-width: 350px;
  }
  .page-hero {
    height: 420px;
    min-height: 420px;
    align-items: flex-end;
  }
  .page-hero__content {
    max-width: 350px;
    padding-bottom: 42px;
  }
  .page-hero__content h1 {
    max-width: 350px;
    font-size: clamp(2.1rem, 9vw, 2.75rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: 16/10; }
  .values-grid { grid-template-columns: 1fr; }
  .about-teaser__stats { flex-wrap: wrap; gap: 20px; }
  .section-header { margin-bottom: 42px; }
  .section-header h2,
  .display-md {
    overflow-wrap: anywhere;
  }
  .section { padding: 72px 0; }
  .section--lg { padding: 80px 0; }
  .cases-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .formation-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .timeline {
    max-width: 100%;
    overflow: hidden;
  }
  .timeline-item {
    padding-left: 46px;
    padding-right: 26px;
    margin-bottom: 30px;
    max-width: 100%;
  }
  .timeline-item__title {
    width: 100%;
    max-width: 250px;
    font-size: 1.35rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .timeline-item__sub {
    width: 100%;
    max-width: 250px;
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .service-detail {
    gap: 32px;
  }
  .service-media__main,
  .case-img,
  .before-after__img,
  .sub-procedure__img {
    height: auto;
    max-height: none;
    object-fit: contain;
    background: var(--surface);
  }
  .service-media__main {
    aspect-ratio: auto;
    border-radius: var(--radius-lg);
  }
  .sub-procedure__img,
  .before-after__img {
    aspect-ratio: auto;
  }
  .case-img {
    aspect-ratio: auto;
  }
  .sub-procedure__imgs,
  .before-after,
  .cases-grid,
  .cases-grid--3 {
    grid-template-columns: 1fr;
  }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__legal[style] {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px !important;
  }
  .casos-masonry { columns: 1; }
  .fade-in {
    opacity: 1;
    transform: none;
  }
  .whatsapp-float {
    right: 18px;
    bottom: 76px;
    width: 48px;
    height: 48px;
  }
  .scroll-top {
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 10px;
    left: 16px;
    right: auto;
    bottom: 28px;
    width: 328px;
    max-width: calc(100% - 32px);
    padding: 14px 16px;
  }
  .cookie-banner__title { font-size: 0.76rem; }
  .cookie-banner__text { font-size: 0.82rem; line-height: 1.45; }
  .cookie-banner__link { font-size: 0.8rem; }
  .cookie-banner__actions {
    flex-direction: row;
    justify-content: stretch;
  }
  .cookie-banner__btn {
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 11px 12px;
  }
  body.cookie-visible .hero__inner {
    padding-bottom: 175px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 24px; }
  .header__logo-img { height: 58px; }
  .hamburger { margin-right: -8px; }
  .hero__inner {
    min-height: 720px;
    padding-top: calc(var(--header-h) + 8px);
    padding-bottom: 56px;
  }
  .hero__label {
    font-size: 0.64rem;
    letter-spacing: 0.13em;
  }
  .hero__content {
    width: 100%;
    max-width: 350px;
  }
  .hero__title {
    max-width: 350px;
    font-size: 2.18rem;
    line-height: 1.06;
  }
  .hero__subtitle {
    max-width: 350px;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }
  .hero__text {
    max-width: 350px;
    font-size: 0.96rem;
  }
  .hero__actions { flex-direction: column; }
  .hero__cta-wide { min-width: 0; width: 100%; max-width: 350px; }
  .btn { width: 100%; justify-content: center; }
  .contact-strip__inner { flex-direction: column; gap: 12px; }
  .service-card__content {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  .service-detail__text,
  .bio__text,
  .bio__quote,
  .timeline-item__title,
  .timeline-item__sub,
  .contact-info__value,
  .contact-info__sub {
    padding-right: 18px;
    overflow-wrap: anywhere;
  }
  .bio__text,
  .bio__quote,
  .service-detail__text {
    max-width: 320px;
  }
  .service-card__title { font-size: 1.7rem; }
  .bio__info-card,
  .contact-info__item {
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .bio__text,
  .bio__quote,
  .service-detail__text,
  .section-header p {
    max-width: 320px;
    padding-right: 18px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 2.08rem; }
  .hero__text { font-size: 0.95rem; }
  .btn {
    padding-left: 20px;
    padding-right: 20px;
    font-size: 0.78rem;
  }
}
