/* =========================================================
   Florencia Velazques A. · Abogada
   Estilos del sitio (paleta clara basada en la identidad verde)
   ========================================================= */

:root {
  /* Paleta de marca */
  --verde: #4F6A4D;          /* verde oscuro del logo */
  --verde-hondo: #34472F;    /* fondo profundo */
  --verde-claro: #6E9D6A;    /* verde claro del logo */
  --salvia: #DCE5D3;         /* tinte suave de verde */
  --dorado: #C9B45A;         /* acento dorado (uso mínimo) */
  --marron: #85755F;         /* marrón acento del sitio anterior */

  /* Neutros claros */
  --crema: #F6F3EC;
  --papel: #FBFAF6;
  --arena: #EDE7DB;
  --linea: #DDD6C7;

  /* Texto */
  --tinta: #22281F;
  --tinta-suave: #5B6156;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max: 1200px;
  --radio: 18px;
  --sombra: 0 1px 2px rgba(34, 40, 31, .05), 0 12px 32px -12px rgba(34, 40, 31, .18);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--salvia); color: var(--verde-hondo); }

:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--verde); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; color: var(--tinta); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; }

/* Acento editorial: serif itálica, como en los reels */
h1 em, h2 em, h3 em, .quote em, .ticker em, .reel em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}
h1 em, h2 em, h3 em { color: var(--verde); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--verde); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--salvia); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.5rem; border-radius: 999px;
  font: 700 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--verde); color: #fff; box-shadow: 0 10px 24px -10px rgba(79,106,77,.7); }
.btn--solid:hover { background: var(--verde-hondo); }
.btn--ghost { border-color: var(--tinta); color: var(--tinta); }
.btn--ghost:hover { background: var(--tinta); color: var(--crema); }
.btn--light { background: var(--crema); color: var(--verde-hondo); }
.btn--light:hover { background: #fff; }
.btn--sm { min-height: 42px; padding: .6rem 1.2rem; font-size: .92rem; }
.btn--block { width: 100%; }
.ico { width: 20px; height: 20px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: auto;
  font-weight: 700; color: var(--verde); text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px; align-self: flex-start;
}
.link-arrow::after { content: "→"; transition: transform .25s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  background: rgba(246, 243, 236, .82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--linea); background: rgba(246, 243, 236, .94); }
.nav__inner {
  height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 768px) { .nav__inner { padding-inline: 32px; } }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark { width: 38px; height: 34px; fill: var(--verde); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em; }
.brand__role { font-size: .68rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--tinta-suave); }

.nav__menu { display: flex; align-items: center; gap: 1.9rem; }
.nav__menu a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--tinta-suave);
  position: relative; transition: color .2s;
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--verde); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav__menu a:not(.btn):hover, .nav__menu a.is-active { color: var(--tinta); }
.nav__menu a:not(.btn):hover::after, .nav__menu a.is-active::after { transform: scaleX(1); }

.nav__toggle { display: none; }

