/* =================================================================
   DALENA ARÉVALO — Abogada · Landing Page
   Fase 1: Navbar + Hero (composición centrada, ref. bufete premium)
   Estética: crema cálido + navy + bronce/latón · Playfair + Mulish
   ================================================================= */

/* ----------------------------- Tokens ---------------------------- */
:root {
  --cream:       #F5F0E8;
  --cream-2:     #EFE7D9;
  --cream-3:     #E7DCC9;
  --panel:       #FBF8F2;

  --navy:        #1A2332;
  --navy-2:      #243044;

  --gold:        #B08A55;
  --gold-deep:   #8A6534;
  --gold-light:  #E4C893;

  --brown:       #3A2A15;
  --brown-hover: #4C3820;

  --heading:     #2A2118;
  --text:        #564E3F;
  --muted:       #8C8472;
  --line:        #DCD2C0;

  --shadow-sm:   0 2px 10px rgba(26, 35, 50, .05);
  --shadow-md:   0 18px 40px -22px rgba(26, 35, 50, .35);
  --shadow-lg:   0 34px 70px -34px rgba(26, 35, 50, .45);

  --maxw: 1240px;
  --nav-h: 80px;

  --ease: cubic-bezier(.22, .7, .25, 1);
  --font-display: "Cormorant", Georgia, serif;
  --font-body: "Mulish", system-ui, sans-serif;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--heading); line-height: 1.05; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* --------------------------- Botones ----------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .01em;
  line-height: 1;
  padding: .95rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .35s var(--ease), background .35s var(--ease),
              color .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
