/* =========================================================
   Pixel X Ben — estilos
   Colores de marca tomados del logo: verde #305f34 y negro.
   ========================================================= */

:root {
  /* movimiento: --ease-out es la curva que ya usa todo el sitio; --ease-exit es para salidas (rápida al inicio) */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-exit: cubic-bezier(.23, 1, .32, 1);
  --green: #305f34;
  --green-dark: #22462a;
  --green-soft: #e6eee3;
  --green-mist: #f3f7f1;
  --ink: #171a17;
  --muted: #5c655c;
  --line: #e4e9e2;
  --bg: #ffffff;

  --font-head: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 12vw, 160px);
  --radius: 18px;

  /* tamaños de texto pequeño: solo estos dos */
  --text-sm: .9375rem;   /* 15 px: descripciones, nombres, pie de página */
  --text-xs: .875rem;    /* 14 px: avisos legales y barra del inicio */
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 8.2vw, 6.6rem); }
h2 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }

p { margin: 0; }
p, li, blockquote, figcaption { text-wrap: pretty; }   /* sin palabras solas al final del párrafo */

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 34ch;
  margin-top: 24px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section) 0; }
.section--mist { background: var(--green-mist); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-head .lead { margin-top: 18px; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px; top: 16px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1.5px solid var(--green);
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }

.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }

.btn--small { min-height: 44px; padding: 0 22px; font-size: .95rem; }

.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  padding: 11px 0;                 /* 44 px de alto para tocar con el dedo */
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 1.5px no-repeat;
}
.text-link:hover { color: var(--green-dark); animation: underline-draw .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes underline-draw { from { background-size: 0 1.5px; } to { background-size: 100% 1.5px; } }
.filter:active { transform: scale(.97); }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }


.brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; transition: opacity .2s ease, transform .2s ease; }
.brand:hover { opacity: .75; }
.brand:active { transform: scale(.97); }
.brand img { height: clamp(30px, 3vw, 38px); width: auto; }

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 7vw, 96px) 0 var(--section); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero h1 span { color: var(--green); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--green-mist);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
}
/* tablet vertical: la foto del encabezado ocupa todo el ancho, en horizontal */
@media (max-width: 880px) and (min-width: 561px) {
  .hero-media { max-width: none; aspect-ratio: 16 / 10; }
}

.head-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .head-actions { width: 100%; } .head-actions .btn { flex: 1 1 auto; } }

/* ---------- Galería (home) ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--green-mist);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2, .7, .2, 1);
}
.tile:hover img { transform: scale(1.03); }

.gallery .tile:nth-child(1) { grid-column: span 7; aspect-ratio: 7 / 6; }
.gallery .tile:nth-child(2) { grid-column: span 5; aspect-ratio: 5 / 6; }
.gallery .tile:nth-child(3) { grid-column: span 4; aspect-ratio: 4 / 5; }
.gallery .tile:nth-child(4) { grid-column: span 4; aspect-ratio: 4 / 5; }
.gallery .tile:nth-child(5) { grid-column: span 4; aspect-ratio: 4 / 5; }

@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .tile:nth-child(n) { grid-column: span 1; aspect-ratio: 4 / 5; }
  .gallery .tile:nth-child(1) { grid-column: span 2; aspect-ratio: 1 / 1; }
}

/* ---------- Servicios ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .3s ease, transform .3s ease;
}
a.service:hover { border-color: var(--green); transform: translateY(-2px); }
.service p { color: var(--muted); font-size: var(--text-sm); }

.service-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  margin: calc(clamp(28px, 3vw, 40px) * -0.45) calc(clamp(28px, 3vw, 40px) * -0.45) 10px;
  background: var(--green-mist);
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
a.service:hover .service-photo img { transform: scale(1.03); }

.service--cta {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  justify-content: space-between;
}
.service--cta:hover { border-color: var(--green); }
.service--cta h3 { font-size: 1.7rem; }
.service--cta p { color: rgba(255, 255, 255, .8); }
.service--cta .btn { background: #fff; color: var(--green); border-color: #fff; align-self: flex-start; margin-top: 18px; }
.service--cta .btn:hover { background: var(--green-soft); }

@media (max-width: 980px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* ---------- Servicios: 4 fotos completas + explicación al tocar ---------- */
/* Cada tarjeta crece según el formato de su foto (--r = ancho/alto): todas quedan
   a la misma altura y ninguna se recorta. */
