* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc; /* Fondo blanco/gris muy suave */
    color: #1e293b; /* Texto principal oscuro y elegante */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Canvas para el fondo din¨¢mico adaptado a tonos claros */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 650px;
    width: 90%;
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 85vh;
}

.header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.header .logo {
    max-height: 280px; /* Ajustado ligeramente para que luzca perfecto en m¨®viles */
    width: auto;
    max-width: 100%; /* Evita que desborde la pantalla */
    display: block;
    margin: 0 auto;
}

.fallback-logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #0f172a;
    text-align: center;
}

.fallback-logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #0f172a;
}

/* Contenido Principal */
.content {
    margin: auto 0;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(2, 132, 199, 0.08);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #0f172a;
}

.subtitle {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle strong {
    color: #0f172a;
    font-weight: 600;
}

/* Formulario minimalista claro */
.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
    background: #ffffff;
    padding: 6px;
    border-radius: 50px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 20px;
    color: #0f172a;
    font-size: 0.9rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form button {
    background: #0284c7;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #0369a1;
}

/* Alertas de PHP adaptadas */
.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}
.alert.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #15803d;
}
.alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}

/* Redes Sociales y Footer */
.footer {
    margin-top: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
}

.social-links a {
    color: #475569;
    background: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.social-links a:hover {
    color: #0284c7;
    background: #f0f9ff;
    border-color: #0284c7;
    transform: translateY(-2px);
}

.footer p {
    font-size: 0.8rem;
    color: #64748b;
}

/* Responsivo para m¨®viles */
@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        gap: 12px;
    }
    .newsletter-form input {
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 50px;
    }
}