/* =========================
   Variables
   ========================= */

/* ===== Paleta de colores original =====
:root {
  --bg: #ffffff;
  --ink: #2b2b2f;
  --muted: #6b7077;
  --muted-hero: #e0e0e0;
  --peach: #f7e0da;
  --accent: #d77a66;
  --border: #ececf3;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --container: 1120px;
}
===== Fin paleta original ===== */

/* Paleta actual */
:root {
  --bg: #f5f5f3;
  --ink: #1e1e1c;
  --muted: #6b6d66;
  --muted-hero: #cbc5ca;
  --peach: #dbe0ce;
  --accent: #556b2f;
  --border: #d0d2cc;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --container: 1120px;
}


/* 1) Nunca permitir scroll horizontal en la página */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;          /* corta el overflow lateral */
  overscroll-behavior-x: none; /* evita ‘empujón’ lateral en móviles */
  
}

/* =========================
   Base
   ========================= */
* {
  box-sizing: border-box;          /* incluir padding/border en el width/height */
}

html,
body {
  margin: 0;                       /* quitar márgenes por defecto */

}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

h1,
h2,
h3 {
  margin: .25rem 0 .6rem;
  line-height: 1.2;
}

p {
  margin: .25rem 0 1em;
}

.left {
  text-align: left;
}

.center {
  text-align: center;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding: 32px 1em;
}

.section {
  padding-block: 56px;
  text-align: center;              /* centra títulos y textos de sección */
}

.section.alt {
  background: var(--peach);        /* fondo durazno para alternar */
}

.Condiciones {
  background: #c7563a;        /* fondo durazno para alternar */
  color: #fff;
  text-align: center;

}

.Condiciones h3{
  padding: 1em 1em .5em 1em;
}

.BotonesAncla{
  display: flex;
  flex-direction: column;
  /* padding-right: 1em; */
  align-items: center;
}

.BotonesAncla a{
  width: 100%;
  display: block;
  background-color: #556b2f;
  color: #fff;
  text-align: center;
  padding: 1em;
  border-bottom: #799942 solid 1px;
  font-weight: bold;
  font-size: 1.2em;
}

.Condiciones div{
  background-color: #f8cdc3;
}

.Condiciones div p{
  padding: 1em;color: #1e1e1c;
  line-height: 1.2em;
  margin-bottom: 0;
}


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

/* Utilidades de margen superior */
.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }

/* =========================
   Botones
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: #fff;
  color: var(--accent);
}

.btn.light {
  border-color: #fff;
  background: #fff;
  color: var(--accent);
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;         /* centra horizontalmente los botones */
}

.btn,
.btn.ghost,
.btn.light,
#copy-hashtag {
  cursor: pointer;   /* muestra la manita */
}


/* =========================
   Grid utilitario
   ========================= */
.grid {
  display: grid;
  gap: 22px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid.cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 960px) {
  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-5 {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
  }
}

@media (max-width: 640px) {
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .grid.cols-5 {
    grid-template-columns: 1fr;   /* 1 columna en móvil */
  }
}

/* =========================
   Card
   ========================= */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card .body {
  padding: 20px;
}

/* =========================
   HERO
   ========================= */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
}

.hero .bg {
  position: absolute;
  inset: 0;
  background: url('https://qrconexion.com/frontend/eventos/bodas_maravillosas/larisa_gerardo/Larisa-gerardo-hero.webp') center / cover no-repeat;
  filter: brightness(.95);         /* oscurece la imagen para leer mejor el texto */
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.35));
}

.hero .content {
  position: relative;
  z-index: 2;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 8px;
}

.hero .subtitle {
  font-size: 1.05rem;
  color: var(--muted-hero);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  font-weight: 800;
}

.hero .date {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: .2rem;
}

.countdown {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
}

.guest-text{
  line-height: 1.8em;
}

.countdown .box {
  background: var(--accent);
  color: #fff;
  border-radius: 18px;
  padding: 14px 18px;
  min-width: 96px;
  box-shadow: var(--shadow);
}

.guest-text button{
  margin-top: 20px;
  padding: 1.4em 4em;
} 

.Note{
  font-weight: bold;
  font-size: .8em;
  color: rgb(201, 16, 16);
  padding-top: 20px;
}


.countdown .num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.countdown .lbl {
  font-size: .9rem;
}

/* =========================
   Bloques
   ========================= */
