/* ===== Minimal Wedding — Editorial European ===== */

:root{
  --max: 980px;
  --radius: 18px;

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  --bg: #fbfaf7;
  --bg-2: #f5f2eb;
  --text: #121212;
  --muted: rgba(18,18,18,.72);
  --soft: rgba(18,18,18,.10);
  --line: rgba(18,18,18,.14);
  --accent: rgba(18,18,18,.90);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

html {
  scroll-behavior: smooth;
}

body{
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

/* ===== Themes ===== */
.theme-beige{
  --bg: #faf8f2;
  --bg-2: #f2eee3;
  --text: #1a1917;
  --muted: rgba(26,25,23,.70);
  --soft: rgba(26,25,23,.08);
  --line: rgba(26,25,23,.14);
}

.theme-ivory{
  --bg: #fdfcf9;
  --bg-2: #f6f4ee;
  --text: #1c1c1c;
  --muted: rgba(28,28,28,.70);
  --soft: rgba(28,28,28,.08);
  --line: rgba(28,28,28,.14);
}

.theme-sage{
  --bg: #f3f5f1;
  --bg-2: #e6ebe4;
  --text: #1e221e;
  --muted: rgba(30,34,30,.70);
  --soft: rgba(30,34,30,.08);
  --line: rgba(30,34,30,.14);
}

/* ===== Layout ===== */
.page{
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 44px);
}

.hero{
  padding: clamp(44px, 8vw, 96px) 0 clamp(22px, 3vw, 32px) 0;
}

.hero-inner{
  padding: 8px 150px 0 0;
  margin: 0 auto;
}

.eyebrow{
  margin: 0 0 8px 0;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}

.title{
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.05;
  font-variant-ligatures: common-ligatures;
}

.wedding-date{
  margin: 14px 0 0 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: .02em;
}

.divider{
  width: 64px;
  height: 1px;
  background: var(--line);
  margin: 10px 0;
}

.intro{
  margin: 18px 0 0 0;
  font-size: 18px;
  color: var(--accent);
  max-width: 70ch;
}

/* ===== Sections ===== */
.section{
  padding: 18px 0;
}

.grid-2{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 820px){
  .grid-2{
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

.card{
  background: var(--bg-2);
  border: 1px solid rgba(18,18,18,.04);
  border-radius: 20px;
  padding: 20px;
  box-shadow:
    0 1px 2px rgba(0,0,0,.03),
    0 10px 24px rgba(0,0,0,.045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow:
    0 2px 6px rgba(0,0,0,.04),
    0 14px 28px rgba(0,0,0,.06);
  border-color: rgba(18,18,18,.09);
}

.card ul{
  color: var(--muted);
}

.card li{
  font-size: 14px;
}

.card .h2{
  margin-bottom: 6px;
}

.h2{
  margin: 0 0 8px 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.p{
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer{
  padding: 26px 0 8px 0;
  border-top: 1px solid var(--soft);
  margin-top: 28px;
}

.footnote{
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  opacity: .65;
}

/* ===== RSVP Form ===== */
.rsvp-form{ margin-top: 14px; }

.rsvp-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

@media (min-width: 820px){
  .rsvp-grid{ grid-template-columns: 1fr 1fr; }
}

.rsvp-label{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rsvp-title{
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--muted);
}

.rsvp-input{
  font: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.35);
  color: var(--text);
  width: 100%;
}

.theme-sage .rsvp-input,
.theme-ivory .rsvp-input,
.theme-beige .rsvp-input{
  background: var(--bg);
}

.rsvp-input:focus{
  outline: none;
  border-color: var(--text);
}

.rsvp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--text);
  background: transparent;

  font: inherit;
  cursor: pointer;
  transition: all .2s ease;

  color: var(--text);
  text-decoration: none;
}

a.rsvp-btn,
a.rsvp-btn:visited{
  color: var(--text);
  text-decoration: none;
}

.rsvp-btn:hover{
  background: var(--text);
  color: var(--bg);
}

.rsvp-note{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  display: none !important;
}

/* Gallery */

#photoGallerySection{
  max-width: 980px;
  margin: clamp(28px, 3.5vw, 48px) auto 0;
  scroll-margin-top: 80px;
}

.photo-gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.gallery-item{
  display: block;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.gallery-item img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  transition: transform .18s ease;
}

.gallery-item:hover{
  transform: translateY(-2px);
  box-shadow:
    0 2px 6px rgba(0,0,0,.04),
    0 12px 24px rgba(0,0,0,.06);
}

.gallery-item:hover img{
  transform: scale(1.01);
}

/* Responsive */

@media (max-width:900px){
  .photo-gallery{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width:520px){
  .photo-gallery{
    grid-template-columns: 1fr;
  }
}

.countdown{
  color:#9a948d;
  font-size:0.9em;
}

.date-sep{
  margin:0 6px;
  color:#c8c2bb;
}

/* ===== Couple Photo ===== */
.couple-photo{
  position: absolute;
  top: clamp(18px, 3vw, 44px);
  right: clamp(18px, 3vw, 44px);
  display: block;
  width: 150px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bg);
  background: var(--bg-2);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  z-index: 30;
  pointer-events: auto;
}

.couple-photo:hover img{
  transform: scale(1.03);
}

.couple-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 50%;
  opacity: 0;
  transform: scale(1.015);
  animation: heroPhotoReveal .8s ease forwards;
}

@keyframes heroPhotoReveal{
  to{
    opacity:1;
    transform:scale(1);
  }
}

@media (max-width: 1024px){
  .hero-inner{
    padding-right: 150px;
  }

  .couple-photo{
    width: 120px;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 640px){
  .hero-inner{
    padding-right: 0;
    text-align: center;
  }

  .hero{
    padding-top: clamp(32px, 6vw, 50px);
  }

  .divider{
    margin: 16px auto 18px;
  }

  .intro{
    margin: 0 auto;
  }

  .couple-photo{
    position: static;
    display: block;
    margin: 0 auto 0px;
    width: clamp(160px, 42vw, 240px);
    aspect-ratio: 1 / 1;
  }

  .card{
    padding: 18px;
    border-radius: 18px;
  }
}

/* =========================
   Maps & secondary buttons
   ========================= */

.btn-map,
.btn-calendar{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(18,18,18,.08);
  background: rgba(255,255,255,.35);

  color: var(--text);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.btn-map:hover,
.btn-calendar:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.6);
  border-color: rgba(18,18,18,.12);
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

.btn-map:active,
.btn-calendar:active{
  transform: translateY(0);
}

.btn-map:focus-visible,
.btn-calendar:focus-visible{
  outline: 2px solid rgba(18,18,18,.18);
  outline-offset: 2px;
}

/* spacing for map buttons inside cards */
.map-links .btn-map{
  margin-right: 8px;
  margin-top: 8px;
}

.map-links .btn-map:last-child{
  margin-right: 0;
}

/* Calendar link (subtle in hero) */
.hero-actions{
  margin-top: 8px;
  margin-bottom: 16px;
}

.calendar-link{
  display: inline-flex;
  align-items: center;
  gap: 7px;

  font-size: .9rem;
  font-weight: 500;
  color: rgba(18,18,18,.58);
  text-decoration: none;

  transition: color .18s ease, transform .18s ease;
}

.calendar-link:hover{
  color: rgba(18,18,18,.88);
  transform: translateY(-1px);
  text-decoration: none;
}

.calendar-link i{
  font-size: .82rem;
  opacity: .7;
}

@media (max-width: 640px){
  .map-links .btn-map{
    display: inline-flex;
    width: auto;
    margin-right: 8px;
    margin-bottom: 10px;
  }
}

/* =========================
   Share page
========================= */

.share-page{
  text-align: center;
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--line, rgba(0,0,0,0.08));
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.share-divider{
  font-size: 14px;
  opacity: .4;
  margin-bottom: 14px;
}

.share-text{
  margin: 0 0 12px;
  font-size: 14px;
  opacity: .75;
}

.share-page-btn{
  appearance: none;
  border: 1px solid var(--line, rgba(0,0,0,0.15));
  background: #fff;
  color: var(--text, #111);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.share-page-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.glightbox-container{
  background: rgba(0,0,0,.82);
}

.glightbox-container .gslide-image img{
  max-width:90vw;
  max-height:85vh;
  object-fit:contain;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  border-radius:12px;
}

.glightbox-clean .gclose{
  opacity:.7;
}

.glightbox-clean .gclose:hover{
  opacity:1;
}

#scrollTopBtn{
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: var(--text, #2c2c2c);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}

#scrollTopBtn.visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollTopBtn svg{
  display: block;
}

.footer-lang{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  font-size: 12px; /* antes 11px */
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .6; /* antes .5 */
  margin-top: 14px;
  margin-bottom: 10px;
}

.footer-lang a{
  text-decoration: none;
  color: inherit;
}

.footer-lang i{
  font-size: 11px;
  opacity: .7;
  margin-right: 4px;
  transform: translateY(-1px);
}

/* estilo de los puntos (span) */
.footer-lang span{
  opacity: .6;
}

/* hover */
.footer-lang a:hover{
  opacity: 1;
}

/* activo */
.footer-lang a.active{
  opacity: 1;
  font-weight: 500; 
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.footer-legal{
  margin-top:6px;
  font-size:9px;
  opacity:.45;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.footer-legal a{
  color:inherit;
  text-decoration:none;
}

.footer-legal a:hover{
  text-decoration:underline;
  opacity:.8;
}

.cookie-banner{
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  backdrop-filter: blur(6px);
  z-index: 9999;
}

.cookie-banner-text{
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: inherit;
}

.cookie-banner-text a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-actions button{
  appearance: none;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
}

/* Accept (principal) */
.cookie-actions button[data-cookie-action="accept"]{
  background: #171717;
  color: #fff;
  border: 1px solid #171717;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.cookie-actions button[data-cookie-action="accept"]:hover{
  opacity: .92;
  transform: translateY(-1px);
}

/* Reject (secondary, limpio) */
.cookie-actions button[data-cookie-action="reject"]{
  background: transparent;
  border: 1px solid rgba(0,0,0,.12);
  color: inherit;
}

.cookie-actions button[data-cookie-action="reject"]:hover{
  background: rgba(0,0,0,.04);
}

/* Mobile */
@media (max-width: 640px){
  .cookie-banner{
    bottom: 56px;
    width: calc(100% - 20px);
    padding: 12px 14px;
    border-radius: 14px;
  }

  .cookie-banner-text{
    font-size: 12px;
  }

  .cookie-actions button{
    font-size: 12px;
    padding: 8px 11px;
  }
}