/* ===== RESET ===== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* ===== VARIABLES ===== */
  :root {
    --color-principal: #d4af8c;
    --fondo-claro: #fdfaf7;
    --fondo-blanco: #ffffff;
    --fondo-beige: #f7f2ec;
    --fondo-dorado-suave: #faf6f2;
    --texto: #333;
    --fuente-subtitulo: "Cormorant Garamond", cursive;
  }

  /* ===== BASE ===== */
  body {
    font-family: "Montserrat", sans-serif;
    color: var(--texto);
    background: var(--fondo-claro);
    scroll-behavior: smooth;
    
  }

  .texto-contador {
    font-family: var(--fuente-subtitulo);
    font-size: 20px;
    color: rgb(120, 113, 108);
    max-width: 500px;
    text-align: center;
    margin: 20px auto;
    font-style: italic;
  }

  /* ===== HERO ===== */
  .hero {
    height: 100vh;
    background: url("../img/Paloma\ y\ Dani-166.jpg") center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
  }

  .hero-content {
    position: relative;
    color: white;
    text-align: center;
    animation: fadeUp 1.5s ease;
  }

  .subtitulo {
    letter-spacing: 3px;
    font-size: 13px;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-family: "Mea Culpa", cursive;
    font-size: 130px;
    font-weight: 400;
    line-height: 0.85;
  }

  .hero span {
    font-family: "Mea Culpa", cursive;
    font-size: 65px;
    display: inline-block;
    margin: -10px 0;
  }

  .fecha {
    margin-top: 20px;
    font-size: 14px;
    letter-spacing: 2px;
  }

  .btn-hero {
    margin-top: 30px;
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    transition: 0.3s;
  }

  .btn-hero:hover {
    background: white;
    color: black;
  }

  /* ===== HISTORIA ===== */
  .historia {
    background: var(--fondo-blanco);
  }

  /* GALERÍA / CARRUSEL */
  .galeria-historia {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }

  .galeria-track {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    user-select: none;
    cursor: grab;
  }

  .galeria-track.dragging {
    cursor: grabbing;
  }

  /* IMÁGENES: todas parten del mismo tamaño base (el del centro)      */
  /* y cada "rol" las mueve/escala/atenúa con transición suave, así    */
  /* que al cambiar de rol se ven físicamente desplazarse de un sitio  */
  /* a otro (la que pasa al lado queda detrás, por el z-index menor).  */
  .img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 340px;
    height: 400px;
    margin: -200px 0 0 -170px;
    overflow: hidden;
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease, filter 0.6s ease, box-shadow 0.6s ease;
    pointer-events: none;
  }

  .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    pointer-events: none;
  }

  /* CENTRO: protagonista, nítida y delante */
  .rol-centro {
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: brightness(1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    z-index: 3;
  }

  /* LATERALES: más pequeñas, apagadas y detrás del centro */
  .rol-izquierda,
  .rol-derecha {
    opacity: 0.55;
    filter: brightness(0.6);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    pointer-events: auto;
    z-index: 1;
  }

  .rol-izquierda {
    transform: translateX(-230px) scale(0.68);
  }

  .rol-derecha {
    transform: translateX(230px) scale(0.68);
  }

  .rol-izquierda:hover,
  .rol-derecha:hover {
    opacity: 0.8;
    filter: brightness(0.75);
  }

  /* FLECHAS */
  .galeria-flecha {
    background: white;
    border: 1px solid #eee;
    color: #3a332f;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
  }

  .galeria-flecha:hover {
    background: var(--color-principal);
    color: white;
    border-color: var(--color-principal);
  }

  /* TEXTO */
  .texto-historia {
    max-width: 700px;
    margin: 40px auto 0;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
  }

  /* ===== SECCIONES ===== */
  section {
    padding: 100px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* 🎨 DIFERENCIACIÓN DE SECCIONES */
  .contador {
    background: var(--fondo-claro);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* ===== DETALLES ===== */

  .detalles {
    background: var(--fondo-blanco);
  }

  .subtitle {
    font-size: 12px;
    letter-spacing: 3px;
    color: #999;
    margin-bottom: 10px;
  }

  .decorador {
    width: 100px;
    height: 1px;
    background: #ddd;
    margin: 40px auto 40px;
    position: relative;
  }

  .decorador::after {
    content: "❤";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--color-principal);
  }

  /* GRID */
  .detalles-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* CARD */
  .detalle-card {
    background: white;
    padding: 40px 30px;
    width: 300px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: 0.3s;
  }

  .detalle-card:hover {
    transform: translateY(-5px);
  }

  /* ICONO */
  .icono {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    align-self: center;
    background: #faf6f2;
  }

  /* ICONO IMAGEN */
  .icono img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.8;
  }

  /* TEXTOS */
  .detalle-card h3 {
    font-family: "Playfair Display", serif;
    margin-bottom: 15px;
  }

  .fecha-texto {
    font-style: italic;
    color: #666;
  }

  /* HORARIO */
  .horario div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
  }

  .horario span {
    font-weight: 500;
  }

  .horario p {
    color: #999;
    font-size: 14px;
  }

  /* UBICACIÓN */
  .ubicacion {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
  }

  /* BOTÓN OUTLINE */
  .btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 30px;
    background: transparent;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    color: #333;
    margin-top: 10px;
    width: auto;
  }

  .btn-outline:hover {
    background: var(--color-principal);
    border-color: var(--color-principal);
    color: #3a332f;
    transition: 0.3s;
  }
  /* ALOJAMIENTO */
  .alojamiento {
    margin-top: 50px;
    background: #f3eee9;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .alojamiento-left {
    display: flex;
    gap: 20px;
    align-items: center;
    text-align: left;
  }

  /* GRID */
  .detalles-grid {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    align-items: stretch;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* CARD */
  .detalle-card {
    background: white;
    padding: 40px 30px;
    flex: 1 1 calc(25% - 30px); /* 👈 4 columnas */
    min-width: 250px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
  }

  .detalle-card .btn-outline {
    margin-top: auto;
    align-self: flex-start;
  }

  .detalle-card:hover {
    transform: translateY(-5px);
  }

  /* ICONO */
  .icono {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    align-self: center;
    background: #faf6f2;
  }

  /* ICONO IMAGEN */
  .icono img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.8;
  }

  /* TEXTOS */
  .detalle-card h3 {
    font-family: "Playfair Display", serif;
    margin-bottom: 15px;
  }

  .fecha-texto {
    font-style: italic;
    color: #666;
  }

  /* HORARIO */
  .horario div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
  }

  .horario span {
    font-weight: 500;
  }

  .horario p {
    color: #999;
    font-size: 14px;
  }

  /* UBICACIÓN */
  .ubicacion {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
  }

  /* BOTÓN OUTLINE */
  .btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 30px;
    background: transparent;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    color: #333;
    margin-top: 10px;
    width: auto;
  }

  .btn-outline:hover {
    background: var(--color-principal);
    border-color: var(--color-principal);
    color: #3a332f;
    transition: 0.3s;
  }

  /* BLOQUE NIÑOS (ANCHO COMPLETO) */
  .info-ninos {
    flex: 0 0 100%; /* 👈 ocupa toda la fila */
    background: #f3eee9;
    padding: 60px 30px;
    border-radius: 20px;
    text-align: center;
  }

  /* ICONO SUPERIOR */
  .icono-top {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .icono-top img {
    width: 30px;
    opacity: 0.6;
  }

  /* SUBTÍTULO */
  .info-ninos .subtitle {
    font-size: 11px;
    letter-spacing: 3px;
    color: #b5b5b5;
    margin-bottom: 15px;
  }

  /* TÍTULO */
  .info-ninos h2 {
    font-family: "Playfair Display", serif;
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #3a332f;
  }

  /* TEXTO */
  .texto-ninos {
    max-width: 650px;
    margin: 40px auto;
    font-size: 16px;
    line-height: 1.8;
    color: #6f665f;
  }

  .texto-ninos p {
    margin-bottom: 20px;
  }

  /* CURSIVA */
  .texto-ninos em {
    font-style: italic;
    color: #a88c73;
  }

  /* DECORADOR ABAJO */
  .decorador-bottom {
    width: 120px;
    height: 1px;
    background: #ddd;
    margin: 40px auto 0;
    position: relative;
  }

  .decorador-bottom::after {
    content: "❤";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #d4af8c;
    opacity: 0.6;
  }

  /* RESPONSIVE */

  /* Tablet */
  @media (max-width: 1024px) {
    .detalle-card {
      flex: 1 1 calc(50% - 30px); /* 👈 2 columnas */
    }
  }

  /* Móvil */
  @media (max-width: 600px) {
    .detalle-card {
      flex: 1 1 100%;
      text-align: center;
    }

    .detalle-card .btn-outline {
      align-self: center;
    }

    .horario {
      display: inline-flex;
      flex-direction: column;
      align-self: center;
      width: auto;
    }

    .horario div {
      display: grid;
      grid-template-columns: 50px 1fr;
      align-items: baseline;
      justify-content: start;
      gap: 14px;
      text-align: left;
    }

    .horario span {
      text-align: right;
    }
  }

  /* BOTÓN OSCURO */
  .btn-dark {
    background: #222;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 12px;
  }

  .asistencia {
    background: var(--fondo-beige);
  }

  .regalos {
    background: var(--fondo-dorado-suave);
  }

  .info {
    background: var(--fondo-blanco);
  }

  /* ===== TÍTULOS ===== */
  h2 {
    font-family: var(--fuente-subtitulo);
    color: #44403c;
    font-weight: 300;
    font-size: 50px;
    margin-bottom: 20px;
  }

  /* ===== CONTADOR ===== */
  .countdown {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    margin-top: 20px;
    color: #44403c;
    font-family: Cormorant Garamond, serif;
  }

  .countdown span {
    font-size: 90px;
    font-weight: 300;
  }

  /* ===== DETALLES ===== */
  .cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .card {
    background: white;
    padding: 30px;
    width: 260px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
  }

  .card:hover {
    transform: translateY(-5px);
  }

  /* ===== FORMULARIO ===== */
  .form-card {
    max-width: 600px;
    margin: 60px auto 0;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    text-align: left;
  }

  /* ===== LABELS ===== */
  form label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a0a0a0;
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
  }

  /* ===== INPUTS ===== */
  input,
  textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
    font-size: 14px;
    background: transparent;
    outline: none;
    transition: 0.3s;
    font-family: "Montserrat";
  }

  /* FOCUS */
  input:focus,
  textarea:focus {
    border-bottom: 1px solid var(--color-principal);
  }

  /* PLACEHOLDER */
  input::placeholder,
  textarea::placeholder {
    color: #c5c5c5;
    font-size: 13px;
  }

  /* ===== CHECKBOX ===== */
  /* Contenedor del label */
  .switch {
    display: flex;
    align-items: center;
    gap: 10px; /* separación entre switch y texto */
    cursor: pointer;
    font-size: 13px;
    color: #555;
  }

  /* Ocultamos el checkbox original */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  /* Slider (el toggle) */
  .slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 34px;
    transition: 0.4s;
    flex-shrink: 0; /* evita que se achique */
  }

  /* Círculo del toggle */
  .slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
  }

  /* Activado */
  .switch input:checked + .slider {
    background-color: var(--color-principal, #2c2623);
  }

  .switch input:checked + .slider::before {
    transform: translateX(26px);
  }

  /* Texto del label */
  .switch-text {
    user-select: none; /* evita que se seleccione el texto al hacer clic */
  }

  #acompananteField {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.6s ease;
  }

  /* CUANDO ESTÁ ACTIVO */
  #acompananteField.active {
    max-height: 100px; /* suficiente para el contenido */
    opacity: 1;
    transform: translateY(0);
    margin-top: 10px;
  }

  /* ===== TEXTAREA ===== */
  textarea {
    margin-top: 10px;
    resize: none;
  }

  /* ===== BOTÓN ===== */
  button {
    margin-top: 30px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2c2623, #1a1715);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
  }

  button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
  }

  /* ===== HIDDEN ===== */
  /*.hidden {
    display: none;
  }*/

  /* ===== REGALOS ===== */
  .cuenta {
    margin-top: 15px;
    font-weight: bold;
    color: var(--color-principal);
  }

  /* ===== INFO ===== */
  .info {
    font-size: 14px;
    max-width: 600px;
    margin: auto;
  }

