/* ==============================================================
   BEMAX - PAGES CSS (Páginas filhas: Odonto, Tele, Telepsi, Cartão)
   Depende de global.css para variáveis e componentes base
============================================================== */

/* ==============================================================
   HERO DAS PÁGINAS FILHAS (Odonto, Telemedicina, Telepsicologia)
============================================================== */
.hero-container {
    padding: 60px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.hero-header-area h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero-header-area h1 span { color: var(--bemax-teal); }

/* LAYOUT: IMAGEM + 3 PERKS */
.hero-middle-row {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: center; gap: 40px; margin-bottom: 40px;
}
.hero-visual-box {
    position: relative; flex: 1 1 400px; max-width: 500px;
}
.hero-visual-box img {
    width: 100%; border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}
.hero-badge-float {
    position: absolute; top: 25px; left: -15px;
    background: var(--bemax-teal); color: white;
    font-weight: 800; padding: 10px 22px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 20px rgba(20, 164, 180, 0.4);
    transform: rotate(-2deg); z-index: 2;
    text-transform: uppercase; font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.hero-perks-box {
    flex: 1 1 300px; display: flex;
    flex-direction: column; gap: 18px; text-align: left;
}
.perk-row {
    display: flex; align-items: flex-start; gap: 15px;
    background: white; padding: 18px;
    border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease;
}
.perk-row:hover { transform: translateX(5px); }
.perk-num {
    background: var(--bemax-teal); color: white;
    width: 34px; height: 34px; display: flex;
    align-items: center; justify-content: center;
    border-radius: 50%; font-weight: 800; flex-shrink: 0;
    font-size: 0.9rem;
}
.perk-txt h3 { font-size: 1.05rem; color: var(--text-dark); margin: 0 0 4px; }
.perk-txt p { font-size: 0.9rem; color: var(--text-gray); line-height: 1.4; margin: 0; }

.hero-cta-area {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 15px; margin-bottom: 30px;
    align-items: flex-start;
}
.cta-wrapper { flex-shrink: 0; }
.trust-highlight-centered {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; color: var(--text-gray); font-size: 0.9rem;
}

/* ==============================================================
   FEATURE CARDS (Grid 3-col ou 2x2)
============================================================== */
.features-grid {
    background: var(--bg-gray); padding: 70px 20px;
}
.features-container {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px;
}
/* Forçar 2x2 quando tiver exatamente 4 cards */
.features-container.grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
}
/* Forçar 3x2 para Telemedicina */
.features-grid.grid-3x2 .features-container {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
}
.feature-card {
    background: white; padding: 35px 25px;
    border-radius: var(--radius-md); text-align: center;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-card h3 { color: var(--text-dark); margin: 10px 0 8px; font-size: 1.1rem; }
.feature-card p { color: var(--text-gray); font-size: 0.9rem; margin: 0; }
.feature-card div:first-child { font-size: 2.2rem; margin-bottom: 5px; }

.section-intro {
    text-align: center; margin-bottom: 40px;
    max-width: 700px; margin-left: auto; margin-right: auto;
}
.section-intro h2 { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 12px; font-weight: 800; }
.section-intro p { font-size: 1.05rem; color: var(--text-gray); }
.icon-box { margin-bottom: 15px; }
.icon-box svg { width: 45px; height: 45px; fill: var(--bemax-teal); display: inline-block; }

.centered-why { text-align: center; }
.centered-why .why-container { display: block; max-width: 800px; }
.subpage-section-title {
    font-size: 2.6rem; font-weight: 900; color: var(--text-dark);
    margin-bottom: 20px; text-transform: uppercase; font-style: italic;
    letter-spacing: -1px; line-height: 1.1;
}
.subpage-section-title span { color: var(--bemax-teal); }
.cta-centered { margin-top: 35px; }

/* ==============================================================
   KIDS / SPLIT SECTION (Odontopediatria, Telepsicologia infantil)
============================================================== */
.kids-section { padding: 80px 20px; background: white; }
.kids-content {
    max-width: 1100px; margin: 0 auto;
    display: flex; flex-wrap: wrap;
    align-items: center; gap: 50px;
}
.kids-img-wrapper {
    flex: 1 1 400px; border-radius: var(--radius-md);
    overflow: hidden; box-shadow: var(--shadow-lg);
}
.kids-img-wrapper img { width: 100%; display: block; }
.kids-text { flex: 1 1 400px; text-align: left; }
.kids-badge {
    display: inline-block; background: #FEF3C7; color: #D97706;
    padding: 6px 16px; border-radius: 20px;
    font-weight: 700; font-size: 0.8rem;
    margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px;
}
.kids-text h2 { font-size: 2rem; margin-bottom: 15px; color: var(--text-dark); font-weight: 800; }

/* ==============================================================
   PRONTEA SECTION (Telepsicologia)
============================================================== */
.prontea-section { padding: 80px 20px; background: var(--bg-gray); }
.prontea-container {
    max-width: 1100px; margin: 0 auto;
    display: flex; flex-wrap: wrap;
    align-items: center; gap: 50px;
}
.prontea-img-wrapper {
    flex: 1 1 400px; border-radius: var(--radius-md);
    overflow: hidden; box-shadow: var(--shadow-lg);
}
.prontea-img-wrapper img { width: 100%; display: block; border-radius: var(--radius-md); }
.prontea-text { flex: 1 1 400px; text-align: left; }
.prontea-text .logo-prontea { height: 60px; width: auto; margin-bottom: 20px; display: block; }
.prontea-text h2 { font-size: 2rem; margin-bottom: 15px; color: var(--text-dark); font-weight: 800; }
.prontea-text p { font-size: 1.05rem; color: var(--text-gray); margin-bottom: 25px; line-height: 1.6; }

/* ==============================================================
   NETWORK / STATS SECTION (Telemedicina)
============================================================== */
.network-section { padding: 70px 20px; background: var(--bemax-teal); text-align: center; }
.network-container { max-width: 900px; margin: 0 auto; }
.network-container h2 { color: white; font-size: 2rem; font-weight: 900; margin-bottom: 30px; }
.network-stats {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 40px;
}
.stat-item { text-align: center; min-width: 150px; }
.stat-item h4 { color: white; font-size: 2.5rem; font-weight: 900; margin: 0 0 5px; }
.stat-item p { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin: 0; }

/* ==============================================================
   PRICING DAS PÁGINAS FILHAS
============================================================== */
.pricing-lp {
    padding: 80px 20px; background: var(--bg-gray); text-align: center;
}
.pricing-lp h2 {
    font-size: 2.2rem; color: var(--text-dark);
    margin-bottom: 40px; font-weight: 800;
}
.price-card-main {
    background: white; max-width: 600px;
    margin: 0 auto; border-radius: var(--radius-md);
    overflow: hidden; box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}
.price-card-main .header {
    background: white; padding: 40px 20px 20px;
    text-align: center;
}
.price-card-main .header p {
    font-weight: 800; color: var(--bemax-teal); 
    font-size: 1rem; text-transform: uppercase; 
    letter-spacing: 2px; margin-top: 15px;
}
.price-rows { padding: 10px 30px 25px; }
.p-header {
    display: grid; grid-template-columns: repeat(3, 1fr);
    padding: 12px 0; border-bottom: 2px solid var(--bemax-soft-teal);
    font-size: 0.75rem; font-weight: 800; color: var(--bemax-teal);
    text-transform: uppercase; letter-spacing: 1px;
}
.p-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    align-items: center; padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem; color: var(--text-dark); font-weight: 700;
}
.p-row:last-child { border-bottom: none; }
.p-row span:first-child { text-align: left; }
.p-row span:nth-child(2) { text-align: center; color: var(--text-gray); font-size: 0.85rem; }
.p-row span:last-child, .p-row .value, .p-row .val {
    text-align: right; font-weight: 900; color: var(--bemax-teal); font-size: 1.1rem;
}
.price-footer { padding: 10px 30px 40px; text-align: center; }

/* ==============================================================
   ACCORDION DE ESPECIALIDADES (Telemedicina + Cartão Saúde)
============================================================== */
.specs-accordion-wrapper {
    max-width: 700px; margin: 20px auto 0; text-align: left;
}
.accordion-trigger {
    width: 100%; padding: 18px 25px; background: white;
    border: 1px solid var(--border-light); border-radius: var(--radius-sm);
    font-size: 1rem; font-weight: 700; color: var(--text-dark);
    cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; transition: 0.3s;
}
.accordion-trigger:hover { background: var(--bemax-soft-teal); }
.accordion-trigger span:last-child { color: var(--bemax-teal); font-size: 1.3rem; }
.specs-accordion-wrapper .accordion-content {
    display: none; padding: 20px; background: white;
    border: 1px solid var(--border-light); border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.specs-accordion-wrapper.open .accordion-content { display: block; }
.specs-accordion-wrapper.open .accordion-trigger {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    color: var(--bemax-teal); border-bottom-color: transparent;
}
.specs-grid, .specialties-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px; font-size: 0.85rem;
}
.spec-item {
    background: var(--bg-gray); padding: 8px 12px;
    border-radius: 8px; border: 1px solid var(--border-light);
    text-align: center; font-weight: 700; color: var(--text-dark);
}

/* Accordion do Cartão Saúde (inline) */
.specialties-accordion {
    display: none; padding: 20px; background: white;
    border-radius: var(--radius-sm); margin: 10px 0 20px 40px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-light);
}
.specialties-accordion.open { display: block; }
.btn-mini-link {
    background: none; border: none; color: var(--bemax-teal);
    text-decoration: underline; cursor: pointer;
    font-weight: bold; font-family: inherit; font-size: inherit;
}