.intro p {
  max-width: 70ch;                 /* limitar ancho de párrafos largos */
  margin-inline: auto;             /* centrar el párrafo */
}

/* Tarjeta del invitado (pase) */


.guest-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: start;
  text-align: left;
}

.guest-card .ph {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  background: #f3f4f6;
  border: 1px dashed #cbd5e1;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-weight: 700;
}



.guest-card h3,
.guest-card p {
  margin: 0 0 .45rem;              /* separar líneas dentro de la tarjeta */
}

/* Caja de mapa (16:9) – placeholder por defecto */
.loc-map{
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-weight: 700;
}

/* Si hay iframe dentro, que llene el contenedor */
.loc-map iframe{
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
}

/* Iconos grandes para dress code */
.dress .icon {
  height: 90px;
  display: grid;
  place-items: center;
  font-size: 40px;
}

/* Items del timeline */
.timeline .item {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.timeline .ico {
  font-size: 28px;
}

/* =========================
   Padrinos
   ========================= */
/* Avatar general */
.party .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;        /* asegura que la imagen no se salga */
  background: #f3f4f6;
  border: 1px solid #cbd5e1;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagen dentro del avatar */
.party .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;  /* círculo perfecto */
  object-fit: cover;   /* rellena sin deformar */
}




/* =========================
   Historia + mini galería
   ========================= */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr; /* texto un poco más ancho que la galería */
  gap: 22px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;    /* una sola columna en pantallas pequeñas */
  }
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mini-gallery .ph {
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-weight: 700;
}


/* Mini-galería con imágenes reales */
.mini-gallery img{
  width: 100%;
  aspect-ratio: 4 / 3;  /* mantiene el mismo alto que los placeholders */
  object-fit: cover;    /* recorte bonito sin deformar */
  border-radius: 12px;  /* igual que .ph */
  display: block;
  border: 1px solid #cbd5e1; /* opcional: borde como el placeholder */
  background: #f3f4f6;       /* por si tarda en cargar */
}



/* =========================
   Galería grande
   ========================= */
.gallery {
  --cols: 3;                        /* columnas por defecto */
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .gallery { --cols: 2; }          /* 2 columnas en tablet */
}

@media (max-width: 600px) {
  .gallery { --cols: 1; }          /* 1 columna en móvil */
}

.gallery .ph {
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-weight: 700;
}


.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  border: 1px solid #cbd5e1;
  background: #f3f4f6;
}

/* =========================
   Mesas de regalos
   ========================= */
.registry .brand {
  height: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 6px 10px;
  font-weight: 700;
  color: #999;
}

/* =========================
   Hospedaje
   ========================= */
.hotel .map {
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-weight: 700;
}

/* =========================
   Video
   ========================= */
