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

html, body {
    height: 100%;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background: linear-gradient(135deg, 
        #0056b3,
        #0077cc,
        #003366,
        #004080,
        #0056b3
    );
    background-size: 400% 400%;
    animation: gradientAnimation 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 4.5rem !important;
    color: white;
}

.hero-description {
    font-size: 1.4rem !important;
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.imc-section {
    padding: 5rem 0;
    background: white;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    font-weight: bold;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 0;
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

a:focus,
button:focus,
.nav-link:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.btn:focus {
    outline: none;
}

.btn:focus-visible,
.btn-warning:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.4);
}

.info-card:focus-within,
.team-card:focus-within {
    outline: none;
}

.info-card:focus-visible,
.team-card:focus-visible {
    outline: 3px solid #1a2980;
    outline-offset: 3px;
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(26, 41, 128, 0.2) !important;
}

.imc-table tr:focus-within {
    outline: none;
}

.imc-table tr:has(*:focus-visible) {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

.imc-section {
    background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%);
    border-radius: 30px 30px 0 0;
    padding: 5rem 0;
    position: relative;
    margin-top: -3rem;
    box-shadow: 0 -10px 50px rgba(0,0,0,0.1);
}

.section-title {
    color: #1a2980;
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1a2980, #26d0ce);
    border-radius: 2px;
}

.imc-card {
    background: #ffffff;
    border-radius: 25px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 41, 128, 0.08);
    position: relative;
    overflow: hidden;
}

.imc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(26, 41, 128, 0.12);
}

.imc-table {
    width: 90%;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.imc-table th {
    color: #ffffff;
    font-weight: 600;
    padding: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    background: #1a2980;
    position: relative;
}

.imc-table th:first-child { 
    border-radius: 10px 0 0 10px; 
}

.imc-table th:last-child { 
    border-radius: 0 10px 10px 0; 
}

.imc-table td {
    padding: 1rem 1.5rem;
    color: #ffffff;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.imc-table td:first-child {
    border-radius: 10px 0 0 10px;
    font-weight: 500;
}

.imc-table td:last-child {
    border-radius: 0 10px 10px 0;
    font-weight: 400;
}

.imc-range-1 td { 
    background: linear-gradient(135deg, #ff6b6b, #ff8787); 
}

.imc-range-2 td { 
    background: linear-gradient(135deg, #20c997, #38d9a9); 
}

.imc-range-3 td { 
    background: linear-gradient(135deg, #ffd43b, #ffa94d); 
}

.imc-range-4 td { 
    background: linear-gradient(135deg, #ff922b, #ff6b6b); 
}

.imc-range-5 td { 
    background: linear-gradient(135deg, #f06595, #e64980); 
}

.imc-range-6 td { 
    background: linear-gradient(135deg, #e03131, #c92a2a); 
}

.imc-table tr {
    transition: transform 0.2s ease;
}

.imc-table tr:hover {
    transform: translateY(-2px);
}

.imc-table tr:hover td {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    filter: brightness(1.05);
}

.range-label {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background: rgba(255,255,255,0.15);
    margin-left: 0.8rem;
    font-size: 0.85rem;
    font-weight: 400;
    border: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: white;
    opacity: 0.8;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 8px 32px rgba(26, 41, 128, 0.1) !important;
}

.navbar.nav-hidden {
    transform: translateY(-100%) !important;
}

.navbar-brand:hover .brand-blur {
    opacity: 1;
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
    width: 100% !important;
}

.nav-link:hover .nav-line,
.nav-link.active .nav-line {
    width: 100% !important;
}

.nav-link {
    transform: translateY(0);
    transition: transform 0.3s ease !important;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link.active {
    color: #1a2980 !important;
    font-weight: 600 !important;
}

.navbar-toggler[aria-expanded="true"] i {
    transform: rotate(90deg) !important;
}

.nav-cta:hover .cta-effect {
    width: 300px !important;
    height: 300px !important;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        border-radius: 15px;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

main {
    padding-top: 70px;
}

.info-card {
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.info-card .card-header {
    background: linear-gradient(135deg, #1a2980, #26d0ce);
}

.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container-fluid {
    height: 100vh;
}

.categoria-col {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.categoria-link {
    text-decoration: none;
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.categoria-link:focus {
    outline: none;
}

.categoria-link:focus-visible {
    outline: 4px solid #ffd700;
    outline-offset: -8px;
    z-index: 100;
}

.categoria-link:focus-visible .categoria-content {
    transform: translateY(-10px) scale(1.03);
}

.categoria-content {
    text-align: center;
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.categoria-content img {
    max-width: 350px;
    height: auto;
    margin-top: 2rem;
    transition: transform 0.3s ease;
}

.categoria-content h2 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.categoria-content p {
    font-size: 2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.categoria-content i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.crianca-col {
    background: linear-gradient(150deg, #efbf00 0%, #ff8d02 100%);
}

.adulto-col {
    background: linear-gradient(150deg, #4169e1 0%, #173189 100%);
}

.idoso-col {
    background: linear-gradient(135deg, #ff0000 0%, #b3067f 100%);
}

.categoria-col:hover {
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1);
}

.categoria-col:hover .categoria-content {
    transform: translateY(-15px) scale(1.05);
}

.categoria-col.keyboard-focus {
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1);
}

.keyboard-navigation .categoria-col:focus-within {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 20px 60px rgba(255, 215, 0, 0.6);
    }
}

@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css');

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
        text-align: center;
        padding: 0 15px;
    }

    .hero-description {
        font-size: 1.1rem !important;
        padding: 0 20px;
        br {
            display: none;
        }
    }

    .navbar {
        background: rgba(255, 255, 255, 0.95) !important;
        padding: 1rem;
    }

    .navbar-toggler {
        padding: 0.5rem !important;
        border: none !important;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(26, 41, 128, 0.1);
        border-radius: 8px;
    }

    .navbar-toggler i {
        color: #1a2980 !important;
        font-size: 1.8rem !important;
    }

    .navbar-collapse {
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .section-title {
        font-size: 2.2rem !important;
        text-align: center;
        padding: 0 15px;
    }

    .imc-section {
        margin-top: -50px !important;
        padding: 3rem 1rem !important;
    }

    .imc-card {
        padding: 1.5rem !important;
    }

    .imc-table {
        width: 100% !important;
        font-size: 0.9rem;
    }

    .info-card {
        margin-bottom: 1rem;
    }

    .cta-button {
        padding: 1rem 2rem !important;
        font-size: 1.1rem !important;
        width: auto;
        max-width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    .imc-table td, .imc-table th {
        padding: 0.8rem !important;
        font-size: 0.85rem;
    }

    .navbar-brand {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    .categoria-col {
        min-height: 200px;
        padding: 0.5rem;
    }
    
    .categoria-content h2 {
        font-size: 1.2rem;
    }
    
    .categoria-content p {
        font-size: 0.9rem;
    }
    
    .categoria-content img {
        max-width: 80px;
        max-height: 80px;
    }
    
    .categoria-content i {
        font-size: 1.2rem !important;
    }
}