/* ==============================================================
   CARTÃO SAÚDE - HERO, CLÍNICAS, CHECKUP
============================================================== */
.hero-lp {
    display: flex; flex-wrap: wrap; align-items: center;
    padding: 60px 20px; max-width: 1200px; margin: 0 auto; gap: 40px;
}
.hero-lp-content { flex: 1 1 500px; text-align: left; }
.hero-lp-content h1 { font-size: 2.6rem; color: var(--text-dark); margin-bottom: 20px; line-height: 1.2; font-weight: 800; }
.hero-lp-content h1 span { color: var(--bemax-teal); }
.hero-lp-content p { font-size: 1.05rem; color: var(--text-gray); margin-bottom: 25px; line-height: 1.6; }
.hero-lp-image { flex: 1 1 400px; position: relative; }
.hero-lp-image img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.hero-logo-brand { height: 60px; margin-bottom: 20px; display: block; }
.hero-highlights-grid { margin-bottom: 25px; display: grid; gap: 12px; }
.hero-highlights-grid .h-item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-dark); }
.hero-highlights-grid .h-item svg { width: 20px; height: 20px; fill: var(--bemax-teal); flex-shrink: 0; }

/* Clínicas */
.clinics-section { padding: 70px 20px; background: white; text-align: center; }
.clinics-header h2 { font-size: 2rem; color: var(--text-dark); margin-bottom: 40px; font-weight: 800; }
.carousel-wrapper { max-width: 1200px; margin: 0 auto; overflow: hidden; }
.carousel-container {
    display: flex; gap: 20px; overflow-x: auto;
    scroll-snap-type: x mandatory; padding: 10px 0 20px;
    scrollbar-width: thin; scrollbar-color: var(--bemax-teal) transparent;
    cursor: grab;
}
.carousel-container:active { cursor: grabbing; }
.clinic-card {
    background: white; padding: 25px; border-radius: 20px;
    border: 1px solid var(--border-light); min-width: 240px;
    text-align: center; scroll-snap-align: start; flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.clinic-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(20, 164, 180, 0.12);
    border-color: var(--bemax-teal);
}
.clinic-card .img-frame { 
    height: 100px; display: flex; align-items: center; justify-content: center; 
    margin-bottom: 20px; padding: 15px; background: var(--bg-gray);
    border-radius: 15px; transition: 0.3s;
}
.clinic-card:hover .img-frame { background: white; }
.clinic-card img { max-height: 100%; max-width: 100%; object-fit: contain; filter: grayscale(1); transition: 0.4s; }
.clinic-card:hover img { filter: grayscale(0); }
.clinic-card h4 { margin: 0; font-size: 1rem; color: var(--text-dark); font-weight: 800; letter-spacing: -0.5px; }