/* Sweep de brillo al hover (botones rellenos) */
.btn--solid::before, .btn--ribbon::before {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg);
  transition: left .65s var(--ease);
  pointer-events: none;
}
.btn--solid:hover::before, .btn--ribbon:hover::before { left: 150%; }
.btn__arrow { position: relative; }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1rem; }
.btn__arrow { transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--solid { background: var(--brown); color: #F3EADA; box-shadow: var(--shadow-sm); }
.btn--solid:hover { background: var(--brown-hover); transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(58, 42, 21, .55); }

.btn--ghost { background: transparent; color: var(--heading); border-color: rgba(42, 33, 24, .30); }
.btn--ghost:hover { border-color: var(--heading); background: rgba(42, 33, 24, .04); transform: translateY(-2px); }

/* Botón tipo cinta/banner café (estilo referencia) */
.btn--ribbon {
  background: var(--brown);
  color: #F3EADA;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 700;
  font-size: .78rem;
  padding: 1.05rem 2.3rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 50%, 100% 100%, 0 100%, 13px 50%);
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.btn--ribbon:hover { background: var(--brown-hover); transform: translateY(-1px); }

/* ============================ NAVBAR ============================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  transition: box-shadow .4s var(--ease);
}
.nav.scrolled {
  box-shadow: 0 10px 30px -14px rgba(26, 35, 50, .16);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: .9rem 2rem;
}

.nav__logo { justify-self: start; display: flex; flex-direction: column; line-height: 1; }
.nav__logo-name { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--heading); letter-spacing: .01em; }
.nav__logo-sub { margin-top: .34rem; font-size: .58rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); }

.nav__links { justify-self: center; display: flex; align-items: center; gap: 2.2rem; }
.nav__links > a:not(.btn) {
  position: relative;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--heading);
  padding: .25rem 0;
  transition: color .3s var(--ease);
}
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width .35s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--gold-deep); }
.nav__links > a:not(.btn):hover::after { width: 100%; }
.nav__cta-mobile { display: none; }

.nav__end { justify-self: end; display: flex; align-items: center; gap: .6rem; }

/* Hamburguesa */
.nav__burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.nav__burger span { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--navy); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s var(--ease); }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================= HERO ============================= */
.hero {
  position: relative;
  background:
    radial-gradient(90% 55% at 50% 125%, var(--cream-3), transparent 62%),
    var(--cream);
  overflow: hidden;
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.2rem, 6vw, 6rem) 2rem clamp(4rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- Titular centrado --- */
.hero__title {
  margin: 0;
  width: 100%;
  min-width: 0;
  font-size: clamp(2rem, 7vw, 5.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: .012em;
  text-transform: uppercase;
  color: var(--heading);
  overflow-wrap: break-word;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .line__in {
  display: block;
  transform: translateY(115%);
  opacity: 0;
  animation: lineRise 1.05s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

/* --- Escenario central --- */
.hero__stage {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: clamp(2.5rem, 4.5vw, 4rem) auto 0;
  min-height: clamp(480px, 58vw, 720px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Estatua central (imagen real) */
.hero__statue { position: relative; z-index: 3; }
.hero__statue::before {
  content: "";
  position: absolute;
  left: 50%; top: 46%;
  width: 116%; height: 84%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(176, 138, 85, .22), rgba(245, 240, 232, 0) 78%);
  filter: blur(24px);
  z-index: -1;
  animation: glowPulse 6.5s ease-in-out 1.8s infinite;
}
.hero__statue-img {
  display: block;
  height: clamp(440px, 62vw, 720px);
  width: auto;
  filter: drop-shadow(0 26px 30px rgba(58, 42, 21, .30));
  opacity: 0;
  animation: statueIn 1.3s var(--ease) .4s forwards,
             statueFloat 7s ease-in-out 1.9s infinite;
}

/* Textos laterales */
.hero__aside { position: absolute; z-index: 4; max-width: 210px; text-align: left; }
.hero__aside p { font-size: .96rem; color: var(--text); line-height: 1.55; }
.hero__aside strong { color: var(--navy); font-weight: 800; }
.hero__aside--left { left: 0; top: 40%; }
.hero__aside--right { right: 0; top: 25%; max-width: 230px; }
.hero__arrow {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--gold-deep);
  margin-bottom: .7rem;
  animation: nudge 2s var(--ease) infinite;
}

/* Mazo de bronce */
.hero__gavel {
  position: absolute;
  left: 1%; bottom: 4%;
  width: clamp(128px, 15vw, 210px);
  z-index: 4;
  filter: drop-shadow(0 18px 20px rgba(58, 42, 21, .26));
  opacity: 0;
  animation: fadeIn 1s var(--ease) .7s forwards;
}
.hero__gavel-img { display: block; width: 100%; height: auto; animation: floaty 6.5s ease-in-out infinite; }

/* Badge circular giratorio */
.hero__badge {
  position: absolute;
  right: 2%; top: 40%;
  width: clamp(108px, 11vw, 136px);
  height: clamp(108px, 11vw, 136px);
  z-index: 4;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
}
.hero__badge--in { opacity: 0; animation: fadeIn 1s var(--ease) .85s forwards; }
.hero__badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.hero__badge-ring text { font-family: var(--font-body); font-size: 7.8px; font-weight: 700; letter-spacing: .12em; fill: var(--heading); opacity: .7; }
.hero__badge-play {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brown);
  color: #F3EADA;
  font-size: .7rem;
  padding-left: 3px;
}

/* CTAs + scroll */
.hero__cta { margin-top: clamp(2.8rem, 5vw, 4rem); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero__scroll {
  margin: 1.9rem auto 0;
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.hero__scroll:hover { color: var(--gold-deep); }
.hero__scroll-track { position: relative; width: 22px; height: 34px; border: 1.5px solid var(--muted); border-radius: 999px; }
.hero__scroll-dot { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; background: var(--gold); border-radius: 2px; animation: scrolldot 1.8s var(--ease) infinite; }

/* Cruces decorativas */
.hero__deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.plus { position: absolute; font-family: var(--font-body); font-weight: 300; color: var(--gold); opacity: .28; animation: floaty 7s ease-in-out infinite; }
.plus--1 { top: 16%; left: 7%;  font-size: 1.5rem; }
.plus--2 { top: 30%; left: 22%; font-size: 1rem;   opacity: .2;  animation-delay: -1.4s; }
.plus--3 { top: 70%; left: 14%; font-size: 1.3rem; color: var(--navy); opacity: .14; animation-delay: -2.8s; }
.plus--4 { top: 24%; right: 10%; font-size: 1.1rem; animation-delay: -3.6s; }
.plus--5 { top: 62%; right: 8%; font-size: 1.4rem; opacity: .22; animation-delay: -2s; }
.plus--6 { bottom: 16%; right: 20%; font-size: 1.1rem; color: var(--navy); opacity: .12; animation-delay: -4.4s; }

/* ========================= Animaciones ========================== */
.reveal { opacity: 0; transform: translateY(26px); animation: reveal .95s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes reveal { to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(13px); opacity: 0; } }
@keyframes lineRise { to { transform: translateY(0); opacity: 1; } }
@keyframes statueIn { from { opacity: 0; transform: translateY(34px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes statueFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes glowPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ========================= Responsive =========================== */
@media (max-width: 980px) {
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    justify-self: stretch;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.2rem 1.4rem;
    background: rgba(245, 240, 232, .98);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    opacity: 0; transform: translateY(-12px); pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .nav__links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links > a:not(.btn) { padding: .95rem .4rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__cta-mobile { display: inline-flex; justify-content: center; margin-top: 1.1rem; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

@media (max-width: 900px) {
  .hero__stage { flex-direction: column; align-items: center; min-height: auto; gap: 1.4rem; }
  .hero__statue { order: 0; }
  .hero__statue-img { height: clamp(320px, 66vw, 480px); }
  .hero__aside { position: static; max-width: min(340px, 100%); text-align: center; }
  .hero__aside--left { order: 1; }
  .hero__aside--right { order: 2; }
  .hero__arrow { display: none; }
  .hero__gavel { display: none; }
  .hero__badge { position: relative; order: 3; margin-top: 1rem; }
}

@media (max-width: 560px) {
  .nav__inner { padding: .8rem 1.2rem; }
  .nav__logo-name { font-size: 1.3rem; }
  .nav__logo-sub { letter-spacing: .12em; font-size: .54rem; white-space: nowrap; }
  .hero__inner { padding: 2.2rem 1.2rem 3rem; }
  .hero__title { font-size: clamp(1.15rem, 6vw, 2.1rem); }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================ SERVICIOS ============================ */
.services {
  padding: clamp(4.5rem, 9vw, 8rem) 2rem;
  background: var(--cream);
}
.services__head { max-width: 720px; margin: 0 auto; text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: .76rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-deep);
}
.kicker::before, .kicker::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .5; }

.services__title {
  margin-top: 1.1rem;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 600; line-height: 1.05; color: var(--heading);
}
.services__sub {
  margin: 1.1rem auto 0; max-width: 34em;
  font-size: 1.05rem; color: var(--text);
}

.services__grid {
  max-width: 1180px;
  margin: clamp(2.6rem, 5vw, 4.5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 1.8vw, 1.8rem);
}

.svc {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.8rem, 2.4vw, 2.4rem) clamp(1.6rem, 2vw, 2rem);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.svc:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: rgba(176, 138, 85, .55);
}
.svc__num {
  position: absolute; top: 1.5rem; right: 1.7rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: rgba(138, 101, 52, .45);
}
.svc__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(228, 200, 147, .5), rgba(176, 138, 85, .22));
  color: var(--brown);
  margin-bottom: 1.4rem;
  transition: background .45s var(--ease), color .45s var(--ease), transform .45s var(--ease);
}
.svc__icon svg { width: 27px; height: 27px; }
.svc:hover .svc__icon { background: var(--brown); color: #F3EADA; transform: rotate(-4deg); }

.svc__title {
  font-size: 1.5rem; font-weight: 600; color: var(--heading);
  margin-bottom: .55rem;
}
.svc__desc { font-size: .96rem; color: var(--text); line-height: 1.62; }

/* Revelado al hacer scroll (solo con JS activo) */
.js .js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--rd, 0s);
}
.js .js-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services { padding: clamp(3.5rem, 12vw, 5rem) 1.2rem; }
  .services__grid { grid-template-columns: 1fr; }
}

/* ============================ PERFIL / EXPERIENCIA ============================ */
.about {
  position: relative;
  padding: clamp(5rem, 9vw, 8.5rem) 2rem;
  background: var(--cream);
  overflow: hidden;
}
.about__gavel {
  position: absolute;
  top: clamp(1rem, 4vw, 3rem); left: clamp(-1rem, 2vw, 2.5rem);
  width: clamp(90px, 11vw, 150px);
  filter: drop-shadow(0 16px 18px rgba(58, 42, 21, .24));
  animation: floaty 6.5s ease-in-out infinite;
  z-index: 1;
}
.about__gavel img { display: block; width: 100%; height: auto; }

.about__head { max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }

.about__grid {
  max-width: 1140px;
  margin: clamp(2.8rem, 5vw, 4.5rem) auto 0;
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
.about__lead {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  font-weight: 600; line-height: 1.18; color: var(--heading);
  margin-bottom: 1.3rem;
}
.about__text p { color: var(--text); font-size: 1.05rem; line-height: 1.7; max-width: 32em; }
.about__cred { margin-top: 1rem; }
.about__cred strong { color: var(--brown); }
.about__link {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.9rem;
  font-weight: 700; letter-spacing: .04em;
  color: var(--gold-deep);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 3px;
  transition: gap .35s var(--ease), color .35s var(--ease);
}
.about__link:hover { color: var(--brown); gap: .9rem; }
.about__link-arrow { transition: transform .35s var(--ease); }
.about__link:hover .about__link-arrow { transform: translateX(3px); }

.about__media { position: relative; }
.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
}
/* La foto se funde con el fondo: degradado de máscara en los bordes */
.about__photo-img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 24%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 24%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
}
.about__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: linear-gradient(160deg, #EFE2CD, #E6D6BE);
  border-radius: 18px;
  color: rgba(58, 42, 21, .42);
  text-align: center; font-size: .82rem; letter-spacing: .04em; line-height: 1.5;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: clamp(2.5rem, 7vw, 3.5rem); }
  .about__media { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
  .about__gavel { display: none; }
  .about__text { text-align: center; }
  .about__text p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .about { padding: clamp(3.5rem, 12vw, 5rem) 1.2rem; }
}

/* ============================ PÁGINA: SOBRE MÍ ============================ */
/* Banner de foto de extremo a extremo (proporción nativa de la foto) */
.profile-banner { position: relative; width: 100%; overflow: hidden; }
.profile-banner__img {
  width: 100%;
  aspect-ratio: 1947 / 808;
  object-fit: cover;
  object-position: center center;
  display: block;
  /* Aparición suave + zoom muy lento que da vida ("ken burns") */
  animation: bannerIn 1.4s var(--ease) both, bannerDrift 22s ease-in-out 1.4s infinite alternate;
}
/* Efecto de niebla: oscurecido suave en bordes + refuerzo izq/abajo para el texto */
.profile-banner__fog {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(95deg, rgba(20,26,38,.72) 0%, rgba(20,26,38,.32) 32%, rgba(20,26,38,0) 58%),
    linear-gradient(180deg, rgba(20,26,38,.34) 0%, rgba(20,26,38,0) 26%, rgba(20,26,38,0) 60%, rgba(20,26,38,.66) 100%),
    radial-gradient(120% 80% at 50% 45%, rgba(20,26,38,0) 55%, rgba(20,26,38,.30) 100%);
  opacity: 0; animation: fogIn 1.8s var(--ease) .3s forwards;
}
/* Contenido (frases) sobre la foto */
.profile-banner__content {
  position: absolute; inset: 0; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 3.4rem);
  display: flex; flex-direction: column; justify-content: center;
  pointer-events: none;
}
.profile-banner__content > * { pointer-events: auto; }

/* Frase de impacto */
.banner-quote { position: relative; max-width: 30rem; }
.banner-quote__mark {
  position: absolute; top: -2.6rem; left: -.4rem;
  font-family: var(--font-display); font-size: 6rem; line-height: 1;
  color: var(--gold-light); opacity: .55;
}
.banner-quote__lead {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 500;
  color: rgba(245,240,232,.9); text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.banner-quote__strong {
  margin-top: .5rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3.3rem); line-height: 1.08;
  color: var(--cream); text-shadow: 0 3px 26px rgba(0,0,0,.6);
}
/* Subrayado dorado bajo la frase fuerte */
.banner-quote__strong::after {
  content: ""; display: block; margin-top: 1.1rem;
  width: 4.5rem; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
}

/* Frase de apoyo (abajo) */
.banner-tagline {
  position: absolute; left: clamp(1.6rem, 4vw, 3.4rem); bottom: clamp(1.4rem, 3vw, 2.4rem);
  max-width: 34rem;
  padding-left: 1rem; border-left: 2px solid var(--gold);
  font-size: clamp(.92rem, 1.6vw, 1.05rem); line-height: 1.6;
  color: rgba(245,240,232,.82); text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
@keyframes bannerIn {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1.03); }
}
@keyframes bannerDrift {
  from { transform: scale(1.03) translateY(0); }
  to   { transform: scale(1.06) translateY(-1.4%); }
}
@keyframes fogIn { to { opacity: 1; } }

.stats-band { position: relative; background: var(--navy); padding: clamp(2.6rem, 5vw, 3.6rem) 2rem; overflow: hidden; }
/* Brillo dorado en movimiento de fondo (da vida a la franja) */
.stats-band::before {
  content: ""; position: absolute; inset: -40% -10%;
  background: radial-gradient(40% 60% at 50% 50%, rgba(228,200,147,.16), transparent 70%);
  animation: statsGlow 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.stats-band__inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; text-align: center; }
.stats-band .stat { position: relative; transition: transform .4s var(--ease); }
.stats-band .stat:hover { transform: translateY(-5px); }
/* Separador sutil entre stats */
.stats-band .stat + .stat::after {
  content: ""; position: absolute; left: -.75rem; top: 50%; transform: translateY(-50%);
  width: 1px; height: 54%; background: linear-gradient(rgba(228,200,147,0), rgba(228,200,147,.28), rgba(228,200,147,0));
}
.stats-band .stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3.1rem); color: var(--gold-light); line-height: 1; transition: text-shadow .4s var(--ease); }
.stats-band .stat:hover b { text-shadow: 0 0 26px rgba(228,200,147,.5); }
.stats-band .stat span { margin-top: .55rem; display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 240, 232, .7); }
@keyframes statsGlow {
  from { transform: translateX(-12%) translateY(-4%); opacity: .8; }
  to   { transform: translateX(12%) translateY(4%); opacity: 1; }
}

