/* Estilos para el pop-up de confirmación */
.confirmation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background-color: #fffbe9;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 85%;
    width: 350px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #c0392b;
    animation: scaleIn 0.3s ease;
}

.popup-icon {
    color: #c0392b;
    font-size: 4rem;
    margin-bottom: 15px;
}

.popup-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #c0392b;
    margin: 0 0 10px 0;
}

.popup-content p {
    color: #5d4037;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.close-popup-btn {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Open Sans', sans-serif;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.close-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 600px) {
  html, body {
    font-size: 16px !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }
  
  .section-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    background-color: rgba(255, 251, 233, 0.95) !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
  }
  
  .section-header h2 {
    /* font-size: 1.8rem !important; */
    font-size: 2.55rem !important;
    
  }
  
  .main-section {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .main-section.active {
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    visibility: visible;
    opacity: 1;
    z-index: 100;
  }
  .main-section.active > .container {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100vh !important;
    width: 100% !important;
    padding-bottom: 80px !important; /* Espacio para el menú inferior */
    padding-top: 70px !important; /* Espacio para el encabezado fijo */
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 5 !important;
    display: block !important;
  }
  
  /* Asegurar que todos los contenedores de contenido puedan hacer scroll */
  .details-content, 
  .location-content, 
  .rsvp-form-container, 
  .dress-code-content {
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }
  
  /* Permitir que las cards se muestren verticalmente */
  .detail-card.reception.card-style,
  .detail-image-frame.card-style {
    width: 100% !important;
    margin-bottom: 20px !important;
    max-width: 100% !important;
  }
  
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 65px;
    z-index: 20000;
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    pointer-events: auto;
  }
  /* Ocultar los puntos del carrusel fuera de #inicio */
  .main-section:not(#inicio) .carousel-controls {
    display: none !important;
  }
}
  .main-section.active > .container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 80px;
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 65px;
    z-index: 20000;
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    pointer-events: auto;
  }
  /* Ocultar los puntos del carrusel fuera de #inicio */
  .main-section:not(#inicio) .carousel-controls {
    display: none !important;
  }

/* --- Estilos migrados desde el bloque <style> de index.html para la sección detalles --- */
/* Limpieza: Se eliminan duplicados, se mantiene solo la versión más específica y responsiva de cada regla para la sección detalles */
.image-zoom-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hacienda-img {
  cursor: zoom-in;
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-sizing: border-box;
}
.hacienda-caption {
  display: block;
  margin-top: 1.1rem;
  text-align: center;
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #a0522d;
  font-style: italic;
}
.reception-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 340px;
}
.reception-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.5rem;
}
.reception-icons i {
  font-size: 3rem;
  color: #c0392b;
}
.reception-title {
  margin-bottom: 1.1rem;
  margin-top: 0;
}
.reception-content {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}
.reception-detail-row.left-align {
  margin-bottom: 0.9rem;
}
.reception-detail-row.left-align:last-child {
  margin-bottom: 0;
}
@media (max-width: 900px) {
/* Responsive layout for details section */
.details-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 1rem;
}