/* ===== MODAL PARKING ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  position: relative;
  background: #fff;
  max-width: 440px;
  width: 100%;
  padding: 45px 35px 35px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeUp 0.35s ease;
}

.modal-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  color: #3a332f;
  margin-bottom: 15px;
}

.modal-texto {
  font-size: 14px;
  color: #6f665f;
  line-height: 1.6;
  margin-bottom: 25px;
}

.modal-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-links .btn-outline {
  margin-top: 0;
  width: 100%;
  text-align: center;
}

.modal-divider {
  width: 60px;
  height: 1px;
  background: #ddd;
  margin: 20px auto;
}

.modal-card .btn-dark {
  display: inline-block;
  width: 100%;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  margin-top: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  z-index: 1;
}

.modal-close:hover {
  color: #333;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #eae7e2;
  padding: 60px 20px 10px; /* 👈 más aire */
}

/* CONTENEDOR GENERAL */
.footer-top,
.footer-line,
.footer-bottom {
  max-width: 850px; /* 👈 MÁS ESTRECHO 🔥 */
  margin-left: auto;
  margin-right: auto;
}

/* TOP */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px; /* 👈 más separación */
}

/* FECHA */
.footer-date {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 14px;
  color: #7a6f66;
}

/* LINEA */
.footer-line {
  height: 1px;
  background: #e5dfd9;
  margin-bottom: 45px;
}