.section { position: relative; padding: clamp(4.5rem, 8vw, 7.5rem) 2rem; background: var(--cream); overflow: hidden; }
.section--alt { background: var(--cream-2); }
.section--alt::before {
  /* textura de líneas finas muy sutiles */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(135deg, rgba(176,138,85,.035) 0 1px, transparent 1px 22px);
}
.section__inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; }
.section__head { max-width: 720px; margin: 0 auto clamp(2.6rem, 4vw, 3.6rem); text-align: center; }
.section__title { margin-top: .8rem; font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 600; line-height: 1.1; color: var(--heading); letter-spacing: -.01em; }

/* ---- Sobre mí: editorial con inicial gigante de fondo ---- */
.two-col { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.two-col .section__title { margin-top: .9rem; max-width: 14ch; }
.section__head-col { position: relative; }
/* Marca de agua: una "D" enorme de Cormorant detrás del título */
.two-col .section__head-col::before {
  content: "D"; position: absolute; z-index: 0;
  top: -3.2rem; left: -1.5rem;
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: 16rem; line-height: 1; color: var(--gold);
  opacity: .07; pointer-events: none; user-select: none;
}
.section__head-col > * { position: relative; z-index: 1; }
.prose { position: relative; }
.prose::before {
  content: ""; position: absolute; left: -1.6rem; top: .4rem; bottom: .4rem;
  width: 2px; background: linear-gradient(var(--gold), transparent);
}
.prose p { margin-bottom: 1.2rem; max-width: 40em; font-size: 1.08rem; line-height: 1.85; color: var(--text); }
.prose p:first-child { font-size: 1.2rem; line-height: 1.7; color: var(--heading); font-weight: 500; }
.prose p strong { color: var(--brown); font-weight: 700; }

/* ---- Formación: timeline vertical refinada ---- */
.cred-list { max-width: 720px; margin: 0 auto; display: grid; gap: 0; position: relative; padding-left: 1.4rem; }
.cred-list::before { content: ""; position: absolute; left: 4.6rem; top: .8rem; bottom: .8rem; width: 1px; background: linear-gradient(var(--gold-light), var(--line) 70%, transparent); }
.cred {
  position: relative; display: grid; grid-template-columns: 3.6rem 1fr; align-items: baseline; gap: 1.6rem;
  padding: 1.15rem 1.2rem 1.15rem 0; border-radius: 14px;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.cred:hover { background: var(--panel); transform: translateX(4px); }
.cred__year { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--gold-deep); text-align: right; }
/* nodo en la línea */
.cred::after {
  content: ""; position: absolute; left: calc(4.6rem - 1.4rem); top: 1.55rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--gold);
  transform: translateX(-50%); transition: background .3s var(--ease), transform .3s var(--ease);
}
.cred:hover::after { background: var(--gold); transform: translateX(-50%) scale(1.25); }
.cred h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; color: var(--heading); line-height: 1.35; }
.cred p { margin-top: .25rem; font-size: .9rem; color: var(--muted); }

