/* Responsive Styles */
@media (max-width: 991.98px) {
    .reveal,
    .reveal.slide-left,
    .reveal.slide-right {
        transform: translateY(28px);
    }
    #mainNavbar {
        min-height: 78px;
    }
    .brand-logo {
        width: 56px;
        height: 56px;
    }
    .navbar-brand {
        min-width: 0;
        max-width: calc(100% - 62px);
    }
    .navbar-collapse {
        background: #fff;
        padding: 18px;
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(11,61,145,0.14);
        margin-top: 15px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 999;
    }
    .hero-section {
        min-height: auto;
        padding: 76px 0 78px;
        text-align: center;
    }
    .hero-section .lead {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-media {
        margin: 8px auto 0;
        width: min(100%, 560px);
    }
    .hero-media-badge {
        text-align: left;
    }
    .display-3 {
        font-size: 2.5rem;
    }
    .about-section .position-relative,
    .principal-snippet .col-lg-5 {
        text-align: center;
    }
    .nav-cta {
        display: inline-flex;
        justify-content: center;
        margin-top: 10px;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }
    section {
        padding: 46px 0;
    }
    .container,
    .container-fluid {
        --bs-gutter-x: 1rem;
    }
    .row {
        --bs-gutter-x: 1rem;
    }
    .brand-title {
        font-size: 1.45rem;
    }
    .brand-subtitle {
        font-size: 0.64rem;
        letter-spacing: 0.02em;
    }
    .brand-logo {
        width: 50px;
        height: 50px;
    }
    .navbar-brand {
        gap: 10px;
    }
    .hero-section {
        padding: 46px 0 54px;
    }
    .hero-section .badge {
        font-size: 0.72rem;
        letter-spacing: 0.04em !important;
        white-space: normal;
    }
    .hero-section .display-3 {
        font-size: clamp(2rem, 10.5vw, 2.7rem);
        line-height: 1.06;
        margin-bottom: 1rem !important;
    }
    .hero-section .lead {
        font-size: 0.98rem;
        line-height: 1.6;
        margin-bottom: 1.25rem !important;
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px !important;
    }
    .hero-actions .btn {
        width: 100%;
        padding: 0.88rem 1.25rem !important;
    }
    .hero-media {
        aspect-ratio: 1 / 0.82;
        border-width: 6px;
        border-radius: 18px;
        box-shadow: 0 18px 42px rgba(0,0,0,0.24);
    }
    .hero-media-badge {
        left: 10px;
        right: 10px;
        bottom: 10px;
        gap: 9px;
        padding: 9px 10px;
        border-radius: 12px;
        font-size: 0.78rem;
        line-height: 1.25;
    }
    .hero-media-number {
        font-size: 1.45rem;
    }
    .hero-section svg {
        height: 44px !important;
    }
    .home-popup {
        padding: 12px;
    }
    .home-popup__dialog {
        width: 96vw;
        border-radius: 12px;
        max-height: 86vh;
    }
    .home-popup__image {
        max-height: 84vh;
        border-radius: 12px;
    }
    .home-popup__close {
        top: -12px;
        right: -8px;
        width: 40px;
        height: 40px;
    }
    .section-title {
        font-size: clamp(1.8rem, 9vw, 2.15rem);
        line-height: 1.15;
    }
    .display-4 {
        font-size: 2.2rem;
    }
    .about-section .container,
    .features-section .container,
    .principal-snippet .container,
    .programs-section .container,
    .testimonial-section .container,
    .news-section .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .about-section img,
    .gallery-snippet img,
    .news-section .card-img-top {
        border-radius: 14px;
    }
    .about-section .ps-lg-5,
    .principal-snippet .col-lg-7 {
        text-align: center;
    }
    .about-section ul li {
        align-items: flex-start !important;
        text-align: left;
    }
    .counter-section .display-5 {
        font-size: 2rem;
    }
    .counter-section p {
        font-size: 0.95rem !important;
    }
    .modern-card,
    .programs-section .card,
    .testimonial-section .card,
    .news-section .card {
        border-radius: 14px !important;
    }
    .modern-card,
    .programs-section .card {
        padding: 1.15rem !important;
    }
    .programs-section .card {
        min-height: auto;
    }
    .principal-snippet img.rounded-circle {
        width: 190px !important;
        height: 190px !important;
    }
    .gallery-snippet .row > div,
    .gallery-snippet .row > div[style] {
        height: 180px !important;
    }
    .gallery-snippet h4 {
        font-size: 1.05rem;
    }
    .testimonial-section .d-flex.align-items-center {
        align-items: flex-start !important;
    }
    .news-ticker span {
        margin-left: 1.5rem !important;
        margin-right: 1.5rem !important;
        font-size: 0.88rem;
    }
    .map-section iframe {
        height: 300px;
    }
    .footer {
        text-align: center;
        padding-bottom: 5.5rem !important;
    }
    .footer .row {
        --bs-gutter-y: 2rem;
    }
    .footer-brand img {
        height: 62px;
    }
    .footer form {
        border-radius: 16px !important;
        flex-direction: column;
    }
    .footer form .form-control,
    .footer form .btn {
        width: 100%;
        border-radius: 0 !important;
    }
    .footer-links a {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
    }
    .contact-info li {
        justify-content: center;
        text-align: left;
    }
    .social-icons {
        justify-content: center;
    }
    .floating-whatsapp {
        right: 14px;
        bottom: calc(82px + env(safe-area-inset-bottom));
        width: 46px;
        height: 46px;
        font-size: 20px;
    }
    .floating-call {
        left: 14px;
        bottom: calc(22px + env(safe-area-inset-bottom));
        width: 46px;
        height: 46px;
        font-size: 19px;
    }
    .scroll-top {
        right: 14px;
        bottom: calc(22px + env(safe-area-inset-bottom));
        width: 46px;
        height: 46px;
        font-size: 19px;
    }
}

