/* ==================== ESTILOS GENERALES Y TEMA BLUE JEANS / AGROGANADERO ==================== */
:root {
    --ranch-bg: #131b26; /* Azul índigo oscuro de fondo */
    --ranch-card: rgba(140, 98, 57, 0.45); /* Cristal transparente con tono ocre / cuero cálido */
    --ranch-primary: #1e3a5f; /* Azul jean clásico */
    --ranch-accent: #b38439; /* Ocre / Color hilo de costura */
    --ranch-gold: #f0c65c; /* Dorado brillante estilo hebilla/costura */
    --text-dark: #f4efe4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.ranch-body {
    background-color: var(--ranch-bg);
    background-image: linear-gradient(rgba(15, 24, 38, 0.8), rgba(15, 24, 38, 0.8)), url('Body.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 15px 10px;
    position: relative;
    overflow-x: hidden;
}

/* Contenedor adaptado directamente al body */
.ranch-main-container {
    width: 100%;
    max-width: 600px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 2;
}

/* ==================== ENCABEZADO ==================== */
.invitation-header {
    text-align: center;
    padding: 5px 0;
}

.sub-title-top {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--ranch-gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.main-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--ranch-gold);
    display: inline-block;
    padding-bottom: 4px;
}

/* Número 80 Estilo Denim */
.minimal-age-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.minimal-number {
    font-family: 'Cinzel', serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--ranch-gold);
    line-height: 1;
}

.minimal-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #d1c4a9;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ==================== DETALLES DEL EVENTO (Cristal Ocre / Tierra y Costura) ==================== */
.event-details-section {
    background: rgba(140, 98, 57, 0.45); 
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 2px dashed rgba(240, 198, 92, 0.7); 
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media(max-width: 500px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(160, 114, 69, 0.35); 
    padding: 8px 10px;
    border-radius: 6px;
    border-left: 3px solid var(--ranch-gold);
}

.icon-shield {
    width: 32px;
    height: 32px;
    background: var(--ranch-gold);
    color: var(--ranch-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.detail-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #d1c4a9;
    font-family: 'Oswald', sans-serif;
    display: block;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 700;
    /* Color unificado con el número 80 */
    color: var(--ranch-gold); 
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.map-btn-container {
    margin-top: 12px;
    text-align: center;
}

/* ==================== CONTADOR ==================== */
.countdown-section {
    text-align: center;
}

.section-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--ranch-gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    max-width: 380px;
    margin: 0 auto;
}

.countdown-box {
    background: rgba(20, 32, 48, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--ranch-gold);
    padding: 6px 4px;
    border-radius: 6px;
    color: #fff;
}

.countdown-number {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ranch-gold);
    display: block;
}

.countdown-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ccc;
}

/* ==================== BOTONES Y ACCIONES ==================== */
.open-rsvp-section {
    text-align: center;
}

.btn-western {
    background: linear-gradient(to bottom, #2b4c7e, #1a3357); 
    color: #fff;
    border: 1px solid var(--ranch-gold);
    padding: 10px 20px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-western:hover {
    background: linear-gradient(to bottom, #385d96, #223f6b);
    transform: translateY(-2px);
}

.btn-map {
    width: 100%;
    justify-content: center;
    background: rgba(140, 98, 57, 0.5);
    color: #fff;
    border: 1px dashed var(--ranch-gold);
    backdrop-filter: blur(4px);
}

.btn-map:hover {
    background: rgba(140, 98, 57, 0.8);
    color: #fff;
}

/* ==================== PIE DE PÁGINA ==================== */
.invitation-footer {
    text-align: center;
    color: #d1c4a9;
    padding: 0 0 10px 0;
}

.footer-quote {
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.footer-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--ranch-gold);
    text-transform: uppercase;
}

/* ==================== REPRODUCTOR DE MÚSICA FLOTANTE ==================== */
.music-player-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--ranch-gold);
    color: var(--ranch-bg);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: transform 0.2s;
}

.music-player-btn:hover {
    transform: scale(1.1);
}

.music-tooltip {
    position: absolute;
    right: 55px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 3px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.music-player-btn:hover .music-tooltip {
    opacity: 1;
}

/* ==================== MODAL DE RSVP ==================== */
.rsvp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 15px;
}

.rsvp-modal-content {
    background: rgba(20, 32, 48, 0.95);
    width: 100%;
    max-width: 420px;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--ranch-gold);
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    color: #fff;
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ranch-gold);
}

.rsvp-subtext {
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 12px;
    color: #ccc;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--ranch-gold);
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--ranch-accent);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 0.85rem;
    color: #000;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-confirm {
    background: #2e6930;
    color: #fff;
    border: none;
    flex: 1;
}

.btn-decline {
    background: #8b2626;
    color: #fff;
    border: none;
    flex: 1;
}

/* ==========================
   MODAL DE NOTIFICACIÓN
========================== */

.notification-modal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
}

.notification-content{
    background: #264552;
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    animation: modalShow .3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,.2);
}

.notification-icon{
    font-size: 60px;
    margin-bottom: 15px;
}

.notification-icon.error{
    color: #dc3545;
}

.notification-icon.success{
    color: #28a745;
}

.notification-content h3{
    margin-bottom: 10px;
}

.notification-content p{
    margin-bottom: 20px;
}

@keyframes modalShow{
    from{
        opacity:0;
        transform:scale(.8);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}