/**
 * CCESDN Newsletter Banner – Styles
 * CORREGIDO: Botón usa --ccesdn-primary (dorado) en vez de azul #1d4ed8
 */

.ccn-banner-wrap {
    width: 100%;
    padding: 24px 20px;
    box-sizing: border-box;
}

/* Banner card: fondo --ccesdn-dark (correcto, igual al tema) */
.ccn-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: #0d1b3e;                     /* --ccesdn-dark ✓ */
    border: none;
    border-top: 3px solid #B8962E;           /* acento dorado como el header del tema */
    border-radius: 16px;
    padding: 28px 36px;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.ccn-banner-text { flex: 1 1 auto; min-width: 0; }

.ccn-banner-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;                          /* blanco sobre oscuro ✓ */
    font-family: 'Montserrat', sans-serif;
    line-height: 1.3;
}

.ccn-banner-subtitle {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);        /* ligeramente más visible (era 0.6) */
    line-height: 1.5;
}

.ccn-banner-form-wrap {
    flex: 0 0 auto;
    width: 100%;
    max-width: 380px;
}

.ccn-form { display: flex; flex-direction: column; gap: 10px; }

.ccn-input-row { display: flex; gap: 8px; align-items: stretch; }

.ccn-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.ccn-input:focus {
    outline: none;
    border-color: #B8962E;                   /* foco dorado — consistente con tema */
    box-shadow: 0 0 0 3px rgba(184,150,46,0.20);
}
.ccn-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.ccn-input-email { flex: 1 1 auto; min-width: 0; }

/* ─── CORRECCIÓN PRINCIPAL ───────────────────────────────
   Botón era azul brillante #1d4ed8 — destonaba sobre fondo
   navy oscuro y no respetaba la paleta del tema.
   Ahora: fondo dorado (#B8962E) igual al botón nav Membresía.
───────────────────────────────────────────────────────── */
.ccn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 20px;
    background: #B8962E;                     /* --ccesdn-primary — dorado ✓ */
    color: #ffffff;
    border: none;
    border-bottom: 2px solid #8B6914;        /* --ccesdn-primary-dark */
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}
.ccn-btn:hover:not(:disabled) {
    background: #8B6914;                     /* --ccesdn-primary-dark */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184,150,46,0.35);
}
.ccn-btn:active { transform: translateY(0); }
.ccn-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Spinner */
.ccn-btn-spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ccn-spin 0.7s linear infinite;
    flex-shrink: 0;
}
.ccn-btn.ccn-loading .ccn-btn-spinner { display: inline-block; }
.ccn-btn.ccn-loading .ccn-btn-text { opacity: 0.7; }
@keyframes ccn-spin { to { transform: rotate(360deg); } }

/* Messages */
.ccn-message {
    font-size: 13px; line-height: 1.4;
    border-radius: 6px; padding: 0; min-height: 0;
    transition: all 0.25s ease;
}
.ccn-message:not(:empty) { padding: 8px 12px; }
.ccn-message.ccn-success {
    background: rgba(6,95,70,0.4);
    color: #6ee7b7;
    border: 1px solid rgba(110,231,183,0.3);
}
.ccn-message.ccn-error {
    background: rgba(153,27,27,0.4);
    color: #fca5a5;
    border: 1px solid rgba(252,165,165,0.3);
}

/* GDPR */
.ccn-gdpr { margin: 0; font-size: 11px; color: rgba(255,255,255,0.35); line-height: 1.4; }

/* Responsive */
@media (max-width: 768px) {
    .ccn-banner {
        flex-direction: column; align-items: flex-start;
        padding: 24px 20px; gap: 20px; border-radius: 12px;
    }
    .ccn-banner-form-wrap { width: 100%; max-width: 100%; }
}
@media (max-width: 480px) {
    .ccn-input-row { flex-direction: column; }
    .ccn-btn { width: 100%; justify-content: center; }
    .ccn-banner-wrap { padding: 16px 12px; }
}
