/* ========== ESTILOS MOBILE (MAX-WIDTH: 768px) ========== */

@media (max-width: 768px) {
    /* ========== CONFIGURAÇÕES GERAIS PARA CENTRALIZAÇÃO MOBILE ========== */
    body {
        overflow-x: hidden;
        width: 100vw;
        max-width: 100%;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    * {
        box-sizing: border-box;
    }

    .footer-wrapper {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* ========== HAMBURGER MENU ========== */
    .hamburger {
        display: flex;
    }

    /* ========== NAVEGAÇÃO MOBILE ========== */
    .nav-menu {
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: rgb(255, 255, 255);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        text-align: center;
        margin: 0;
    }

    .nav-menu.active {
        max-height: 300px;
    }

    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        text-align: center;
        display: block;
        width: 100%;
        margin: 0;
    }

    /* ========== CONTAINER NAVEGAÇÃO MOBILE ========== */
    .nav-container {
        flex-wrap: wrap;
        padding: 0 15px;
        width: 100%;
        max-width: 100vw;
        margin: 0 auto;
        justify-content: space-between;
        align-items: center;
    }

    /* ========== LOGO MOBILE ========== */
    .logo {
        height: 60px;
    }

    /* ========== HEADER MOBILE ========== */
    .header {
        padding: 20px 0;
    }

    /* ========== ASSISTÊNCIA REMOTA MOBILE (ESCONDIDA) ========== */
    .assist-box {
        display: none !important;
    }

    .assist-box-header {
        display: none !important;
    }

    /* ========== BOTÃO IDIOMA MOBILE ========== */
    .lang-toggle-btn {
        top: 8px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }

    /* ========== HERO TEXT MOBILE ========== */
    .hero-text {
        top: 50%;
        bottom: auto;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 22px 18px;
        max-width: 90%;
        width: calc(100% - 32px);
        border-radius: 12px;
        margin: 0;
        text-align: center;
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(8px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
        box-sizing: border-box;
        overflow: visible;
    }

    .hero-text:hover {
        transform: translate(-50%, -50%) translateY(-3px);
    }

    .hero-text h2 {
        font-size: 17px;
        line-height: 1.35;
        margin: 0;
        text-align: center;
        word-break: break-word;
    }

    .hero-text .subtitle {
        font-size: 12px;
        text-align: center;
    }

    /* ========== SEÇÃO DE PARCERIAS MOBILE ========== */
    .parcerias-section {
        position: relative;
        right: auto;
        left: auto;
        top: auto;
        width: calc(100% - 20px);
        max-width: 320px;
        margin: 12px auto 12px auto;
        padding: 8px 15px 10px 15px;
        border-radius: 10px;
        transform: translateX(0);
        display: block;
    }

    .parcerias-titulo {
        font-size: 13px;
        margin-bottom: 8px;
        text-align: center;
    }

    .parcerias-logos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-items: center;
        align-items: center;
        gap: 10px 8px;
        width: 100%;
    }

    .parceria-item {
        width: 100%;
        max-width: 120px;
        height: 38px;
        flex-shrink: 0;
    }

    /* ========== BOTÕES FLUTUANTES MOBILE ========== */
    .floating-rect {
        right: 10px;
        top: 12px;
        width: 80px;
        height: 30px;
    }

    .floating-rect img {
        width: 90%;
        height: 90%;
    }

    .floating-left {
        right: 10px;
        top: 12px;
        width: 70px;
        height: 28px;
    }

    .floating-left img {
        width: 90%;
        height: 90%;
    }

    .floating-winmax {
        right: 100px;
        top: 12px;
        width: 80px;
        height: 30px;
    }

    .floating-winmax img {
        width: 90%;
        height: 90%;
    }

    /* ========== FOOTER WRAPPER MOBILE ========== */
    .footer-wrapper {
        padding-top: 55px;
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    /* ========== FOOTER MOBILE ========== */
    .footer {
        font-size: 11px;
        padding: 12px 10px;
        min-height: 55px;
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }

    /* ========== LINKS LEGAIS MOBILE ========== */
    .legal-links {
        padding: 8px 10px;
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }

    .legal-links a {
        font-size: 0.8rem;
        padding: 2px 4px;
        display: inline-block;
        text-align: center;
    }

    .legal-links a:not(:last-child)::after {
        content: " |";
        margin-left: 4px;
    }

    /* ========== BANNER DE COOKIES MOBILE ========== */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }

    .cookie-buttons .btn {
        flex: 1;
        min-width: 90px;
        font-size: 0.85rem;
        padding: 10px 15px;
    }

    /* ========== MODAL DE COOKIES MOBILE ========== */
    .cookie-modal-content {
        max-height: 95vh;
        margin: 10px;
    }

    .cookie-category-header {
        flex-direction: column;
    }

    .toggle-details {
        width: 100%;
    }

    /* ========== FOOTER DO MODAL MOBILE ========== */
    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer .btn {
        width: 100%;
    }
}
