/* ==========================================================================
   Grupo Correa — Estilos del sitio
   Paleta y tipografía según el Logo Kit (agosto 2026).
   Índice:
   1. Variables de marca      7. Qué ofrecemos (servicios)
   2. Base                    8. Taller propio
   3. Utilidades              9. Proyectos (home)
   4. Botones                10. Footer / contacto / formulario
   5. Header y menú          11. Página de proyecto
   6. Hero / Quiénes somos   12. Lightbox, WhatsApp, accesibilidad
   ========================================================================== */

/* 1. Variables de marca -------------------------------------------------- */
:root {
  --grafo: #2D2D2D;          /* Gris Grafo */
  --grafo-2: #353535;
  --hueso: #F9F7F0;          /* Blanco Hueso */
  --hueso-2: #E9E6DD;
  --esmeralda: #115E59;      /* Verde Esmeralda */
  --esmeralda-osc: #0D4A46;
  --esmeralda-l: #338E85;    /* Esmeralda Liviano */
  --texto-sec: #55544F;
  --linea: rgba(45, 45, 45, .22);
  --linea-osc: rgba(249, 247, 240, .22);

  /* DIN Pro es la tipografía de marca; Barlow es el sustituto web.
     Si se consigue la licencia webfont de DIN Pro, cargarla con @font-face
     y dejar 'DIN Pro' primero en esta lista. */
  --font: 'Barlow', 'DIN Pro', 'Helvetica Neue', Arial, sans-serif;

  --pad: clamp(20px, 5.5vw, 80px);     /* margen lateral */
  --sec: clamp(88px, 10vw, 140px);     /* aire vertical de secciones */
  --header-h: 104px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--grafo);
  background: var(--hueso);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--esmeralda-l); outline-offset: 4px; }