/* Checkup */
.checkup-detail { padding: 80px 20px; background: var(--bg-gray); }
.checkup-content {
    display: flex; flex-wrap: wrap; max-width: 1200px;
    margin: 0 auto; gap: 40px; align-items: center;
}
.checkup-text { flex: 1 1 500px; text-align: left; }
.checkup-text h2 { font-size: 2.2rem; margin-bottom: 15px; color: var(--text-dark); font-weight: 800; }
.checkup-text p { font-size: 1.05rem; color: var(--text-gray); margin-bottom: 25px; line-height: 1.6; }
.checkup-text ul { list-style: none; padding: 0; margin-bottom: 25px; }
.checkup-text li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 600; color: var(--text-dark); }
.checkup-text li svg { width: 22px; height: 22px; stroke: var(--bemax-teal); fill: none; flex-shrink: 0; stroke-width: 3px; }
.checkup-image { flex: 1 1 400px; }
.checkup-image img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }

/* ==============================================================
   MODAL REDE CREDENCIADA (Odonto)
============================================================== */
.rede-modal-overlay {
    display: none; position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75); z-index: 99999;
    align-items: center; justify-content: center; padding: 20px;
}
.rede-modal-content {
    background: white; width: 100%; max-width: 1200px;
    height: 90vh; border-radius: var(--radius-sm);
    position: relative; overflow: hidden;
}
.rede-modal-close {
    position: absolute; top: 15px; right: 15px;
    background: rgba(0,0,0,0.08); border: none;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; transition: 0.3s;
}
.rede-modal-close:hover { background: rgba(0,0,0,0.15); }
.rede-modal-content iframe { width: 100%; height: 100%; border: none; }

