/* Revela tu boda · estilos comunes */
@font-face { font-family: "Britanica RTB"; src: url(britanica-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Britanica RTB XB"; src: url(britanica-xb.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --white: #ffffff;
  --paper: #f6f6f4;
  --ink: #121212;
  --muted: #5b5b5b;
  --line: #12121222;
  --blue: #0f9cff;
  --font-text: "Britanica RTB", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Britanica RTB XB", "Helvetica Neue", Arial, sans-serif;
  --bar: 88px;
  --gutter: clamp(20px, 4vw, 72px);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); }
body { background: var(--white); color: var(--ink); font-family: var(--font-text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); padding: .6em 1em; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- Barra superior ---------- */
.bar { position: sticky; top: 0; z-index: 50; height: var(--bar); background: var(--white); display: flex; align-items: center; gap: clamp(16px, 2.6vw, 44px); padding-inline: var(--gutter); border-bottom: 1px solid transparent; transition: border-color .2s; }
.bar.scrolled { border-color: var(--line); }
.logo { position: relative; height: 40px; flex: none; }
.logo img { height: 40px; width: auto; }
.logo svg { position: absolute; left: 0; top: 0; width: 40px; height: 40px; }
.menu { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); font-size: 16px; }
.menu a { text-decoration: none; white-space: nowrap; }
.menu a:hover, .menu a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.menu a.book { font-family: var(--font-head); background: var(--blue); padding: .6em 1.1em; }
.menu a.book:hover { text-decoration: none; background: var(--ink); color: var(--white); }
.social { width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.social img { width: 28px; height: 28px; }
.social:hover img { opacity: .7; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); content: ""; transition: transform .2s, top .2s; }
.burger span { top: 21px; }
.burger span::before { left: 0; top: -7px; }
.burger span::after { left: 0; top: 7px; }
.bar.open .burger span { background: transparent; }
.bar.open .burger span::before { top: 0; transform: rotate(45deg); }
.bar.open .burger span::after { top: 0; transform: rotate(-45deg); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

@media (max-width: 1080px) {
  :root { --bar: 72px; }
  .logo, .logo img { height: 32px; }
  .logo svg { width: 32px; height: 32px; }
  .burger { display: block; }
  .social { margin-left: 0; }
  .menu { position: fixed; inset: var(--bar) 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--white); padding: 8px var(--gutter) 28px; border-bottom: 1px solid var(--line); font-size: 22px; transform: translateY(-120%); transition: transform .25s ease; z-index: -1; }
  .menu a { padding: .55em 0; width: 100%; border-bottom: 1px solid var(--line); }
  .menu a.book { margin-top: 18px; width: auto; border: 0; padding: .7em 1.3em; }
  .bar.open .menu { transform: none; }
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-head); font-size: clamp(16px, 1.3vw, 20px); color: var(--ink); background: var(--blue); border: 0; padding: .8em 1.4em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: var(--white); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }

/* ---------- Secciones ---------- */
section { padding: clamp(72px, 10vw, 140px) 0; }
.kicker { display: inline-flex; align-items: center; gap: .6em; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ""; width: 14px; height: 14px; border-left: 2px solid var(--blue); border-top: 2px solid var(--blue); }
.title { font-size: clamp(38px, 6vw, 84px); margin: .35em 0 .4em; }
.title em { font-style: normal; color: var(--blue); }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); max-width: 640px; }
.edit { background: #fff3a8; padding: 0 .2em; }

/* Marco con esquinas (motivo del logo) */
.framed { position: relative; }
.framed::before, .framed::after { content: ""; position: absolute; width: 28px; height: 28px; pointer-events: none; }
.framed::before { top: -10px; left: -10px; border-top: 3px solid currentColor; border-left: 3px solid currentColor; }
.framed::after { bottom: -10px; right: -10px; border-bottom: 3px solid currentColor; border-right: 3px solid currentColor; }

/* Footer */
footer { background: var(--ink); color: var(--white); padding: 56px 0 40px; }
footer .wrap { display: grid; gap: 32px; grid-template-columns: 1fr auto; align-items: end; }
footer .flogo { height: 34px; width: auto; filter: invert(1); }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 16px; }
footer nav a { text-decoration: none; }
footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
footer .copy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #ffffff26; padding-top: 24px; color: #ffffffa6; font-size: 14px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }

