/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF785A;        /* Coral/Laranja principal da Gmóbil */
    --primary-dark: #FF5078;         /* Rosa/Vermelho do gradiente */
    --secondary-color: #1E293B;      /* Azul escuro do texto */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background-color: #F8FAFC;     /* Cinza claro do fundo */
    --surface-color: #ffffff;
    --text-primary: #1E293B;         /* Azul escuro para textos */
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    height: 100%;
}

main {
    margin-top: 50px;
    flex: 1;
}

body {
    display: flex;
    margin: 0; 
    padding: 0; 
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #F2F2F2;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    overflow-x: hidden;
    height: 100%;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F2F2F2;
    z-index: -1; /* fica atrás de todo o conteúdo */
}

.fixed-bg {
  position: fixed;
  inset: 0;
  background-image: url('imagens/bolas.png');
  background-repeat: no-repeat;
  background-size: 23rem;
  background-position: 88% 140px;
  pointer-events: none;
  z-index: 0;
}
main { position: relative; z-index: 1; }

.header {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    justify-content: space-between;
}

.logoHeader{
    display: block;
    margin-top: 1rem;
    width: 10rem;
}

.saibaMais{ 
    color: black;
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 1rem;
    font-size: 18px;
}

.btnSuporte{
    display: flex;               
    align-items: center;         
    gap: 8px;                 
    background-color: #42AD5E; 
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 1rem;
    width: 8rem;
    height: 2.5rem;
}

.btnSuporte:hover{
    background-color: #1ebe5d;
    transform: scale(1.02);
}

.linkSup{
    text-decoration: none;
}

.container {
    display: flex;
    flex-direction: column; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 40px;   
    align-items: center;
}

.textoPortal{
    width: 450px;
    flex: 1;
    margin-right: 200px;
}