.svc-grid {
  --svc-gap: clamp(12px, 2vw, 24px);
  display: flex;
  gap: var(--svc-gap);
  align-items: flex-start;
}
.svc {
  flex: var(--r) 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.svc-photo {
  position: relative;
  display: block;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: var(--green-mist);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.svc-photo img { display: block; width: 100%; height: auto; transition: filter .3s ease; }
.svc-name {
  display: block;
  font: 600 1.2rem/1.2 var(--font-head);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
/* el "+" va sobre la esquina de la foto: dice "toca para saber más" sin quitarle ancho al nombre */
.svc-plus {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(13, 15, 13, .18);
  transition: background .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.svc-plus::before,
.svc-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: var(--green);
  transition: background .25s ease;
}
.svc-plus::after { transform: rotate(90deg); }
@media (hover: hover) {
  .svc:hover .svc-photo { transform: translateY(-4px); }
  .svc:hover .svc-photo img { filter: brightness(1.04); }
  .svc:hover .svc-plus { background: var(--green); transform: rotate(90deg); }
  .svc:hover .svc-plus::before,
  .svc:hover .svc-plus::after { background: #fff; }
  .svc:hover .svc-name { color: var(--green); }
}
.svc:active .svc-photo { transform: scale(.985); transition-duration: .1s; }
.svc:focus-visible { outline: none; }
.svc:focus-visible .svc-photo { outline: 2px solid var(--green); outline-offset: 4px; }

/* tableta y celular: dos filas en damero (vertical ancha + vertical alta), mismas alturas por fila */
@media (max-width: 900px) {
  .svc-grid { flex-wrap: wrap; }
  .svc { flex: none; width: calc((100% - var(--svc-gap)) * var(--r) / 1.3625); }
  .svc-name { font-size: 1.05rem; }
}
@media (max-width: 480px) {
  .svc { gap: 10px; }
  .svc-name { font-size: 1rem; }
  .svc-plus { right: 8px; bottom: 8px; width: 28px; height: 28px; }
  .svc-plus::before, .svc-plus::after { width: 10px; margin-left: -5px; }
}

.svc-cta {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px 32px;
  flex-wrap: wrap;
}
.svc-cta h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.svc-cta p { margin-top: 6px; color: rgba(255, 255, 255, .82); }
.svc-cta .btn { background: #fff; color: var(--green); border-color: #fff; }
.svc-cta .btn:hover { background: var(--green-soft); border-color: var(--green-soft); }

/* la explicación: foto completa + texto corto (el botón de reservar está en la franja verde de abajo) */
.svc-dialog {
  width: min(920px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity .2s ease, transform .2s ease, overlay .2s allow-discrete, display .2s allow-discrete;
}
.svc-dialog[open] {
  opacity: 1;
  transform: none;
  transition: opacity .28s ease, transform .4s cubic-bezier(.2, .7, .2, 1), overlay .28s allow-discrete, display .28s allow-discrete;
}
@starting-style { .svc-dialog[open] { opacity: 0; transform: translateY(12px) scale(.98); } }
.svc-dialog::backdrop {
  background: rgba(13, 15, 13, 0);
  transition: background .25s ease, overlay .25s allow-discrete, display .25s allow-discrete;
}
.svc-dialog[open]::backdrop { background: rgba(13, 15, 13, .55); }
@starting-style { .svc-dialog[open]::backdrop { background: rgba(13, 15, 13, 0); } }
html:has(.svc-dialog[open]) { overflow: hidden; }

.svc-dialog-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(16px, 2vw, 24px);
  padding-right: clamp(24px, 4vw, 56px);
}
.svc-dialog-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(46vw, 460px);
  max-height: min(calc(100svh - 80px), 620px);
  border-radius: calc(var(--radius) - 6px);
}
.svc-dialog-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.03em; }
.svc-dialog-text p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; line-height: 1.6; text-wrap: pretty; max-width: 36ch; }

.svc-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  cursor: pointer;
}
.svc-close span::before,
.svc-close span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  margin: -0.75px 0 0 -9px;
  background: var(--ink);
  transform: rotate(45deg);
}
.svc-close span::after { transform: rotate(-45deg); }
.svc-close:hover { background: var(--green-mist); }

/* celular: la foto arriba (completa, más bajita) y el texto debajo */
@media (max-width: 640px) {
  .svc-dialog { width: calc(100vw - 24px); max-height: calc(100svh - 24px); }
  .svc-dialog-inner { grid-template-columns: 1fr; justify-items: center; gap: 20px; padding: 60px 12px 24px; }  /* arriba deja espacio para la ✕: no tapa la foto */
  .svc-dialog-photo img { max-width: 100%; max-height: 44svh; }
  .svc-dialog-text { width: 100%; padding: 0 8px; }
  .svc-dialog-text h2 { font-size: 1.7rem; }
  .svc-dialog-text p { margin-top: 10px; font-size: 1rem; }
}
/* celulares bajitos: la foto se achica (sin recortarse) para que el texto quepa sin bajar */
@media (max-width: 640px) and (max-height: 700px) {
  .svc-dialog-photo img { max-height: 34svh; }
}
@media (max-width: 640px) and (max-height: 600px) {
  .svc-dialog-photo img { max-height: 28svh; }
  .svc-dialog-text p { font-size: .95rem; line-height: 1.55; }
}