@media (max-width: 899px) {
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; width: 46px; height: 46px;
    border: 1px solid var(--linea); border-radius: 50%; background: var(--papel); cursor: pointer;
  }
  .nav__toggle span { display: block; width: 18px; height: 1.8px; background: var(--tinta); transition: transform .3s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 20px 1.5rem; background: var(--crema); border-bottom: 1px solid var(--linea);
    box-shadow: 0 24px 40px -24px rgba(34,40,31,.35);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__menu a:not(.btn) { padding: 1rem 0; font-size: 1.1rem; color: var(--tinta); border-bottom: 1px solid var(--linea); }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1.2rem; min-height: 50px; }
}
@media (max-width: 380px) { .brand__name { font-size: .95rem; } }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + 2.5rem) 0 3.5rem; position: relative; }
.hero::before { /* sutil tinte verde de fondo */
  content: ""; position: absolute; inset: 0 0 auto auto; width: 55%; height: 85%;
  background: radial-gradient(closest-side, rgba(110,157,106,.16), transparent);
  pointer-events: none;
}
.hero__grid { display: grid; gap: 3rem; align-items: center; position: relative; }
@media (min-width: 900px) {
  .hero { padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 5rem; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
}

.hero__title { font-size: clamp(2.35rem, 5.4vw, 3.9rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero__lead { margin-top: 1.5rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--tinta-suave); max-width: 34rem; }
.hero__lead strong { color: var(--tinta); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
@media (max-width: 480px) { .hero__actions .btn { width: 100%; } }

.hero__facts {
  list-style: none; padding: 0; margin-top: 2.6rem; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--linea); max-width: 34rem;
}
.hero__facts li { padding: 1rem .8rem 0 0; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.hero__facts li + li { padding-left: .9rem; border-left: 1px solid var(--linea); }
.hero__facts span { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-suave); font-weight: 600; margin-bottom: .3rem; }

/* Foto cuadrada con marco desplazado */
.hero__photo { position: relative; max-width: 460px; justify-self: center; width: 100%; perspective: 900px; }
.frame {
  position: relative; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden;
  background: var(--arena); box-shadow: 0 30px 60px -30px rgba(34,40,31,.45);
  transition: transform .25s ease-out;
}
.hero__photo::before { /* bloque verde detrás */
  content: ""; position: absolute; inset: 1.6rem -1.6rem -1.6rem 1.6rem; border-radius: 20px;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-claro) 100%); z-index: -1;
}
.hero__photo::after { /* línea fina de marco */
  content: ""; position: absolute; inset: -.9rem .9rem .9rem -.9rem; border-radius: 24px;
  border: 1.5px solid var(--linea); z-index: -1;
}
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: scale(1.04); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hero__photo:hover .frame img { transform: scale(1.08); }
.frame__shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(255,255,255,.55), transparent 55%);
}
.hero__grid { isolation: isolate; }
@media (max-width: 600px) {
  .hero__photo { max-width: 340px; }
  .hero__photo::before { inset: 1rem -.7rem -1rem 1rem; }
  .hero__photo::after { inset: -.6rem .6rem .6rem -.6rem; }
}

/* Sello circular giratorio */
.seal {
  position: absolute; top: -2.2rem; right: -2.2rem; width: 132px; height: 132px; z-index: 2;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--crema); box-shadow: var(--sombra);
}
.seal__ring { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 22s linear infinite; }
.seal__ring text { font: 700 15.5px var(--sans); letter-spacing: 3.2px; fill: var(--verde-hondo); }
.seal__mark { width: 42px; height: 38px; fill: var(--verde); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .seal { width: 100px; height: 100px; top: -1.4rem; right: -.6rem; } .seal__mark { width: 32px; height: 28px; } }

.hero__badge {
  position: absolute; left: -1.4rem; bottom: 2.2rem; z-index: 2; display: flex; align-items: center; gap: .75rem;
  background: rgba(251,250,246,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--linea); border-radius: 14px;
  padding: .8rem 1.1rem; box-shadow: var(--sombra); font-size: .8rem; line-height: 1.3; color: var(--tinta-suave);
  animation: float 6s ease-in-out infinite;
}
.hero__badge strong { display: block; color: var(--tinta); font-size: .9rem; }
.hero__dot { width: 10px; height: 10px; border-radius: 50%; background: #3FB24F; flex: none; box-shadow: 0 0 0 0 rgba(63,178,79,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(63,178,79,0); } 100% { box-shadow: 0 0 0 0 rgba(63,178,79,0); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 600px) { .hero__badge { left: .6rem; bottom: 1rem; } }

/* Palabra que rota en el título */
.rotator { display: inline-block; position: relative; white-space: nowrap; perspective: 400px; }
.rotator span { display: inline-block; transition: transform .45s cubic-bezier(.6,0,.2,1), opacity .45s, filter .45s; }
.rotator.is-out span { transform: translateY(-40%) rotateX(70deg); opacity: 0; filter: blur(4px); }
.rotator.is-in span { transform: translateY(40%) rotateX(-70deg); opacity: 0; filter: blur(4px); transition: none; }
.rotator::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .1em; border-radius: 99px;
  background: var(--dorado); opacity: .55; transform-origin: left; animation: underline 1.2s .8s cubic-bezier(.6,0,.2,1) both;
}
@keyframes underline { from { transform: scaleX(0); } }
.br-mob { display: none; }
@media (max-width: 480px) { .br-mob { display: inline; } }