@media (max-width: 900px) {
  .details-content {
    flex-direction: column;
    align-items: center !important; /* Forzar alineación centrada */
    justify-content: center !important; /* Forzar justificación centrada */
    gap: 1.2rem;
    width: 100%; /* Cambiado a 100% para mejor control */
    max-width: 100%; /* Cambiado a 100% */
    margin: 0 auto;
    box-sizing: border-box;
    /* Reorganiza los elementos para dispositivos móviles */
    display: flex;
    flex-direction: column;
    padding: 0; /* Eliminar padding horizontal */
  }
  .details-content .detail-image-frame.card-style {
    order: 2; /* Mover la imagen al segundo lugar */
    margin-top: 1rem; /* Añadir espacio entre los elementos */
    margin-left: auto !important; /* Centro horizontal forzado */
    margin-right: auto !important; /* Centro horizontal forzado */
    width: 85% !important; /* Ancho ajustado para asegurar que se vea centrado */
    margin-bottom: 0; /* Elimina margen inferior */
    box-sizing: border-box;
  }
  .details-content .detail-card.reception.card-style {
    order: 1; /* Mover los detalles al primer lugar */
    margin-bottom: 0; /* Quitar el margen inferior ya que ahora va primero */
    margin-left: auto !important; /* Centro horizontal forzado */
    margin-right: auto !important; /* Centro horizontal forzado */
    width: 85% !important; /* Ancho ajustado para asegurar que se vea centrado */
    box-sizing: border-box;
  }
  .detail-image-frame.card-style,
  .detail-card.reception.card-style {
    max-width: 85% !important;
    min-width: 0;
    padding: 0.7rem;
    box-sizing: border-box;
    overflow: visible;
    border-radius: 12px;
  }
  .reception-card-inner {
    min-height: 0;
    padding: 0;
    text-align: center;
  }
  .reception-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
    box-sizing: border-box;
    text-align: center;
  }
  .hacienda-img {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    display: block;
  }
}
  .hacienda-caption {
    font-size: 1.5rem;
    margin-top: 0.7rem;
  }
  .reception-title {
    font-size: 1.5rem;
    margin-bottom: 0.9rem;
  }
  .reception-icons i {
    font-size: 2.3rem;
  }
  .reception-detail-row.left-align {
    font-size: 1.15rem;
    margin-bottom: 0rem;
  }
}
/* UNIFICACIÓN Y REFORZAMIENTO DEL MENÚ INFERIOR */
.bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  z-index: 20000 !important;
  height: 65px !important;
  box-sizing: border-box !important;
  display: flex !important;
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%) !important;
  border-top: 1px solid rgba(255,255,255,0.2) !important;
  visibility: visible !important;
  opacity: 1 !important;
  justify-content: space-around;
  align-items: center;
  padding: 5px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  pointer-events: auto !important;
}

html, body {
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  position: static !important;
  height: 100vh !important;
}

/* Ajuste de altura para secciones principales en mobile: permite crecer y no tapa el menú */
.details-section,
.rsvp-section,
.dress-code-section,
.location-section {
  min-height: 100vh;
  height: auto;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}
/* Alineación izquierda solo para las filas de datos principales en el card de recepción */
.reception-detail-row.left-align {
    justify-content: flex-start;
    text-align: left;
}
/* El texto dentro de la fila también a la izquierda */
.reception-detail-row.left-align .reception-detail-text {
    text-align: left;
    width: auto;
}
/* --- Card frame y estilo para el card de Ceremonia & Recepción --- */
/* --- Card frame y estilo para el card de Ceremonia & Recepción --- */
/* --- Card frame y estilo para el card de Ceremonia & Recepción --- */
/* Card frame y estilo para el card de Ceremonia & Recepción */
.detail-card.reception.card-style {
    background: #fff;
    border: none;
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(192,57,43,0.18);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    margin: 1rem 0 1rem 0;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    transition: box-shadow 0.3s;
}
/* Título "Ceremonia & Recepción" con fuente Great Vibes */
/* Título "Ceremonia & Recepción" con fuente Great Vibes centrado */
.reception-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #c0392b;
    text-align: center;
    margin-bottom: 1.2rem;
    width: 100%;
}
/* Alineación izquierda para el contenido del card de recepción */
/* Contenido centrado dentro del card de recepción */
.reception-content {
    text-align: center;
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: center;
}
/* Íconos del card de recepción con color de título */
.reception-content .card-icon {
    color: #c0392b;
    margin-right: 0.7rem;
    font-size: 1.5rem;
    vertical-align: middle;
}
/* Ajuste para filas de datos en el card de recepción */
.reception-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}
/* Eliminado bloque duplicado de .bottom-nav en mobile para evitar conflictos */
    .detail-card.reception.card-style {
        width: 90vw !important;
        max-width: 90vw !important;
        min-width: 0 !important;
        margin: -1rem -5rem 1rem -5rem !important;
        padding: 1.1rem 0.5rem 0.5rem 0.5rem !important;
        align-items: stretch !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
    }
    .reception-title {
        font-size: 2rem;
        text-align: center;
        width: 100%;
    }
    .reception-content {
        width: 80% !important;
        align-items: flex-start !important;
        gap: 0.1rem !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .reception-detail-row.left-align {
        justify-content: flex-start !important;
        text-align: left !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
    }
    .reception-detail-row .reception-detail-text {
        word-break: break-word !important;
        white-space: normal !important;
        font-size: 1.05rem !important;
    }

/* --- Título elegante para Ceremonia & Recepción --- */
.reception-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #c0392b;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: normal;
    letter-spacing: 1px;
}

