*{box-sizing:border-box}:root{--bg:#f8f5ee;--surface:#ffffff;--text:#171017;--accent:#c7a96b;--soft:#b7cee2;--shadow:0 18px 55px rgba(0,0,0,.10)}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:"DM Sans",sans-serif;line-height:1.65}a{color:inherit}.container{width:min(1120px,calc(100% - 34px));margin:auto}.topbar{position:fixed;top:0;left:0;right:0;z-index:40;background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:blur(16px);border-bottom:1px solid color-mix(in srgb,var(--text) 10%,transparent)}.nav-inner{height:72px;display:flex;align-items:center;justify-content:space-between}.logo{text-decoration:none;font-weight:800;letter-spacing:.22em}.top-nav{display:flex;gap:28px}.top-nav a{text-decoration:none;font-size:.88rem;font-weight:700}.menu-btn{display:none;border:0;background:transparent;color:var(--text);font-size:1.45rem}.hero{min-height:100svh;display:grid;align-items:center;padding:120px 0 70px;color:#fff;background:linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.18)),url("https://images.unsplash.com/photo-1465146344425-f00d5f5c8f07?auto=format&fit=crop&w=1600&q=85") center/cover}.hero-inner{max-width:850px}.template-chip{display:inline-flex;padding:9px 15px;border-radius:999px;border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.13);font-size:.72rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase}.kicker{margin-top:20px;font-size:.72rem;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:var(--accent)}.hero .kicker{color:#fff}.hero h1{font-family:"Playfair Display",serif;font-size:clamp(4rem,9vw,8rem);line-height:.9;margin:18px 0}.hero-phrase{max-width:650px;font-size:1.12rem}.actions{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0}.btn{border:0;padding:13px 22px;border-radius:999px;cursor:pointer;text-decoration:none;display:inline-flex;justify-content:center;font-weight:800}.primary{background:var(--accent);color:#fff}.ghost{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.55);color:#fff}.countdown{display:grid;grid-template-columns:repeat(4,minmax(72px,118px));gap:10px;margin-top:36px}.countdown div{padding:14px 10px;border:1px solid rgba(255,255,255,.25);background:rgba(0,0,0,.18);text-align:center}.countdown strong{display:block;font-family:"Playfair Display",serif;font-size:2rem}.countdown span{font-size:.65rem;text-transform:uppercase}.section{padding:92px 0}.alt{background:var(--surface)}.event-feature{display:grid;grid-template-columns:.95fr 1.05fr;gap:68px;align-items:center}.event-photo{min-height:590px;background:url("https://images.unsplash.com/photo-1465146344425-f00d5f5c8f07?auto=format&fit=crop&w=1600&q=85") center/cover;border-radius:28px;box-shadow:var(--shadow)}.event-feature h2,.section-heading h2{font-family:"Playfair Display",serif;font-size:clamp(2.6rem,5vw,4.6rem);line-height:1;margin:10px 0 22px}.section-heading{text-align:center;max-width:760px;margin:0 auto 46px}.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.info-card{padding:32px;border-radius:22px;background:var(--bg);box-shadow:var(--shadow);border:1px solid color-mix(in srgb,var(--accent) 16%,transparent)}.info-card h3{font-family:"Playfair Display",serif;font-size:2rem;margin:8px 0}.alias-box{margin-top:18px;padding:15px;border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);border-radius:14px}.alias-row{display:flex;justify-content:space-between;gap:12px;align-items:center}.copy-btn{border:1px solid var(--accent);background:transparent;color:var(--accent);padding:6px 10px;border-radius:999px}.quote-section{padding:72px 0;background:var(--text);color:#fff}.quote{font-family:"Playfair Display",serif;font-size:clamp(2.2rem,5vw,4rem);line-height:1.15;text-align:center;max-width:920px;margin:auto}.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.gallery img{width:100%;height:390px;object-fit:cover;border-radius:18px;cursor:zoom-in}.rsvp-wrap{max-width:860px}.deadline-card{display:flex;gap:18px;padding:24px;border-radius:18px;background:color-mix(in srgb,var(--accent) 9%,var(--surface));margin-bottom:50px}.deadline-icon,.guest-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:var(--accent);color:#fff;font-weight:900}.confirm-card{max-width:670px;margin:auto;padding:34px;border-radius:22px;background:var(--surface);box-shadow:var(--shadow)}.guest-summary{display:flex;gap:16px;align-items:center;padding-bottom:20px;border-bottom:1px solid color-mix(in srgb,var(--text) 12%,transparent);margin-bottom:20px}.guest-summary small,.guest-summary strong{display:block}form{display:grid;gap:18px}label{display:grid;gap:7px;font-weight:800}input,select{width:100%;padding:13px;border:1px solid color-mix(in srgb,var(--text) 18%,transparent);border-radius:12px;background:var(--bg);color:var(--text)}#formMessage{text-align:center;font-weight:800;min-height:24px}.footer{text-align:center;padding:26px}.lightbox{position:fixed;inset:0;z-index:90;background:rgba(0,0,0,.92);display:none;place-items:center;padding:25px}.lightbox.open{display:grid}.lightbox img{max-width:92vw;max-height:88vh;border-radius:18px}.lightbox-close{position:absolute;right:24px;top:16px;border:0;background:transparent;color:#fff;font-size:2.2rem}.reveal{opacity:0;transform:translateY(18px);transition:.7s}.reveal.visible{opacity:1;transform:none}@media(max-width:850px){.menu-btn{display:block}.top-nav{display:none;position:fixed;top:72px;left:0;right:0;flex-direction:column;padding:22px 28px;background:var(--surface)}.top-nav.open{display:flex}.event-feature{grid-template-columns:1fr}.event-photo{min-height:450px}.card-grid{grid-template-columns:1fr}.gallery{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.hero h1{font-size:clamp(3.1rem,17vw,5rem)}.countdown{gap:5px}.countdown div{padding:10px 4px}.section{padding:68px 0}.event-photo{min-height:380px}.gallery img{height:230px}.confirm-card{padding:22px 17px}}


/* =========================================================
   GALERÍA FULLSCREEN / CAROUSEL
   Desktop: flechas + teclado
   Mobile: swipe horizontal
   ========================================================= */

.gallery img {
  cursor: zoom-in;
  -webkit-user-select: none;
  user-select: none;
}

body.lightbox-open {
  overflow: hidden;
  touch-action: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  place-items: center;
  padding: 24px 92px;
  background: rgba(6, 6, 8, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .22s ease;
}

.lightbox.open {
  display: grid;
  opacity: 1;
}

.lightbox-stage {
  position: relative;
  width: min(1100px, 100%);
  height: min(84vh, 900px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  touch-action: pan-y;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .48);
  transform: translateX(0) scale(1);
  opacity: 1;
  transition:
    transform .22s ease,
    opacity .18s ease;
  will-change: transform, opacity;
  -webkit-user-drag: none;
  user-select: none;
}

.lightbox-image.is-changing {
  opacity: .25;
  transform: scale(.985);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform .18s ease,
    background .18s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, .22);
  transform: scale(1.05);
}

.lightbox-close {
  top: 20px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 58px;
  height: 58px;
  margin-top: -29px;
  border-radius: 50%;
  font-size: 3rem;
  line-height: .7;
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .56);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}

.lightbox-mobile-hint {
  display: none;
}

@media (max-width: 760px) {
  .lightbox {
    padding: 58px 0 38px;
    background: rgba(4, 4, 6, .98);
  }

  .lightbox-stage {
    width: 100%;
    height: calc(100svh - 96px);
    border-radius: 0;
    padding: 0 12px;
    touch-action: pan-y;
  }

  .lightbox-image {
    max-width: 100%;
    max-height: calc(100svh - 150px);
    border-radius: 12px;
    box-shadow: none;
  }

  /* En mobile la navegación principal es por swipe */
  .lightbox-nav {
    display: none;
  }

  .lightbox-close {
    top: 10px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 1.65rem;
  }

  .lightbox-counter {
    bottom: 10px;
  }

  .lightbox-mobile-hint {
    display: block;
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .78);
    background: rgba(0, 0, 0, .40);
    font-size: .70rem;
    white-space: nowrap;
    pointer-events: none;
  }
}