/* ---- Certificaciones ISO (intro editorial + grid 2x2 refinado) ---- */
.iso-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2.2rem, 5vw, 4.5rem); align-items: center; }
.iso-intro { position: relative; }
.iso-intro .section__title { max-width: 12ch; }
.iso-intro__text { margin-top: 1.4rem; max-width: 28em; font-size: 1.05rem; line-height: 1.78; color: var(--text); }
.iso-intro__text strong { color: var(--brown); font-weight: 700; }
.iso-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.iso-card {
  position: relative; overflow: hidden;
  padding: 2.1rem 1.6rem 1.8rem; text-align: center;
  background: linear-gradient(165deg, var(--panel), var(--cream));
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
/* destello dorado superior al hover */
.iso-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold), var(--gold-light), transparent);
  transform: scaleX(0); transform-origin: center; transition: transform .5s var(--ease);
}
.iso-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: rgba(176,138,85,.5); }
.iso-card:hover::before { transform: scaleX(1); }
.iso-card__icon {
  display: inline-grid; place-items: center;
  width: 4rem; height: 4rem; margin-bottom: 1.1rem; border-radius: 14px;
  color: var(--gold-deep);
  background: radial-gradient(circle at 50% 35%, rgba(228,200,147,.28), rgba(228,200,147,.06));
  border: 1px solid rgba(176,138,85,.22);
  transition: transform .45s var(--ease);
}
.iso-card:hover .iso-card__icon { transform: scale(1.08) rotate(-3deg); }
.iso-card__icon svg { width: 2.1rem; height: 2.1rem; }
.iso-card h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; color: var(--heading); letter-spacing: .01em; }
.iso-card h3::after { content: ""; display: block; width: 2.2rem; height: 2px; margin: .75rem auto 0; background: var(--gold); border-radius: 2px; }
.iso-card p { margin-top: .85rem; font-size: .7rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; line-height: 1.55; color: var(--muted); }