/* Indicador de scroll */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--tinta-suave); text-decoration: none;
}
.scroll-cue i { width: 1.5px; height: 42px; background: linear-gradient(var(--verde), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--crema); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { to { top: 110%; } }


/* ---------- Franja en movimiento ---------- */
.ticker { background: var(--verde); color: var(--crema); overflow: hidden; padding: 1.05rem 0; }
.ticker__track {
  display: flex; align-items: center; gap: 1.6rem; width: max-content;
  font-weight: 700; font-size: 1.05rem; white-space: nowrap;
  animation: ticker 42s linear infinite;
}
.ticker em { font-weight: 400; font-size: 1.15em; }
.ticker i { font-style: normal; color: var(--dorado); font-size: .8rem; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker--js .ticker__track { animation: none; will-change: transform; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: 5rem 0; }
@media (min-width: 900px) { .section { padding: 7rem 0; } }
.section--tint { background: var(--papel); border-block: 1px solid var(--linea); }
.section--sand { background: var(--arena); }
.section--deep { background: var(--verde-hondo); color: var(--crema); }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep h2 em { color: var(--salvia); }

.section__head { max-width: 44rem; margin-bottom: 3rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow::before { display: none; }
.section__head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.section__lead { margin-top: 1rem; color: var(--tinta-suave); font-size: 1.1rem; }

/* ---------- Áreas: pilares ---------- */
.pillars { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .pillars { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; }
  .pillar--main { grid-row: span 2; }
}

.pillar {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 2rem 1.6rem; transition: transform .35s, box-shadow .35s, border-color .35s;
}
@media (min-width: 768px) { .pillar { padding: 2.4rem 2.2rem; } }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: var(--salvia); }
.pillar h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.pillar__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pillar__num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--marron); }
.pillar__desc { color: var(--tinta-suave); }

.tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem .75rem; border-radius: 999px; background: var(--salvia); color: var(--verde-hondo);
}
.tag--light { background: rgba(255,255,255,.14); color: var(--crema); border: 1px solid rgba(255,255,255,.25); }

.checks { list-style: none; padding: 0; display: grid; gap: .6rem; margin-bottom: .6rem; }
.checks li { position: relative; padding-left: 1.75rem; font-weight: 500; line-height: 1.45; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--salvia) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.4 2.3L12 5.2' fill='none' stroke='%234F6A4D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

.pillar--main { background: var(--verde); border-color: var(--verde); color: var(--crema); }
.pillar--main:hover { border-color: var(--verde); }
.pillar--main h3 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); }
.pillar--main h3 em { color: var(--salvia); }
.pillar--main .pillar__num { color: var(--dorado); }
.pillar--main .pillar__desc { color: rgba(246,243,236,.85); font-size: 1.08rem; }
.pillar--main .checks li::before { background-color: rgba(255,255,255,.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.4 2.3L12 5.2' fill='none' stroke='%23F6F3EC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pillar--main .btn { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }
.pillar__watermark {
  position: absolute; right: -40px; bottom: -40px; width: 260px; height: 230px;
  fill: rgba(255,255,255,.06); pointer-events: none;
}

.callout {
  margin-top: auto; padding: 1rem 1.1rem; border-radius: 12px; position: relative; z-index: 1;
  background: rgba(0,0,0,.14); border: 1px solid rgba(255,255,255,.14);
  display: flex; flex-direction: column; gap: .2rem; font-size: .95rem; line-height: 1.45;
}
.callout strong { color: #fff; }
.callout span { color: rgba(246,243,236,.82); }
.pillar--main .callout + .btn { margin-top: .4rem; }

/* Otras áreas: en segundo plano, compacto */
.others {
  margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--linea);
  display: grid; gap: 1.5rem;
}
@media (min-width: 900px) { .others { grid-template-columns: .8fr 2.2fr; gap: 3rem; } }
.others__intro h3 { font-size: 1.25rem; }
.others__intro p { color: var(--tinta-suave); margin-top: .3rem; }
.others__list { display: grid; gap: 0 2rem; }
@media (min-width: 640px) { .others__list { grid-template-columns: 1fr 1fr; } }

details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }

.others details { border-bottom: 1px solid var(--linea); }
.others summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .95rem 0; font-weight: 600; color: var(--tinta);
}
.others summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--verde); transition: transform .3s; }
.others details[open] summary::after { transform: rotate(45deg); }
.others details p { padding: 0 0 1rem; color: var(--tinta-suave); font-size: .97rem; }