/* ---------- Nosotros ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }

.about-copy p.lead { max-width: 40ch; }
.about-copy p.lead--more { margin-top: 14px; }   /* segundo párrafo del texto de Nosotros */

.team {
  display: grid;
  gap: 22px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.team strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; display: block; }
.team span { color: var(--muted); font-size: var(--text-sm); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(56px, 7vw, 96px);
}
.stat {
  border-top: 2px solid var(--green);
  padding-top: 20px;
}
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--green);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat span { display: block; margin-top: 10px; color: var(--muted); }

@media (max-width: 880px) {
  .about-grid { gap: 36px; }
  .about-grid h2 { font-size: clamp(2.1rem, 5vw, 2.8rem); }
}
@media (max-width: 680px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
}
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Reseñas ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.review {
  margin: 0;
  background: var(--green-mist);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.stars { color: var(--green); letter-spacing: 3px; font-size: 1.05rem; }
.review blockquote {
  margin: 16px 0 0;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.review figcaption strong { display: block; font-family: var(--font-head); font-weight: 600; }
.review figcaption span { color: var(--muted); font-size: var(--text-sm); }

/* Toda la reseña es un link a Google (un <a class="card-link"> que cubre la tarjeta) */
.review, .quote { position: relative; }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card-link:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.review blockquote, .quote blockquote { transition: color .25s var(--ease-out); }
@media (hover: hover) {
  .review:has(.card-link:hover) blockquote,
  .quote:has(.card-link:hover) blockquote { color: var(--green); }
  [data-theme="dark"] .review:has(.card-link:hover) blockquote,
  [data-theme="dark"] .quote:has(.card-link:hover) blockquote { color: #8fc493; }
}

@media (max-width: 880px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-book { margin-top: 28px; }

.contact-direct {
  margin-top: 24px;
  display: grid;
  gap: 0;
}
.contact-direct a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
}
.contact-direct a:hover { color: var(--green); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(48, 95, 52, .12);
}
.form .btn { grid-column: 1 / -1; width: 100%; margin-top: 6px; }
.hp { position: absolute !important; left: -9999px !important; }

@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Banda CTA ---------- */

.cta-band {
  background: var(--green);
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(48px, 8vw, 104px) clamp(28px, 6vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band p { color: rgba(255, 255, 255, .82); margin-top: 16px; font-size: 1.1rem; }
.cta-band .btn { background: #fff; color: var(--green); border-color: #fff; }
.cta-band .btn:hover { background: var(--green-soft); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand img { width: auto; height: 30px; }
.footer-brand p { color: var(--muted); margin-top: 18px; max-width: 32ch; font-size: var(--text-sm); }
.footer-nav { display: flex; align-items: flex-start; gap: 56px; flex-wrap: wrap; }
.footer-links {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
}
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--green); }
.footer-bottom {
  margin-top: 56px;
  color: var(--muted);
  font-size: var(--text-xs);
}

/* ---------- Instagram (ícono oficial a color) ---------- */

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}
.ig-link img { flex: none; width: 22px; height: 22px; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.ig-link:hover { color: var(--green); }
.ig-link:hover img { transform: scale(1.08); }
.ig-link:active img { transform: scale(.96); }
.ig-link--icon { justify-content: center; min-width: 44px; }      /* inicio: solo el ícono */
.ig-link--footer { margin-top: 14px; font-size: var(--text-sm); }
.ig-link--contact { font-size: 1.2rem; font-weight: 500; }
[data-theme="dark"] .ig-link:hover { color: #8fc493; }

/* ---------- Portafolio ---------- */

.page-hero { padding: clamp(48px, 8vw, 112px) 0 clamp(40px, 5vw, 64px); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter {
  font: inherit;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.filter:hover { border-color: var(--green); color: var(--green); }
.filter.is-active { background: var(--green); border-color: var(--green); color: #fff; }

.masonry {
  columns: 3 300px;
  column-gap: clamp(12px, 1.6vw, 20px);
}
.masonry .tile {
  break-inside: avoid;
  margin: 0 0 clamp(12px, 1.6vw, 20px);
}
/* cada recuadro tiene el formato real de su foto: nada se recorta */
.masonry .tile.tall { aspect-ratio: 4 / 5; }
.masonry .tile.slim { aspect-ratio: 9 / 16; }
.masonry .tile.square { aspect-ratio: 1 / 1; }
.masonry .tile.wide { aspect-ratio: 3 / 2; }
.masonry .tile[hidden] { display: none; }
.masonry.is-filtered .tile { animation: tile-in .34s var(--ease-out) both; }
@keyframes tile-in { from { opacity: 0; transform: translateY(8px); } }
/* celular: 2 columnas (con 46 fotos, una sola columna era demasiado largo; al tocar se ven en grande) */
@media (max-width: 560px) {
  .masonry { columns: 2; column-gap: 10px; }
  .masonry .tile { margin-bottom: 10px; border-radius: 12px; }
}
.masonry .tile[role="button"] { cursor: zoom-in; }
.masonry .tile[role="button"]:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- Portafolio: foto en grande ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  overscroll-behavior: contain;
}
.lightbox::backdrop {
  background: rgba(10, 12, 10, 0);
  transition: background .3s ease, overlay .3s allow-discrete, display .3s allow-discrete;
}
.lightbox[open]::backdrop { background: rgba(10, 12, 10, calc(.94 * var(--lb-dim, 1))); }
/* arrastrando hacia abajo para cerrar: el fondo sigue al dedo sin retraso (--lb-dim lo pone js/main.js) */
.lightbox.is-pulling::backdrop { transition: none; }
.lightbox.is-pulling .lb-btn { opacity: var(--lb-dim, 1); transition: none; }
@starting-style { .lightbox[open]::backdrop { background: rgba(10, 12, 10, 0); } }
.lightbox.is-closing::backdrop { background: rgba(10, 12, 10, 0); }
html:has(.lightbox[open]) { overflow: hidden; }

.lb-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 64px clamp(76px, 7vw, 96px);   /* a los lados caben las flechas sin tapar la foto */
  touch-action: pinch-zoom;   /* el arrastre lo maneja js/main.js; el zoom con dos dedos sigue siendo del navegador */
}
.lb-stage > .lb-img { grid-area: 1 / 1; }
/* foto anterior y siguiente: esperan a los lados y solo se ven mientras se arrastra */
.lb-side { visibility: hidden; pointer-events: none; }
.lb-stage.is-dragging .lb-side { visibility: visible; }
.lb-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, opacity .25s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; margin-top: -24px; }
.lb-prev { left: clamp(8px, 2vw, 24px); }
.lb-next { right: clamp(8px, 2vw, 24px); }
.lightbox.is-closing .lb-btn,
.lightbox.is-opening .lb-btn { opacity: 0; }
/* celular: se pasa de foto deslizando; las flechas quedan abajo para no tapar la foto */
@media (max-width: 720px) {
  .lb-stage { padding: 64px 12px 84px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; margin-top: 0; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* ---------- Blog ---------- */

.article { padding: clamp(48px, 8vw, 104px) 0 var(--section); }
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.article h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
.article .lead { max-width: none; }
.article-meta { margin-top: 28px; color: var(--muted); font-size: var(--text-sm); }
.article-cover {
  margin: clamp(40px, 6vw, 64px) auto;
  max-width: 1000px;
  padding: 0 var(--gutter);
}
.article-cover img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 64px 0 20px; }
.prose h3 { margin: 36px 0 12px; }
.prose p { margin: 0 0 20px; font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft, #2a2f2a); }
.prose ul { margin: 0 0 24px; padding-left: 22px; }
.prose li { margin-bottom: 10px; font-size: 1.06rem; line-height: 1.65; }
.prose li::marker { color: var(--green); }
.prose a { color: var(--green); }
.prose .note {
  background: var(--green-mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}
.prose .note p:last-child { margin-bottom: 0; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  min-height: 44px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 6px; padding-bottom: 10px; }

.posts { display: grid; gap: clamp(32px, 5vw, 56px); }
.post-card {
  display: grid;
  grid-template-columns: minmax(220px, 420px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  text-decoration: none;
}
.post-card .tile { aspect-ratio: 4 / 3; }
.post-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.post-card p { color: var(--muted); margin: 16px 0 24px; font-size: 1.1rem; }
.post-card:hover h2 { color: var(--green); }
@media (max-width: 720px) { .post-card { grid-template-columns: 1fr; } }

.thanks {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}
.thanks img { margin: 0 auto 32px; }
.thanks .lead { margin: 20px auto 40px; }

/* ---------- Páginas de servicio ---------- */

a.service { text-decoration: none; color: inherit; }
.service .text-link { align-self: flex-start; margin-top: auto; padding-top: 8px; }

.services--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .services--two { grid-template-columns: 1fr; } }

.uses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.uses .stat-title {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
@media (max-width: 880px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .uses { grid-template-columns: 1fr; } }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step { border-top: 2px solid var(--green); padding-top: 20px; }
.step b {
  display: block;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  font-variant-numeric: lining-nums tabular-nums;
}
.step h3 { margin: 16px 0 8px; }
.step p { color: var(--muted); }
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}
.trio .tile { aspect-ratio: 4 / 5; }
@media (max-width: 620px) { .trio { grid-template-columns: 1fr 1fr; } .trio .tile:first-child { grid-column: span 2; aspect-ratio: 1 / 1; } }

.quote {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.quote blockquote {
  margin: 20px 0 28px;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.quote figcaption strong { display: block; font-family: var(--font-head); font-weight: 600; }
.quote figcaption span { color: var(--muted); font-size: var(--text-sm); }

.faq-wrap { max-width: 860px; }
.faq-wrap h2 { margin-bottom: 40px; }
.faq-wrap .faq p { color: var(--muted); }

/* ---------- Intro: mosaico animado ---------- */

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}


.mosaic {
  --m-gap: clamp(8px, 1vw, 14px);
  --m-radius: clamp(14px, 1.6vw, 24px);
  position: relative;
  height: clamp(440px, calc(100svh - 112px), 820px);
  /* sin JavaScript: una cuadrícula simple de 3 x 3 */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: var(--m-gap);
}
.m-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--m-radius);
  background: var(--green-mist);
}
.m-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;               /* el recuadro tiene el formato de la foto: no recorta */
}

/* con JavaScript: cada recuadro se coloca con transform (js/main.js) y se anima
   solo con transform y opacity, que mueve la tarjeta gráfica */
.mosaic.is-live { display: block; overflow: hidden; contain: layout paint; }
.mosaic.is-live .m-tile {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

@media (max-width: 720px) {
  .mosaic { height: clamp(460px, calc(100svh - 104px), 720px); grid-template-columns: repeat(2, 1fr); }
}

/* videos en silencio: se pausan con un toque */
video[data-autoplay] { cursor: pointer; }

/* ---------- Encabezado: modo noche · logo · menú ---------- */

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 80px;
  gap: 16px;
}
.theme-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 .98rem var(--font-head);
  cursor: pointer;
  transition: color .2s ease;
}
.theme-toggle { justify-self: start; }
/* izquierda del encabezado: Modo noche + idioma (EN / ES) */
.nav-start { justify-self: start; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 28px); }
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 32px;
  color: var(--ink); text-decoration: none;
  font: 600 .9rem var(--font-head); letter-spacing: .08em;
  transition: color .2s ease;
}
.lang-toggle:hover { color: var(--green); }
.menu-toggle { justify-self: end; }
.theme-toggle:hover, .menu-toggle:hover { color: var(--green); }
.theme-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-lines { position: relative; width: 22px; height: 12px; }
/* rayitas del menú en dos tiempos: abrir = se juntan y luego giran a ✕;
   cerrar = lo mismo en reversa (se enderezan y luego se separan, con los mismos tiempos al revés) */
.menu-lines i {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: rotate .28s var(--ease-out), translate .24s var(--ease-out) .16s;
}
.menu-lines i:first-child { top: 0; }
.menu-lines i:last-child { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-lines i { transition: translate .24s var(--ease-out), rotate .28s var(--ease-out) .12s; }
.menu-toggle[aria-expanded="true"] .menu-lines i:first-child { translate: 0 5px; rotate: 45deg; }
.menu-toggle[aria-expanded="true"] .menu-lines i:last-child { translate: 0 -5px; rotate: -45deg; }
.brand-wrap { display: flex; flex-direction: column; align-items: center; }
.brand-tagline {
  margin: 4px 0 0;
  font: 500 .74rem var(--font-head);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .nav { grid-template-columns: 84px minmax(0, 1fr) 84px; gap: 8px; }
  .nav-start { gap: 0; }
  .lang-toggle { min-width: 40px; }
  /* en celular solo se ven los íconos; el texto sigue disponible para lectores de pantalla */
  .theme-label,
  .menu-toggle > span:first-child {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .menu-toggle { justify-content: center; width: 44px; justify-self: end; }
  .theme-toggle { justify-content: center; width: 44px; }
  .brand-tagline { font-size: .6875rem; letter-spacing: .06em; line-height: 1.3; white-space: normal; text-align: center; }
  /* inicio en celular: la frase va en UNA línea debajo de toda la fila (luna · logo · menú), no apretada al centro */
  .site-header--home .nav { row-gap: 2px; }
  .site-header--home .brand-wrap { display: contents; }
  .site-header--home .nav-start { grid-column: 1; grid-row: 1; }
  .site-header--home .brand { grid-column: 2; grid-row: 1; justify-self: center; }
  .site-header--home .menu-toggle { grid-column: 3; grid-row: 1; }
  .site-header--home .brand-tagline { grid-column: 1 / -1; grid-row: 2; margin: 0; white-space: nowrap; letter-spacing: .05em; }
}

/* ---------- Menú (pantalla completa) ---------- */

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow-y: auto;
  background: var(--bg);
  animation: menu-in .35s var(--ease-out);
}
.menu-panel[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
/* al cerrar: la MISMA animación de abrir, en reversa (pedido de Ben). Abrir dura 600 ms: links 0–600 ms
   escalonados y fondo 0–350 ms. Cerrar lo reproduce al revés: el último link sale primero y el fondo se
   desvanece en los últimos 350 ms. js/main.js pone .is-closing y esconde el panel a los 620 ms. */
.menu-panel.is-closing { animation: menu-in-back .35s var(--ease-out) .25s reverse both; pointer-events: none; }
.menu-panel.is-closing .menu-main li { animation: menu-item-back .5s var(--ease-out) reverse both; }
.menu-panel.is-closing .menu-main li:nth-child(1) { animation-delay: 100ms; }
.menu-panel.is-closing .menu-main li:nth-child(2) { animation-delay: 70ms; }
.menu-panel.is-closing .menu-main li:nth-child(3) { animation-delay: 45ms; }
.menu-panel.is-closing .menu-main li:nth-child(4) { animation-delay: 25ms; }
.menu-panel.is-closing .menu-main li:nth-child(5) { animation-delay: 10ms; }
.menu-panel.is-closing .menu-main li:nth-child(6) { animation-delay: 0ms; }
/* copias con otro nombre a propósito: si el cierre reusara "menu-in"/"menu-item", el navegador seguiría la
   animación de abrir ya terminada y saltaría directo al final (desaparecía de golpe) */
@keyframes menu-in-back { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-item-back { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: transparent; }
.menu-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  padding-top: calc(80px + 6vh);
  padding-bottom: 48px;
}
.menu-main, .menu-sub { list-style: none; margin: 0; padding: 0; }
.menu-main a {
  display: inline-block;
  padding: 4px 0;
  font: 700 clamp(2.4rem, 6vw, 4.8rem)/1.05 var(--font-head);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.menu-main a:hover { color: var(--green); transform: translateX(6px); }
.menu-main li { animation: menu-item .5s var(--ease-out) both; }
.menu-main li:nth-child(2) { animation-delay: 30ms; }
.menu-main li:nth-child(3) { animation-delay: 55ms; }
.menu-main li:nth-child(4) { animation-delay: 75ms; }
.menu-main li:nth-child(5) { animation-delay: 90ms; }
.menu-main li:nth-child(6) { animation-delay: 100ms; }
@keyframes menu-item { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.menu-side { display: grid; gap: 18px; align-content: start; justify-items: start; padding-top: 14px; }
.menu-sub a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.menu-sub a:hover { color: var(--green); }
@media (max-width: 720px) { .menu-inner { grid-template-columns: 1fr; padding-top: calc(72px + 3vh); } }

/* ---------- Inicio: una sola pantalla ---------- */

body.home {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.home .site-header { position: relative; flex: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header--home .nav { height: auto; padding-top: clamp(12px, 2.2vh, 24px); padding-bottom: clamp(6px, 1.2vh, 12px); }
.site-header--home .brand img { height: clamp(32px, 3.6vw, 50px); }
/* encabezado y barra inferior del inicio alineados con las columnas laterales */
.site-header--home .wrap,
.home-bar .wrap { max-width: 1520px; }

.home-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(8px, 2vh, 22px) var(--gutter);
}
.home-stage .mosaic { height: 100%; }

/* links del inicio: columna angosta a la izquierda, texto de lado, con los cuadritos verdes del logo */
.home-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3.4vh, 34px);
  min-width: 44px;
}
.home-links a {
  writing-mode: vertical-rl;
  transform: rotate(180deg);   /* se leen de abajo hacia arriba, mirando hacia el mosaico */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 44px;
  padding: 4px 0;
  font: 600 1.04rem var(--font-head);
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}
.home-links a i {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
  background: var(--green);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.home-links a:hover { color: var(--green); }
.home-links a:hover i { transform: rotate(45deg) scale(1.3); }
/* Instagram cierra la columna: ícono derecho, un poco separado de las secciones */
.home-links .home-ig {
  writing-mode: horizontal-tb;
  transform: none;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin-top: clamp(4px, 1.4vh, 14px);
}
/* pantallas bajitas (laptops): la columna se aprieta para que Instagram quepa sin scroll */
@media (min-width: 721px) and (max-height: 760px) {
  .home-links { gap: 12px; }
  .home-links a { padding: 0; font-size: .95rem; }
  .home-links .home-ig { margin-top: 0; }
}

/* el mosaico completo es un link al portafolio */
a.mosaic { color: inherit; text-decoration: none; cursor: pointer; border-radius: var(--m-radius); }
a.mosaic .m-tile img { transition: filter .3s ease; }
a.mosaic:hover .m-tile img { filter: brightness(1.05); }

.home-bar { flex: none; padding: 4px 0 clamp(8px, 1.6vh, 16px); color: var(--muted); font-size: var(--text-xs); }
.home-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.home-bar p { margin: 0; }
.home-bar-links { display: flex; gap: clamp(16px, 3vw, 36px); }
.home-bar-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font: 600 .98rem var(--font-head);
  color: var(--ink);
  text-decoration: none;
}
.home-bar-links a span { color: var(--green); font-size: 1.15em; transition: transform .25s ease; }
.home-bar-links a:hover { color: var(--green); }
.home-bar-links a:hover span { transform: translateX(3px); }

@media (max-width: 720px) {
  .home-stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 4px 16px 0;
  }
  .home-stage { grid-template-rows: minmax(0, 1fr) auto; }
  .home-stage .mosaic { order: 1; }
  .home-links { order: 2; flex-direction: row; justify-content: space-between; gap: 4px; min-width: 0; }
  .home-links a { writing-mode: horizontal-tb; transform: none; gap: 8px; font-size: .95rem; min-height: 44px; }
  .home-bar p { display: none; }
  .home-bar-inner { justify-content: center; }
  .home-bar-links a { font-size: .95rem; white-space: nowrap; }
  .home-links a { font-size: .88rem; gap: 6px; }
  /* tableta y celular: inicio limpio. Abajo solo "Reserva tu consulta"; el email e Instagram
     quedan en el menú y en Contacto (decisión de Ben, 23 nov 2026) */
  .home-links .home-ig,
  .home-bar-links a[href^="mailto:"] { display: none; }
}

@media (max-width: 360px) {
  .home-links a { font-size: .8rem; gap: 5px; }
  .home-links a i { width: 7px; height: 7px; }
}

/* ---------- Páginas internas ---------- */

.page-title { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2.h3 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }
.page-main > section:first-child { padding-top: clamp(36px, 6vw, 88px); }

/* ---------- Modo noche ---------- */

html[data-theme="dark"] {
  --bg: #0d0f0d;
  --ink: #f1f3ef;
  --ink-soft: #d6dbd4;
  --muted: #a3aba2;
  --line: #262b26;
  --green-mist: #141914;
  --green-soft: #1c2a1d;
  color-scheme: dark;
}
[data-theme="dark"] .site-header { background: rgba(13, 15, 13, .82); }
[data-theme="dark"] body.home .site-header { background: transparent; }
[data-theme="dark"] .brand img,
[data-theme="dark"] .footer-brand img,
[data-theme="dark"] .thanks > .wrap > img { filter: invert(1) hue-rotate(180deg) brightness(1.15); }
[data-theme="dark"] .text-link,
[data-theme="dark"] .stat b,
[data-theme="dark"] .step b,
[data-theme="dark"] .stars,
[data-theme="dark"] .prose a { color: #8fc493; }
[data-theme="dark"] .btn { background: #3a7340; border-color: #3a7340; }
[data-theme="dark"] .btn--ghost { background: transparent; color: #8fc493; border-color: #8fc493; }
[data-theme="dark"] .btn--ghost:hover { background: #3a7340; border-color: #3a7340; color: #fff; }
[data-theme="dark"] .service,
[data-theme="dark"] .form,
[data-theme="dark"] .review { background: #161b16; border-color: var(--line); }
[data-theme="dark"] .service--cta { background: #305f34; border-color: #305f34; }
[data-theme="dark"] .svc:hover .svc-name { color: #8fc493; }
[data-theme="dark"] .svc-photo { background: #151a15; }
[data-theme="dark"] .svc-cta { background: #305f34; }
[data-theme="dark"] .svc-dialog { background: #121512; }
[data-theme="dark"] .svc-close { background: #121512; }
[data-theme="dark"] .svc-close:hover { background: #1c2a1d; }
[data-theme="dark"] .stat, [data-theme="dark"] .step { border-top-color: #3a7340; }
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea { background: #0d0f0d; color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .filter { background: transparent; color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .filter.is-active { background: #3a7340; border-color: #3a7340; color: #fff; }
[data-theme="dark"] .m-tile { background: #151a15; }
[data-theme="dark"] .home-links a i { background: #4f9a56; }
[data-theme="dark"] .home-bar-links a span { color: #8fc493; }

/* ---------- Aparición al bajar ---------- */

.tile img { transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.js .reveal:not(.is-visible) .tile img,
.js .reveal:not(.is-visible).about-media img { transform: scale(1.1); }
.about-media img { transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }

/* ---------- Video ---------- */

.tile video,
.hero-media video,
.about-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink);
}
.masonry .tile.reel,
.trio--reels .tile { aspect-ratio: 9 / 16; }
.trio--reels .tile:first-child { aspect-ratio: 9 / 16 !important; }
@media (max-width: 620px) { .trio--reels { grid-template-columns: 1fr; } .trio--reels .tile:first-child { grid-column: auto; } }

/* ---------- Animación de entrada ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* cambio de modo noche: fundido suave de toda la página (View Transitions; js/main.js) */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .32s; animation-timing-function: ease; }

/* en celulares y tabletas el "hover" se queda pegado al tocar: ahí no se mueve nada al pasar por encima */
@media (hover: none) {
  .btn:hover:not(:active), a.service:hover, .tile:hover img, a.service:hover .service-photo img,
  .ig-link:hover img, .menu-main a:hover, .home-links a:hover i, .btn:hover .arrow,
  .home-bar-links a:hover span { transform: none; }
}

/* movimiento reducido: se quitan desplazamientos y zooms; se mantienen los fundidos (opacidad y color) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .4s ease; }
  .js .reveal:not(.is-visible) .tile img,
  .js .reveal:not(.is-visible).about-media img,
  .tile:hover img, a.service:hover, a.service:hover .service-photo img, .btn:hover, .btn:active, .btn:hover .arrow,
  .svc:hover .svc-photo, .svc:active .svc-photo, .svc:hover .svc-plus, .ig-link:hover img, .menu-main a:hover,
  .home-links a:hover i, .home-bar-links a:hover span { transform: none; }
  .menu-lines i, .menu-toggle[aria-expanded="true"] .menu-lines i { transition: none; }
  .menu-main li { animation-name: fade-in; }
  .menu-panel.is-closing .menu-main li { animation: none; }
  .masonry.is-filtered .tile { animation-name: fade-in; }
  .svc-dialog, .svc-dialog[open] { transform: none; }
  @starting-style { .svc-dialog[open] { transform: none; } }
}
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Cursor de cámara con flash (solo con mouse) ----------
   js/main.js dibuja la cámara (.cam-cursor) y la mueve con el mouse; así el flash puede animarse
   en la misma cámara al hacer clic. Íconos 40×40; el punto del clic es el centro del lente (20 22).
   Verde (.is-link) = se puede tocar. Sobre campos de texto se esconde y vuelve el cursor normal.
   Sin JS, queda el cursor de imagen (mismos íconos, sin flash). */
@media (hover: hover) and (pointer: fine) {
  html { cursor: url("../assets/icons/cursor-camera.svg") 20 22, auto; }
  body :is(a, button, [role="button"], label, select, summary, video, .filter),
  .masonry .tile[role="button"] { cursor: url("../assets/icons/cursor-camera-link.svg") 20 22, pointer; }
  body :is(input, textarea) { cursor: text; }

  html.has-cam, html.has-cam *, html.has-cam *::before, html.has-cam *::after { cursor: none !important; }
  html.has-cam :is(input, textarea) { cursor: text !important; }
}
.cam-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  margin: -22px 0 0 -20px;   /* el centro del lente queda justo en la punta del mouse */
  pointer-events: none;
  z-index: 2147483000;
  background: url("../assets/icons/cursor-camera.svg") center / 40px 40px no-repeat;
  will-change: transform;
}
.cam-cursor.is-link { background-image: url("../assets/icons/cursor-camera-link.svg"); }
.cam-cursor.is-hidden { visibility: hidden; }
.cam-cursor i {             /* el flash: sale del flash de la cámara (arriba a la derecha) */
  position: absolute;
  left: 27.8px;
  top: 17.85px;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  opacity: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 0c.9 10.2 5.8 15.1 16 16-10.2.9-15.1 5.8-16 16-.9-10.2-5.8-15.1-16-16C10.2 15.1 15.1 10.2 16 0Z' fill='%23fff' stroke='rgba(0,0,0,.4)' stroke-width='1.5'/%3E%3C/svg%3E") center / 13px 13px no-repeat,
    radial-gradient(circle, #fff 0 18%, rgba(255, 243, 207, .95) 32%, rgba(255, 210, 122, .45) 60%, rgba(255, 210, 122, 0) 72%);
}