.exp-list { max-width: 940px; margin: 0 auto; display: grid; gap: 1.1rem; counter-reset: exp; }
.exp {
  position: relative; counter-increment: exp;
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.6rem; align-items: start;
  padding: 1.7rem 1.9rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
/* barra dorada lateral que crece al hover */
.exp::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--gold-light), var(--gold-deep));
  transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease);
}
.exp:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(176,138,85,.4); }
.exp:hover::before { transform: scaleY(1); }
/* número de orden en Cormorant */
.exp::after {
  content: counter(exp, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; line-height: 1.1;
  color: var(--gold); opacity: .6;
  grid-column: 1; grid-row: 1; align-self: start;
}
.exp__body { grid-column: 2; grid-row: 1; }
.exp h3 { margin-bottom: .45rem; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1.2; color: var(--heading); }
.exp p { font-size: .99rem; line-height: 1.65; color: var(--text); }

.cta-band { background: var(--navy); padding: clamp(4rem, 8vw, 6.5rem) 2rem; text-align: center; }
.cta-band__inner { max-width: 680px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; line-height: 1.1; color: var(--cream); }
.cta-band p { margin-top: 1rem; font-size: 1.1rem; color: rgba(245, 240, 232, .78); }
.cta-band__btns { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn--ghost-light { background: transparent; color: var(--cream); border-color: rgba(245, 240, 232, .42); }
.btn--ghost-light:hover { border-color: var(--cream); background: rgba(245, 240, 232, .08); transform: translateY(-2px); }

.site-footer { background: var(--cream-2); border-top: 1px solid var(--line); padding: clamp(2.4rem, 5vw, 3.4rem) 2rem 1.8rem; color: var(--text); }
.site-footer__inner { max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.site-footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--heading); }
.site-footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.site-footer__nav a { font-size: .9rem; font-weight: 600; letter-spacing: .02em; color: var(--text); transition: color .3s var(--ease); }
.site-footer__contact { text-align: right; line-height: 1.7; font-size: .9rem; }
.site-footer a { color: var(--text); transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--brown); }
.site-footer__small { font-size: .8rem; color: var(--muted); }
.site-footer__copy { max-width: 1140px; margin: 1.8rem auto 0; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); text-align: center; }