/* ---------- Cómo trabajo ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { position: relative; padding: 1.75rem 0 0; border-top: 1.5px solid var(--tinta); }
.steps__n {
  font-family: var(--serif); font-style: italic; font-size: 3rem; line-height: 1; color: var(--verde-claro);
  display: block; margin-bottom: .75rem;
}
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--tinta-suave); }

/* ---------- Sobre mí ---------- */
.about { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: .9fr 1.1fr; gap: 5rem; } }
.about__photo { position: relative; max-width: 460px; justify-self: center; width: 100%; }
.about__photo::before {
  content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; z-index: -1;
  border-radius: 22px; background: var(--salvia);
}
@media (max-width: 600px) { .about__photo::before { inset: 1rem -.6rem -1rem 1rem; } }
.about__photo img { border-radius: 22px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; width: 100%; height: auto; box-shadow: var(--sombra); }
.about__copy > p { color: var(--tinta-suave); margin-top: 1rem; max-width: 36rem; }
.about__copy > p strong { color: var(--tinta); font-weight: 700; }
.about__copy h2 { margin-bottom: .5rem; }

.quote {
  margin: 2rem 0; padding: 1.2rem 0 1.2rem 1.4rem; border-left: 3px solid var(--verde);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 700; line-height: 1.35; letter-spacing: -0.01em;
}
.quote em { color: var(--verde); }

.values { list-style: none; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 600px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; padding: 1.1rem 1.1rem 1.2rem; }
.values strong { display: block; font-size: 1rem; margin-bottom: .25rem; }
.values span { color: var(--tinta-suave); font-size: .9rem; line-height: 1.45; display: block; }

.cv { margin-top: 2rem; display: grid; gap: .1rem; }
.cv div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--linea); font-size: .95rem; }
.cv dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-suave); padding-top: .2em; }
.cv dd { font-weight: 600; }

/* ---------- Recursos: reels ---------- */
.reels {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding: .5rem 20px 1.5rem; margin-inline: -20px;
  scrollbar-width: thin; scrollbar-color: var(--marron) transparent;
}
@media (min-width: 600px) { .reels { grid-auto-columns: 40%; } }
@media (min-width: 1000px) {
  .reels { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; padding: 0; margin: 0 0 1rem; }
}
.reel {
  scroll-snap-align: start; position: relative; aspect-ratio: 9 / 14;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  padding: 1.1rem; border-radius: 16px; text-decoration: none; overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.reel:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--sombra); }
