/* ==========================================================================
   CSS Específico para a página de Chips M2M - Estilo Premium e Imersivo
   ========================================================================== */

/* Utilities */
.text-center {
    text-align: center !important;
}

:root {
    --color-dark-glow: #0d281a;
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(24, 69, 48, 0.3);
    --shadow-glow-yellow: 0 0 40px rgba(240, 181, 48, 0.2);
}

/* Animações e Efeitos de Entrada */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.chips-hero {
    padding: 10rem 0 7rem 0;
    background: linear-gradient(135deg, var(--color-brand-green, #184530) 0%, #0d281a 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.chips-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom right, transparent 49%, var(--color-bg-white, #ffffff) 50%);
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 70%;
    background: radial-gradient(circle, rgba(240, 181, 48, 0.12) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.chips-hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.chips-hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 1rem 0 1.5rem 0;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.chips-hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chips-hero-img {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

.chips-hero-img img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    border: 4px solid rgba(255, 255, 255, 0.08);
    background-color: #000;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.chips-hero-img:hover img {
    transform: scale(1.02) rotate(-1deg);
}

.mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(50px);
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

.mockup-glow.bg-green {
    background: radial-gradient(circle, rgba(32, 92, 64, 0.5) 0%, transparent 70%);
}

.mockup-glow.bg-yellow {
    background: radial-gradient(circle, rgba(240, 181, 48, 0.25) 0%, transparent 70%);
}

/* ==========================================================================
   Bento Grid de Diferenciais (Grid Escuro)
   ========================================================================== */
.chips-infinite {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--color-brand-green, #184530) 0%, #0d281a 100%);
    color: #ffffff;
    position: relative;
}

.section-header {
    margin-bottom: 5rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 0.5rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 1rem auto 0 auto;
    text-align: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.bento-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 2.75rem 2.25rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Glow interno com cor amarela AtLink que segue um degradê suave */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(255, 188, 0, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s ease, background 0.5s ease;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 188, 0, 0.08);
    border-color: rgba(255, 188, 0, 0.35);
    background: rgba(255, 255, 255, 0.07);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover .card-glow {
    background: radial-gradient(circle at 80% 20%, rgba(255, 188, 0, 0.15) 0%, transparent 60%);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-brand-yellow, #ffbc00);
    margin-bottom: 1.75rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-card:hover .card-icon {
    background: var(--color-brand-yellow, #ffbc00);
    color: #0d281a;
    border-color: var(--color-brand-yellow, #ffbc00);
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 0 25px rgba(255, 188, 0, 0.5);
}

.card-icon i {
    width: 26px;
    height: 26px;
}

.bento-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
}

.bento-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.card-large {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-large p {
    max-width: 600px;
}

/* ==========================================================================
   Showcase do AtLink Manager
   ========================================================================== */
.chips-manager {
    padding: 8rem 0;
    background-color: var(--color-bg-white, #ffffff);
    color: var(--color-text-dark, #1e1e1e);
}

.manager-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.manager-intro h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-brand-green, #184530);
    margin-top: 0.5rem;
    letter-spacing: -0.02em;
}

.manager-intro p {
    font-size: 1.1rem;
    color: var(--color-text-gray, #666666);
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
}

/* Abas Verticais */
.manager-tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.manager-tab-btn {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: #f8faf9;
    border: 1px solid #eaeaea;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.manager-tab-btn i {
    width: 24px;
    height: 24px;
    color: var(--color-brand-green, #184530);
    margin-top: 0.2rem;
    transition: color 0.3s ease;
}

.manager-tab-btn h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-brand-green, #184530);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.manager-tab-btn p {
    font-size: 0.9rem;
    color: var(--color-text-gray, #666666);
    line-height: 1.45;
}

.manager-tab-btn:hover {
    background-color: #f1f5f3;
    border-color: var(--color-brand-green, #184530);
    transform: translateX(5px);
}

.manager-tab-btn.active {
    background: var(--color-brand-green, #184530);
    border-color: var(--color-brand-green, #184530);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(24, 69, 48, 0.15);
}

.manager-tab-btn.active h4 {
    color: #ffffff;
}

.manager-tab-btn.active p {
    color: rgba(255, 255, 255, 0.8);
}

.manager-tab-btn.active i {
    color: var(--color-brand-yellow, #ffbc00);
}

/* Coluna de Imagens das Abas */
.manager-display {
    position: relative;
    width: 100%;
    height: 380px;
    background: #f8faf9;
    border-radius: 24px;
    border: 1px solid #eaeaea;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.manager-display-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    pointer-events: none;
    z-index: 1;
}

.manager-display-item.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

.manager-display-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.manager-display-item img:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   Simulador de Cotação (Novo Componente)
   ========================================================================== */
.chips-pricing {
    padding: 8rem 0;
    background-color: var(--color-bg-light, #F4F6F5);
    color: var(--color-text-dark, #1e1e1e);
}

.pricing-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-intro h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-brand-green, #184530);
    margin-top: 0.5rem;
    letter-spacing: -0.02em;
}

.pricing-intro p {
    font-size: 1.15rem;
    color: var(--color-text-gray, #666666);
    max-width: 600px;
    margin: 1rem auto 0 auto;
}

.simulador-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.simulador-options {
    padding: 4rem 3.5rem;
}

.simulador-step {
    margin-bottom: 3rem;
}

.simulador-step:last-child {
    margin-bottom: 0;
}

.simulador-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-brand-green, #184530);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.simulador-step h3 span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(24, 69, 48, 0.1);
    color: var(--color-brand-green, #184530);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

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

.selector-btn {
    background: #f8faf9;
    border: 1.5px solid #eaeaea;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    font-family: var(--font-heading), sans-serif;
    font-weight: 600;
    color: var(--color-text-dark, #1e1e1e);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
}

.selector-btn:hover {
    background-color: #f1f5f3;
    border-color: var(--color-brand-green, #184530);
}

.selector-btn.active {
    background-color: var(--color-brand-green, #184530);
    border-color: var(--color-brand-green, #184530);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(24, 69, 48, 0.15);
}

/* Coluna de Cotação / Resumo */
.simulador-quote-card {
    background: linear-gradient(135deg, var(--color-brand-green, #184530) 0%, #0d281a 100%);
    color: #ffffff;
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.simulador-quote-card::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(240, 181, 48, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.quote-header h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.quote-summary-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.75rem;
    margin: 2rem 0;
}

.quote-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.quote-summary-item:last-child {
    margin-bottom: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-summary-item span:first-child {
    color: rgba(255, 255, 255, 0.7);
}

.quote-summary-item span:last-child {
    font-weight: 600;
    color: var(--color-brand-yellow, #ffbc00);
}

/* Formulário de Lead Integrado */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quote-input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.quote-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.quote-input:focus {
    outline: none;
    border-color: var(--color-brand-yellow, #ffbc00);
    background: rgba(255, 255, 255, 0.1);
}

.quote-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-submit-quote {
    background-color: var(--color-brand-yellow, #ffbc00);
    color: #111111;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-submit-quote:hover {
    background-color: var(--color-brand-yellow-hover, #dba62c);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-yellow);
}

/* ==========================================================================
   Operadoras M2M
   ========================================================================== */
.chips-gigabytes {
    padding: 6rem 0;
    background-color: var(--color-bg-white, #ffffff);
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.gigabytes-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.gigabytes-text h2 {
    color: var(--color-brand-green, #184530);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.gigabytes-text p {
    color: var(--color-text-gray, #666666);
    font-size: 1.1rem;
}

.gigabytes-logos {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo-box {
    background: #f8faf9;
    border: 1px solid #eaeaea;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.logo-box:hover {
    transform: translateY(-3px);
    border-color: var(--color-brand-green, #184530);
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
}

.logo-box h3 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   CTA Final (Chips)
   ========================================================================== */
.chips-cta {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--color-brand-green, #184530) 0%, #0d281a 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.chips-cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.chips-cta h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.chips-cta p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* ==========================================================================
   Lightbox / Zoom de Imagens (Copiado de plataforma.css para coerência)
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 40, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--color-brand-yellow, #ffbc00);
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 992px) {
    .chips-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .chips-hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .card-large {
        grid-column: span 1;
    }
    
    .manager-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .simulador-grid {
        grid-template-columns: 1fr;
    }
    
    .simulador-options {
        padding: 3rem 2rem;
    }
    
    .simulador-quote-card {
        padding: 3rem 2rem;
    }
    
    .gigabytes-container {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    
    .gigabytes-logos {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .selector-buttons {
        grid-template-columns: 1fr;
    }
    
    .chips-cta h2 {
        font-size: 2.2rem;
    }
}
