/* Layout: header fijo → hero en dos columnas con tres arcos escalonados → fotografía + acceso "Mis fotos" → galería de arcos con filtros → servicios → pasos → contacto.
   Motivo: las fotos se recortan en forma de arco, igual que las mamparas de los montajes. */
:root {
  --papel: #fbf5f3;
  --superficie: #ffffff;
  --tinta: #2a1a26;
  --tinta-suave: #6e5a66;
  --rosa: #c2185b;
  --rosa-suave: #f7dbe6;
  --neon: #ff4fa0;
  --linea: #eadcdd;
  --wa: #1f9d55;

  --f-display: "Gloock", "Didot", "Bodoni 72", Georgia, serif;
  --f-texto: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-neon: "Yellowtail", "Brush Script MT", cursive;

  --ancho: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radio: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papel: #1a1218; --superficie: #241a21; --tinta: #f6ecef; --tinta-suave: #bca8b3;
    --rosa: #ff6fae; --rosa-suave: #3d2232; --neon: #ff5aa8; --linea: #3a2a34; --wa: #2fbf6c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papel: #1a1218; --superficie: #241a21; --tinta: #f6ecef; --tinta-suave: #bca8b3;
  --rosa: #ff6fae; --rosa-suave: #3d2232; --neon: #ff5aa8; --linea: #3a2a34; --wa: #2fbf6c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; border-radius: 6px; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding-inline: var(--gutter); }
.seccion { padding-block: clamp(64px, 9vw, 112px); }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rosa);
}
.titulo-seccion { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.intro { color: var(--tinta-suave); max-width: 58ch; }
.cabeza-seccion { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: 600 1rem/1 var(--f-texto); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-primario { background: var(--rosa); color: #fff; }
:root[data-theme="dark"] .btn-primario { color: #2a1a26; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primario { color: #2a1a26; } }
.btn-linea { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.btn-linea:hover { background: var(--tinta); color: var(--papel); }

/* Header */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--papel) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.header .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.marca { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.marca-nombre { font-family: var(--f-display); font-size: 1.5rem; }
.marca-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-suave); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--tinta-suave); }
.nav a:hover { color: var(--rosa); }
.nav .btn { padding: 10px 18px; font-size: .9rem; color: #fff; }
.menu-btn { display: none; background: none; border: 0; color: var(--tinta); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--papel); border-bottom: 1px solid var(--linea);
    padding: 8px var(--gutter) 20px;
  }
  .nav:not(.abierto) { display: none; }
  .nav a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--linea); }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .marca-sub { display: none; }
}

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero .contenedor { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-texto { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
.neon {
  font-family: var(--f-neon); font-weight: 400; color: var(--rosa);
  font-size: clamp(2.6rem, 5.5vw, 4rem); line-height: 1; display: inline-block; transform: rotate(-4deg);
  text-shadow: 0 0 6px color-mix(in srgb, var(--neon) 55%, transparent), 0 0 22px color-mix(in srgb, var(--neon) 35%, transparent);
}
.hero p.intro { font-size: 1.12rem; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-datos { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: var(--tinta-suave); }
.hero-datos span::before { content: "✦"; color: var(--rosa); margin-right: 8px; }

.hero-arcos { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; min-width: 0; }
.arco {
  aspect-ratio: 3 / 4; max-width: 100%; overflow: hidden;
  border-radius: 50% 50% 10px 10px / 37.5% 37.5% 10px 10px;
  background: var(--rosa-suave);
}
.arco img { width: 100%; height: 100%; object-fit: cover; }
.hero-arcos .arco:nth-child(1) { transform: translateY(-14%); }
.hero-arcos .arco:nth-child(2) { transform: translateY(6%); }
.hero-arcos .arco:nth-child(3) { transform: translateY(-4%); }

@media (max-width: 820px) {
  .hero .contenedor { grid-template-columns: 1fr; }
  .hero-arcos { order: -1; gap: 10px; padding-top: 18px; }
}

/* Galería */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filtro {
  font: 500 .92rem/1 var(--f-texto); padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--linea); background: var(--superficie); color: var(--tinta-suave);
}
.filtro[aria-pressed="true"] { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.filtro .n { font-variant-numeric: tabular-nums; opacity: .6; margin-left: 4px; }

.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(14px, 2vw, 24px); list-style: none; margin: 0; padding: 0; }
.galeria li { min-width: 0; }
.galeria button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.galeria button:focus-visible { outline: 3px solid var(--rosa); outline-offset: 4px; border-radius: 50% 50% 10px 10px / 37.5% 37.5% 10px 10px; }
.galeria .arco img { transition: transform .5s ease; }
.galeria button:hover .arco img { transform: scale(1.05); }
.galeria figcaption { font-size: .88rem; color: var(--tinta-suave); margin-top: 10px; line-height: 1.4; }
@media (max-width: 480px) { .galeria { grid-template-columns: repeat(2, 1fr); } .galeria figcaption { font-size: .8rem; } }

/* Servicios */
.servicios-fondo { background: var(--superficie); border-block: 1px solid var(--linea); }
.servicios { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--linea); }
.servicio { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--linea); display: grid; gap: 8px; align-content: start; min-width: 0; }
.servicio h3 { font-size: 1.45rem; }
.servicio p { color: var(--tinta-suave); font-size: .98rem; }
.nota { margin-top: 26px; color: var(--tinta-suave); font-size: .95rem; }