/* Contenido alineado a la izquierda dentro del card de recepción */
/* Contenido alineado a la izquierda dentro del card de recepción */
.reception-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-items: center;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

/* Íconos de detalles en el card de recepción */
.reception-content .card-icon,
.reception-content i {
    color: #c0392b !important;
    font-size: 2.3rem;
    margin: 0 auto 0.7rem auto;
    display: block;
    text-align: center;
    vertical-align: middle;
}

/* Ajuste para filas de datos con ícono y texto */
/* Ajuste para filas de datos con ícono y texto centrados en el card de recepción */
/* Ajuste para filas de datos con ícono y texto centrados en el card de recepción */
/* Ajuste para filas de datos con ícono y texto centrados en el card de recepción */
.reception-detail-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    justify-content: flex-start;
    width: 80%;
    max-width: 400px;
    min-width: 220px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
/* Centrado de íconos en el card de recepción */
/* Centrado vertical exacto de íconos en filas de recepción */
/* Mejor alineación vertical de íconos y texto en filas de recepción */
.reception-detail-row .card-icon,
.reception-detail-row i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    text-align: center;
    font-size: 1.35rem;
    line-height: 1;
    vertical-align: middle;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    top: 1px;
}
.reception-detail-row .reception-detail-text {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.3;
    position: relative;
    top: 1px;
    text-align: left;
    min-width: 0;
    flex: 1;
    padding-left: 0.2rem;
}
@media (max-width: 900px) {
    .detail-card.reception.card-style {
        max-width: 98vw;
        min-width: 0;
        width: 100vw;
        margin: 0 auto 1rem auto;
        padding: 1.2rem;
        overflow: visible !important;
        box-sizing: border-box !important;
    }
}
/* --- Modal para visor de imagen de la hacienda --- */
.modal-image-viewer {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.3s;
}
.modal-image-viewer .modal-content {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border: 4px solid #fff;
    background: #fff;
    object-fit: contain;
    margin-bottom: 1.2rem;
    display: block;
}
.modal-image-viewer .modal-caption {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    text-align: center;
    text-shadow: 1px 1px 6px #000;
    margin-bottom: 0.5rem;
}
.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 20001;
    text-shadow: 0 2px 8px #000;
    transition: color 0.2s;
}
.close-modal:hover {
    color: #e74c3c;
}
.acompanantes-full {
    width: 100%;
    text-align: center;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: #e74c3c;
    transition: color 0.2s;
}
.radio-option input[type="radio"] {
    display: none;
}
.radio-option input[type="radio"]:checked + .radio-custom i.fa-heart {
    color: #e74c3c;
    text-shadow: 0 0 6px #e74c3c44;
}
.radio-option input[type="radio"]:checked + .radio-custom i.fa-heart-broken {
    color: #c0392b;
    text-shadow: 0 0 6px #c0392b44;
}
.acompanantes-titulo {
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.acompanantes-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 1.2rem;
    width: 100%;
    margin-bottom: 0.7rem;
}
.acompanante-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 220px;
    min-width: 120px;
}
.acompanante-col label {
    font-weight: bold;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    text-align: center;
    width: 100%;
}
.acompanante-col select,
.acompanante-col input[type="text"],
.acompanante-col input[type="tel"] {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    display: block;
    font-size: 1rem;
    text-align: center;
    text-align-last: center;
    padding: 0.4rem 0.2rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Estilo específico para selects centrados */
.centered-select {
    text-align: center;
    text-align-last: center;
    -moz-text-align-last: center;
    -webkit-text-align-last: center;
}

@media (max-width: 900px) {
    .acompanantes-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    .acompanante-col {
        max-width: 100%;
        min-width: 0;
    }
    .acompanante-col select,
    .acompanante-col input[type="text"],
    .acompanante-col input[type="tel"] {
        max-width: 100%;
    }
}
@media (max-width: 768px) {
    .acompanantes-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    .acompanante-col {
        max-width: 100%;
    }
    .acompanante-col select {
        max-width: 100%;
    }
}
.acompanantes-titulo {
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
/* Centrado para pregunta de asistencia */
.asistencia-group {
    text-align: center;
}
.asistencia-label {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.7rem;
    text-align: center;
}

/* Centrado y ancho completo para Numero de Acompañantes */
.acompanantes-full {
    width: 100%;
    text-align: center;
    margin-bottom: 0.7rem;
}
.acompanantes-full label {
    font-weight: bold;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.2rem;
}
.acompanantes-full select {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
}
.acompanantes-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
    .acompanantes-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    .acompanantes-full select {
        max-width: 100%;
    }
}
/* RSVP acompañantes/adultos/niños en fila */
.acomp-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-end;
}
@media (max-width: 768px) {
    .acomp-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
}
/* Botón de música en la esquina superior izquierda */
.music-btn {
    position: fixed;
    top: 19px;
    left: 7px;
    z-index: 1001;
    background: rgba(255,255,255,0.7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.2s;
}
.music-btn:hover {
    background: #ffeaea;
}
.music-btn i {
    color: #e74c3c;
    font-size: 1.8rem;
    transition: color 0.2s;
    padding-top: 4px;
}
/* Reset and Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #fff;
    color: #333;
    padding-bottom: 130px; /* Default: espacio para bottom-section + bottom-nav */
}

