* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

/* ──────────────────────────────
   BASE (tablet / escritorio)
   ────────────────────────────── */
header.navbar {
    background-color: #0F2A44;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header.navbar > div {
    flex-shrink: 0;
    width: 300px;
}

header.navbar > div img {
    width: 345px;
    height: 48px;
}

header.navbar .logo span {
    color: #00c6ff;
}

header.navbar nav {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

header.navbar nav a {
    color: #E0F2FE;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition:
        color 0.3s ease,
        text-shadow 0.3s ease;
}

header.navbar nav a:hover {
    color: #38BDF8;
    text-shadow:
        0 0 6px rgba(56, 189, 248, 0.9),
        0 0 12px rgba(56, 189, 248, 0.6),
        0 0 20px rgba(56, 189, 248, 0.4);
}

header.navbar .suscribirse {
    background-color: #16A34A;
    color: #ECFDF5;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow:
        0 0 6px rgba(22, 163, 74, 0.6),
        0 0 12px rgba(22, 163, 74, 0.4);
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease;
}

header.navbar .suscribirse:hover {
    background-color: #22C55E;
    box-shadow:
        0 0 10px rgba(34, 197, 94, 0.9),
        0 0 20px rgba(34, 197, 94, 0.7),
        0 0 35px rgba(34, 197, 94, 0.5);
    transform: translateY(-1px) scale(1.03);
}

/* El wrapper de la fila superior solo existe en móvil,
   en escritorio no interfiere */
.navbar-top {
    display: contents;
}

/* Hamburguesa: oculta por defecto */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #E0F2FE;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animación ✕ cuando está abierto */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ──────────────────────────────
   MÓVIL  (≤ 768px)
   ────────────────────────────── */
@media (max-width: 768px) {
    header.navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 0.8rem 1rem;
        gap: 0;
    }

    /* Fila superior: logo + hamburguesa */
    .navbar-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    header.navbar > div {
        width: auto;
        flex-shrink: 1;
    }

    header.navbar > div img {
        width: 200px;
        height: auto;
    }

    /* Hamburguesa visible */
    .hamburger {
        display: flex;
    }

    /* Nav colapsado por defecto */
    header.navbar nav {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background-color: #0a1f33;
        border-radius: 6px;
        margin-top: 0.5rem;
        overflow: hidden;
    }

    /* Nav abierto */
    header.navbar nav.open {
        display: flex;
    }

    header.navbar nav a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 0.95rem;
    }

    header.navbar nav a:last-child {
        border-bottom: none;
    }

    /* Botón suscribirse full width en móvil */
    header.navbar .suscribirse {
        width: 100%;
        margin-top: 0.6rem;
        text-align: center;
    }
}

/* FOOTER */
.ftrnot{
    background: #0F2A44;
    color: #ddd;
    padding: 50px 20px 20px;
    font-family: 'Arial', sans-serif;
}

.ftrgd{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.ftrcol ul {
    list-style: none;
    padding: 0;
}

.ftrcol ul li {
    margin-bottom: 10px;
}

.ftrcol ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s ease;
}

.ftrcol ul li a:hover {
    color: #38BDF8;
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.9), 0 0 12px rgba(56, 189, 248, 0.6), 0 0 20px rgba(56, 189, 248, 0.4);
}

.ftrlg{
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
}

.ftrdsc{
    font-size: 0.95rem;
    line-height: 1.5em;
    margin-bottom: 20px;
    color: #e6edf3;
    text-shadow: rgba(255, 255, 255, 0.5) 0px 0px 6px;
}

.ftrscl a{
    display: inline-block;
    margin-right: 12px;
    color: #ff914d;
    font-size: 1.2rem;
    transition: 0.3s ease;
}

.ftrscl a:hover {
    color: #FFB07A;
    text-shadow:
        0 0 6px rgba(255, 145, 77, 0.8),
        0 0 14px rgba(255, 145, 77, 0.5),
        0 0 24px rgba(255, 145, 77, 0.3);
}

.ftrttl{
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #e6edf3;
    text-shadow: rgba(255, 255, 255, 0.5) 0px 0px 6px;
}

.ftrnsltr{
    display: flex;
    gap: 10px;
}

.ftrnsltr input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    outline: none;
}

.ftrnsltr button {
    background: #ff914d;
    border: none;
    padding: 10px 18px;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
}

.ftrnsltr button:hover {
    background: #ff5722;
    transform: scale(1.05);
}

.ftrbttm {
    border-top: 1px solid #333;
    padding-top: 15px;
    text-align: center;
}

.ftrbttm p {
    color: #888;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .ftrnsltr {
        flex-direction: column;
        gap: 8px;
    }

    .ftrnsltr input,
    .ftrnsltr button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* MODAL NEWSLETTER 1 */
:root {
    --bg-modal-dark: #121826;
    --input-bg-dark: #1f2937;
    --accent-blue: #6366f1;
    --text-muted-dark: #9ca3af;
}

.custom-dark-modal {
    background-color: var(--bg-modal-dark) !important;
    border-radius: 24px !important;
    border: 1px solid #2d3748 !important;
}

.icon-box-dark {
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 28px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.dark-input {
    background-color: var(--input-bg-dark) !important;
    border: 1px solid #374151 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 16px;
}

.dark-input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

.dark-input:focus {
    background-color: #111827 !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2) !important;
    outline: none;
}

.btn-primary-dark {
    background-color: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary-dark:hover {
    background-color: #4f46e5;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
    transform: translateY(-2px);
    color: white;
}

.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.25) !important;
}