.textoPortal h1{
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.textoPortal p{
    font-size: 20px;
}

.textoManual{
    display: flex;
    padding-bottom: 3rem;
    text-align: left;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo i {
    font-size: 3rem;
    color: var(--surface-color);
    padding: 1rem;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

/* Logo da Gmóbil */
.logo-gmobil {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--surface-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.logo-gmobil .g-letter {
    background-color: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    line-height: 1;
}

.logo-gmobil .mobil-text {
    color: #1E293B;
    font-size: 2.5rem;
    line-height: 1;
}

.logo-gmobil .dot {
    color: #FF5078;
    font-size: 1.5rem;
    margin-left: -0.1rem;
}

/* Logo de imagem */
.logo-image {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.logo-image.small {
    max-height: 40px;
}

.logo-image.medium {
    max-height: 60px;
}

.logo-image.large {
    max-height: 80px;
}

/* Logo de texto */
.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--surface-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    min-width: 60px;
}

.logo-text.small {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    min-width: 40px;
}

.logo-text.medium {
    font-size: 1.5rem;
    padding: 0.75rem 1.5rem;
    min-width: 60px;
}

.logo-text.large {
    font-size: 2rem;
    padding: 1rem 2rem;
    min-width: 80px;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--surface-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Conteúdo principal */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Detecção automática */
.auto-detect {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    gap:40px;
}

.detection-card {
    flex: 1;
    background: var(--surface-color);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    gap: 40px;
}

.detection-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.detection-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.detection-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Download recomendado */
.recommended-download {
    width: 550px;
    flex: 1;
    margin-bottom: 2rem;
}

.download-card {
    text-align: center;
    display: flex;              /* flex, não block */
    flex-direction: column;     /* empilha o conteúdo */
    align-items: center;
    gap: 1.5rem;
    
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding-bottom: 1rem;
    transition: var(--transition);
    border: 3px solid transparent;
}

.download-card .download-actions {
    display: flex !important;         /* força flexbox */
    justify-content: center !important;
    align-items: center;
    gap: 1rem;
    margin-top: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: nowrap;     
}

.download-card .download-actions a,
.download-card .download-actions button {
    display: inline-flex !important;  /* anula block */
    flex: 0 1 auto !important;        /* não expande à força */
    align-items: center;
    justify-content: center;
    white-space: nowrap; 
}


.download-card.recommended {
    border-color: var(--primary-color);
    background: #FDFDFD;
    background: linear-gradient(90deg, rgba(253, 253, 253, 1) 0%, rgba(255, 171, 125, 1) 100%);
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.download-card:not(.recommended){
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 270px;
    height: 250px;
}

.download-card:not(.recommended) .download-actions{
    display: flex;
    flex-direction: column;
    margin-top: 22px;
}

.download-card:not(.recommended) a{
    display: flex;
    width: 230px;
    height: 50px;
}

.download-card:not(.recommended) button{
    display: flex;
    width: 230px;
    height: 50px;
}

.download-icon {
    margin-top: -60px;
    font-size: 4rem;
    color: linear-gradient(0deg,rgba(0, 0, 0, 1) 0%, rgba(43, 43, 43, 1) 50%, rgba(61, 61, 61, 1) 100%);
    min-width: 60px;
    text-align: center;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    margin-top: -30px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.download-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.download-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.device-info {
    display: inline-block;
    gap: 1rem;
    flex-wrap: wrap;
    
}

.os-badge, .arch-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.os-badge {
    background: var(--primary-color);
    color: white;
}

.os-badge.windows {
    background: #0078d4;
}

.os-badge.android {
    background: #3ddc84;
}

.os-badge.ios {
    background: #941be6;
}

.arch-badge {
    background: var(--secondary-color);
    color: white;
}

.download-btn {
    width: 220px;
    height: 70px;
    display: flex;
    text-align: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    justify-content: center;
}

.download-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.download-btn.primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.download-btn:not(.primary) {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.download-btn:not(.primary):hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
    color: white;
    transform: translateY(-2px);
}

/* Grid de downloads */
.all-downloads h3 {
    margin-top: 4rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

/* Seção de informações */
.info-section {
    margin-top: 4rem;
}

.info-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: left;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Botão do WhatsApp */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.whatsapp-btn i {
    align-items: center;
    display: flex;
    font-size: 1rem;
}

/* Container para ações de download */
.download-actions {
    display: flex;
    gap: 0.75rem;
    min-width: 200px;
    flex-shrink: 0;
}

/* Botão de instruções */
.instructions-btn {
    width: 220px;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    background: var(--surface-color);
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
    justify-content: center;
}

.instructions-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.instructions-btn i {
    font-size: 1rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 1000px;
    height: 90%;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-color);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.modal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-iframe-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#modalIframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--background-color);
    justify-content: center;
}

.modal-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
}

.modal-close-btn:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

/* Responsividade do modal - Tablet */
@media (max-width: 768px) {
    .modal-container {
        width: 90%;
        height: 85%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.2rem 1.8rem;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-actions {
        padding: 1.2rem 1.8rem;
        flex-direction: row;
        gap: 1rem;
    }
    
    .download-actions {
        min-width: auto;
        width: 100%;
    }
    
    .instructions-btn,
    .download-btn {
        width: 180px;
        height: 50px;
        font-size: 0.9rem;
    }
}

/* Responsividade do modal - Mobile */
@media (max-width: 480px) {
    .modal-container {
        width: 95%;
        height: 90%;
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-actions {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .download-actions {
        min-width: auto;
        width: 100%;
    }
    
    .instructions-btn,
    .download-btn {
        width: 100%;
        height: 45px;
        font-size: 0.9rem;
    }
}

/* Footer */
.footer {
    display: inline;
    text-align: center;
    align-items: center;
    font-size: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.footer p {
    color: rgba(7, 7, 7, 0.8);
    font-size: 1rem;
}

/* TABLET (até 768px) */
@media (max-width: 768px) {
    /* Header adaptado para tablet */
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        gap: 0 !important;
    }

    .logoHeader {
        margin-left: 0 !important;
        margin-top: 0 !important;
        width: 5rem;
    }

    .saibaMais {
        font-size: 14px;
        margin-top: 0 !important;
    }

    .btnSuporte {
        padding: 6px 12px;
        font-size: 12px;
        width: 5.5rem;
        height: 1.8rem;
        margin-top: 0 !important;
    }

    .txtSuporte {
        font-size: 12px;
    }

    /* Container principal */
    .container {
        padding: 5px;
        gap: 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    /* Layout principal - mantém orientação horizontal */
    .main-content > div[style*="display: flex"] {
        display: flex !important;
        flex-direction: row;
        gap: 0.5rem;
        align-items: flex-start;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    /* Texto do portal */
    .textoPortal {
        width: 260px;
        margin-right: 20px;
        flex-shrink: 0;
    }

    .textoPortal h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .textoPortal p {
        font-size: 14px;
    }

    /* Detecção automática */
    .auto-detect {
        min-height: 180px;
        gap: 20px;
    }

    .detection-card {
        padding: 1.2rem;
    }

    .detection-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .detection-card h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .detection-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    /* Download recomendado */
    .recommended-download {
        width: 300px;
        flex-shrink: 0;
    }

    .download-card.recommended {
        padding: 1.2rem;
        height: 255px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .download-icon {
        font-size: 3rem;
        margin-top: -63px;
        position: relative;
        z-index: 2;
    }

    .download-info h3 {
        font-size: 1.1rem;
        margin-top: -20px;
        margin-bottom: 0.3rem;
    }

    .download-info p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .download-btn {
        width: 140px;
        height: 45px;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .instructions-btn {
        width: 140px;
        height: 45px;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    /* Texto manual */
    .textoManual {
        font-size: 1.1rem;
        padding-bottom: 1.5rem;
    }

    /* Grid de downloads */
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
        justify-items: center;
    }

    .download-card:not(.recommended) {
        width: 200px;
        height: 200px;
        padding: 1.2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

    .download-card:not(.recommended) .download-icon {
        font-size: 2.5rem;
        margin-top: -54px;
        position: relative;
        z-index: 2;
    }

    .download-card:not(.recommended) h4 {
        font-size: 1rem;
        margin-top: -20px;
        margin-bottom: 0.5rem;
    }

    .download-card:not(.recommended) .device-info {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        margin-bottom: 0.8rem;
    }

    .download-card:not(.recommended) .os-badge,
    .download-card:not(.recommended) .arch-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
        white-space: nowrap;
        text-align: center;
        width: fit-content;
        margin: 0 auto;
    }

    .download-card:not(.recommended) a,
    .download-card:not(.recommended) button {
        width: 160px;
        height: 35px;
        font-size: 0.8rem;
    }

    .download-card:not(.recommended) .download-actions {
        margin-top: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        align-items: center;
    }

    /* Seção de informações */
    .info-section {
        margin-top: 2rem;
    }

    .info-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .info-card {
        padding: 1rem;
    }

    .info-card i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .info-card h4 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }

    .info-card p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    /* Background das bolas */
    .fixed-bg {
        background-size: 12rem;
        background-position: 80% 80px;
    }

    /* Footer */
    .footer p {
        font-size: 0.8rem;
    }
}

/* MOBILE (até 480px) */
@media (max-width: 480px) {
    /* Header para mobile */
    .main-content { margin-top: 0; }
    .textoPortal, 
    .textoPortal h1,
    .textoPortal p { margin-top: 0; }

    .header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
        padding: 0;
        text-align: center;
        margin-bottom: 0;
    }

    body{
        background-image: none;
    }


    .logoHeader {
        padding-top: 2rem;
        width: 7rem;
    }

    .saibaMais {
        display: none;
    }

    .btnSuporte {
        visibility: hidden;
    }

    /* Container principal */
    .container {
        padding: 10px;
        gap: 20px;
    }

    /* Layout principal - vertical para mobile */
    .main-content > div[style*="display: flex"] {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    /* Texto do portal */
    .textoPortal {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .textoPortal h1 {
        font-size: 1.8rem;
        padding-bottom: 1rem;
    }

    .textoPortal p {
        font-size: 16px;
        padding-top: 0;
        padding-bottom: 2rem;
    }

    /* Detecção automática */
    .auto-detect {
        min-height: 200px;
        gap: 20px;
    }

    .detection-card {
        padding: 1.5rem;
    }

    .detection-icon {
        font-size: 2rem;
    }

    .detection-card h2 {
        font-size: 1.1rem;
    }

    /* Download recomendado */
    .recommended-download {
        width: 100%;
        max-width: 360px;
    }

    .download-card.recommended {
        height: 220px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .download-icon {
        font-size: 3.5rem;
        margin-top: -75px;
        position: relative;
        z-index: 2;
    }

    .download-info h3 {
        font-size: 1.1rem;
        margin-top: -20px;
    }

    .download-btn {
        width: 100%;
        height: 50px;
        font-size: 0.9rem;
        margin-top: -20px;
    }

    .instructions-btn {
        width: 100%;
        height: 50px;
        font-size: 0.9rem;
        margin-top: -20px;
    }

    .all-downloads h3{
        text-align: center;
        margin-top: 0;
    }

    .textoManual{
        display: flex;
        text-align: center;
    }

    .textoManual h3{
        width: 100%;
    }

    /* Grid de downloads */
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .download-card:not(.recommended) {
        width: 100%;
        max-width: 320px;
        height: 200px;
    }

    .download-card:not(.recommended) .download-icon {
        font-size: 2.5rem;
        margin-top: -55px;
        position: relative;
        z-index: 2;
    }

    .download-card:not(.recommended) .device-info {
        display: flex;
        flex-direction: row;
        gap: 0.3rem;
        margin-bottom: 2rem;
    }

     .download-card:not(.recommended) span{
        display: inline;
     }

    .download-card:not(.recommended) .download-actions{
        margin: 0;
    }

    .download-card:not(.recommended) a{
        width: 100%;
        height: 40px;
        font-size: 0.9rem;
        align-items: center;
    }

    .download-card:not(.recommended) button {
        width: 100%;
        height: 40px;
        font-size: 0.9rem;
        align-items: center;
        margin-top: 0;
    }


    /* Seção de informações */
    .info-section {
        margin-top: 2rem;
    }

    .info-section h3 {
        font-size: 1.2rem;
        text-align: center;
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-card {
        padding: 1.2rem;
    }

    .info-card i {
        font-size: 1.8rem;
    }

    .info-card h4 {
        font-size: 1rem;
    }

    /* Background das bolas */
    .fixed-bg {
        background-size: 15rem;
        background-position: 100% 260px;
    }

    /* Footer */
    .footer p {
        font-size: 0.8rem;
    }
}


/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Estados de foco para acessibilidade */
.download-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Melhorias para impressão */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .download-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

