html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    margin: 0;
}

h1 {
    margin-bottom: 20px;
}

/* =============================
   HEADER SEGMENTADO
============================= */
.header-segman {
    width: 100%;
    top: 0;
        /*background: transparent;*/

    background: rgba(15,74,104,.5);
    background: -moz-linear-gradient(top, rgba(15,74,104,1) 0%, rgba(7,29,56,.5) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(15,74,104,.5)), color-stop(100%, rgba(7,29,56,1)));
    background: -webkit-linear-gradient(top, rgba(15,74,104,1) 0%, rgba(7,29,56,1) 100%);
    background: -o-linear-gradient(top, rgba(15,74,104,1) 0%, rgba(7,29,56,1) 100%);
    background: -ms-linear-gradient(top, rgba(15,74,104,1) 0%, rgba(7,29,56,1) 100%);
    background: linear-gradient(to bottom, rgba(15,74,104,1) 0%, rgba(7,29,56,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0f4a68', endColorstr='#071d38', GradientType=0 );
    margin: auto;

    padding: 16px 0px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo img {
    height: 52px;
}

/* MENU */
.nav-menu {
    display: flex;
    gap: 26px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    transition: opacity 0.2s ease;
    font-size: .85em;
    text-transform: uppercase;

    padding-bottom:10px;
}

.nav-menu a:hover {
    opacity: 0.75;
}

/* BOTÓN MOBILE */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
}

.nav-menu a.color-fuego{
    color: #d7a91c
}

.nav-menu a.color-humo{
    color: #b20c1d;
}

.nav-menu a.color-seguridad{
    color: #9d9d9e;
}

.nav-menu a.color-seguridad2{
    color: #192954;
}

.nav-menu a.color-alimentos{
    color: #4a90c8;
}

/* =============================
   RESPONSIVE MENU
============================= */
@media (max-width: 850px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        background: rgba(15,74,104,.5);
        background: -moz-linear-gradient(top, rgba(15,74,104,1) 0%, rgba(7,29,56,.5) 100%);
        background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(15,74,104,.5)), color-stop(100%, rgba(7,29,56,1)));
        background: -webkit-linear-gradient(top, rgba(15,74,104,1) 0%, rgba(7,29,56,1) 100%);
        background: -o-linear-gradient(top, rgba(15,74,104,1) 0%, rgba(7,29,56,1) 100%);
        background: -ms-linear-gradient(top, rgba(15,74,104,1) 0%, rgba(7,29,56,1) 100%);
        background: linear-gradient(to bottom, rgba(15,74,104,1) 0%, rgba(7,29,56,1) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0f4a68', endColorstr='#071d38', GradientType=0 );
         margin: auto;
        
        position: absolute;
        top: 87px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        padding: 16px 24px;
        gap: 16px;
    }

    .nav-menu.show {
        display: flex;
    }
}

/* =============================
   HERO CURSOS
============================= */
.hero-cursos {
    position: relative;
    width: 100%;
    min-height: 420px;
    background-image: url("../imagenes/banners/cursos.jpg"); /* AJUSTA RUTA */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;

    margin-bottom: 50px;
}

/* Overlay para legibilidad */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(7, 29, 56, 0.85),
        rgba(7, 29, 56, 0.45)
    );
}

/* Contenido */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 30px;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    max-width: 600px;
    padding-left: 30px;
    margin-bottom: 28px;
    color: #e6eaf0;
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 768px) {
    .hero-cursos {
        min-height: 360px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-cursos {
        min-height: 320px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 15px;
    }
}



/* =============================
   CALENDARIO ANUAL
============================= */
.calendario-anual {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
    padding: 0 30px 0 30px;
}

.mes-card {
    background: #fff;
    min-height: 200px; /* más altura */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    color: #222;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
    transition: transform .2s ease;
}

.mes-card:hover {
    transform: translateY(-6px);
}

.mes-card

h1, .volver{
    padding-left:30px;
}

/* =============================
   BOTÓN VOLVER
============================= */
.barra-volver {
    margin-bottom: 15px;
}

.volver {
    font-weight: bold;
    color: #004aad;
    text-decoration: none;
}

/* =============================
   CALENDARIO MENSUAL
============================= */
.calendario {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;

    padding: 0 30px 0 30px;
}

.dia {
    background: #fff;
    min-height: 120px;
    padding: 10px;
    border-radius: 6px;
    position: relative;
}

.dia.vacio {
    background: transparent;
}

.numero {
    position: absolute;
    top: 8px;
    right: 10px;
    font-weight: bold;
    color: #999;
}

.evento {
    background: #e6f0ff;
    padding: 6px;
    border-radius: 4px;
    margin-top: 30px;
    font-size: 12px;
}

.btn-cal{
    width: 100%;
    margin-top: 6px;
    background: #004aad;
    color: #fff;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
}

.badge{
    display:inline-block;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    padding:4px 8px;
    border-radius:6px;
    margin-bottom:6px;
}

.badge-gratis{
    background:#e6f7ee;
    color:#0a7a3b;
}

.badge-costo{
    background:#fff4e5;
    color:#a65b00;
}

.badge-cerrado{
    background:#fdecea;
    color:#a11919;
}


/* =============================
   AGENDA MOBILE
============================= */
.agenda-mobile {
    display: none;
}

.agenda-item {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,.05);
}

.agenda-fecha {
    font-weight: bold;
    color: #004aad;
    min-width: 70px;
}

.sin-eventos {
    text-align: center;
    color: #777;
}

