/* Estilos básicos del modal (puedes mover a main.css después) */
       .modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    
    display: none;
    align-items: center;
    justify-content: center;
}

/*.modal-overlay.active{
    display: flex;
}*/
.modal-overlay{
    z-index: 9999;
}

        .modal-content {
            background: white;
            max-width: 90%;
            width: 480px;
            border-radius: 12px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            overflow: hidden;
            position: relative;
            animation: fadeInUp 0.4s ease-out;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .modal-header {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 2rem;
            cursor: pointer;
            color: #777;
        }

        .modal-body {
            padding: 1.5rem;
        }

        .form-group {
            margin-bottom: 1.2rem;
        }

        label {
            display: block;
            margin-bottom: 0.4rem;
            font-weight: 500;
        }

        input {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid #ccc;
            border-radius: 6px;
            font-size: 1rem;
        }

        .required { color: #e74c3c; }

        .btn-suscribir {
            width: 100%;
            padding: 0.9rem;
            background: #d32f2f;          /* rojo inspirado en Sagrado Corazón, cámbialo */
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 1.1rem;
            cursor: pointer;
            transition: background 0.2s;
        }

        .btn-suscribir:hover {
            background: #b71c1c;
        }

        .success-message {
            text-align: center;
            padding: 3rem 1.5rem;
        }

        .countdown {
            margin-top: 1.5rem;
            font-size: 1.1rem;
            color: #555;
        }

        .privacidad {
            font-size: 0.85rem;
            color: #666;
            text-align: center;
            margin-top: 1.2rem;
        }

        .logo img {
    width: 60px;          /* ← valor fijo más razonable */
    height: auto;
    display: block;
}

body {
    font-family: "Outfit", system-ui, sans-serif;
    background: #f8f6f4 url("/img/Santuario.webp") no-repeat center center fixed;
    /*background-color: #f8f6f4;
    background-image: url("/img/NSSC_3D03.png");
    background-repeat: no-repeat;
    background-position: center center;*/
    background-size: cover;     /* Escala la imagen para cubrir todo sin distorsión */
    background-attachment: fixed;  /* ¡Esto es lo que la mantiene fija! */
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #f0e9e4;
    border-bottom: 1px solid #d4c9bd;
    flex-wrap: wrap;
    gap: 1rem;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    list-style: none;
}

nav a {
    color: #2c1810;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

nav a:hover {
    color: #c8102e;
    transform: translateY(-1px);
    text-shadow: #c8102e;

}

.open-newsletter {
    color: #c8102e;               /* rojo más intenso, por ejemplo */
    font-weight: 600;
    background: rgba(200, 16, 46, 0.08);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.open-newsletter:hover {
    background: rgba(200, 16, 46, 0.15);
    transform: translateY(-1px);
}