/* Eliminada la regla global duplicada y débil de .bottom-nav */

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
    min-width: 50px;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-item:hover i,
.nav-item.active i {
    transform: scale(1.1);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Centered Home Button */
.home-button {
    position: relative;
    top: -10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    color: #c0392b !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #c0392b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.3s ease;
}

.home-button i {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: #c0392b;
}

.home-button span {
    display: none; /* Hide text for home button */
}

.home-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: #fff !important;
}

.home-button:hover i {
    color: #fff;
    transform: scale(1.1);
}

.home-button.active {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: #fff !important;
    transform: translateY(-3px);
}

.home-button.active i {
    color: #fff;
}
/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Carousel Styles */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 20;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background-color: #c0392b;
    border-color: #fff;
    transform: scale(1.3);
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 40px 60px 40px; /* No top padding, bottom padding for countdown */
    color: #fff;
    z-index: 10;
}

/* Names across top - desktop */
.names {
    font-family: 'Great Vibes', cursive;
    font-size: 6rem;
    margin-top: 20px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 240px;
    width: 100%;
    box-sizing: border-box;
}
.names .bride-name {
    flex: 1;
    text-align: left;
}
.names .groom-name {
    flex: 1;
    text-align: right;
}
.ampersand {
    font-size: 6rem;
    color: #e74c3c;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    flex: 0 0 auto;
    margin: 0 1rem;
    font-family: 'Great Vibes', cursive;
}

/* Date and countdown at page bottom - desktop (only on home page) */

/* Refuerzo: la barra solo se muestra si el body tiene home-active */

/* Por defecto, la barra está oculta SIEMPRE */
.bottom-section {
    position: fixed;
    bottom: 65px; /* Just above bottom navigation */
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
    z-index: 999;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}