.video-wrap .poster {
  aspect-ratio: 16 / 9;
  background: url('video.jpg') center / cover no-repeat;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* =========================
   Redes
   ========================= */
.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hashtag {
  text-align: center;
  margin: .5rem 0 1.2rem;
  font-weight: 700;
}

/* =========================
   RSVP
   ========================= */
.rsvp .fields {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin-inline: auto;              /* centrar el formulario */
}

.field {
  display: grid;
  gap: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem .9rem;
  font: inherit;
}

/* =========================
   Add to calendar
   ========================= */
.addcal {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================
   Footer
   ========================= */
footer {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
}

/* =========================
   Responsive extra
   ========================= */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

@media (max-width: 1024px) {
  .timeline-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guest-card {
    display: flex;                  /* apilar imagen + textos */
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .guest-card .ph {
    margin: 0 auto;                 /* centrar la caja de foto */
  }
}


/* Foto real del pase: aislada y sin interferir con otros .ph */
.guest-photo{
  width:120px;
  height:120px;
  border-radius:14px;
  border:1px solid #e1cbdd;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* --- FIX mapas que se desbordan a la derecha --- */

/* el contenedor del card recorta cualquier desborde horizontal */
.card .body{ overflow: hidden; }

/* el contenedor del mapa ocupa el ancho exacto y no agrega márgenes raros */
.loc-map.embed{
  width: 100%;
  display: block;
  margin-left: 0;
  margin-right: 0;
  border-radius: 14px;          /* mismo radio que el card */
}

/* obligamos al iframe a respetar el ancho del contenedor */
.loc-map.embed iframe{
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;      /* cancela el min-width=600px del embed */
  height: 100%;
  display: block;
  border: 0;
  border-radius: 14px;          /* que siga redondeado */
}


/* =========================
   Video centrado
   ========================= */
.video-wrap {
  max-width: 960px;      /* ancho máximo, puedes ajustar o quitar */
  margin-inline: auto;   /* centra horizontalmente */
}

.video-wrap video {
  display: block;
  width: 100%;           /* ocupa el ancho del .video-wrap */
  aspect-ratio: 16 / 9;  /* mantiene la proporción */
  height: auto;
  object-fit: cover;     /* evita deformación */
  border-radius: 12px;
  border: 1px solid var(--border);
}


/* Estilos RSVP (iframe Google Forms) */
/* Quita sombra si no la quieres */
.rsvp iframe{
  width: 100%;
  max-width: 820px;        /* que no se haga enorme en desktop */
  height: 1200px;          /* alto base: suficiente para desktop */
  border: 0;
  border-radius: 16px;
  display: block;
  margin: 0 auto;
  overflow-x: hidden;
}





/* 2) Wrapper del formulario: que recorte y NO acepte pan horizontal */
.rsvp{
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;            /* recorta cualquier desborde del iframe */
  touch-action: pan-y;         /* solo desplazamiento vertical dentro de esta zona */
}

/* 3) Iframe del Google Form responsivo */
.rsvp iframe{
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 16px;
}

/* Altura suficiente para eliminar el scroll interno del iframe */
.rsvp iframe{ height: 1200px; }       /* base */

/* Ajustes por breakpoint (puedes subir 100–200px si aún ves scroll interno) */
@media (max-width: 1024px){ .rsvp iframe{ height: 1200px; } }
@media (max-width: 768px) { .rsvp iframe{ height: 1300px; } }
@media (max-width: 480px) { .rsvp iframe{ height: 1500px; } }


/* Solo fotos de código de vestimenta */
.vestimenta-photo {
  width: 100%;
  height: auto;
  border-radius: 14px; /* ajusta el radio a tu gusto */
  object-fit: cover;
  display: block;
}



/* =========================
   Acceso por Trajineras
   ========================= */
.trajineras {
  padding-block: 56px;
}

.traj-card {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 22px;
  text-align: center;
}

.traj-card h2 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 12px;
}

.traj-card p {
  margin: .35rem 0 .9rem;
  color: #fff;
}

.traj-note {
  display: inline-block;
  margin-top: 8px;
  background: var(--peach);
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 16px;
  line-height: 1.35;
  text-align: left;
  box-shadow: inset 0 0 0 1px var(--border);
  max-width: min(680px, 100%);
}

/* extra: aseguro separación del mapa dentro de la tarjeta */
.traj-card .loc-map { margin-top: 14px; }


/* Solo el botón "Google Maps" en la sección Acceso por Trajineras */
.trajineras .btn-row .btn[href*="google.com/maps"]{
  background: #fff;        /* botón blanco */
  color: var(--accent);    /* texto en el verde del tema */
  border-color: #fff;      /* mismo borde que .btn.light */
}


/* =========================
   Acceso Peatonal
   ========================= */
.peatonal { padding-block: 56px; }

.peat-card{
  background: var(--peach);          /* usa el tono del tema */
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px;
  text-align: center;
}

.peat-card h2{
  margin: 0 0 10px;
}

.peat-card p{
  margin: .35rem 0 1rem;
}

.peatonal-video{
  max-width: 420px;                  /* ancho cómodo para vertical */
  margin: 14px auto 0;
}

.peatonal-video video{
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;              /* video vertical */
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}


/* Botón a lo ancho solo dentro de la sección de vestimenta */
.dress .btn.block{
  width: 100%;
}

/* Opcional: centrado y tamaño del icono de la card “Información adicional”
   (reusa la regla existente .dress .icon y solo ajusta tamaño si quieres) */
.dress .icon{
  font-size: 44px;   /* ya tenías 40px; subo un poco para dar presencia */
  line-height: 1;
}



/* ========================= Carrusel de Recuerdos ========================= */
.mem-carousel{
  --btn-size: 44px;
  position: relative;
  margin-top: 14px;
}

.mc-viewport{
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: #fff;
}

/* Track y slides (1 por vista) */
.mc-track{
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}

.mc-slide{
  min-width: 100%;          /* muestra 1 a la vez (100% del viewport) */
  padding: 14px;            /* espacio para el “marco” polaroid */
}

/* Botones anteriores/siguiente */
.mc-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--btn-size);
  height: var(--btn-size);
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 2;
}

.mc-btn.prev{ left: 8px; }
.mc-btn.next{ right: 8px; }

.mc-btn:focus-visible{ outline: 3px solid #fff; }

/* Estilo “polaroid” */
.polaroid{
  margin: 0;
  padding: 14px 14px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border: 1px solid var(--border);
}

.polaroid img{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;   /* look vertical tipo instantánea */
  object-fit: cover;
  border-radius: 12px;
}

/* Opcional: en pantallas grandes, “peeking” de bordes al 90% */
@media (min-width: 900px){
  .mc-slide{ min-width: 90%; }
}


html { scroll-behavior: smooth; }






/* =========================
   Ajustes SOLO desktop (≥1024px)
   ========================= */
@media (min-width:1024px){

  /* 1) “¡Nos casamos!”: centrar y limitar el ancho de la tarjeta */
  .intro .card{
    max-width: 780px;
    margin-inline: auto;
  }

  /* 2) Ubicaciones: que el H2 “Celebración” quede arriba de la 2ª columna
        y centrado (ese <h2> está dentro del grid). */
  #ubicaciones .grid{
    align-items: start;
    gap: 28px;
  }
  #ubicaciones .grid > h2{
    grid-column: 2;          /* lo fuerza a la columna derecha */
    text-align: center;
    margin: 0 0 10px;
  }
  #ubicaciones .grid > article{
    align-self: start;
  }

  /* 3) Carrusel: hacerlo más estrecho y centrado en desktop */
  #recuerdos .mem-carousel{
    max-width: 920px;
    margin-inline: auto;
  }

  /* 4) Mesa de regalos: tarjeta más compacta y centrada */
  .registry .card{
    max-width: 880px;
    margin-inline: auto;
  }
}


