/* =========================
   TIPOGRAFÍAS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Inter:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tangerine:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,500&display=swap');

/* =========================
   VARIABLES
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary: #1f3a5f;
  --secondary: #3b6ea5;
  --bg: #f7f9fc;
  --card: #ffffff;
}

/* OVERLAY FULLSCREEN */
#intro-envelope {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(#f7f9fc, #eef3f9);

  z-index: 9999;

  transition: opacity 0.8s ease;
}

/* SOBRE CONTENEDOR */
.envelope {
  width: 300px;
  height: 200px;
  position: relative;
  cursor: pointer;
}

/* CUERPO */
.envelope-body {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* PLIEGUE INFERIOR */
.envelope-body::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f1f4f8;
  clip-path: polygon(0 100%, 50% 55%, 100% 100%);
}

/* SOLAPA */
.flap {
  position: absolute;
  inset: 0;
  background: #e6ecf5;
  clip-path: polygon(0 0, 100% 0, 50% 60%);
  transform-origin: top;
  transition: transform 0.8s ease;
  z-index: 2;
}

/* SOMBRA SOLAPA */
.flap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.08), transparent);
}

/* CARTA */
.letter {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;

  text-align: center;
  z-index: 1;
}

.letter h2 {
  font-family: 'Playfair Display', serif;
  color: #1f3a5f;
  margin: 0;
}

.letter p {
  font-size: 14px;
  color: #777;
  margin-top: 6px;
}

/* SELLO */
.seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 70px;
  height: 70px;

  background: white;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);

  z-index: 3;
}

.seal img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

/* ANIMACIÓN ABRIR */
.envelope.open .flap {
  transform: rotateX(180deg);
}

.envelope.open .seal {
  transform: translate(-50%, -120%) scale(0.8);
  opacity: 0;
  transition: all 0.6s ease;
}

.envelope.open {
  transform: translateY(-40px) scale(1.05);
  transition: all 0.6s ease;
}

/* OCULTAR */
#intro-envelope.hide {
  opacity: 0;
  pointer-events: none;
}


/* =========================
   BASE
========================= */
body {
  margin: 0;
  background:
    linear-gradient(#f7f9fc8f, #f7f9fc8f),
    url("assets/descarga.jfif");
  font-family: 'Cormorant Garamond', 'Inter', system-ui, sans-serif;
  /* background: var(--bg); */
  font-style: italic;
  color: #333;
}

/* =========================
   HERO
========================= */
.hero {
  text-align: center;
  margin-top: -5%;
}

/* Contenedor de imagen */
.hero-img {
  position: relative;
  width: 100%;
  height: 600px;
  /* acorde a foto vertical 1570x2356 */
  overflow: hidden;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

/* Imagen */
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 1) 55%,
      rgba(0, 0, 0, 0) 85%);
  mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, 0) 91%);
}

/* Overlay general + fade a blanco */
.hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.10) 60%,
    rgba(0,0,0,0.05) 75%,
    rgba(0,0,0,0) 100%
  ); */
}

/* =========================
   TEXTO SOBRE IMAGEN
========================= */
.hero-text {
  position: absolute;
  top: 63%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  text-align: center;
  z-index: 3;
}

/* Banda oscura SOLO detrás del texto */
.hero-text::before {
  content: "";
  position: absolute;
  inset: -12px 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgb(0 0 0 / 18%) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: -1;
  color: brown;
}

/* Nombre */
.hero-text h1 {
  margin: 0;
  font-family: 'Tangerine';
  font-size: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #373d57;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Subtítulo */
.hero-text p {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}



/* =========================
   CONTADOR
========================= */
/* CONTENEDOR CONTADOR */
.contador {
  display: flex;
  justify-content: center;
  gap: 24px;
  max-width: 420px;
  margin: 20px auto;
  text-align: center;
}

.container-contador h2 {
  font-weight: 300;
}

/* BLOQUE */
.bloque {
  display: flex;
  width: 20%;
  flex-direction: column;
  align-items: center;
}

/* NUMERO */
.bloque span {
  font-size: 44px;
  font-weight: 600;
  font-family: serif;
  color: var(--primary);
  line-height: 1;
}

/* TEXTO */
.bloque p {
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666;
}

/* =========================
   CALENDARIO
========================= */

.calendar-section {
  margin-top: 14px;
}

.calendar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

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

.calendar-link .line {
  flex: 1;
  height: 1px;
  background: #d8dde6;
}

.calendar-text {
  font-size: 18px;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 1px;

  display: flex;
  align-items: center;
  gap: 8px;

  transition: .25s ease;
}

.calendar-link:hover .calendar-text {
  transform: translateY(-2px);
  color: var(--secondary);
}

/* =========================
   ACCIONES CIRCULARES
========================= */

.acciones {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.accion {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--primary);
  font-size: 14px;
  width: 30%;
}

.icono {
  width: 64px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 1px solid var(--primary);

  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);

  transition: .25s ease;
}