@media (max-width: 961px) {

    .calendario {
        display: none;
    }

    .agenda-mobile {
        display: block;
        margin-top: 20px;
    }

    .btn-mob{
        width: 100%;
        margin-top: 6px;
        background: #004aad;
        color: #fff;
        border: none;
        padding: 6px;
        border-radius: 4px;
        cursor: pointer;
    }

    .agenda-item {
        background: #fff;
        padding: 18px;
        border-radius: 12px;
        margin-bottom: 32px;
        display: flex;
        gap: 16px;
        box-shadow: 0 6px 15px rgba(0,0,0,.05);
    }

    .agenda-evento {
        margin-bottom: 28px;
        padding-bottom: 20px;
        border-bottom: 1px solid #e5e7eb;
    }

    .agenda-evento:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

}

/* =========================
   MODAL OVERLAY
========================= */
.modal-contenido,
.modal-contenido * {
    box-sizing: border-box;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* =========================
   CONTENIDO MODAL
========================= */
.modal-contenido {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 28px 30px 32px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalFadeIn 0.25s ease-out;
}

.evento-desc{
    font-size:.8rem;
    color:#555;
    margin:4px 0;
}

.modal-descripcion{
    font-size:.95rem;
    margin:10px 0;
    color:#333;
}

.modal-lugar{
    font-size:.85rem;
    color:#19415d;
    margin-bottom:15px;
}


/* =========================
   ANIMACIÓN
========================= */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================
   HEADER
========================= */
.modal-contenido h3 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

/* =========================
   BOTÓN CERRAR
========================= */
.modal-contenido .cerrar {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 22px;
    cursor: pointer;
    color: #666;
}

.modal-contenido .cerrar:hover {
    color: #000;
}

/* =========================
   FORMULARIO
========================= */
.modal-contenido form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.modal-contenido input[type="text"],
.modal-contenido input[type="email"],
.modal-contenido select
{
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
}

.modal-contenido input::placeholder {
    color: #9ca3af;
}

.modal-contenido input:focus {
    border-color: #0b3c78;
    box-shadow: 0 0 0 2px rgba(11, 60, 120, 0.15);
}

.modal-contenido select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;

    padding-right: 42px; /* espacio para la flecha */
    cursor: pointer;
}


/* =========================
   BOTÓN SUBMIT
========================= */
.modal-contenido button {
    width: 100%;
    padding: 12px 16px;
    background: #0b3c78;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.1s ease;
}


.modal-contenido button:hover {
    background: #082e5c;
}

.modal-contenido button:active {
    transform: scale(0.98);
}

#submitBtn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* =============================
   RESPONSIVE
============================= */
@media (max-width: 1024px) {
    .calendario-anual {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .calendario {
        display: none;
    }
    .agenda-mobile {
        display: block;
    }

}

@media (max-width: 600px) {
    .calendario-anual {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .modal-contenido {
        margin: 0 16px;
        padding: 24px 22px 26px;
    }
}


/* ===== FOOTER BASE ===== */
:root{
    --azul-segman:#0b3c5d;
    --gris-footer:#d6d6d6;
}

footer{
    background:var(--gris-footer);
    padding:40px 0 20px;
    font-family:Arial, sans-serif;
    font-size:14px;
    color:#333;
    margin-top: 100px;
}

/* ===== CONTENEDOR ===== */
footer .nav-footer{
    max-width:1400px;
    margin:auto;
    padding:0 20px;
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
        "segman regionales telefonos location"
        "suscribete regionales telefonos location";
    gap:30px;
}



/* ===== COLUMNAS ===== */
footer .section-footer{
    flex:1 1 220px;
    min-width:200px;
}

/* SEGMENTO IZQUIERDO */
footer .section-footer:nth-child(1),
footer .section-footer:nth-child(2){
    flex:1 1 220px;
}


footer .section-footer:nth-child(2){
    margin-top:-15px;
}


/* ===== TÍTULOS ===== */
.titulo-footer{
    font-size:16px;
    font-weight:700;
    margin-bottom:15px;
    color: #19415d;;
}


/* ===== LISTAS ===== */
footer ul{
    list-style:none;
    padding:0;
    margin:0;
}

footer ul li{
    margin-bottom:8px;
    line-height:1.4;
}

/* ===== LINKS ===== */
footer a{
    color:#000;
    text-decoration:none;
}

footer a:hover{
    text-decoration:underline;
}

/* ===== ICONOS ===== */
footer i{
    margin-right:8px;
    color:var(--azul-segman);
}

/* ===== REDES SOCIALES ===== */
.footer-social{
    margin-top:30px;
    text-align:center;
}

.footer-social h4{
    margin-bottom:10px;
    color:var(--azul-segman);
}

.footer-social a{
    font-size:22px;
    margin:0 10px;
    color:#333;
}

/* ===== COPYRIGHT / BARRA INFERIOR ===== */

.bg-redes{
    background-color: #818181;
    height: auto;
}


.footer-bottom{
    margin-top:30px;
    padding-top:15px;
    text-align:center;
    background-color: #818181;
    font-weight:600;
    height: 200px;
}

@media(max-width:949px){
    footer .nav-footer{
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "segman suscribete"
            "regionales telefonos"
            "location location";
    }
}

@media(max-width:600px){
    footer .nav-footer{
        text-align: center;
        grid-template-columns:1fr;
        grid-template-areas:
            "segman"
            "suscribete"
            "regionales"
            "telefonos"
            "location";
    }
}