.reel__tag {
  align-self: flex-start; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px; border: 1px solid currentColor; opacity: .85;
}
.reel__text { font-size: 1.15rem; line-height: 1.18; display: flex; flex-direction: column; gap: .3rem; }
.reel__text b { font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; font-size: .95em; }
.reel__text em { font-size: 1.12em; }
.reel__play {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; align-self: flex-end;
  background: currentColor; transition: transform .3s;
}
.reel__play::before {
  content: ""; width: 0; height: 0; margin-left: 3px;
  border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--reel-bg);
}
.reel:hover .reel__play { transform: scale(1.1); }
.reel--sage  { --reel-bg: var(--verde);  background: var(--verde); color: var(--crema); }
.reel--cream { --reel-bg: var(--papel);  background: var(--papel); color: var(--verde-hondo); border: 1px solid var(--linea); }
.reel--ink   { --reel-bg: #2B3327;       background: #2B3327; color: var(--arena); }
.reel--sand  { --reel-bg: #D9CFBC;       background: #D9CFBC; color: var(--tinta); }

/* FAQ */
.faq { margin-top: 4rem; display: grid; gap: 2rem; }
@media (min-width: 900px) { .faq { grid-template-columns: .8fr 1.6fr; gap: 4rem; } }
.faq__head h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.faq__head p { margin-top: .7rem; color: var(--tinta-suave); font-size: .95rem; }
.faq__list details { background: var(--papel); border-radius: 14px; margin-bottom: .7rem; border: 1px solid transparent; transition: border-color .3s; }
.faq__list details[open] { border-color: var(--linea); }
.faq__list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.2rem;
  padding: 1.15rem 1.3rem; font-weight: 700; line-height: 1.35;
}
.faq__list summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--salvia) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5L8 10l3.5-3.5' fill='none' stroke='%234F6A4D' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .3s;
}
.faq__list details[open] summary::after { transform: rotate(180deg); }
.faq__list details p { padding: 0 1.3rem 1.3rem; color: var(--tinta-suave); }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }
.contact__info > p { color: rgba(246,243,236,.8); margin-top: 1rem; max-width: 30rem; }

.wa-card {
  margin-top: 2rem; display: flex; align-items: center; gap: 1rem;
  background: var(--crema); color: var(--verde-hondo); text-decoration: none;
  border-radius: 16px; padding: 1.1rem 1.3rem; max-width: 26rem;
  transition: transform .3s, box-shadow .3s;
}
.wa-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); }
.wa-card .ico { width: 36px; height: 36px; color: #25A244; }
.wa-card span { display: flex; flex-direction: column; font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.wa-card small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-suave); font-weight: 700; }
.wa-card b { margin-left: auto; font-size: 1.3rem; transition: transform .3s; }
.wa-card:hover b { transform: translateX(4px); }

.contact__list { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: .1rem; max-width: 30rem; }
.contact__list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid rgba(246,243,236,.15); font-size: .95rem; }
.contact__list span { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--salvia); padding-top: .25em; }
.contact__list a { text-decoration: none; overflow-wrap: anywhere; }
@media (max-width: 480px) { .contact__list li { grid-template-columns: 1fr; gap: .2rem; } }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.socials { display: flex; gap: .7rem; margin-top: 1.8rem; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(246,243,236,.3); color: var(--crema); transition: background-color .25s, color .25s;
}
.socials a:hover { background: var(--crema); color: var(--verde-hondo); }
.socials svg { width: 20px; height: 20px; }

