/* galeria.css — estilos propios de esta página. Lo compartido vive en base.css */
[data-lightbox]{ cursor: zoom-in; }
.lightbox-overlay{ position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(5, 8, 20, 0.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease-out); padding: 40px; }
.lightbox-overlay.is-open{ opacity: 1; pointer-events: auto; }
.lightbox-figure{ position: relative; max-width: min(90vw, 1000px); max-height: 86vh; margin: 0; }
.lightbox-figure img{ max-width: 100%; max-height: 86vh; width: auto; height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-md); display: block; margin-inline: auto; }
.lightbox-close, .lightbox-prev, .lightbox-next{ position: fixed; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: rgba(10, 14, 32, 0.82); color: var(--text-primary); cursor: pointer; font-size: 1.2rem; transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ border-color: var(--accent); color: var(--accent); }
.lightbox-close{ top: 24px; right: 24px; }
.lightbox-prev{ left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px){ .lightbox-prev, .lightbox-next{ width: 40px; height: 40px; font-size: 1rem; } .lightbox-close{ width: 40px; height: 40px; top: 16px; right: 16px; } }
@media (prefers-reduced-motion: reduce){ .lightbox-overlay{ transition: none; } }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head h2{ font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); }
.section-head p{ margin-top: 14px; color: var(--text-secondary); font-size: 1.0625rem; max-width: 52ch; }
.btn:disabled{ opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.btn-ghost{ background: transparent; color: var(--text-primary); border-color: var(--line-strong); }
.btn-ghost:hover{ border-color: var(--accent); background: var(--accent-soft); }
.testimonial-stage{ max-width: 760px; margin-inline: auto; text-align: center; }
.testimonial-copy{ min-width: 0; }
.testimonial-rating{ display: flex; justify-content: center; gap: 3px; margin-top: 16px; color: var(--accent); font-size: 1.05rem; letter-spacing: 0.14em; }
.testimonial-source{ display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 0.85rem; color: var(--text-muted); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
.testimonial-source:hover{ color: var(--accent); }
.testimonial-rating[hidden], .testimonial-service[hidden], .testimonial-source[hidden]{ display: none; }
.testimonial-quote-icon{ font-size: 2rem; color: var(--accent); opacity: 0.7; }
.testimonial-copy-inner{ transition: opacity 0.18s ease, transform 0.18s ease; }
.testimonial-copy-inner.is-fading{ opacity: 0; transform: translateY(6px); }
.testimonial-quote{ margin-top: 18px; font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); line-height: 1.42; color: var(--text-primary); font-weight: 500; }
.testimonial-attribution{ margin-top: 22px; display: flex; flex-direction: column; align-items: center; }
.testimonial-name{ font-weight: 600; font-size: 1rem; }
.testimonial-role{ font-size: 0.88rem; color: var(--text-muted); }
.testimonial-service{ display: inline-flex; margin-top: 14px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: 0.78rem; font-weight: 600; }
.testimonial-controls{ display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 34px; }
.t-btn{ width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text-primary); display: grid; place-items: center; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.t-btn:hover{ background: var(--accent); color: var(--navy-950); border-color: var(--accent); }
.t-dots{ display: flex; gap: 8px; }
.t-dot{ width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line-strong); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), width var(--dur-fast) var(--ease-out); }
.t-dot.is-active{ background: var(--accent); width: 22px; border-radius: var(--radius-pill); }
@media (max-width: 860px){ .testimonial-quote{ font-size: 1.2rem; } }
.cta-banner{ position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: radial-gradient(circle at 20% 20%, rgba(139,157,245,0.14), transparent 55%), var(--bg-raised); padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-banner h2{ font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); max-width: 18ch; }
.cta-banner p{ margin-top: 10px; color: var(--text-secondary); max-width: 42ch; }
.cta-particles{ position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-banner > *:not(.cta-particles){ position: relative; z-index: 1; }
@media (max-width: 700px){ .cta-banner{ padding: 32px; } }
.work-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.work-grid figure{ position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); margin: 0; background: var(--bg-raised); }
/* --pw / --p3 van en cada <img>: son el encuadre calculado para esa foto. --pw para
   celdas anchas, --p3 para celdas verticales. */
.work-grid img{ width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--p3, 30%); transition: transform 0.6s var(--ease-out); }
.work-grid figure:hover img{ transform: scale(1.05); }
/* La primera abre a lo ancho en móvil y tablet */
.work-grid figure:first-child{ grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.work-grid figure:first-child img{ object-position: 50% var(--pw, 25%); }
@media (min-width: 641px) and (max-width: 960px){
  /* Tablet: la primera a todo lo ancho y las seis restantes en dos filas de tres */
  .work-grid{ grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .work-grid figure:first-child{ aspect-ratio: 21 / 9; }
}
@media (min-width: 961px){
  /* Mosaico de seis columnas armado para SIETE fotos verticales: dos grandes en
     diagonal, que se ven completas porque la celda es 9:16 exacta, y cinco recortes
     anchos. Las tres parejas de columnas suman 9 filas cada una, así que el mosaico
     cierra sin huecos. Cambiar la cantidad de fotos obliga a rehacer este bloque. */
  .work-grid{ grid-template-columns: repeat(6, 1fr); grid-auto-rows: 103px; gap: 14px; }
  .work-grid figure,
  .work-grid figure:first-child{ aspect-ratio: auto; }
  .work-grid figure:nth-child(1){ grid-column: 1 / span 2; grid-row: 1 / span 6; }
  .work-grid figure:nth-child(2){ grid-column: 3 / span 2; grid-row: 1 / span 3; }
  .work-grid figure:nth-child(3){ grid-column: 5 / span 2; grid-row: 1 / span 3; }
  .work-grid figure:nth-child(4){ grid-column: 3 / span 2; grid-row: 4 / span 3; }
  .work-grid figure:nth-child(5){ grid-column: 5 / span 2; grid-row: 4 / span 6; }
  .work-grid figure:nth-child(6){ grid-column: 1 / span 2; grid-row: 7 / span 3; }
  .work-grid figure:nth-child(7){ grid-column: 3 / span 2; grid-row: 7 / span 3; }
  .work-grid img{ object-position: 50% var(--pw, 25%); }
  /* Las dos grandes van sin recorte */
  .work-grid figure:nth-child(1) img,
  .work-grid figure:nth-child(5) img{ object-position: 50% 50%; }
}
.page-header{ position: relative; padding: calc(var(--nav-height) + var(--ticker-height) + 56px) 0 64px; overflow: hidden; background: radial-gradient(ellipse 900px 500px at 88% -10%, rgba(139,157,245,0.16), transparent 60%), radial-gradient(ellipse 700px 500px at 5% 110%, rgba(139,157,245,0.08), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.gallery-intro{ display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