/* Tablet/móvil: el banner se hace más alto y el texto va abajo */
@media (max-width: 820px) {
  .profile-banner__img { aspect-ratio: 4 / 5; max-height: 78vh; object-position: 62% 18%; }
  .profile-banner__fog {
    background:
      linear-gradient(180deg, rgba(20,26,38,.25) 0%, rgba(20,26,38,0) 30%, rgba(20,26,38,.50) 64%, rgba(20,26,38,.88) 100%);
  }
  .profile-banner__content { justify-content: flex-end; }
  .banner-quote { max-width: none; }
  .banner-quote__mark { top: -2rem; }
  .banner-tagline { position: static; margin-top: 1.4rem; max-width: none; }
}

@media (max-width: 900px) {
  .iso-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .stats-band__inner { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .two-col { grid-template-columns: 1fr; }
  .section__head { text-align: center; }
  .site-footer__inner { flex-direction: column; }
  .site-footer__contact { text-align: left; }
  /* Sobre mí en móvil: quitar la barra lateral del prose y achicar la "D" */
  .prose::before { display: none; }
  .two-col .section__head-col::before { font-size: 10rem; top: -2rem; left: -.6rem; }
  /* Timeline de formación: compacta */
  .cred-list { padding-left: 0; }
  .cred-list::before { left: 3.4rem; }
  .cred { grid-template-columns: 2.6rem 1fr; gap: 1.1rem; }
  .cred::after { left: 3.4rem; }
}

@media (max-width: 480px) {
  .iso-cards { grid-template-columns: 1fr; }
}

/* ============================ BENEFICIOS (contraste) ============================ */
.benefits {
  background: #241A10;
  color: #F3EADA;
  padding: clamp(4.5rem, 9vw, 8rem) 2rem;
  overflow: hidden;
}
.benefits__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.85fr 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.kicker--light { color: var(--gold-light); }
.benefits__title {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 600; line-height: 1.12; color: #F8F1E4;
}
.benefits__sub { margin-top: 1.2rem; max-width: 30em; font-size: 1.02rem; line-height: 1.7; color: rgba(243, 234, 218, .65); }
.btn--cream { margin-top: 2rem; background: #F3EADA; color: var(--brown); }
.btn--cream:hover { background: #FFFFFF; transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .5); }

.benefits__media { position: relative; display: grid; place-items: center; }
.benefits__glow {
  position: absolute; left: 50%; top: 50%;
  width: 92%; height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(176, 138, 85, .38), transparent 68%);
  filter: blur(32px);
  animation: glowPulse 6s ease-in-out infinite;
}
.benefits__statue {
  position: relative;
  height: clamp(360px, 38vw, 520px); width: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
}

.benefits__list { display: grid; gap: 1.6rem; }
.benefit { padding-top: 1.4rem; border-top: 1px solid rgba(243, 234, 218, .15); transition: border-color .4s var(--ease); }
.benefit:hover { border-color: var(--gold); }
.benefit h3 { margin-bottom: .5rem; font-family: var(--font-body); font-weight: 700; font-size: 1.18rem; color: #F8F1E4; }
.benefit p { font-size: .95rem; line-height: 1.6; color: rgba(243, 234, 218, .6); }

@media (max-width: 980px) {
  .benefits__grid { grid-template-columns: 1fr 1fr; }
  .benefits__media { grid-column: 1 / -1; order: -1; }
  .benefits__statue { height: clamp(320px, 50vw, 420px); }
}
@media (max-width: 640px) {
  .benefits { padding: clamp(3.5rem, 12vw, 5rem) 1.2rem; }
  .benefits__grid { grid-template-columns: 1fr; }
  .benefits__sub { max-width: none; }
}

/* ============================ CONTACTO ============================ */
.contact { background: var(--cream); padding: clamp(4.5rem, 9vw, 8rem) 2rem clamp(3.5rem, 7vw, 6rem); text-align: center; }
.contact__inner { max-width: 900px; margin: 0 auto; }
.contact__title { margin-top: 1rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 6.5vw, 5rem); line-height: 1.04; color: var(--heading); }
.contact__row { margin-top: 2.2rem; display: flex; align-items: center; justify-content: center; gap: 1.6rem; flex-wrap: wrap; }
.contact__arrow { position: relative; width: 80px; height: 2px; background: var(--gold-deep); }
.contact__arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 9px; height: 9px; border-top: 2px solid var(--gold-deep); border-right: 2px solid var(--gold-deep); transform: translateY(-50%) rotate(45deg); }
.contact__talk { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--heading); }
.contact__email { display: inline-block; margin-top: 1.8rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 4.5vw, 3rem); color: var(--brown); border-bottom: 2px solid transparent; transition: border-color .3s var(--ease), color .3s var(--ease); }
.contact__email:hover { border-bottom-color: var(--brown); }
.contact__meta { margin-top: 1.6rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 560px) {
  .contact { padding: clamp(3.5rem, 12vw, 5rem) 1.2rem; }
  .contact__arrow { width: 50px; }
}

/* ============================ EXTRAS / INTERACCIÓN ============================ */
/* Link activo del navbar (scrollspy) */
.nav__links > a:not(.btn).is-active { color: var(--gold-deep); }
.nav__links > a:not(.btn).is-active::after { width: 100%; }

/* Zoom sutil en la foto de perfil al pasar el cursor */
.about__photo-img { transition: transform .7s var(--ease); }
.about__photo:hover .about__photo-img { transform: scale(1.045); }

/* Botón "volver arriba" */
.to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 90;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: var(--brown); color: #F3EADA;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brown-hover); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ===================== Accesibilidad ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .js .js-reveal { opacity: 1; transform: none; }
}
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }
