/* Ritzy Photo & Film. Reglas tomadas de las skills de diseño instaladas: una tipografía de título con carácter,
   aire entre secciones, fotos reales en vez de adornos, y movimiento corto con salida suave. */
:root {
  --fondo: #f7f4ef; --papel: #fffdfa; --tinta: #1b1916; --suave: #5f584f; --linea: #e4ddd2;
  --acento: #8a5a1c; --acento-oscuro: #6e4613; --acento-claro: #f6ecda;
  --salida: cubic-bezier(.23, 1, .32, 1);
  --borde: 20px;
  --orilla: max(var(--borde), calc(50vw - 560px + var(--borde)));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 400 17px/1.65 "DM Sans", Arial, Helvetica, sans-serif; }
::selection { background: var(--acento); color: #fff; }
h1, h2, h3, .marca { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .7em; }
h3 { font-size: 1.45rem; margin-bottom: .35em; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--acento-oscuro); text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 4px; }

header { position: sticky; top: 0; z-index: 10; background: rgba(27, 25, 22, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 10px var(--borde); display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; }
.marca { color: #fff; text-decoration: none; font-size: 1.5rem; margin-right: auto; }
nav { display: flex; gap: 4px 18px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
nav::-webkit-scrollbar { display: none; }
nav a { color: #d9d2c5; text-decoration: none; font-size: .93rem; padding: 6px 0; white-space: nowrap; border-bottom: 1px solid transparent; transition: color .18s var(--salida), border-color .18s var(--salida); }
nav a:hover, nav a[aria-current] { color: #fff; border-bottom-color: var(--acento-claro); }

main { max-width: 1120px; margin: 0 auto; padding: 0 var(--borde); }
section { padding: clamp(48px, 8vw, 96px) 0; border-bottom: 1px solid var(--linea); }
section:last-child { border-bottom: 0; }
.portada { padding-top: clamp(56px, 9vw, 112px); }
.bajada { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--suave); margin-top: 1.1em; max-width: 56ch; }

/* Portada con fotos a todo el ancho de la pantalla; el texto se alinea con el resto de la página. */
.portada.grande { position: relative; margin-inline: calc(50% - 50vw); min-height: min(88svh, 860px); display: flex; flex-direction: column; justify-content: flex-end; padding: 140px var(--orilla) clamp(40px, 6vw, 72px); border-bottom: 0; color: #fff; background: #14120f; isolation: isolate; overflow: hidden; }
.portada.grande.corta { min-height: min(60svh, 520px); }
.fondo { position: absolute; inset: 0; z-index: -2; }
.fondo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; opacity: 0; transition: opacity 1.4s ease; }
.fondo img.ve { opacity: 1; animation: acerca 7s linear forwards; }
@keyframes acerca { to { transform: scale(1.06); } }
.portada.grande::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 18, 15, .25) 0%, rgba(20, 18, 15, .1) 35%, rgba(20, 18, 15, .88) 100%); }
.portada.grande h1 { max-width: 16ch; }
.portada.grande .bajada { color: #ebe5da; }
.portada.grande .btn { border-color: rgba(255, 255, 255, .7); background: transparent; color: #fff; }
.portada.grande .btn.fuerte { background: #fff; border-color: #fff; color: var(--tinta); }
/* Solo se mueve, nunca se oculta: si la animación no corre (pestaña en segundo plano), el texto ya se ve. */
.portada.grande > :not(.fondo) { animation: entra .7s var(--salida); }
@keyframes entra { from { transform: translateY(14px); } }

/* Cinta de fotos que se desliza de lado. */
.encabezado { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.flechas { display: flex; gap: 8px; margin-bottom: 1.2em; }
.flechas button, .visor button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--tinta); background: transparent; color: var(--tinta); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background-color .16s var(--salida), color .16s var(--salida), transform .16s var(--salida); }
.flechas button:hover { background: var(--tinta); color: #fff; }
.flechas button:active, .visor button:active { transform: scale(.94); }
.cinta { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(50% - 50vw); padding-inline: var(--orilla); scroll-padding-inline: var(--orilla); scrollbar-width: none; cursor: grab; }
.cinta::-webkit-scrollbar { display: none; }
.cinta .foto { flex: 0 0 auto; height: clamp(300px, 44vw, 500px); margin: 0; scroll-snap-align: start; }
.cinta .foto img { height: 100%; width: auto; max-width: none; }

/* Galería con filtros y visor. */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filtros button { padding: 9px 18px; border-radius: 999px; border: 1px solid #b7afa2; background: transparent; color: var(--tinta); font: 500 .95rem "DM Sans", Arial, sans-serif; cursor: pointer; transition: background-color .16s var(--salida), color .16s var(--salida), border-color .16s var(--salida); }
.filtros button:hover { border-color: var(--tinta); }
.filtros button[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.galeria { columns: 3 250px; column-gap: 14px; }
.foto { display: block; margin-bottom: 14px; border-radius: 8px; overflow: hidden; break-inside: avoid; background: var(--linea); cursor: zoom-in; }
.foto[hidden] { display: none; }
.foto img { width: 100%; height: auto; transition: transform .6s var(--salida); }
.foto:hover img { transform: scale(1.035); }
.visor { border: 0; padding: 0; margin: 0; background: transparent; width: 100vw; height: 100dvh; max-width: none; max-height: none; }
.visor[open] { display: grid; place-items: center; }
.visor::backdrop { background: rgba(12, 11, 9, .95); }
.visor img { max-width: 94vw; max-height: 88dvh; object-fit: contain; border-radius: 4px; }
.visor button { position: absolute; border-color: rgba(255, 255, 255, .6); color: #fff; background: rgba(20, 18, 15, .5); }
.visor button[data-v="0"] { top: 14px; right: 14px; }
.visor button[data-v="-1"] { left: 14px; top: 50%; margin-top: -22px; }
.visor button[data-v="1"] { right: 14px; top: 50%; margin-top: -22px; }

/* Dos entradas grandes: XV años y bodas. */
.dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.entrada { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; color: #fff; text-decoration: none; background: #14120f; }
.entrada img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .8s var(--salida); }
.entrada:hover img { transform: scale(1.05); }
.entrada span { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 24px 22px; background: linear-gradient(transparent, rgba(20, 18, 15, .88)); }
.entrada strong { display: block; font: 600 2.2rem/1.05 "Cormorant Garamond", Georgia, serif; }
.entrada em { font-style: normal; font-size: .95rem; color: #ebe5da; }

/* Paquetes en tarjetas (inicio). */
.planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 16px; margin-bottom: 1.4em; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 22px 22px; background: var(--papel); border: 1px solid var(--linea); border-radius: 14px; color: var(--tinta); text-decoration: none; transition: transform .2s var(--salida), box-shadow .2s var(--salida), border-color .2s var(--salida); }
.plan:hover { transform: translateY(-4px); border-color: var(--tinta); box-shadow: 0 18px 34px -24px rgba(27, 25, 22, .6); }
.plan.popular { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.plan h3 { margin: 0; }
.plan .cuanto { font: 600 2.4rem/1 "Cormorant Garamond", Georgia, serif; font-variant-numeric: tabular-nums; margin: 4px 0 10px; }
.plan ul { list-style: none; padding: 0; margin: 0; font-size: .93rem; color: var(--suave); display: grid; gap: 6px; }
.plan.popular ul { color: #d9d2c5; }
.plan .sello { font: 500 .72rem "DM Sans", Arial, sans-serif; letter-spacing: .02em; color: var(--acento-claro); }

/* En el teléfono, texto y llamada siempre a la mano. */
.barra { display: none; }
@media (max-width: 700px) {
  .barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(27, 25, 22, .96); }
  .barra a { padding: 11px 6px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); color: #fff; text-align: center; text-decoration: none; font-weight: 500; font-size: .93rem; }
  .barra a.fuerte { background: #fff; border-color: #fff; color: var(--tinta); }
  body { padding-bottom: 66px; }
  .portada.grande { padding-top: 110px; }
}

/* Paralaje: el fondo se mueve más lento que la página. Lo hace el navegador siguiendo el scroll, sin JavaScript;
   donde no existe (Firefox por ahora) las fotos quedan fijas. Usa «translate» para no chocar con los transform de arriba. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .portada.grande { view-timeline: --portada block; }
    .fondo { inset: -15% 0; animation: paralaje linear both; animation-timeline: --portada; }
    @keyframes paralaje { from { translate: 0 -10%; } to { translate: 0 10%; } }
    .entrada { view-timeline: --entrada block; }
    .entrada img { height: 112%; animation: paralaje-foto linear both; animation-timeline: --entrada; }
    /* Las secciones suben y aparecen al entrar en pantalla. Sin esta función se ven desde el inicio, nunca quedan ocultas. */
    main section:not(.grande) { animation: llega linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    @keyframes llega { from { opacity: 0; translate: 0 28px; } }
    @keyframes paralaje-foto { from { translate: 0 -10%; } to { translate: 0 0; } }
  }
}

.botones { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; max-width: none; }
.btn { display: inline-block; padding: 13px 22px; border: 1px solid var(--tinta); border-radius: 999px; color: var(--tinta); text-decoration: none; font-weight: 500; background: transparent; cursor: pointer; font: 500 1rem "DM Sans", Arial, sans-serif; transition: transform .16s var(--salida), background-color .16s var(--salida), color .16s var(--salida); }
.btn.fuerte { background: var(--tinta); color: #fff; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn.fuerte:hover { background: var(--acento-oscuro); border-color: var(--acento-oscuro); }

.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.video { position: relative; display: block; background: #14120f; border-radius: 10px; overflow: hidden; text-decoration: none; aspect-ratio: 16 / 9; transition: transform .2s var(--salida), box-shadow .2s var(--salida); }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--salida); }
.video:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(27, 25, 22, .55); }
.video:hover img { transform: scale(1.03); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video .pie { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: .92rem; font-weight: 500; background: linear-gradient(transparent, rgba(20, 18, 15, .85)); }

.tres { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px 40px; }
.tres p { margin: 0; color: var(--suave); }
.pasos, .lista { padding-left: 1.2em; margin: 0; max-width: 68ch; }
.pasos li, .lista li { margin-bottom: .6em; padding-left: .2em; }
.pasos li::marker { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.2em; color: var(--acento-oscuro); }

.desliza { overflow-x: auto; background: var(--papel); border: 1px solid var(--linea); border-radius: 12px; margin-bottom: 1em; }
table.paquetes { width: 100%; min-width: 700px; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.paquetes th, .paquetes td { padding: 13px 12px; text-align: center; border-bottom: 1px solid var(--linea); vertical-align: top; }
.paquetes th:first-child, .paquetes td:first-child { text-align: left; color: var(--suave); width: 17%; }
.paquetes thead th { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; font-weight: 600; border-bottom: 1px solid var(--tinta); padding-top: 18px; }
.paquetes th.popular, .paquetes td:nth-child(4) { background: var(--acento-claro); }
.paquetes th.popular::after { content: "El más elegido"; display: block; font: 500 .72rem "DM Sans", Arial, sans-serif; letter-spacing: .02em; color: var(--acento-oscuro); margin-top: 2px; }
html[lang="en"] .paquetes th.popular::after { content: "Most chosen"; }
.paquetes .precio td { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.9rem; font-weight: 600; }
.paquetes tbody tr:last-child td { border-bottom: 0; }

details { border-bottom: 1px solid var(--linea); padding: 16px 0; max-width: 68ch; }
details:first-of-type { border-top: 1px solid var(--linea); }
summary { font-weight: 500; font-size: 1.08rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--acento-oscuro); transition: transform .2s var(--salida); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: .7em 0 0; color: var(--suave); }

form { display: grid; gap: 16px; max-width: 580px; }
label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
input, select, textarea { font: inherit; padding: 12px 14px; border: 1px solid #b7afa2; border-radius: 8px; background: var(--papel); color: var(--tinta); width: 100%; caret-color: var(--acento); transition: border-color .16s var(--salida), box-shadow .16s var(--salida); }
input:focus, select:focus, textarea:focus { border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-claro); outline: none; }
::placeholder { color: #756d62; }
.casilla { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.casilla input { width: auto; margin-top: 6px; accent-color: var(--acento-oscuro); }
.trampa { position: absolute; left: -9999px; }
#estado { margin: 0; font-weight: 500; }
#estado.bien { color: #1f6b3a; }
#estado.mal { color: #a12a2a; }

footer { background: var(--tinta); color: #c9c1b3; padding: 40px var(--borde); text-align: center; font-size: .92rem; margin-top: 24px; }
footer p { margin: 6px auto; }
footer a { color: #fff; }

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