.form {
  background: var(--papel); color: var(--tinta); border-radius: 22px; padding: 1.6rem;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
@media (min-width: 768px) { .form { padding: 2.4rem; } }
.section--deep .form h3, .form h3 { margin-bottom: 1.4rem; font-size: 1.4rem; color: var(--tinta); }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; min-width: 0; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: .85rem; font-weight: 700; }
.field label small { font-weight: 500; color: var(--tinta-suave); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 1rem/1.4 var(--sans); color: var(--tinta);
  background: var(--crema); border: 1.5px solid var(--linea); border-radius: 12px;
  padding: .8rem .9rem; transition: border-color .2s, background-color .2s;
}
.field select { appearance: none; padding-right: 2.4rem; background: var(--crema) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5L8 10l3.5-3.5' fill='none' stroke='%2322281F' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right .8rem center/16px no-repeat; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--verde); background-color: #fff; }
.field.has-error input, .field.has-error textarea { border-color: #B4553F; }
.field .error-msg { color: #A3412C; font-size: .82rem; font-weight: 600; }
.form__note { font-size: .82rem; color: var(--tinta-suave); margin: -.2rem 0 1rem; }
.form__status { margin-top: 1rem; font-weight: 700; font-size: .95rem; }
.form__status.ok { color: var(--verde); }
.form__status.err { color: #A3412C; }
.hp { position: absolute; left: -9999px; }

/* ---------- Pie ---------- */
.footer { background: var(--crema); padding: 3rem 0 6rem; border-top: 1px solid var(--linea); }
@media (min-width: 768px) { .footer { padding-bottom: 3rem; } }
.footer__inner { display: grid; gap: 1.8rem; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr; align-items: center; } }
.footer__brand { display: flex; align-items: center; gap: .9rem; }
.footer__brand strong { display: block; font-family: var(--serif); font-size: 1.1rem; }
.footer__brand span { font-size: .85rem; color: var(--tinta-suave); }
.footer__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
@media (min-width: 900px) { .footer__nav { justify-content: flex-end; } }
.footer__nav a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--tinta-suave); }
.footer__nav a:hover { color: var(--verde); }
.footer__legal { grid-column: 1 / -1; font-size: .8rem; color: var(--tinta-suave); padding-top: 1.5rem; border-top: 1px solid var(--linea); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25A244; color: #fff; box-shadow: 0 12px 28px -8px rgba(0,0,0,.4);
  transition: transform .3s, opacity .3s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: scale(.8); }

/* ---------- Animación de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Los efectos se mantienen aunque el sistema tenga las animaciones desactivadas
   (pedido explícito). Solo se desactiva el desplazamiento suave. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =========================================================
   Efectos y estilos extra
   ========================================================= */

/* Textura de papel sobre toda la página */
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, 3%); } }

/* Intro con el monograma */
.intro {
  position: fixed; inset: 0; z-index: 200; display: none; place-content: center; justify-items: center; gap: 1.2rem;
  background: var(--verde-hondo); color: var(--crema);
}
.js-intro .intro { display: grid; }
.intro__mark { width: 110px; height: 96px; overflow: visible; }
.intro__mark path { fill: transparent; stroke: var(--salvia); stroke-width: 14; stroke-dasharray: 4200; stroke-dashoffset: 4200; animation: draw 1.1s cubic-bezier(.6,0,.3,1) forwards, fillin .4s .95s forwards; }
.intro__name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .06em; opacity: 0; animation: fadeup .6s .6s forwards; }
.intro.is-done { animation: curtain .8s cubic-bezier(.7,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill: var(--salvia); } }
@keyframes fadeup { from { transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes curtain { to { transform: translateY(-100%); } }

/* Barra de progreso de lectura */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--verde), var(--dorado)); }

/* Títulos que aparecen palabra por palabra */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .06em .28em; margin: 0 -.06em -.28em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.75,.2,1); transition-delay: calc(var(--i) * 45ms); }
.split.is-visible .w > span { transform: none; }
.js .split.reveal { opacity: 1; transform: none; }

