/* ===========================================================
   TOKENS — paleta "campo al atardecer"
   =========================================================== */
:root {
  --papel: #F7F2E9;
  --papel-oscuro: #EFE7D6;
  --papel-borde: #D9C9A3;
  --tinta: #201D18;
  --musgo: #1E3A2E;
  --anil: #22344F;
  --bronce: #A9813F;
  --bronce-texto: #826331;        /* bronce oscurecido: pasa AA en texto chico sobre Papel */
  --bronce-texto-oscuro: #C49649; /* bronce aclarado: pasa AA en texto chico sobre Musgo */
  --verde-oscuro: #14281E;
  --texto-secundario: #5B564C;
  --texto-tenue: #746E61;         /* ticker inactivo, oscurecido para AA sobre Papel */
  --texto-tenue-oscuro: #818F84;  /* fine print del Cierre, aclarado para AA sobre Verde oscuro */
  --texto-claro: #C7D0C7;

  --font-display: 'Newsreader', serif;
  --font-utility: 'Archivo', sans-serif;

  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h: 84px;
}

/* ===========================================================
   RESET
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--bronce); color: var(--papel); }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--musgo);
  color: var(--papel);
  padding: 12px 20px;
  z-index: 1000;
  font-family: var(--font-utility);
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--bronce);
  outline-offset: 3px;
}

/* ===========================================================
   SHARED — eyebrow, buttons, marco
   =========================================================== */
.eyebrow {
  font-family: var(--font-utility);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.eyebrow--musgo { color: var(--musgo); }
.eyebrow--bronce-oscuro { color: var(--bronce-texto-oscuro); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 14px;
  color: var(--papel);
  background: var(--musgo);
  padding: 15px 30px;
  border-radius: 100px;
  white-space: nowrap;
  transition: transform 240ms var(--ease-soft), box-shadow 240ms var(--ease-soft), background 240ms var(--ease-soft);
}
.btn-pill:hover, .btn-pill:focus-visible {
  color: var(--papel);
  background: #24493A;
  box-shadow: 0 10px 24px rgba(30, 58, 46, 0.25);
  transform: translateY(-1px);
}
.btn-pill--claro {
  background: var(--papel);
  color: var(--verde-oscuro);
}
.btn-pill--claro:hover, .btn-pill--claro:focus-visible {
  background: #FFFDF8;
  color: var(--verde-oscuro);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.marco { position: absolute; inset: -1px; pointer-events: none; }
.marco__corner { position: absolute; width: 22%; height: 22%; max-width: 56px; max-height: 56px; }
.marco--bronce .marco__corner { border-color: var(--bronce); }
.marco--musgo .marco__corner { border-color: var(--musgo); }
.marco__corner--tl { top: 0; left: 0; border-top: 3px solid; border-left: 3px solid; }
.marco__corner--tr { top: 0; right: 0; border-top: 3px solid; border-right: 3px solid; }
.marco__corner--bl { bottom: 0; left: 0; border-bottom: 3px solid; border-left: 3px solid; }
.marco__corner--br { bottom: 0; right: 0; border-bottom: 3px solid; border-right: 3px solid; }

/* Servicios usa un marco de 2 esquinas mas fino, oculto hasta hover */
.servicios__item .marco { inset: 2px; opacity: 0; transition: opacity 260ms var(--ease-soft); }
.servicios__item .marco .marco__corner { width: 22px; height: 22px; border-width: 2px; }
.servicios__item:hover .marco,
.servicios__item:focus-within .marco { opacity: 1; }

/* ===========================================================
   NAV
   =========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease-soft);
}
.nav__inner {
  height: var(--nav-h);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo img { height: 30px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  margin-right: 36px;
}
.nav__links a {
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--bronce);
  transition: right 220ms var(--ease-soft);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { right: 0; }

.nav__menu-btn {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__menu-btn span {
  width: 22px; height: 2px;
  background: var(--tinta);
  transition: transform 220ms var(--ease-soft), opacity 220ms var(--ease-soft);
}
.nav__menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 24px;
  background: var(--papel);
  border-bottom: 1px solid var(--papel-borde);
}
.mobile-menu a {
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 8px;
  border-top: 1px solid var(--papel-borde);
}
.mobile-menu .btn-pill { margin-top: 12px; justify-content: center; border-top: none; }
.mobile-menu.is-open { display: flex; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--papel);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 20% 55%, rgba(247,242,233,0.9) 0%, rgba(247,242,233,0.62) 32%, rgba(247,242,233,0.12) 60%, rgba(247,242,233,0) 78%),
    linear-gradient(180deg, rgba(247,242,233,0) 82%, var(--papel) 100%);
}


.hero__content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: 0 56px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.12;
  color: var(--tinta);
}
.hero__rotator {
  position: relative;
  display: block;
  height: 1.25em;
  margin-top: 0.08em;
  overflow: hidden;
}
.hero__word {
  position: absolute;
  left: 0; top: 0;
  font-style: italic;
  font-weight: 400;
  color: var(--musgo);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 520ms var(--ease-premium), transform 520ms var(--ease-premium);
}
.hero__word.is-active { opacity: 1; transform: translateY(0); }
.hero__word.is-leaving { opacity: 0; transform: translateY(-8px); }

.hero__lede {
  max-width: 460px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto-secundario);
}

.hero__ticker {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 56px;
  border-top: 1px solid var(--papel-borde);
  flex-wrap: wrap;
}
.hero__tick {
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--texto-tenue);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: color 320ms var(--ease-soft), border-color 320ms var(--ease-soft);
}
.hero__tick.is-active {
  font-weight: 800;
  color: var(--tinta);
  border-color: var(--bronce);
}

/* ===========================================================
   PRESENTACIÓN
   =========================================================== */
.presentacion { background: var(--papel); padding: 120px 56px; }
.presentacion__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  gap: 72px;
  align-items: center;
}
.presentacion__photo {
  position: relative;
  flex: none;
  width: min(38vw, 400px);
  aspect-ratio: 4 / 5;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-premium), transform 700ms var(--ease-premium);
}
.presentacion__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.presentacion__photo .marco { opacity: 0; transition: opacity 500ms var(--ease-soft) 260ms; }
.presentacion__photo.is-visible { opacity: 1; transform: translateY(0); }
.presentacion__photo.is-visible .marco { opacity: 1; }