@media (max-width: 575.98px) {
    .brand-title {
        font-size: clamp(1.05rem, 6vw, 1.32rem);
    }
    .brand-subtitle {
        font-size: 0.55rem;
    }
    .navbar-toggler {
        padding: 0.42rem 0.55rem;
    }
    .hero-section {
        padding-top: 34px;
    }
    .about-section,
    .features-section,
    .principal-snippet,
    .programs-section,
    .gallery-snippet,
    .testimonial-section,
    .news-section {
        overflow: hidden;
    }
    .card-body {
        padding: 20px;
    }
    .gallery-snippet .row > div,
    .gallery-snippet .row > div[style] {
        height: 160px !important;
    }
    .text-justify {
        text-align: left;
    }
}

@media (max-width: 380px) {
    section {
        padding: 38px 0;
    }
    .container,
    .container-fluid {
        --bs-gutter-x: 0.85rem;
    }
    .brand-logo {
        width: 44px;
        height: 44px;
    }
    .navbar-brand {
        gap: 8px;
        max-width: calc(100% - 54px);
    }
    .brand-title {
        font-size: 1.02rem;
    }
    .brand-subtitle {
        font-size: 0.48rem;
        letter-spacing: 0.01em;
    }
    .navbar-toggler {
        padding: 0.35rem 0.45rem;
    }
    .hero-section .badge {
        font-size: 0.66rem;
        padding: 0.45rem 0.65rem !important;
    }
    .hero-section .display-3 {
        font-size: clamp(1.68rem, 9vw, 1.92rem);
    }
    .hero-section .lead {
        font-size: 0.93rem;
    }
    .hero-actions .btn {
        font-size: 0.92rem;
    }
    .hero-media {
        border-width: 5px;
        border-radius: 15px;
    }
    .section-title {
        font-size: 1.58rem;
    }
    .modern-card,
    .programs-section .card,
    .testimonial-section .card,
    .news-section .card {
        padding: 1rem !important;
    }
    .card-body {
        padding: 16px;
    }
    .icon-box {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }
    .principal-snippet img.rounded-circle {
        width: 160px !important;
        height: 160px !important;
    }
    .gallery-snippet .row > div,
    .gallery-snippet .row > div[style] {
        height: 138px !important;
    }
    .home-popup__dialog {
        width: 94vw;
    }
    .floating-whatsapp,
    .floating-call,
    .scroll-top {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}