/* 3. Utilidades ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; padding: 12px 18px; background: var(--hueso); color: var(--grafo); font-weight: 600; }
.skip:focus { left: 8px; }

.section { padding-block: var(--sec); }
.section--dark { background: var(--grafo); color: var(--hueso); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--esmeralda); }
.section--dark .eyebrow, .site-footer .eyebrow { color: rgba(249, 247, 240, .8); }
.section--dark .eyebrow::before, .site-footer .eyebrow::before { background: var(--esmeralda-l); }

.h2 { font-size: clamp(38px, 4.6vw, 68px); font-weight: 500; line-height: 1.02; letter-spacing: -.02em; }
.text { font-size: 17px; line-height: 1.65; color: var(--texto-sec); }
.section--dark .text { color: rgba(249, 247, 240, .74); }
.num { font-size: 14px; font-weight: 600; letter-spacing: .14em; color: var(--esmeralda); }
.section--dark .num { color: rgba(249, 247, 240, .62); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 32px 64px; margin-bottom: clamp(56px, 6.5vw, 96px);
}
.section-head__title { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.section-head__title .h2 { max-width: 15em; }
.section-head__aside { flex: 0 1 26rem; }

/* Contenedor de imagen: la imagen siempre cubre el contenedor */
.media { position: relative; display: block; overflow: hidden; background: var(--hueso-2); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
a:hover .media img, .media--zoom:hover img, button:hover > .media img { transform: scale(1.035); }

/* 4. Botones ------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border: 1px solid transparent; border-radius: 2px;
  font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn--light { background: var(--hueso); color: var(--grafo); }
.btn--light:hover { background: #fff; }
.btn--ghost-light { border-color: rgba(249, 247, 240, .7); color: var(--hueso); }
.btn--ghost-light:hover { background: rgba(249, 247, 240, .12); }
.btn--ghost-dark { border-color: var(--grafo); color: var(--grafo); }
.btn--ghost-dark:hover { background: var(--grafo); color: var(--hueso); }
.link-arrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--esmeralda); white-space: nowrap; }

/* 5. Header y menú ------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  color: var(--hueso);
  transition: background .35s, box-shadow .35s;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; transition: padding .35s; }
.site-header.is-scrolled { background: rgba(45, 45, 45, .97); box-shadow: 0 1px 0 rgba(249, 247, 240, .08); }
.site-header.is-scrolled .site-header__inner { padding-block: 14px; }

.logo { position: relative; z-index: 2; display: block; line-height: 0; }
.logo img { height: 46px; width: auto; transition: height .35s; }
.site-header.is-scrolled .logo img { height: 38px; }
.logo__hueso { display: block; }
.logo__color { display: none; }

/* Variante clara: páginas de proyecto */
.site-header--light { color: var(--grafo); background: rgba(249, 247, 240, .97); }
.site-header--light.is-scrolled { background: rgba(249, 247, 240, .97); box-shadow: 0 1px 0 var(--linea); }
.site-header--light .logo__hueso { display: none; }
.site-header--light .logo__color { display: block; }

.nav { display: flex; align-items: center; gap: 36px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.nav a:not(.btn) { position: relative; padding: 12px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { min-height: 46px; padding: 0 20px; font-size: 13px; letter-spacing: .16em; }
.site-header--light .nav .btn { border-color: var(--grafo); color: var(--grafo); }
.site-header--light .nav .btn:hover { background: var(--grafo); color: var(--hueso); }

.nav-toggle {
  display: none; position: relative; z-index: 2;
  width: 48px; height: 48px; padding: 0; border: 1px solid currentColor; border-radius: 2px;
  background: transparent; color: inherit; cursor: pointer;
}
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 88px; }
  .site-header__inner { padding-block: 20px; }
  .logo img { height: 40px; }
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
    padding: 120px var(--pad) 48px;
    background: var(--grafo); color: var(--hueso);
    font-size: clamp(30px, 8vw, 44px); font-weight: 500; letter-spacing: -.01em; text-transform: none;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn, .site-header--light .nav .btn { margin-top: 28px; border-color: rgba(249, 247, 240, .7); color: var(--hueso); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { color: var(--hueso); }
  body.nav-open .site-header--light .logo__hueso { display: block; }
  body.nav-open .site-header--light .logo__color { display: none; }
}

/* 6. Hero ------------------------------------------------------------------------ */
.hero { position: relative; height: clamp(640px, 100svh, 980px); overflow: hidden; background: #1E1E1E; color: var(--hueso); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(24,24,24,.6) 0%, rgba(24,24,24,.08) 26%, rgba(24,24,24,.16) 48%, rgba(24,24,24,.86) 100%);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding-bottom: clamp(40px, 7.5vw, 112px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.hero__text { max-width: 52rem; display: flex; flex-direction: column; gap: 28px; }
.hero__kicker { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(249, 247, 240, .86); }
.hero h1 { font-size: clamp(46px, 6.6vw, 104px); font-weight: 500; line-height: .96; letter-spacing: -.025em; }
.hero__sub { max-width: 36rem; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: rgba(249, 247, 240, .86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__steps { display: flex; flex-direction: column; gap: 14px; min-width: 16rem; font-size: 14px; font-weight: 500; letter-spacing: .06em; }
.hero__steps li { display: flex; gap: 18px; padding-top: 14px; border-top: 1px solid rgba(249, 247, 240, .35); }
.hero__steps li span:first-child { color: rgba(249, 247, 240, .7); }
@media (max-width: 1100px) { .hero__steps { display: none; } }
@media (max-width: 760px) { .hero__actions .btn { flex: 1 1 auto; } }

/* Quiénes somos / Qué hacemos */
.intro { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px 64px; }
.intro > .eyebrow { align-self: start; padding-top: 10px; }
.intro__body { display: flex; flex-direction: column; gap: 48px; }
.intro__lead { max-width: 24em; font-size: clamp(26px, 3.1vw, 46px); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
.intro__lead strong { font-weight: 600; color: var(--esmeralda); }
.intro__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }

.about { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 64px; }
.about .media { min-height: clamp(24rem, 44vw, 40rem); }
.about__text { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.about__copy { display: flex; flex-direction: column; gap: 20px; }
.about__copy h3 { max-width: 16em; font-size: clamp(26px, 2.2vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.about__copy .text { max-width: 32em; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; }
.steps li { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--grafo); font-size: 17px; font-weight: 500; }
.steps li span { font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--esmeralda); }

@media (max-width: 960px) {
  .intro, .about { grid-template-columns: 1fr; }
  .about .media { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .intro__cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 7. Qué ofrecemos -------------------------------------------------------------- */
.featured { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; }
.featured .media { height: clamp(22rem, 39vw, 35rem); background: #3A3A3A; }
.featured__text { display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding-bottom: 4px; }
.featured__text h3 { font-size: clamp(32px, 3vw, 44px); font-weight: 500; line-height: 1.05; letter-spacing: -.015em; }
.featured__text p { max-width: 30em; font-size: 18px; line-height: 1.6; color: rgba(249, 247, 240, .76); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.tags li { padding: 7px 12px; border: 1px solid var(--linea-osc); border-radius: 2px; }

.services { margin-top: 72px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 32px; }
.service { display: flex; flex-direction: column; gap: 24px; }
.service .media { aspect-ratio: 8 / 7; background: #3A3A3A; }
.service__text { display: flex; flex-direction: column; gap: 12px; }
.service h3 { font-size: 24px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.service p { font-size: 16px; line-height: 1.6; color: rgba(249, 247, 240, .74); }

.closing {
  max-width: 30em; margin-top: clamp(72px, 7vw, 104px); padding-top: 32px; border-top: 1px solid var(--linea-osc);
  font-size: clamp(24px, 2.6vw, 38px); line-height: 1.25; letter-spacing: -.01em;
}
.closing span { color: var(--esmeralda-l); font-weight: 500; }

@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } .featured .media { height: auto; aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* 8. Taller propio ----------------------------------------------------------- */
.workshop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--esmeralda); color: var(--hueso); }
.workshop .media { min-height: clamp(26rem, 52.8vw, 47.5rem); background: var(--esmeralda-osc); } /* la imagen ocupa todo el alto de la sección */
.workshop__text { padding: clamp(64px, 7vw, 112px) clamp(20px, 6.5vw, 96px); display: flex; flex-direction: column; justify-content: space-between; gap: 56px; }
.workshop__copy { display: flex; flex-direction: column; gap: 28px; }
.workshop .eyebrow { color: rgba(249, 247, 240, .88); }
.workshop .eyebrow::before { background: var(--hueso); }
.workshop h2 { max-width: 11em; }
.workshop__copy p { max-width: 30em; font-size: 18px; line-height: 1.6; color: rgba(249, 247, 240, .9); }
.checklist li { padding: 18px 0; border-top: 1px solid rgba(249, 247, 240, .3); font-size: 17px; font-weight: 500; }
.checklist li:last-child { border-bottom: 1px solid rgba(249, 247, 240, .3); }
@media (max-width: 900px) {
  .workshop { grid-template-columns: 1fr; }
  .workshop .media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* 9. Proyectos (home) ------------------------------------------------------------- */
.projects { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 80px 32px; }
.project-card { display: flex; flex-direction: column; gap: 24px; }
.project-card--wide { grid-column: span 7; }
.project-card--narrow { grid-column: span 5; }
.project-card--third { grid-column: span 4; }   /* 3 por fila */
.project-card--full { grid-column: 1 / -1; }
.project-card--third .media { height: auto; aspect-ratio: 3 / 4; }
.project-card--third .project-card__meta { flex-direction: column; gap: 12px; }
.project-card .media { height: clamp(26rem, 50vw, 45rem); }
.project-card__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 20px; border-top: 1px solid var(--grafo); }
.project-card__meta > div { display: flex; gap: 20px; min-width: 0; }
.project-card .num { padding-top: 8px; }
.project-card h3 { font-size: 30px; font-weight: 500; letter-spacing: -.01em; }
.project-card p { margin-top: 6px; font-size: 15px; color: var(--texto-sec); }
.project-card .link-arrow { padding-top: 10px; }
@media (max-width: 900px) {
  .projects { grid-template-columns: minmax(0, 1fr); gap: 64px 0; }
  .project-card--wide, .project-card--narrow, .project-card--third { grid-column: 1 / -1; }
  .project-card .media { height: auto; aspect-ratio: 4 / 5; }
}
@media (max-width: 560px) {
  .project-card__meta { flex-direction: column; gap: 12px; }
  .project-card h3 { font-size: 26px; }
}

/* 10. Footer / contacto / formulario ------------------------------------------- */
.site-footer { background: var(--grafo); color: var(--hueso); padding-top: var(--sec); padding-bottom: 40px; }
.contact { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px 96px; align-items: start; }
.contact__intro { display: flex; flex-direction: column; gap: 28px; }
.contact__title { font-size: clamp(46px, 6vw, 96px); font-weight: 500; line-height: .98; letter-spacing: -.025em; }
.contact__intro > p { max-width: 30em; font-size: 18px; line-height: 1.6; color: rgba(249, 247, 240, .78); }
.contact__data { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.contact__data > div { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(249, 247, 240, .2); }
.contact__data dt { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(249, 247, 240, .66); }
.contact__data dd { font-size: 21px; font-weight: 500; overflow-wrap: anywhere; }
.contact__data a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.form { position: relative; display: flex; flex-direction: column; gap: 24px; padding: clamp(28px, 3.4vw, 48px); background: var(--grafo-2); border: 1px solid rgba(249, 247, 240, .14); }
.form h3 { font-size: 26px; font-weight: 500; letter-spacing: -.01em; }
.form__intro { margin-top: 8px; font-size: 15px; line-height: 1.5; color: rgba(249, 247, 240, .72); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(249, 247, 240, .72); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 0;
  background: transparent; border: 0; border-bottom: 1px solid rgba(249, 247, 240, .4); border-radius: 0;
  color: var(--hueso); font-size: 17px; transition: border-color .25s, box-shadow .25s;
}
.field select { background: var(--grafo-2); cursor: pointer; }
.field textarea { min-height: 112px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--esmeralda-l); box-shadow: 0 1px 0 var(--esmeralda-l); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* anti-spam */
.form__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.form__actions .btn { width: 100%; justify-content: space-between; }
.form__note { font-size: 13px; line-height: 1.5; color: rgba(249, 247, 240, .66); }
.form__note a { text-decoration: underline; text-underline-offset: 3px; }
.form__status { padding: 14px 16px; border-radius: 2px; font-size: 15px; line-height: 1.5; }
.form__status.is-ok { background: rgba(51, 142, 133, .18); border: 1px solid var(--esmeralda-l); }
.form__status.is-error { background: rgba(200, 90, 70, .16); border: 1px solid #C8644F; }

.footer-mid { margin-top: clamp(72px, 7vw, 104px); padding-top: 56px; border-top: 1px solid rgba(249, 247, 240, .18); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 48px 64px; }
.footer-mid .logo-footer img { height: 96px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.footer-nav nav { display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.footer-nav nav span { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(249, 247, 240, .66); }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(249, 247, 240, .18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13px; letter-spacing: .06em; color: rgba(249, 247, 240, .62); }
.footer-bottom .caps { letter-spacing: .16em; }

@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .contact__data, .form__row { grid-template-columns: 1fr; }
  .footer-mid .logo-footer img { height: 76px; }
}

/* 11. Página de proyecto ---------------------------------------------------------- */
.page-project main { padding-top: var(--header-h); }
.p-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 64px; padding-top: 24px; }
.p-hero__text { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-block: 8px; }
.p-hero__head { display: flex; flex-direction: column; gap: 28px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--texto-sec); }
.breadcrumb a:hover { color: var(--grafo); }
.breadcrumb strong { font-weight: 600; color: var(--esmeralda); }
.p-hero h1 { font-size: clamp(46px, 6.4vw, 100px); font-weight: 500; line-height: .96; letter-spacing: -.025em; }
.p-hero__kicker { font-size: 19px; font-weight: 500; color: var(--esmeralda); }
.p-hero .media { height: clamp(28rem, 57vw, 51.25rem); }

/* Sobre el proyecto (va en la portada, debajo del título) */
.p-hero__about { display: flex; flex-direction: column; gap: 18px; max-width: 34em; padding-top: 24px; border-top: 1px solid var(--linea); }
.p-hero__about p { font-size: 17px; line-height: 1.7; color: var(--texto-sec); }
.p-hero__about p:first-of-type { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; color: var(--grafo); }

/* Galería: 3 columnas de fotos verticales. Si en la carpeta del proyecto hay
   un video.mp4, main.js lo agrega solo como primera pieza de la galería. */
.gallery-section { padding-top: var(--sec); padding-bottom: var(--sec); }
.gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-bottom: 40px; padding-top: 20px; border-top: 1px solid var(--grafo); }
.gallery-head h2 { font-size: 30px; font-weight: 500; letter-spacing: -.01em; }
.gallery-head p { font-size: 15px; color: var(--texto-sec); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery__item { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: none; cursor: zoom-in; }
.gallery__item .media { aspect-ratio: 3 / 4; }
.gallery__item--full { grid-column: 1 / -1; }            /* para fotos horizontales a ancho completo */
.gallery__item--full .media { aspect-ratio: 16 / 9; }
.gallery__item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__badge {
  position: absolute; top: 14px; left: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 2px; background: rgba(45, 45, 45, .72); color: var(--hueso);
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}

.next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--grafo); color: var(--hueso); }
.next__text { padding: clamp(56px, 6.5vw, 96px) var(--pad); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.next__text .eyebrow { color: rgba(249, 247, 240, .8); }
.next__text .eyebrow::before { background: var(--esmeralda-l); }
.next__title { display: block; font-size: clamp(42px, 5.4vw, 84px); font-weight: 500; line-height: .98; letter-spacing: -.025em; }
.next__kicker { display: block; margin-top: 16px; font-size: 17px; color: rgba(249, 247, 240, .74); }
.next__cta { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.next .media { min-height: clamp(22rem, 39vw, 35rem); background: #1E1E1E; }

@media (max-width: 960px) {
  .p-hero { grid-template-columns: 1fr; }
  .p-hero .media { height: auto; aspect-ratio: 4 / 5; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .next { grid-template-columns: 1fr; }
  .next .media { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; gap: 16px; }
  .gallery__item--full .media { aspect-ratio: 4 / 3; }
}

/* 12. Lightbox, WhatsApp y accesibilidad ------------------------------------------ */
.icon-btn {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid rgba(249, 247, 240, .5); border-radius: 999px; background: rgba(45, 45, 45, .6); color: var(--hueso);
  cursor: pointer; transition: background .25s;
}
.icon-btn:hover { background: rgba(45, 45, 45, .9); }

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(22, 22, 22, .97); color: var(--hueso); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(22, 22, 22, .97); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px clamp(16px, 2.5vw, 32px); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.lightbox__stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 clamp(12px, 7vw, 104px); }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: clamp(8px, 2vw, 28px); }
.lightbox__next { right: clamp(8px, 2vw, 28px); }
.lightbox__caption { padding: 20px clamp(16px, 2.5vw, 32px) 28px; font-size: 14px; line-height: 1.5; text-align: center; color: rgba(249, 247, 240, .74); }

.wa-float {
  position: fixed; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 24px 0 20px;
  border-radius: 999px; background: var(--esmeralda); color: var(--hueso);
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28); transition: transform .25s, background .25s;
}
.wa-float:hover { transform: translateY(-2px); background: var(--esmeralda-osc); }
body.nav-open .wa-float { display: none; }
@media (max-width: 560px) {
  .wa-float { width: 58px; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  a:hover .media img, .media--zoom:hover img, button:hover > .media img { transform: none; }
}