/* Luz que sigue al mouse en las tarjetas */
.glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(110,157,106,.18), transparent 45%);
}
.pillar--main.glow::before { background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.14), transparent 45%); }
.glow:hover::before { opacity: 1; }
.pillar > *:not(.pillar__watermark) { position: relative; }
.pillar .pillar__watermark { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pillar--main:hover .pillar__watermark { transform: rotate(-8deg) scale(1.08); }

/* Lista con checks que aparecen en cascada */
.js .checks li { opacity: 0; transform: translateX(-10px); transition: opacity .5s, transform .5s; transition-delay: calc(var(--i, 0) * 80ms + 250ms); }
.js .is-visible .checks li { opacity: 1; transform: none; }

/* Diagnóstico rápido */
.diag { display: grid; gap: 1.5rem; max-width: 1000px; margin-inline: auto; }
@media (min-width: 900px) { .diag { grid-template-columns: 1fr 1.15fr; gap: 2.5rem; align-items: stretch; } }
.diag__chips { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (min-width: 900px) { .diag__chips { flex-direction: column; align-items: stretch; } }
.chip {
  font: 600 .95rem/1.3 var(--sans); color: var(--tinta); text-align: left; cursor: pointer;
  padding: .75rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--linea); background: var(--crema);
  transition: background-color .25s, border-color .25s, color .25s, transform .25s;
}
@media (min-width: 900px) {
  .chip { border-radius: 14px; padding: .95rem 1.2rem; display: flex; justify-content: space-between; align-items: center; }
  .chip::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: .25s; }
  .chip:hover { transform: translateX(4px); }
}
.chip:hover { border-color: var(--verde); }
.chip.is-active { background: var(--verde); border-color: var(--verde); color: #fff; }
.chip.is-active::after { opacity: 1; transform: none; }

.diag__card {
  position: relative; overflow: hidden; border-radius: 22px; padding: 2rem 1.6rem;
  background: var(--crema); border: 1px solid var(--linea); box-shadow: var(--sombra);
  display: flex; flex-direction: column; gap: 1rem; min-height: 340px;
}
@media (min-width: 768px) { .diag__card { padding: 2.6rem 2.4rem; } }
.diag__card > *:not(.diag__watermark) { position: relative; z-index: 1; }
.diag__card.is-swap > *:not(.diag__watermark) { animation: swap .5s cubic-bezier(.2,.7,.2,1) both; }
.diag__card.is-swap > :nth-child(2) { animation-delay: .05s; }
.diag__card.is-swap > :nth-child(3) { animation-delay: .1s; }
.diag__card.is-swap > :nth-child(4) { animation-delay: .15s; }
@keyframes swap { from { opacity: 0; transform: translateY(14px); } }
.diag__meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.diag__urg { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; color: var(--tinta-suave); }
.diag__urg b { width: 54px; height: 6px; border-radius: 99px; background: var(--linea); position: relative; overflow: hidden; }
.diag__urg b::after { content: ""; position: absolute; inset: 0; width: var(--lvl, 90%); border-radius: inherit; background: linear-gradient(90deg, var(--dorado), #C0573E); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.diag__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.diag__text { color: var(--tinta-suave); font-size: 1.05rem; }
.diag__btn { align-self: flex-start; margin-top: auto; }
.diag__watermark { position: absolute; right: -50px; bottom: -50px; width: 240px; height: 210px; fill: var(--verde); opacity: .06; }

/* Frase que se pinta al hacer scroll */
.statement { background: var(--verde-hondo); color: var(--crema); padding: 6rem 0; position: relative; overflow: hidden; }
@media (min-width: 900px) { .statement { padding: 9rem 0; } }
.statement::before {
  content: ""; position: absolute; right: -6%; top: 50%; width: 46vw; max-width: 620px; aspect-ratio: 1.15; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='200 300 1530 1330'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M215 313H1125V481H421V1618H215Z'/%3E%3Cpath d='M460 895H943L1032 1049H460Z'/%3E%3Cpath d='M563 534H772L935 858H736Z'/%3E%3Cpath d='M860 1091H1052L1148 1280L1509 534H1716L1141 1617Z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .045;
}
.statement__text {
  position: relative; max-width: 58rem;
  font-size: clamp(1.8rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em;
}
.statement__text em { font-family: var(--serif); font-style: italic; font-weight: 500; }
.statement__text .pw { opacity: .16; transition: opacity .25s, color .25s; }
.statement__text .pw.on { opacity: 1; }
.statement__text em .pw.on { color: var(--salvia); }

/* Línea de progreso en "Cómo trabajo" */
.steps { position: relative; }
.steps .steps__line { position: absolute; left: 0; right: 0; top: 0; height: 1.5px; padding: 0 !important; border: 0 !important; background: var(--linea); }
.steps__line span { display: block; height: 100%; background: var(--tinta); transform-origin: left; transform: scaleX(0); transition: transform 1.6s cubic-bezier(.6,0,.2,1); }
.steps.is-drawn .steps__line span { transform: none; }
@media (min-width: 768px) { .steps li:not(.steps__line) { border-top-color: transparent; } }
@media (max-width: 767px) { .steps__line { display: none; } }
.steps__n { transition: transform .5s; }
.steps li:hover .steps__n { transform: translateY(-4px) rotate(-6deg); }

/* Tarjetas de reels con inclinación 3D */
.reel { transform-style: preserve-3d; }
.reel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.28), transparent 50%);
  opacity: 0; transition: opacity .3s;
}
.reel:hover::after { opacity: 1; }

/* Volver arriba */
.to-top {
  position: fixed; right: 22px; bottom: 90px; z-index: 40; width: 50px; height: 50px; padding: 0;
  border: 0; border-radius: 50%; background: var(--papel); color: var(--verde-hondo); cursor: pointer;
  box-shadow: var(--sombra); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 2.5; }
.to-top__track { stroke: var(--linea); }
.to-top__ring { stroke: var(--verde); stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; }
.to-top path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transform-origin: 24px 24px; }
@media (max-width: 767px) { .to-top { display: none; } }

