/* RESPONSIVE GENERAL Federación Provincial de Bomberos Voluntarios de La Pampa*/

/* DESKTOP GRANDE */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    .footer-grid {
        display: grid;
        gap: 60px;
        align-items: start;
    }

    .footer-inferior {
        display: grid;
        gap: 40px;
    }
}

/* NOTEBOOKS */
@media (max-width: 1200px) {

    .container {
        width: 95%;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* TABLETS */
@media (max-width: 992px) {

    .container {
        width: 95%;
    }

    /* HEADER */
    .menu {
        gap: 15px;
    }

    /* HERO */
    .hero {
        min-height: 100vh;
        padding: 120px 20px 80px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    /* ESTADÍSTICAS */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* CARDS */
    .cards {
        grid-template-columns: 1fr;
    }

    /* ACCESOS */
    .accesos-rapidos {
        grid-template-columns: repeat(2, 1fr);
    }


    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-inferior {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-redes {
        justify-content: center;
    }

    /* ORGANIGRAMA */
    .zonas-organigrama {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* MENÚ HAMBURGUESA */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
}

.menu-toggle:focus,
.menu-toggle:active,
.menu-toggle:hover {
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

/* TABLET / MENÚ MÓVIL */
@media (max-width: 992px) {

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 2001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #111;
        transition: right .35s ease;
        z-index: 2000;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        width: 100%;
    }

    .menu li {
        width: 100%;
        text-align: center;
    }

    .menu a {
        display: block;
        padding: 10px;
        font-size: 1.1rem;
        color: #fff;
    }

    /* SUBMENÚ MÓVIL */
    .dropdown .submenu {
        position: static;
        display: none;
        width: 100%;
        background: #fff;
        border-radius: 12px;
        box-shadow: none;
        margin: 10px 15px;
        padding: 10px 0;
        z-index: 9999;
    }

    .dropdown.active .submenu {
        display: block;
    }

    .submenu li {
        width: 100%;
    }

    .submenu a {
        display: block;
        padding: 12px 20px;
        color: #222 !important;
        pointer-events: auto;
    }

    /* CALENDARIO */
    .agenda-capacitacion {
        padding: 80px 0;
    }

    .agenda-capacitacion .titulo-seccion h2 {
        font-size: 2.2rem;
    }

    .calendario-container iframe {
        height: 650px;
    }
}

/* MÓVILES GRANDES */
@media (max-width: 768px) {

    /* LOGO */
    .logo img {
        height: 55px;
    }

    /* HERO */
    .hero {
        min-height: 100vh;
        padding: 110px 20px 70px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* BOTONES HERO */
    .hero-botones {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-principal,
    .btn-secundario {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    /* ESTADÍSTICAS */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat h3 {
        font-size: 2.5rem;
    }

    /* ACCESOS */
    .accesos-rapidos {
        grid-template-columns: 1fr;
        margin-top: -25px;
    }

    /* INFORMACIÓN */
    .info-grid {
        grid-template-columns: 1fr;
    }

    /* DOCUMENTACIÓN */
    .aspectos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 35px;
    }

    .aspecto-card {
        min-width: 0;
        height: auto;
        padding: 28px 22px;
    }

    .aspecto-card h4,
    .aspecto-card p {
        overflow-wrap: anywhere;
    }

    /* GALERÍA */
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* FOOTER */
    .footer {
        padding: 55px 20px 20px;
    }

    .footer-contacto h3 {
        margin-bottom: 25px;
        font-size: 1.3rem;
    }

    .footer-contacto-items {
        flex-direction: column;
        gap: 18px;
    }

    .footer-contacto-item {
        justify-content: center;
        font-size: 0.95rem;
    }

    .footer-redes {
        justify-content: center;
        margin-top: 30px;
    }

    .footer-linea {
        margin: 40px 0 20px;
    }

    .footer-copy p {
        font-size: 0.8rem;
    }

    /* HISTORIA ESCUELA */
    .historia-escuela {
        padding: 70px 0;
    }

    .historia-escuela .titulo-seccion {
        margin-bottom: 50px;
    }

    .historia-escuela .titulo-seccion h2 {
        font-size: 30px;
    }

    .historia-escuela .titulo-seccion p {
        font-size: 14px;
    }

    /* TIMELINE */
    .timeline::before {
        left: 27px;
        transform: none;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 75px;
        padding-right: 10px;
        margin-bottom: 35px;
    }

    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 0;
        right: auto;
        width: 54px;
        height: 54px;
    }

    .timeline-item::after {
        display: none;
    }

    .timeline-content {
        padding: 25px 22px;
        border-radius: 15px;
    }

    .timeline-content h3 {
        font-size: 21px;
    }

    .timeline-content p {
        font-size: 14px;
    }

    /* IDENTIDAD ESCUELA */
    .identidad-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .identidad-card {
        padding: 35px 30px;
    }

    .identidad-escuela .titulo-seccion h2 {
        font-size: 34px;
    }

    /* ORGANIGRAMA */
    .seccion-organigrama {
        padding: 60px 0;
    }

    .nivel {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nivel-regionales {
        gap: 20px;
    }

    .linea-vertical {
        height: 25px;
    }

    .org-card,
    .org-card.principal,
    .regional {
        width: 90%;
        min-width: 0;
    }

    .zonas-organigrama {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .zona-org {
        min-height: 100px;
    }

    .zona-info-contenido {
        grid-template-columns: 1fr;
    }

    .zona-info-card {
        padding: 25px 20px;
    }
}

/* MÓVILES PEQUEÑOS */
@media (max-width: 585px) {

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: .95rem;
    }

    /* SECCIONES */
    .institucional,
    .destacados,
    .estadisticas,
    .informacion {
        padding: 60px 0;
    }

    .institucional h2,
    .destacados h2 {
        font-size: 2rem;
    }

    /* EMERGENCIA */
    .emergencia h3 {
        font-size: 3rem;
    }

    /* ESTADÍSTICAS */
    .stat h3 {
        font-size: 2rem;
    }

    /* FOOTER */
    .footer-cta-box h2 {
        font-size: 1.8rem;
    }

    /* GALERÍA */
    .galeria-grid {
        grid-template-columns: 1fr;
    }

    /* MAPA */
    #mapa {
        height: 320px;
    }

    .buscador-cuarteles input {
        padding: 12px 15px;
    }

    .estadisticas-grid {
        grid-template-columns: 1fr;
    }

    /* CALENDARIO */
    .agenda-capacitacion .titulo-seccion h2 {
        font-size: 1.9rem;
    }

    .agenda-capacitacion .titulo-seccion p {
        font-size: .95rem;
    }

    .calendario-container {
        padding: 10px;
        border-radius: 18px;
    }

    .calendario-container iframe {
        height: 500px;
        border-radius: 12px;
    }

    /* HISTORIA ESCUELA */
    .historia-escuela {
        padding: 60px 0;
    }

    .historia-escuela .titulo-seccion h2 {
        font-size: 27px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 65px;
    }

    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        width: 48px;
        height: 48px;
        font-size: 17px;
    }

    .timeline-content {
        padding: 22px 18px;
    }

    .timeline-fecha {
        font-size: 12px;
    }

    .timeline-content h3 {
        font-size: 19px;
    }

    /* IDENTIDAD ESCUELA */
    .identidad-escuela {
        padding: 70px 0;
    }

    .identidad-escuela .titulo-seccion h2 {
        font-size: 29px;
    }

    .identidad-card {
        padding: 30px 25px;
        border-radius: 15px;
    }

    .identidad-icono {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .identidad-card h3 {
        font-size: 24px;
    }

    /* ORGANIGRAMA */
    .zonas-organigrama {
        grid-template-columns: 1fr;
    }

    .zona-org {
        width: 100%;
    }

    .org-card h3 {
        font-size: 16px;
    }
}

/* SEGURIDAD RESPONSIVE */
html,
body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe,
video {
    max-width: 100%;
}