.icono img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.9;
}

.accion:hover .icono {
  /* background:var(--primary); */
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.accion span {
  margin-top: 10px;
  font-size: 15px;
  letter-spacing: 1px;
  font-weight:600;
}

.accion:hover .icono {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* =========================
   SECCIÓN FOTO
========================= */

.seccion-foto {
  width: 100%;
  padding: 0;
  margin-bottom: 0;
}

.seccion-foto img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}



/* =========================
   RECEPCIÓN
========================= */

.recepcion {
  max-width: 420px;
  margin: 40px auto;
  margin-top: 0;
  padding: 40px 20px;

  background: white;

  text-align: center;
  border-radius: 16px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  margin-top: -40px;
  position: relative;
}

.recepcion h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  margin-bottom: 10px;
}

.icono-recepcion {
  width: 34px;
  margin: 16px auto 16px;
  display: block;
}

.hora-recepcion {
  font-size: 24px;
  color: var(--primary);
  margin: 6px 0;
}

.lugar-recepcion {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.foto-lugar {
  width: 100%;
  border-radius: 14px;
  margin: 16px 0 20px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.ubicacion-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary);
  font-size: 18px;
}

.ubicacion-btn img {
  width: 18px;
}



/* =========================
   SECCIONES
========================= */
section {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.card {
  background: #f7f9fc8f;
  margin: 12px;
  padding: 20px;
  text-align: center;
  margin: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

h2,
h3 {
  margin-top: 0;
}

/* =========================
   FECHA BODA
========================= */

.fecha {
  margin-top: 28px
}

.fecha-linea {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* líneas */
.line {
  flex: 1;
  height: 1px;
  background: #d8dde6;
}

.texto {
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
}

.numero {
  font-size: 34px;
  font-family: serif;
  color: var(--primary);
  margin: 0 8px;
}

.hora {
  text-align: center;
  margin-top: 10px;
}

/* =========================
   BOTONES
========================= */
/* .btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border: none;
  font-size: 16px;
  margin-top: 12px;
}

.btn.secondary {
  background: var(--secondary);
} */

/* =========================
   ICONOS
========================= */
.icons {
  display: flex;
  justify-content: space-around;
  margin-top: 12px;
}

.icons div {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 22px;
}

.icons span {
  font-size: 12px;
}

/* =========================
   GALERÍA
========================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.gallery img {
  width: 100%;
  border-radius: 12px;
}



.c4 {
  background: #cadff3;
}

.c3 {
  background: #aac9e6;
}

.c2 {
  background: #3b6ea5;
}

.c1 {
  background: #1f3a5f;
}

.c5 {
  background: #95a58d;
}

.c6 {
  background: #c0cfb2;
}


/* =========================
   DRESS CODE
========================= */

.dress {
  text-align: center;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

/* icono atuendo */
.dress img {
  width: 60px;
  display: block;
}

/* títulos */
.dress h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  margin-bottom: 6px;
}

.dress h3 {
  font-size: 22px;
  margin-top: 16px;
}

/* texto dress code */
.dress p {
  margin: 4px 0 14px;
  font-size: 20px;
}

.dress .divider {
  width: 60%;
  margin-bottom: 16px;
  height: 100%;
}

/* nota paleta */
.dress-note {
  font-size: 20px;
  color: #666;
  line-height: 1.4;
  max-width: 320px;
  margin: 0 auto 16px;
}

/* paleta */
.colors {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* círculos */
.colors span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* traslape */
.colors span+span {
  margin-left: -14px;
}

/* =========================
   Absolute
========================= */
.absolute {
  position: relative;
}

.absolute img {
  position: absolute;
  width: 50%;
  top: -4px;
  LEFT: 27%;
  Z-INDEX: -0;
  transform: rotate(32deg);
  opacity: 0.7;
}


/* =========================
   MESA DE REGALOS
========================= */
.mesa-regalos {
  background: #1f3a5f;
  color: white;
  padding: 50px 20px;
  text-align: center;
}

.regalos-back {
  display: none;
}

.mesa-regalos.active .regalos-front {
  display: none;
}

.mesa-regalos.active .regalos-back {
  display: block;
}

.regalos-front p {
  font-size: 20px;
}

.opciones {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.opciones button {
  padding: 10px 16px;
  border: none;
  border-radius: 20px;
  background: white;
  color: #1f3a5f;
  cursor: pointer;
}

/* =========================
   MESA REGALOS BACK
========================= */

.regalos-back {
  display: none;
  text-align: center;
}

.mesa-regalos.active .regalos-back {
  display: block;
}

/* botón volver */

.volver {
  background: transparent;
  border: none;

  color: white;
  font-size: 16px;

  display: flex;
  align-items: center;
  gap: 6px;

  margin-bottom: 20px;

  cursor: pointer;

  opacity: .85;
  transition: .25s ease;
}

.volver:hover {
  opacity: 1;
  transform: translateX(-4px);
}

/* contenido regalo */
#contenidoRegalo {
  font-family: sans-serif;
}

#contenidoRegalo h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}

#contenidoRegalo p {
  margin: 6px 0 12px;
  font-size: 16px;
}

#contenidoRegalo a {
  display: inline-block;
  margin-top: 10px;

  background: white;
  color: #1f3a5f;

  padding: 10px 16px;
  border-radius: 20px;

  text-decoration: none;

  font-size: 14px;
}

/* =========================
   FOTO EN MEDIO
========================= */


.foto-separador {
  max-width: 420px;
  margin: 40px auto;
}

.foto-separador img {
  width: 100%;
  height: 340px;
  object-fit: cover;

  border-radius: 16px;

  display: block;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* =========================
   LINKS
========================= */
.links a {
  display: block;
  margin: 8px 0;
  color: var(--primary);
  font-weight: 600;
}

/* =========================
   FORMULARIO
========================= */
input[type="text"] {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-bottom: 12px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================
   NOTA
========================= */
.note {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #666;
}




/* =========================
   NOTA
========================= */
#invitacion {
  max-width: 420px;
  margin: 40px auto;
  margin-top: 70px;
  padding: 26px 22px;
  background: white;
  border-radius: 16px;

  text-align: center;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* TITULOS */
#invitacion h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  margin-bottom: 6px;
  margin-top: 10px;
}

#invitacion h3 {
  font-size: 24px;
  margin-bottom: 22px;
  color: #555;
}

/* BLOQUE PERSONA */
#formAsistencia div {
  margin: 18px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}

/* NOMBRE */
#formAsistencia p {
  font-weight: 600;
  margin-bottom: 10px;
}