/* Por defecto, la barra está oculta SIEMPRE */
.bottom-section {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
body.home-active .bottom-section {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.wedding-date {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    text-align: left;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    flex: 1;
    margin: 0;
}

.countdown {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    flex: 2;
}
.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.countdown-item label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
.scroll-btn {
    border: none;
    background-color: transparent;
    color: #333;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
    display: block;
    margin: 2rem auto;
}

.hero-section .scroll-btn {
    color: #fff;
}
.scroll-btn:hover {
    color: #c0392b;
}

/* Details Section */
.details-section {
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    padding: 0;
    background-image: url('fotos/pareja1.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.details-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.92);
    z-index: 1;
}

.details-section .container {
    position: relative;
    z-index: 10;
}
.section-header {
    text-align: center;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    background-color: rgba(255, 251, 233, 0.9);
    padding: 5px 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #c0392b;
}
.decorative-line {
    width: 100px;
    /* height: 3px; */
    /* background-color: #c0392b; */
    margin: 1rem auto;
}
.details-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: auto;
}
.detail-card {
    background-color: #fff;
    padding: 2rem;
    margin: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(37, 37, 37, 0.1);
    flex: 1 1 calc(50% - 2rem);
    max-width: 45%;
}
.card-icon {
    font-size: 3rem;
    color: #c0392b;
    margin-bottom: 1rem;
}
.detail-date,
.detail-time,
.detail-location,
.detail-address {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #333;
}

/* --- Marco decorativo usando imagen real de frame antiguo --- */
.detail-image-frame {
    background: #fff;
    border: none;
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(77, 19, 13, 0.18);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 420px;
    min-width: 260px;
    margin: 1rem 0 1rem 1rem;
    position: relative;
    overflow: hidden;
    transform: none;
}
.detail-image-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
    border: 2px solid #fff;
    background: #f8f8f8;
}
.detail-image-frame::before,
.detail-image-frame::after {
    display: none !important;
}
@media (max-width: 900px) {
    .detail-image-frame {
        max-width: 95vw;
        min-width: 0;
        width: 100%;
        margin: 0 auto 1rem auto;
        padding: 1.2rem;
    }
}
/* Layout horizontal en desktop para detalles */
.details-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Uniformiza altura de los dos cards en desktop */
@media (min-width: 769px) {
    .details-content > .detail-image-frame.card-style,
    .details-content > .detail-card.reception.card-style {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        min-height: 420px;
        height: auto;
        width: 48%;
        box-sizing: border-box;
        margin: 1rem 0 1rem 0 !important;
        vertical-align: top;
    }
    .details-content {
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
    }
    /* Elimina márgenes laterales asimétricos */
    .detail-image-frame.card-style,
    .detail-card.reception.card-style {
        margin: 1rem 0 1rem 0 !important;
    }
}

.detail-card.reception {
    flex: 1 1 0;
    max-width: 480px;
    min-width: 260px;
    margin: 1rem 1rem 1rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* Responsive para el card de recepción */
@media (max-width: 900px) {
    .reception-title {
        font-size: 2rem;
    }
    .reception-content {
        gap: 0.7rem;
        align-items: center;
        padding-left: 0;
        padding-right: 0;
    }
    .reception-content .card-icon,
    .reception-content i {
        font-size: 2rem;
        margin: 0 auto 0.7rem auto;
        display: block;
        text-align: center;
    }
    .reception-detail-row {
        justify-content: flex-start;
        gap: 0.5rem;
        width: 95%;
        max-width: 98vw;
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
    }
    .reception-detail-row .reception-detail-text {
        text-align: left;
        padding-left: 0.2rem;
    }
}
@media (max-width: 900px) {
    .details-content {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .detail-image-frame {
        max-width: 98vw;
        min-width: 0;
        width: 100%;
        margin: 0 auto 1rem auto;
        transform: rotate(-2deg);
    }
    .detail-card.reception {
        width: 100vw;
        max-width: 100vw;
        min-width: 0;
        margin: 0 0 1rem 0;
        align-items: stretch;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        padding: 1.1rem 0.5rem 1.3rem 0.5rem;
    }
    }

/* RSVP Section */
.rsvp-section {
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    padding: 0;
    background-image: url('fotos/pareja2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.rsvp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.93);
    z-index: 1;
}

.rsvp-section .container {
    position: relative;
    z-index: 10;
    padding-top: 2.5rem;
}
.rsvp-form-container {
    max-width: 600px;
    margin: auto;
}
.rsvp-form {
    display: flex;
    flex-direction: column;
}
.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
}

/* Estilo específico para el grupo de identificación */
#id-group {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.form-group label {
    font-weight: bold;
    margin-bottom: 0.3rem;
    display: block;
    color: #333;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 1rem;
}
.submit-btn {
    background-color: #c0392b;
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit-btn:hover {
    background-color: #e74c3c;
}
.radio-group {
    display: flex;
    justify-content: space-around;
}
.radio-option {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    font-size: 1rem;
    color: #333;
}
.radio-option input {
    margin-right: 0.5rem;
}

/* Dress Code Section */
.dress-code-section {
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    padding: 0;
    background-image: url('fotos/pareja3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.dress-code-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(247, 247, 247, 0.92);
    z-index: 1;
}

.dress-code-section .container {
    position: relative;
    z-index: 10;
}
.dress-code-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: auto;
}
.dress-code-card {
    background-color: #fff;
    padding: 2rem;
    margin: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(50% - 2rem);
    max-width: 45%;
}
.dress-icon {
    font-size: 3rem;
    color: #c0392b;
    margin-bottom: 0rem;
}
.dress-note {
    text-align: center;
    margin-top: 2rem;
}
.dress-note p {
    color: #555;
    font-size: 1rem;
    margin-left: -25px;
}

/* Location Section */
.location-section {
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    padding: 0;
    background-image: url('fotos/floral3.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.location-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.90);
    z-index: 1;
}

.location-section .container {
    position: relative;
    z-index: 10;
}
.location-content {
    max-width: 1000px;
    margin: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.location-info {
    flex-basis: 45%;
}
.map-container {
    flex-basis: 45%;
}
.location-address {
    font-size: 1.1rem;
    color: #555;
    margin: 0.5rem 0;
}
.location-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 1rem;
}
.feature {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}
.feature i {
    margin-right: 0.5rem;
    color: #c0392b;
}
.directions-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #c0392b;
    color: #fff;
    font-size: 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.directions-btn:hover {
    background-color: #e74c3c;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 0;
}
.footer-content {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}
.footer-text h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.footer-floral {
    margin-top: 2rem;
}
.footer-floral img {
    max-width: 300px;
    height: auto;
}

/* Burnt Paper Effect on Floral Dividers */
.horizontal-floral-divider {
    width: 100%;
    height: 150px;
    background-image: url('fotos/burnt-edge.png'), url('fotos/floral-divider.png');
    background-repeat: no-repeat, repeat-x;
    background-position: center, center;
    background-size: cover, auto 150px;
    position: relative;
    z-index: 15;
    margin: -75px 0;
    opacity: 0.95;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.horizontal-floral-divider img {
    display: none;
}
 
/* Section Decorative Florals - Full Side Coverage */
.section-floral-decoration {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: 50%;
    pointer-events: none; /* Evita que interfiera con el contenido */
}

.section-floral-decoration.full-right {
    right: 0;
}

.section-floral-decoration.full-left {
    left: 0;
}

.section-floral-decoration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.section-floral-decoration:hover img {
    opacity: 0.9;
}

/* Enhanced overlapping effect - simplified */
.section-with-floral-overlap {
    position: relative;
    z-index: 5;
}

/* Photo Gallery */
.photo-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
    background-color: #fff;
}
.photo-item {
    margin: 0 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.photo-item:hover {
    transform: scale(1.05);
}
.photo-item img {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

/* Container */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 0rem;
}

@media (max-width: 600px) {
    .container {
        max-width: 100%;
        width: 100%;
        margin: 0 auto; /* Centrado horizontal */
        padding-left: 10px; /* Padding reducido */
        padding-right: 10px; /* Padding reducido */
        text-align: center;
        box-sizing: border-box;
    }
    
    /* Asegurar que el header de sección esté centrado */
    .section-header {
        text-align: center;
        width: 100%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }
}


/* Ajuste dinámico de padding-bottom según si la barra de fecha está visible (home-active) */
body:not(.home-active) {
    padding-bottom: 65px !important; /* Solo espacio para el menú cuando NO está la barra de fecha */
}

/* --- Escritorio: todo centrado en una línea --- */
@media (min-width: 769px) {
    .names {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        font-family: 'Great Vibes', cursive;
        font-size: 6rem;
        text-align: center;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        padding: 10px 0;
        width: 100%;
        box-sizing: border-box;
        gap: 1.5rem;
    }
    .names-stack {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    .bride-name,
    .groom-name {
        font-size: 10rem;
        text-align: center;
        font-family: 'Great Vibes', cursive;
    }
    .ampersand {
        font-size: 6rem;
        color: #e74c3c;
        margin-left: 1rem;
        margin-right: 0;
        align-self: center;
        font-family: 'Great Vibes', cursive;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hero Section Mobile Layout */
    .hero-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 20px 0; /* Remove horizontal padding */
        z-index: 10;
    }
    
    .container {
    /* max-width: 1200px;
    margin: 5%;
    padding: 0 0rem;
    margin-bottom: auto; */
    max-width: 1200px;
    margin-left: 5%;
    margin-right: 10%;
    margin-top: 1%;
    padding: 0 0rem 50px 0;
    margin-bottom: 20%;
    }

    /* Names at top - centered */
    .names {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: 0px 10px;
        position: static;
        font-family: 'Great Vibes', cursive;
        font-size: 2rem;
        text-align: left;
    }
    .names-stack {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: relative;
    }
    .bride-name, .groom-name {
        font-size: 4rem;
        font-family: 'Great Vibes', cursive;
    }
    .ampersand {
        position: absolute;
        right: -3.5rem;
        top: 0;
        font-size: 6rem;
        color: #e74c3c;
        font-family: 'Great Vibes', cursive;
        margin: 0;
        align-self: flex-start;
    }
    
    /* Bottom section with date and countdown */
    .bottom-section {
        width: 100%;
        padding: 0 10px;
        margin-bottom: 80px; /* Space for bottom navigation */
    }
    
    /* Date above countdown */
    .wedding-date {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        text-align: center;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        width: 100%;
    }
    
    .countdown {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .countdown-item {
        flex: 1;
        text-align: center;
        margin: 0;
        padding: 0 2px;
    }
    
    .countdown-item span {
        font-size: 1.4rem;
        font-weight: bold;
        display: block;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        line-height: 1.2;
    }
    
    .countdown-item label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
        margin-top: 2px;
        display: block;
    }
    
    /* Hide scroll button on mobile in hero */
    .hero-section .scroll-btn {
        display: none;
    }
    
    /* Mobile responsive for fixed bottom date/timer section */
    .bottom-section {
        padding: 5px 10px !important;
        flex-direction: column !important;
        gap: 3px;
        height: auto;
        bottom: 65px;
        min-height: auto;
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .wedding-date {
        font-size: 1rem !important;
        text-align: center !important;
        margin: 0 !important;
        flex: none !important;
        line-height: 1.1;
    }
    
    .countdown {
        justify-content: space-between !important;
        gap: 3px !important;
        width: 100%;
        flex: none !important;
    }
    
    .countdown-item {
        padding: 0.3rem 0.5rem !important;
        flex: 1;
        border-radius: 4px !important;
    }
    
    .countdown-item span {
        font-size: 1.1rem !important;
        line-height: 1;
    }
    
    .countdown-item label {
        font-size: 0.55rem !important;
        line-height: 1;
        margin-top: 1px;
    }
    .details-content {
        flex-direction: column;
    }
    .detail-card {
        max-width: 100%;
        margin: 1rem 0;
    }
    .dress-code-content {
        flex-direction: column;
    }
    .dress-code-card {
        max-width: 100%;
        margin: 1rem 0;
    }
    .location-content {
        flex-direction: column;
    }
    .location-info,
    .map-container {
        flex-basis: 100%;
        margin-bottom: 2rem;
    }
    .photo-gallery {
        flex-direction: column;
    }
    .photo-item {
        margin: 1rem 0;
    }
    .photo-item img {
        width: 250px;
        height: 250px;
    }
    .floral-divider img {
        max-width: 250px;
    }
    
    /* Mobile responsiveness for section florals */
    .section-floral-decoration {
        display: none; /* Ocultar completamente la decoración floral en móviles */
    }
    
    /* Mobile carousel controls */
    .carousel-controls {
        right: 15px;
        gap: 10px;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}



@media (max-width: 768px) {
  .details-section,
  .rsvp-section,
  .dress-code-section,
  .location-section {
    min-height: 100vh;
    height: auto;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }
  body.home-active {
    padding-bottom: 130px !important;
  }
  body:not(.home-active) {
    padding-bottom: 65px !important;
  }
  .bottom-section {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 65px;
    z-index: 9999;
  }
  .bottom-nav {
    z-index: 20000 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* --- Card frame y caption solo para la imagen de la hacienda --- */
.detail-image-frame.card-style {
    background: #fff;
    border: none;
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(192,57,43,0.18);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 480px;
    min-width: 260px;
    margin: 1rem 1rem 1rem 1rem;
    position: relative;
    overflow: hidden;
    transform: none;
}
.detail-image-frame.card-style img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
    border: 2px solid #fff;
    background: #f8f8f8;
}
.detail-image-frame.card-style::before,
.detail-image-frame.card-style::after {
    display: none !important;
@media (max-width: 500px) {
  html, body {
    font-size: 12px !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }
  .details-section {
    min-height: 100vh !important;
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 0 !important;
  }
  .container {
    margin-top: 0.7rem !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }
  .section-header {
    margin-bottom: 1.1rem !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative !important;
    z-index: 20 !important;
  }
  .section-header h2 {
    font-size: 1.3rem !important;
    margin-bottom: 0.2rem !important;
  }
  .decorative-line {
    margin: 0.3rem auto 0.7rem auto !important;
    width: 70px !important;
    height: 2px !important;
    background-color: #c0392b !important;
  }
  .details-content {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.2rem !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .details-section .container {
    padding-top: 1.2rem !important;
  }
  .detail-image-frame.card-style,
  .detail-card.reception.card-style {
    width: 98vw !important;
    max-width: 98vw !important;
    min-width: 0 !important;
    margin: 0 0 0.4rem 0 !important;
    padding: 0.3rem 0.05rem 0.3rem 0.05rem !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    border-radius: 10px !important;
    height: auto !important;
  }
  .hacienda-img {
    max-width: 96vw !important;
    width: 96vw !important;
    height: auto !important;
    border-radius: 8px !important;
  }
  .hacienda-caption {
    font-size: 0.95rem !important;
    margin-top: 0.2rem !important;
  }
  .reception-title {
    font-size: 1.05rem !important;
    margin-bottom: 0.3rem !important;
  }
  .reception-content {
    max-width: 96vw !important;
    width: 96vw !important;
    padding: 0 !important;
    gap: 0.1rem !important;
  }
  .reception-icons i,
  .reception-content .card-icon {
    font-size: 1.1rem !important;
    margin-bottom: 0.1rem !important;
  }
  .reception-detail-row {
    font-size: 0.85rem !important;
    margin-bottom: 0.05rem !important;
    gap: 0.15rem !important;
    width: 100% !important;
    max-width: 96vw !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  .reception-detail-row .reception-detail-text {
    font-size: 0.85rem !important;
    padding-left: 0.05rem !important;
    line-height: 1.1 !important;
  }
  .reception-card-inner {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
  }
}

/* Fin de los estilos */

/* Media query para dispositivos móviles */
@media (max-width: 600px) {
  .color-reference {
    align-items: center;
  }
}
}