/* BOTTOM */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #8c837a;
}

/* UBICACIÓN */
.footer-location {
  font-family: "Cormorant", serif;
  font-style: italic;
  
}
.footer-location a {
  text-decoration: none;
  color: #8c837a; /* mismo color que el texto */
  font-family: "Cormorant", serif;
  font-style: italic;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .footer {
    padding: 40px 20px 40px;
  }

  .footer-top {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}



  /* ===== ANIMACIONES ===== */
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .hero h1 {
      font-size: 50px;
    }
    .galeria-historia {
      gap: 8px;
    }

    .galeria-track {
      height: 260px;
    }

    .galeria-flecha {
      width: 32px;
      height: 32px;
      font-size: 18px;
    }

    .img {
      width: 220px;
      height: 260px;
      margin: -130px 0 0 -110px;
    }

    .rol-izquierda {
      transform: translateX(-140px) scale(0.65);
    }

    .rol-derecha {
      transform: translateX(140px) scale(0.65);
    }

    .countdown {
      flex-wrap: wrap;
      gap: 20px;
    }

    .cards {
      flex-direction: column;
      align-items: center;
    }
    .detalles-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .alojamiento {
      flex-direction: column;
      text-align: center;
    }

    .alojamiento-left {
      flex-direction: column;
      text-align: center;
    }


    @media (max-width: 1300px) {
      .detalles-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
  }