/* Pasos */
.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(20px, 3vw, 36px); list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.paso { counter-increment: paso; display: grid; gap: 10px; align-content: start; min-width: 0; }
.paso::before {
  content: counter(paso); font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--rosa);
  width: 64px; height: 76px; display: grid; place-items: center; padding-top: 10px;
  border: 1.5px solid var(--rosa); border-radius: 50% 50% 8px 8px / 42% 42% 8px 8px;
}
.paso h3 { font-size: 1.3rem; }
.paso p { color: var(--tinta-suave); font-size: .98rem; }

/* Fotografía + acceso a "Mis fotos" */
.foto-bloque { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.foto-texto { display: grid; gap: 16px; min-width: 0; }
.acceso-tarjeta {
  display: grid; gap: 14px; justify-items: start; min-width: 0;
  background: var(--superficie); border: 1px solid var(--linea); border-radius: 24px; padding: clamp(24px, 4vw, 40px);
}
.acceso-tarjeta h3 { font-size: 1.9rem; }
.acceso-tarjeta p { color: var(--tinta-suave); font-size: .98rem; }
.acceso-tarjeta .btn { width: 100%; justify-content: center; }
.proximo-icono { width: 72px; height: 90px; display: grid; place-items: center; border-radius: 50% 50% 10px 10px / 40% 40% 10px 10px; background: var(--rosa-suave); color: var(--rosa); }
.proximo-icono svg { width: 34px; height: 34px; }
.campo-codigo {
  width: 100%; font: 600 1.25rem/1 var(--f-texto); letter-spacing: .16em; text-transform: uppercase; text-align: center;
  padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--linea); background: var(--papel); color: var(--tinta);
}
.campo-codigo:focus { outline: none; border-color: var(--rosa); }
.campo-codigo::placeholder { color: var(--tinta-suave); opacity: .5; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 820px) { .foto-bloque { grid-template-columns: 1fr; } }

/* Contacto */
.contacto { background: var(--tinta); color: var(--papel); }
.contacto .contenedor { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.contacto .titulo-seccion { color: var(--papel); }
.contacto .intro { color: color-mix(in srgb, var(--papel) 75%, transparent); }
.contacto .eyebrow { color: var(--neon); }
.contacto .neon { color: var(--neon); }
.contacto-datos { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.contacto-datos li { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid color-mix(in srgb, var(--papel) 18%, transparent); }
.contacto-datos .etq { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--papel) 60%, transparent); }
.contacto-datos a { text-decoration: none; font-size: 1.1rem; overflow-wrap: anywhere; }
.contacto-datos a:hover { color: var(--neon); }
@media (max-width: 820px) { .contacto .contenedor { grid-template-columns: 1fr; } }

.footer { background: var(--tinta); color: color-mix(in srgb, var(--papel) 55%, transparent); font-size: .85rem; padding-block: 22px; border-top: 1px solid color-mix(in srgb, var(--papel) 14%, transparent); }
.footer .contenedor { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Botón flotante WhatsApp */
.wa-flotante {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wa-flotante svg { width: 30px; height: 30px; }

/* Visor de fotos */
.visor {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: rgba(16, 8, 14, .94); padding: 56px 16px;
}
.visor img { max-height: 100%; max-width: min(100%, 900px); object-fit: contain; border-radius: 10px; }
.visor-pie { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); left: 16px; right: 16px; text-align: center; color: #f3e6ec; font-size: .92rem; }
.visor button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
}
.visor button:hover { background: rgba(255,255,255,.24); }
.visor button svg { width: 24px; height: 24px; }
.visor-cerrar { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.visor-ant { left: 12px; top: 50%; transform: translateY(-50%); }
.visor-sig { right: 12px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