/* Páginas legales / interiores */
.page { padding: clamp(56px, 8vw, 110px) 0; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(40px, 6vw, 72px); margin: .3em 0 .5em; }
.page h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 2em 0 .6em; }
.page p, .page li { color: #2b2b2b; margin-bottom: .9em; }
.page ul { padding-left: 1.2em; }
.page .note { background: var(--paper); border-left: 4px solid var(--blue); padding: 1em 1.2em; font-size: 15px; color: var(--muted); }
.page dl { display: grid; grid-template-columns: max-content 1fr; gap: .4em 1.4em; }
.page dt { font-family: var(--font-head); }

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

/* ---------- Home: hero ---------- */
.stage { position: relative; height: calc(100svh - var(--bar)); min-height: 560px; max-height: 1100px; overflow: hidden; touch-action: pan-y; background: #d9d4cc; }
.stage img.layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.sharp { -webkit-mask-composite: source-in; mask-composite: intersect; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.frame { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.frame svg { display: block; width: 100%; height: 100%; overflow: visible; }
.stage .copy { position: absolute; font-family: var(--font-head); color: var(--white); font-size: clamp(28px, 3vw, 52px); line-height: 1.05; letter-spacing: -0.5px; text-shadow: 0 2px 18px rgba(0,0,0,.35); pointer-events: none; text-wrap: balance; margin: 0; }
.stage .cta { position: absolute; }
.stage h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Cómo funcionamos ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 36px); margin-top: clamp(40px, 6vw, 72px); counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 22px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-head); color: var(--blue); font-size: 44px; line-height: 1; margin-bottom: 18px; }
.steps h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: .45em; }
.steps p { color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Paquetes ---------- */
.bg-paper { background: var(--paper); }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); margin-top: clamp(40px, 6vw, 72px); align-items: stretch; }
.pack { background: var(--white); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; position: relative; }
.pack.pop { box-shadow: inset 0 0 0 3px var(--blue); }
.pack .tag { position: absolute; top: -14px; left: clamp(28px, 3vw, 40px); background: var(--blue); font-family: var(--font-head); font-size: 14px; padding: .3em .8em; }
.pack h3 { font-size: clamp(28px, 2.6vw, 36px); }
.pack .cams { color: var(--muted); }
.pack .price { font-family: var(--font-head); font-size: clamp(44px, 4.4vw, 60px); line-height: 1; }
.pack .price small { font-family: var(--font-text); font-size: 16px; color: var(--muted); }
.pack ul { list-style: none; display: grid; gap: 10px; flex: 1; }
.pack li { padding-left: 26px; position: relative; }
.pack li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.pack .btn { justify-content: center; }
.extras { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; color: var(--muted); }
.extras span.chip { background: var(--white); padding: .4em .9em; color: var(--ink); }
@media (max-width: 960px) { .packs { grid-template-columns: 1fr; max-width: 520px; } }

/* ---------- Nuestras bodas ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 20px); margin-top: clamp(40px, 6vw, 72px); }
.gallery figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #ddd; }
.gallery figure:nth-child(3n+2) { transform: translateY(clamp(0px, 3vw, 40px)); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: var(--white); font-family: var(--font-head); font-size: 20px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.gallery figcaption small { display: block; font-family: var(--font-text); font-size: 14px; opacity: .85; }
.gallery .soon { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); }
.gallery .soon svg { width: 46%; height: auto; }
.row-cta { margin-top: clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:nth-child(3n+2) { transform: none; } }

/* ---------- Sobre nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about .pic { aspect-ratio: 1; color: var(--ink); margin: 10px; }
.about .pic img { width: 100%; height: 100%; object-fit: cover; }
.about p + p { margin-top: 1em; }
.about .body { font-size: clamp(17px, 1.3vw, 19px); color: #2b2b2b; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- Reserva ---------- */
.reserva { background: var(--blue); text-align: center; }
.reserva .title em { color: var(--white); }
.reserva .lead { color: var(--ink); margin-inline: auto; }
.reserva .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.reserva .btn { background: var(--ink); color: var(--white); }
.reserva .btn:hover { background: var(--white); color: var(--ink); }
.reserva .btn.ghost { background: transparent; color: var(--ink); }
.reserva .btn.ghost:hover { background: var(--ink); color: var(--white); }

/* Footer logo con corazón */
footer .flogo-wrap { position: relative; display: inline-block; }
footer .flogo-wrap svg { position: absolute; left: 0; top: 0; width: 34px; height: 34px; }

/* Contacto */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 32px 0; }
.contact-cards a { display: block; background: var(--paper); padding: 26px; text-decoration: none; }
.contact-cards a:hover { background: var(--blue); }
.contact-cards strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 24px; margin-bottom: 4px; }
.contact-cards span { color: var(--muted); word-break: break-word; }
.contact-cards a:hover span { color: var(--ink); }
[hidden] { display: none !important; }