/* OPCIONES */
#formAsistencia label {
  font-size: 18px;
  margin: 0 6px;
  cursor: pointer;
}

/* RADIO */
#formAsistencia input[type="radio"] {
  margin-right: 4px;
  accent-color: var(--primary);
}

/* ESTADO CONFIRMADO */
#formAsistencia p.estado-confirmado {
  color: #2e7d32;
  font-size: 14px;
}

/* ESTADO NO ASISTE */
#formAsistencia p.estado-no {
  color: #c62828;
  font-size: 14px;
}

/* BOTON CONFIRMAR */
#formAsistencia button {
  margin-top: 22px;
  padding: 12px 20px;

  border: none;
  border-radius: 8px;

  background: var(--primary);
  color: white;

  font-size: 15px;
  cursor: pointer;

  transition: .25s ease;
}

#formAsistencia button:hover {
  background: var(--secondary);
  transform: translateY(-1px);
}

/* BOTON EDITAR */
#invitacion button {
  margin-top: 22px;
  padding: 12px 20px;

  border: none;
  border-radius: 8px;

  background: var(--primary);
  color: white;

  font-size: 15px;
  cursor: pointer;

  transition: .25s ease;
}

#invitacion button:hover {
  background: var(--secondary);
}





/* =========================
   CARRUSEL
========================= */

.gallery-section {
  max-width: 420px;
  margin: 60px auto;
  text-align: center;
}

.gallery-title {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  margin-bottom: 20px;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform .5s ease;
}

.carousel-track img {
  width: 100%;
  height: 340px;
  /* altura fija */
  object-fit: cover;
  flex-shrink: 0;
}

/* BOTONES */

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: .2s;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}





/* CONTENEDOR FAQ */
.faq {
  padding: 26px 22px;
  border-radius: 16px;

  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.faq .curs {
  font-size: 22px;
}

/* ITEM FAQ */
.faq-item {
  margin: 12px 0;
  border-radius: 12px;

  background: #fdfdfd;
  border: 1px solid #eee;

  overflow: hidden;
  transition: .25s ease;
}

/* HOVER */
.faq-item:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* PREGUNTA */
.faq-item summary {
  cursor: pointer;
  padding: 14px 18px;

  font-weight: 600;
  font-size: 20px;

  color: #333;
  list-style: none;
  position: relative;
}

/* quitar flecha default */
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* FLECHA */
.faq-item summary::after {
  content: "➤";
  font-size: 12px;

  position: absolute;
  right: 16px;

  transition: .25s ease;
  color: var(--primary);
}

/* FLECHA ABIERTA */
.faq-item[open] summary::after {
  transform: rotate(90deg);
}

/* RESPUESTA */
.faq-item p {
  padding: 0 18px 16px;
  margin: 0;

  color: #555;
  font-size: 20px;
  line-height: 1.55;

  animation: fadeIn .35s ease;
}

/* BOTON MAPA */
.map-btn2 {
  display: block;
  width: fit-content;

  margin: 10px auto 16px;
  padding: 8px 14px;

  border-radius: 8px;
  border: 1px solid var(--primary);

  font-size: 18px;
  text-decoration: none;

  color: var(--primary);
  background: white;

  transition: .25s ease;
}

.map-btn2:hover {
  background: var(--primary);
  color: white;
}

/* ANIMACION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}