/* =========================================================
   Vara · Eventos — estilos
   Mobile-first: los estilos base son para celular y los
   @media (min-width) agregan ajustes para pantallas grandes.
   ========================================================= */

/* ---------- Tipografías de marca (archivos en /fonts) ---------- */
@font-face {
  font-family: "Garet";
  src: url("fonts/Garet-Book.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Garet";
  src: url("fonts/Garet-Heavy.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Open Sauce Sans";
  src: url("fonts/OpenSauceSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Open Sauce Sans";
  src: url("fonts/OpenSauceSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sauce Sans";
  src: url("fonts/OpenSauceSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --green: #3F5A50;
  --green-dark: #33493F;
  --cream: #F5F0E6;
  --linen: #E8DFD0;
  --text: #2B2B2B;
  --text-soft: #5E5A53;
  --line: rgba(63, 90, 80, 0.18);

  --title: "Garet", "Open Sauce Sans", system-ui, sans-serif;
  --sans: "Open Sauce Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --max: 1160px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--title); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
/* Garet no tiene itálica: la segunda línea de los títulos se diferencia por tono */
em { font-style: normal; opacity: .72; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  font-family: var(--title);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.eyebrow--light { color: rgba(245, 240, 230, .85); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 16px 30px;
  background: var(--green);
  color: var(--cream);
  font-family: var(--title);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--green);
  border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn--light {
  background: var(--cream);
  color: var(--green);
  border-color: var(--cream);
}
.btn--light:hover { background: transparent; color: var(--cream); border-color: var(--cream); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- Fotos + placeholders ----------
   Si una imagen de /images no existe, script.js le agrega
   .is-missing al contenedor y se muestra un bloque lino
   con el nombre de la foto que va ahí. */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--linen);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo.is-missing img { display: none; }
.photo.is-missing::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-family: var(--title);
  font-size: 14px;
  color: rgba(63, 90, 80, .7);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(63, 90, 80, .05) 14px 15px),
    var(--linen);
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
}
/* El fondo va en un pseudo-elemento: si el blur estuviera en .header,
   el menú mobile (position: fixed) quedaría encerrado dentro del header. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(245, 240, 230, .96);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity .35s var(--ease);
}
.header.is-scrolled::before { opacity: 1; }
.header__inner {
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Isologo (V con rama) en círculo verde: se lee igual sobre la foto y sobre crema */
.logo {
  position: relative;
  z-index: 2;
  display: block;
  line-height: 0;
}
.logo img { width: 44px; height: 44px; }

/* Botón hamburguesa (mobile) */
.nav-toggle {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  transition: transform .3s var(--ease), top .3s var(--ease), background .35s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.header.is-scrolled .nav-toggle span,
.header.nav-open .nav-toggle span { background: var(--green); }
.header.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.header.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* Menú mobile: panel a pantalla completa */
.nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: var(--cream);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.header.nav-open .nav { opacity: 1; visibility: visible; }
.nav a {
  font-family: var(--title);
  font-size: 24px;
  color: var(--green);
  text-decoration: none;
}
.nav .nav__cta {
  margin-top: 10px;
  padding: 14px 28px;
  font-family: var(--title);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--cream);
  border-radius: 999px;
}

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { animation: heroZoom 14s var(--ease) both; }
.hero__media.is-missing::after {
  color: rgba(245, 240, 230, .5);
  place-items: start center;
  padding-top: 110px;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(245, 240, 230, .04) 18px 19px),
    linear-gradient(160deg, #56715F 0%, var(--green) 55%, #2F453C 100%);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 38, 34, .35) 0%, rgba(30, 38, 34, .15) 35%, rgba(30, 38, 34, .6) 100%);
}
.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 88px;
  animation: fadeUp 1.2s .2s var(--ease) both;
}
.hero__title {
  font-size: clamp(32px, 8.6vw, 62px);
  line-height: 1.05;
  max-width: 14ch;
}
.hero__subtitle {
  margin: 20px 0 32px;
  max-width: 36ch;
  font-size: 16px;
  color: rgba(245, 240, 230, .9);
}

@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */
.section { padding: 88px 0; }
.section--cream { background: var(--cream); }
.section--linen { background: var(--linen); }
.section--green { background: var(--green); color: var(--cream); }

.section__head { margin-bottom: 48px; text-align: center; }
.section__title {
  font-size: clamp(27px, 6.2vw, 42px);
  color: var(--green);
  max-width: 20ch;
  margin: 0 auto;
}
.section--green .section__title { color: var(--cream); }

/* ---------- 2. Servicios ---------- */
.services { display: grid; gap: 48px; }
.service__media { aspect-ratio: 4 / 5; border-radius: 2px; }
.service__media img { transition: transform 1.2s var(--ease); }
.service:hover .service__media img { transform: scale(1.03); }
.service__body { padding-top: 24px; }
.service h3 { font-size: 24px; color: var(--green); margin-bottom: 10px; }
.service p { color: var(--text-soft); max-width: 44ch; }

.support-line {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--title);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green);
}
.support-line span { margin: 0 8px; opacity: .6; }

/* ---------- Otros servicios ---------- */
.extra { display: grid; gap: 28px; }
.extra + .extra { margin-top: 64px; }
.extra__media { aspect-ratio: 4 / 5; border-radius: 2px; }
.extra h3 { font-size: 24px; color: var(--green); margin-bottom: 10px; }
.extra p { color: var(--text-soft); max-width: 42ch; margin-bottom: 28px; }

/* ---------- 3. Qué incluye ---------- */
.features { display: grid; gap: 40px; }
.feature { text-align: center; }
.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.feature__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { font-size: 20px; color: var(--green); margin-bottom: 6px; }
.feature p { color: var(--text-soft); max-width: 26ch; margin: 0 auto; }

/* ---------- 4. Cómo trabajamos ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  padding: 28px 0;
  border-top: 1px solid rgba(245, 240, 230, .2);
}
.step:last-child { border-bottom: 1px solid rgba(245, 240, 230, .2); }
.step__num {
  display: block;
  font-family: var(--title);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2em;
  color: rgba(245, 240, 230, .6);
  margin-bottom: 6px;
}
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { color: rgba(245, 240, 230, .82); max-width: 34ch; }

/* ---------- 5. Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
  gap: 8px;
}
.gallery__item { margin: 0; border-radius: 2px; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item.is-missing::after { font-size: 14px; }

.gallery__more {
  margin-top: 36px;
  text-align: center;
  font-family: var(--title);
  font-size: 17px;
  color: var(--text-soft);
}
.gallery__more a { color: var(--green); text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Testimonios (comentada en el HTML) ---------- */
.testimonials { display: grid; gap: 32px; }
.testimonial { margin: 0; text-align: center; }
.testimonial p { font-family: var(--title); font-size: 21px; line-height: 1.4; color: var(--green); }
.testimonial cite { display: block; margin-top: 14px; font-style: normal; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); }

/* ---------- Quiénes somos (comentada en el HTML) ---------- */
.about { display: grid; gap: 40px; align-items: center; }
.about__media { aspect-ratio: 4 / 5; }
.about__body .section__title { margin: 0 0 20px; text-align: left; }
.about__body p { color: var(--text-soft); }

/* ---------- 6. Cierre ---------- */
.closing {
  padding: 96px 0 104px;
  background: var(--cream); /* mismo crema que el fondo del logo, así no se nota el recuadro */
  border-top: 1px solid var(--line);
  text-align: center;
}
.closing__logo {
  width: min(240px, 62vw);
  height: auto;
  margin: 0 auto 40px;
}
.closing__title {
  font-size: clamp(27px, 6.8vw, 46px);
  color: var(--green);
  max-width: 18ch;
  margin: 0 auto 36px;
}

/* ---------- 7. Footer ---------- */
.footer {
  background: var(--green);
  color: var(--cream);
  padding: 64px 0 104px; /* espacio extra abajo para el botón de WhatsApp */
}
.footer__inner { display: grid; gap: 40px; }
.footer__logo { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(245, 240, 230, .25); }
.footer__brand p { margin-top: 16px; color: rgba(245, 240, 230, .75); }
.footer__contact { display: grid; gap: 18px; }
.footer__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, .6);
}
.footer__contact a { text-decoration: none; border-bottom: 1px solid rgba(245, 240, 230, .3); transition: border-color .3s; }
.footer__contact a:hover { border-color: var(--cream); }
.footer__copy {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid rgba(245, 240, 230, .15);
  font-size: 13px;
  color: rgba(245, 240, 230, .6);
}

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Animación fade-in al hacer scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   TABLET (≥ 700px)
   ========================================================= */