.presentacion__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.presentacion__name { font-weight: 500; font-size: 38px; color: var(--tinta); }
.presentacion__role {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto-secundario);
}
.presentacion__bio { max-width: 520px; font-size: 17px; line-height: 1.7; color: #3A362F; }
.presentacion__stats { display: flex; gap: 48px; margin-top: 14px; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-style: italic; font-weight: 500; font-size: 40px; color: var(--musgo); line-height: 1; }
.stat__label {
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 12px;
  color: var(--texto-secundario);
  margin-top: 4px;
}

/* ===========================================================
   OBJETIVO
   =========================================================== */
.objetivo {
  position: relative;
  background: var(--musgo);
  padding: 140px 56px;
  overflow: hidden;
  isolation: isolate;
}
.objetivo__bg {
  position: absolute;
  inset: -10% -10%;
  background: radial-gradient(60% 60% at 50% 40%, rgba(169,129,63,0.10), transparent 70%);
  z-index: -1;
  will-change: transform;
}
.objetivo__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.objetivo__frase {
  font-weight: 400;
  font-style: italic;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.25;
  color: var(--papel);
}
.objetivo__bajada { font-size: 16px; line-height: 1.6; color: var(--texto-claro); max-width: 520px; }

/* ===========================================================
   SERVICIOS
   =========================================================== */
.servicios { background: var(--papel); padding: 120px 56px; }
.servicios__inner { max-width: 1080px; margin: 0 auto; }
.servicios__title {
  font-weight: 500;
  font-size: 30px;
  color: var(--tinta);
  margin-bottom: 28px;
  max-width: 640px;
}
.servicios__list { border-bottom: 1px solid var(--papel-borde); }
.servicios__item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 26px 24px;
  margin: 0 -24px;
  border-top: 1px solid var(--papel-borde);
  border-radius: 2px;
  transition: background 260ms var(--ease-soft);
}
.servicios__item:hover, .servicios__item:focus-within { background: var(--papel-oscuro); }
.servicios__num {
  font-style: italic;
  font-size: 26px;
  color: var(--bronce);
  width: 56px;
  flex: none;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 520ms var(--ease-premium), transform 520ms var(--ease-premium);
}
.servicios__num.is-visible { opacity: 1; transform: translateX(0); }
.servicios__item:hover .servicios__num,
.servicios__item:focus-within .servicios__num { color: var(--musgo); }
.servicios__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.servicios__name {
  font-family: var(--font-utility);
  font-weight: 800;
  font-size: 17px;
  color: var(--tinta);
}
.servicios__desc { font-size: 15px; color: var(--texto-secundario); }

/* ===========================================================
   CIERRE
   =========================================================== */