/* ==============================================================
   COBERTURA COMPLETA (Odonto)
============================================================== */
.coverage-summary {
    padding: 80px 20px;
    background: var(--bg-gray);
    text-align: center;
}
.coverage-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-dark);
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
}
.coverage-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 780px;
    margin: 0 auto 35px;
}
.cov-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 28px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}
.cov-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--bemax-teal);
}
.cov-card span { font-size: 2rem; display: block; margin-bottom: 10px; }
.cov-card h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
}
.coverage-link-btn {
    background: none;
    border: none;
    border-bottom: 2px solid var(--bemax-teal);
    color: var(--bemax-teal);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 4px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    font-family: inherit;
}
.coverage-link-btn:hover { color: #0d7b8a; border-color: #0d7b8a; }

/* Modal de Cobertura */
.coverage-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.coverage-modal-overlay.open { display: flex; }
.coverage-modal-content {
    background: white;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}
.coverage-modal-header {
    background: #0F172A;
    padding: 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-shrink: 0;
}
.coverage-modal-title {
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    font-size: 1rem;
    color: white;
    margin: 0 0 4px;
    line-height: 1.2;
}
.coverage-modal-sub {
    font-size: 0.7rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 4px;
}
.coverage-modal-disclaimer {
    font-size: 0.7rem;
    color: #FB923C;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    margin: 0;
    line-height: 1.3;
}
.coverage-modal-close {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s;
}
.coverage-modal-close:hover { color: white; }

/* Modal body scroll */
.coverage-modal-content .modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 0;
}
.coverage-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    background: #F8FAFC;
    flex-shrink: 0;
}

/* Accordion interno do modal */
.spec-accordion-item { border-bottom: 1px solid var(--border-light); }
.spec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-dark);
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    user-select: none;
}
.spec-header:hover { background: var(--bg-gray); }
.spec-header span { color: var(--bemax-teal); font-size: 1.2rem; transition: transform 0.2s; }
.spec-header.open span { transform: rotate(45deg); }
.spec-list {
    display: none;
    padding: 0 24px 16px;
    animation: fadeSlide 0.25s ease;
}
.spec-list.open { display: block; }
.spec-list ul {
    list-style: none;
    padding: 0; margin: 0;
    columns: 2; column-gap: 20px;
}
.spec-list ul li {
    font-size: 0.88rem;
    color: var(--text-gray);
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
    break-inside: avoid;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==============================================================
   RESPONSIVO PARA PÁGINAS FILHAS
============================================================== */
@media (max-width: 768px) {
    .hero-header-area h1 { font-size: 2rem; }
    .hero-middle-row { gap: 25px; }
    .hero-visual-box { max-width: 100%; }
    .hero-badge-float { left: 10px; top: 15px; font-size: 0.75rem; padding: 8px 16px; }
    .kids-content { flex-direction: column; }
    .prontea-container { flex-direction: column; }
    .hero-lp { flex-direction: column; text-align: center; }
    .hero-lp-content { text-align: center; }
    .checkup-content { flex-direction: column; }
    .features-container.grid-2x2 { grid-template-columns: 1fr; }
    .network-stats { flex-direction: column; gap: 25px; }
    .pricing-lp h2 { font-size: 1.8rem; }
    .carousel-container { padding-left: 20px; }
    .features-grid.grid-3x2 .features-container { grid-template-columns: 1fr; }
    .coverage-grid { grid-template-columns: repeat(2, 1fr); }
    .coverage-title { font-size: 1.7rem; }
    .spec-list ul { columns: 1; }
}

/* ==============================================================
   PRIVACIDADE
============================================================== */
.privacidade-wrapper {
    max-width: 800px; margin: 0 auto; padding: 40px 20px 80px;
    font-family: 'Inter', sans-serif; color: var(--text-dark, #1E293B); line-height: 1.8;
}
.privacidade-wrapper .back-home {
    display: inline-block; margin-bottom: 30px;
    color: var(--bemax-teal, #14A4B4); text-decoration: none;
    font-weight: 700; font-size: 0.9rem;
}
.privacidade-wrapper .logo-top { height: 50px; margin-bottom: 30px; display: block; }
.privacidade-wrapper h2 { font-size: 2rem; font-weight: 800; margin-bottom: 20px; }
.privacidade-wrapper h3 { font-size: 1.3rem; font-weight: 800; margin-top: 35px; margin-bottom: 15px; color: var(--text-dark); }
.privacidade-wrapper p { color: var(--text-gray, #64748B); margin-bottom: 15px; }
.privacidade-wrapper ul { padding-left: 20px; margin-bottom: 20px; }
.privacidade-wrapper li { color: var(--text-gray, #64748B); margin-bottom: 10px; }