@media (min-width: 700px) {
  :root { --gutter: 40px; }

  .section { padding: 112px 0; }
  .services { grid-template-columns: 1fr 1fr; gap: 40px; }
  .features { grid-template-columns: 1fr 1fr; gap: 56px 40px; }
  .steps { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .step:nth-last-child(2) { border-bottom: 1px solid rgba(245, 240, 230, .2); }

  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 12px; }

  .extra { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .extra:nth-of-type(even) .extra__media { order: 2; }
  .extra__media { aspect-ratio: 1 / 1; }

  .testimonials { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr 1fr; gap: 64px; }

  .footer__inner { grid-template-columns: 1fr 1.4fr; align-items: start; }
  .footer__contact { grid-template-columns: repeat(3, auto); justify-content: end; gap: 40px; }
}

/* =========================================================
   DESKTOP (≥ 1024px)
   ========================================================= */
@media (min-width: 1024px) {
  :root { --header-h: 84px; }

  .nav-toggle { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    gap: clamp(20px, 2.2vw, 32px);
    background: none;
    opacity: 1;
    visibility: visible;
  }
  .nav a {
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: .06em;
    white-space: nowrap;
    color: var(--cream);
    transition: color .35s var(--ease), opacity .3s;
  }
  .nav a:hover { opacity: .7; }
  .header.is-scrolled .nav a { color: var(--green); }
  .nav .nav__cta {
    margin: 0 0 0 8px;
    padding: 11px 22px;
    font-size: 12px;
    background: transparent;
    border: 1px solid currentColor;
    color: var(--cream);
  }
  .nav .nav__cta:hover { opacity: 1; background: var(--cream); color: var(--green); }
  .header.is-scrolled .nav .nav__cta:hover { background: var(--green); color: var(--cream); }

  .hero__content { padding-bottom: 120px; }
  .hero__subtitle { font-size: 18px; }

  .section { padding: 140px 0; }
  .section__head { margin-bottom: 72px; }

  .services { gap: 64px; }
  .service:nth-child(2) { margin-top: 96px; } /* desfase editorial */

  .features { grid-template-columns: repeat(4, 1fr); gap: 40px; }

  .steps { grid-template-columns: repeat(4, 1fr); column-gap: 40px; }
  .step, .step:last-child, .step:nth-last-child(2) { border-bottom: 0; padding: 32px 0 0; }
  .step__num { margin-bottom: 14px; }

  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 14px; }

  .closing { padding: 140px 0 160px; }
  .closing__logo { width: 280px; margin-bottom: 48px; }
  .logo img { width: 52px; height: 52px; }

  .wa-float { right: 28px; bottom: 28px; width: 62px; height: 62px; }
}

/* Respeta a quien desactiva animaciones en su sistema */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