.cierre { background: var(--verde-oscuro); padding: 120px 56px; }
.cierre__inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.cierre__logo { height: 30px; width: auto; opacity: 0.92; }
.cierre__frase { font-weight: 500; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.3; color: var(--papel); }
.cierre__datos { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
.cierre__datos p:first-child {
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 13px;
  color: var(--texto-claro);
}
.cierre__datos p:last-child {
  font-family: var(--font-utility);
  font-weight: 500;
  font-size: 11px;
  color: var(--texto-tenue-oscuro);
}

/* ===========================================================
   CRÉDITOS
   =========================================================== */
.creditos {
  background: #000;
  padding: 16px 20px;
  text-align: center;
}
.creditos__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--texto-tenue-oscuro);
  transition: color 200ms var(--ease-soft);
}
.creditos__link:hover, .creditos__link:focus-visible { color: var(--papel); }
.creditos__logo { height: 16px; width: auto; }

/* ===========================================================
   WHATSAPP FLOTANTE
   =========================================================== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 0;
  border-radius: 100px;
  background: var(--musgo);
  color: var(--papel);
  box-shadow: 0 8px 20px rgba(30, 58, 46, 0.35);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 380ms var(--ease-premium), transform 380ms var(--ease-premium),
              width 200ms var(--ease-soft), padding 200ms var(--ease-soft), box-shadow 200ms var(--ease-soft);
  width: 56px;
}
.whatsapp-float.is-visible { opacity: 1; transform: scale(1); }
.whatsapp-float.is-hidden-cierre { opacity: 0; transform: scale(0.7); pointer-events: none; }
.whatsapp-float__icon {
  flex: none;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.whatsapp-float__label {
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 220ms var(--ease-soft), opacity 180ms var(--ease-soft);
}
.whatsapp-float:hover, .whatsapp-float:focus-visible {
  width: 168px;
  padding-right: 20px;
  box-shadow: 0 10px 24px rgba(30, 58, 46, 0.4);
}
.whatsapp-float:hover .whatsapp-float__label,
.whatsapp-float:focus-visible .whatsapp-float__label {
  max-width: 120px;
  opacity: 1;
}

/* ===========================================================
   TABLET  (≤1024px)
   =========================================================== */
@media (max-width: 1024px) {
  .nav__inner { padding: 0 32px; }
  .nav__cta { display: none; }
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; }

  .hero__content { padding: 0 32px; }

  .presentacion { padding: 96px 32px; }
  .presentacion__inner { gap: 40px; }
  .presentacion__photo { width: 34vw; }

  .objetivo { padding: 110px 32px; }
  .servicios { padding: 96px 32px; }
  .cierre { padding: 96px 32px; }
}

@media (max-width: 860px) {
  .presentacion__inner { flex-direction: column; align-items: flex-start; }
  .presentacion__photo { width: 100%; max-width: 420px; aspect-ratio: 4/5; }
}

/* ===========================================================
   MOBILE  (≤680px)
   =========================================================== */
@media (max-width: 680px) {
  .nav__inner { padding: 0 20px; height: 68px; }
  .nav__logo img { height: 24px; }
  .cierre__logo { height: 24px; }

  .hero { min-height: 100vh; }
  .hero__content { padding: 0 20px; gap: 20px; }
  .hero__title { font-size: clamp(30px, 9vw, 40px); }
  .hero__lede { font-size: 15px; }
  .hero__ticker { padding: 16px 20px; gap: 16px; overflow-x: auto; }
  .hero__scrim {
    background:
      radial-gradient(140% 70% at 50% 40%, rgba(247,242,233,0.92) 0%, rgba(247,242,233,0.68) 40%, rgba(247,242,233,0.25) 68%, rgba(247,242,233,0.1) 85%),
      linear-gradient(180deg, rgba(247,242,233,0) 78%, var(--papel) 100%);
  }

  .presentacion { padding: 72px 20px; }
  .presentacion__stats { gap: 32px; }
  .presentacion__name { font-size: 30px; }

  .objetivo { padding: 88px 20px; }

  .servicios { padding: 72px 20px; }
  .servicios__item { gap: 20px; padding: 22px 16px; margin: 0 -16px; }
  .servicios__num { width: 40px; font-size: 22px; }

  .cierre { padding: 88px 20px; }

  .whatsapp-float { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .whatsapp-float:hover, .whatsapp-float:focus-visible { width: 56px; padding-right: 0; }
  .whatsapp-float:hover .whatsapp-float__label,
  .whatsapp-float:focus-visible .whatsapp-float__label { max-width: 0; opacity: 0; }
}