/* ===== FIX: “¡Nos casamos!” cuando NO hay foto ===== */
/* Por defecto, NO reserves la columna de 120px */
.guest-card{
  grid-template-columns: 1fr;
}

/* Si SÍ hay foto (o placeholder), entonces usa 2 columnas */
@supports(selector(:has(*))){
  .guest-card:has(img.guest-photo),
  .guest-card:has(.ph-placeholder){
    grid-template-columns: 120px 1fr;
  }
  .guest-card:has(img.guest-photo) .guest-text,
  .guest-card:has(.ph-placeholder) .guest-text{
    grid-column: 2; /* texto a la derecha de la foto */
  }
}

/* (opcional fallback si algún navegador no soporta :has)
   cuando vayas a mostrar foto, puedes agregar la clase .has-photo al contenedor */
.guest-card.has-photo{ grid-template-columns: 120px 1fr; }
.guest-card.has-photo .guest-text{ grid-column: 2; }


/* ===== Centrar contenido de la intro SOLO en escritorio ===== */
@media (min-width:1024px){
  /* la tarjeta ya la habíamos estrechado; la centramos por si acaso */
  .intro .card{
    max-width: 820px;
    margin-inline: auto;
  }

  /* dentro de la tarjeta: centra el grid y su contenido */
  .guest-card{
    justify-items: center;   /* centra el contenido del grid */
  }

  /* texto y elementos internos centrados */
  .guest-text{
    max-width: 720px;        /* ancho cómodo de lectura */
    text-align: center;
    margin-inline: auto;
  }

  /* asegura que el botón quede centrado */
  .guest-text .btn{
    display: inline-block;
    margin-inline: auto;
  }

  /* el aviso en rojo también centrado */
  .guest-text .muted,
  .guest-text .notice,
  .guest-text p{
    margin-left: auto;
    margin-right: auto;
  }
}



/* Ubicaciones: desktop centrado en una columna */
@media (min-width:1024px){
  #ubicaciones .container{
    max-width: 980px;
    margin-inline: auto;     /* centra el contenedor */
  }
  #ubicaciones h2{
    text-align: center;
    margin: 0 0 10px;
  }
  /* evita layouts raros si .grid trae columnas de otro lado */
  #ubicaciones .grid{ display:block; }

  /* cards centradas y con ancho cómodo */
  #ubicaciones .card{
    max-width: 720px;
    margin: 0 auto 26px;     /* centra y separa */
  }

  /* mapa y botones */
  #ubicaciones .loc-map iframe{
    width: 100%;
    height: 280px;
    border: 0;
  }
  #ubicaciones .btn-row{
    justify-content: center;
    gap: 12px;
  }
}