/* Aviso flotante */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 160%);
  background: var(--verde-hondo); color: var(--crema); font-weight: 700; font-size: .95rem;
  padding: .95rem 1.4rem; border-radius: 14px; box-shadow: 0 20px 40px -15px rgba(0,0,0,.5);
  transition: transform .5s cubic-bezier(.2,.8,.2,1); max-width: calc(100% - 32px);
}
.toast.is-on { transform: translate(-50%, 0); }

html { scrollbar-color: var(--verde) var(--crema); }

/* Formación / diplomas */
.creds { margin-top: 2.2rem; }
.creds__title { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--verde); margin-bottom: 1rem; }
.creds__list { list-style: none; padding: 0; display: grid; gap: .7rem; }
@media (min-width: 600px) { .creds__list { grid-template-columns: 1fr 1fr; } }
.cred {
  position: relative; display: flex; flex-direction: column; gap: .15rem;
  padding: 1rem 1.1rem 1rem 1.25rem; border-radius: 14px; background: var(--papel); border: 1px solid var(--linea);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.cred::before { content: ""; position: absolute; left: 0; top: 1rem; bottom: 1rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--salvia); transition: background-color .3s; }
.cred:hover { transform: translateY(-3px); border-color: var(--salvia); box-shadow: var(--sombra); }
.cred:hover::before { background: var(--verde); }
.cred__type { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--marron); }
.cred strong { font-size: 1rem; line-height: 1.3; }
.cred__inst { font-size: .86rem; color: var(--tinta-suave); }
.cred--main { grid-column: 1 / -1; background: var(--verde); border-color: var(--verde); color: var(--crema); padding: 1.3rem 1.4rem 1.3rem 1.5rem; }
.cred--main::before { background: var(--dorado); }
.cred--main:hover { border-color: var(--verde); }
.cred--main:hover::before { background: var(--dorado); }
.cred--main .cred__type { color: var(--dorado); }
.cred--main strong { font-size: 1.25rem; color: #fff; font-family: var(--serif); font-style: italic; font-weight: 500; }
.cred--main .cred__inst { color: rgba(246,243,236,.82); }
.js .creds.reveal .cred { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s, border-color .3s, box-shadow .3s; }
.js .creds.is-visible .cred { opacity: 1; transform: none; }
.js .creds.is-visible .cred:nth-child(2) { transition-delay: .08s; }
.js .creds.is-visible .cred:nth-child(3) { transition-delay: .16s; }
.js .creds.is-visible .cred:nth-child(4) { transition-delay: .24s; }
.js .creds.is-visible .cred:nth-child(5) { transition-delay: .32s; }
.js .creds.is-visible .cred:hover { transform: translateY(-3px); transition-delay: 0s; }
@media (min-width: 900px) { .about { align-items: start; } .about__photo { position: sticky; top: calc(var(--nav-h) + 2rem); } }
