:root {
    --blue-hospital: #005b96;
    --blue-hospital-hover: #004a7c;
    --blue-light: #e8f2fa;
    --blue-dark: #1a365d;
    --bg-white: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --card-border: #edf2f7;
    --green-ok: #276749;
    --green-light: #f0fff4;
    /* Color distintivo Ambulatorio 70: naranja cálido */
    --pamb: #b45309;
    --pamb-light: #fffbeb;
    --pamb-dark: #78350f;
    --pamb-mid: #d97706;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background-color: var(--bg-white); color: var(--text-dark); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* NAVBAR */
.navbar { position: fixed; top: 0; left: 0; right: 0; width: 100%; background-color: var(--bg-white); box-shadow: 0 4px 15px rgba(0,0,0,0.05); z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 90px; width: 100%; margin: 0 auto; padding: 0 5%; }
@media (min-width: 1025px) { .nav-container { padding: 0 2%; max-width: 1800px; } }
.logo-img { height: 45px; width: auto; display: block; }
.mobile-toggle, .mobile-menu-header, .close-menu, .nav-overlay { display: none; }
.nav-list { display: flex; list-style: none; align-items: center; gap: 1.5rem; }
.nav-item { position: relative; }
.nav-link { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 0.95rem; transition: color 0.3s ease; display: flex; align-items: center; gap: 0.2rem; white-space: nowrap; }
.nav-link i { font-size: 0.75rem; transition: transform 0.3s ease; }
.nav-link:hover { color: var(--blue-hospital); }
.dropdown-menu { position: absolute; top: 100%; left: 0; background-color: var(--bg-white); min-width: 260px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 0.5rem; padding: 1rem 0; list-style: none; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; z-index: 1001; }
@media (min-width: 1025px) { .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); } .dropdown:hover .nav-link i { transform: rotate(180deg); } }
.dropdown-menu li a { display: block; padding: 0.6rem 1.5rem; text-decoration: none; color: var(--text-dark); font-size: 0.9rem; transition: background-color 0.3s ease, color 0.3s ease; }
.dropdown-menu li a:hover { background-color: #f7fafc; color: var(--blue-hospital); }
.btn-contacto-nav { background-color: var(--blue-hospital); color: var(--bg-white) !important; padding: 0.7rem 1.8rem; border-radius: 50px; transition: background-color 0.3s ease; font-weight: 600; }
.btn-contacto-nav:hover { background-color: var(--blue-hospital-hover); }

@media (max-width: 1024px) {
    .mobile-toggle { display: block; font-size: 1.8rem; color: var(--blue-hospital); background: none; border: none; cursor: pointer; }
    .nav-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); opacity: 0; visibility: hidden; transition: opacity 0.4s ease; z-index: 1005; }
    .nav-overlay.active { opacity: 1; visibility: visible; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 85vw; max-width: 450px; height: 100vh; background-color: var(--bg-white); box-shadow: -5px 0 20px rgba(0,0,0,0.1); flex-direction: column; padding: 0; transition: right 0.4s cubic-bezier(0.77,0,0.175,1); z-index: 1010; overflow-y: auto; display: flex; }
    .nav-menu.open { right: 0; }
    .mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 5%; border-bottom: 1px solid var(--card-border); }
    .close-menu { display: block; background: none; border: none; font-size: 1.8rem; color: var(--text-dark); cursor: pointer; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 0; }
    .nav-item { border-bottom: 1px solid #f0f4f8; }
    .nav-link { padding: 1.2rem 5%; justify-content: space-between; }
    .btn-contacto-nav { margin: 1.5rem 5%; text-align: center; justify-content: center; }
    .dropdown-menu { position: static; width: 100%; box-shadow: none; border-radius: 0; padding: 0; opacity: 1; visibility: visible; transform: none; display: none; background-color: #f8fafc; }
    .dropdown.active .dropdown-menu { display: block; }
    .dropdown.active .nav-link i { transform: rotate(180deg); }
    .dropdown-menu li a { padding: 0.8rem 5% 0.8rem 10%; }
}

/* HERO — naranja cálido, único en la gama */
.cob-hero {
    position: relative;
    background: linear-gradient(135deg, #1c0a00 0%, #b45309 55%, #005b96 100%);
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    overflow: hidden;
}
.cob-hero__bg {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 12% 55%, rgba(180,83,9,0.3) 0%, transparent 55%),
        radial-gradient(circle at 88% 15%, rgba(0,91,150,0.2) 0%, transparent 50%);
    pointer-events: none;
}
.cob-hero__content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero-top-row { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.cob-hero__badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.12); color: #fff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 1rem; border-radius: 50px; border: 1px solid rgba(255,255,255,0.2); }
.cob-hero__badge--fonasa { background: rgba(180,83,9,0.45); border-color: rgba(253,186,116,0.5); color: #fde68a; }
.cob-hero__title { font-size: clamp(2rem, 4.5vw, 3rem); color: #fff; line-height: 1.15; margin-bottom: 0.3rem; font-weight: 300; }
.cob-hero__title em { font-style: italic; font-weight: 300; }
.cob-hero__title strong { font-weight: 700; }
.cob-hero__subtitulo-plan {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900; color: #fff; line-height: 1.1;
    margin-bottom: 1rem; letter-spacing: -0.02em;
}
.cob-hero__subtitle { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 2.5rem; }
.cob-hero__subtitle strong { color: #fde68a; font-weight: 600; }
.cob-hero__stats { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 2.5rem; background: rgba(255,255,255,0.08); border-radius: 1rem; padding: 1.5rem; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.12); }
.stat { text-align: center; padding: 0.5rem 2rem; }
.stat__num { display: block; font-size: 1.6rem; font-weight: 700; color: #fff; }
.stat__label { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.65); margin-top: 0.2rem; }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.2); }
.cob-hero__cta { display: inline-block; background-color: #fff; color: var(--pamb); font-weight: 700; font-size: 1rem; padding: 0.9rem 2.5rem; border-radius: 50px; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.cob-hero__cta:hover { background-color: var(--pamb-dark); color: #fff; transform: translateY(-2px); }

/* TÍTULOS */
.section-title { font-size: 1.9rem; color: var(--blue-dark); text-align: center; margin-bottom: 0.6rem; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 2.5rem; max-width: 750px; margin-left: auto; margin-right: auto; }

/* SOBRE EL SEGURO */
.sobre-seguro { padding: 2rem 1.5rem; background: #fff; }
.sobre-card { background: var(--pamb-light); border-left: 4px solid var(--pamb); border-radius: 0.8rem; padding: 2rem 2.5rem; }
.sobre-card__title { color: var(--pamb); font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.sobre-list { list-style: none; padding: 0; }
.sobre-list > li { padding: 0.5rem 0; padding-left: 1.2rem; position: relative; font-size: 0.95rem; border-bottom: 1px solid rgba(180,83,9,0.1); }
.sobre-list > li:last-child { border-bottom: none; }
.sobre-list > li::before { content: '•'; position: absolute; left: 0; color: var(--pamb); font-weight: 700; }

/* RESUMEN COBERTURA VISUAL */
.resumen-cobertura-section { padding: 3rem 1.5rem; background: #f8fbff; }
.cobertura-visual {
    display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start;
    background: #fff; border: 1px solid var(--card-border); border-radius: 1rem;
    padding: 2rem; margin-bottom: 1.5rem;
}
.cobertura-visual__pct {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--pamb); color: #fff; border-radius: 1rem;
    padding: 1.5rem 2rem; min-width: 140px; text-align: center; flex-shrink: 0;
}
.cobertura-visual__num { font-size: 3rem; font-weight: 900; line-height: 1; }
.cobertura-visual__label { font-size: 0.75rem; opacity: 0.85; margin-top: 0.3rem; line-height: 1.3; }
.cobertura-visual__lista { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.8rem; }
.cob-item { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.6rem 0.8rem; background: var(--pamb-light); border-radius: 0.6rem; font-size: 0.88rem; }
.cob-item__icon { width: 32px; height: 32px; background: var(--pamb); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }

.notas-bloque { background: #fffbeb; border: 1px solid #fde68a; border-radius: 0.8rem; padding: 1.2rem 1.5rem; }
.notas-bloque p { font-size: 0.83rem; color: #78350f; padding: 0.3rem 0; border-bottom: 1px solid rgba(120,53,15,0.1); }
.notas-bloque p:last-child { border-bottom: none; }

/* DEDUCIBLES */
.deducibles-section { padding: 2rem 1.5rem; background: #fff; }
.deducibles-bloque { background: var(--pamb-light); border-left: 4px solid var(--pamb); border-radius: 0.8rem; padding: 1.5rem 2rem; }
.deducibles-bloque h3 { color: var(--pamb); font-size: 1rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.deducibles-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.deducible-item { flex: 1; min-width: 180px; background: var(--pamb); color: #fff; border-radius: 0.6rem; padding: 0.8rem 1.2rem; display: flex; flex-direction: column; gap: 0.2rem; }
.deducible-item--highlight { background: var(--pamb-dark); }
.deducible-label { font-size: 0.72rem; opacity: 0.85; line-height: 1.3; }
.deducible-val { font-size: 1.2rem; font-weight: 700; }

/* TABLAS Y ACORDEÓN */
.tablas-section { padding: 3rem 1.5rem; background: #fff; }
.dental-section { padding: 3rem 1.5rem; background: var(--pamb-light); }
.condiciones-section { padding: 3rem 1.5rem; background: #f8fbff; }

.accordion { margin-bottom: 0.8rem; border-radius: 0.8rem; overflow: hidden; border: 1px solid var(--card-border); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.accordion__btn { width: 100%; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem; background: #fff; border: none; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 600; color: var(--blue-dark); text-align: left; transition: background 0.25s ease; }
.accordion__btn:hover { background: var(--pamb-light); }
.accordion__btn.open { background: var(--pamb-light); }
.accordion__icon-wrap { width: 36px; height: 36px; background: var(--pamb-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.accordion__icon-wrap i { color: var(--pamb); font-size: 0.95rem; }
.accordion__label { flex: 1; }
.accordion__arrow { font-size: 0.85rem; color: var(--text-light); transition: transform 0.35s ease; flex-shrink: 0; }
.accordion__btn.open .accordion__arrow { transform: rotate(180deg); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1); background: #fff; }
.accordion__body.open { max-height: 3000px; }

/* TABLAS */
.table-responsive { overflow-x: auto; padding: 1.5rem; }
.cob-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.cob-table thead tr { background: var(--blue-dark); color: #fff; }
.cob-table thead th { padding: 0.9rem 1rem; text-align: left; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.cob-table tbody tr { border-bottom: 1px solid var(--card-border); transition: background 0.2s ease; }
.cob-table tbody tr:last-child { border-bottom: none; }
.cob-table tbody tr:hover { background: var(--pamb-light); }
.cob-table tbody td { padding: 0.85rem 1rem; color: var(--text-dark); vertical-align: middle; font-size: 0.88rem; }

/* BADGES */
.badge-pct { display: inline-block; background: var(--pamb); color: #fff; font-weight: 700; font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 50px; white-space: nowrap; }
.badge-free { display: inline-block; background: var(--green-light); color: var(--green-ok); font-weight: 700; font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 50px; border: 1px solid #9ae6b4; }

.table-note { background: #fffbeb; border-left: 3px solid #f6ad55; padding: 0.8rem 1rem 0.8rem 1.5rem; font-size: 0.83rem; color: #744210; margin: 0 1.5rem 1.5rem; border-radius: 0 0.4rem 0.4rem 0; display: flex; gap: 0.5rem; align-items: flex-start; }
.table-note i { margin-top: 0.15rem; flex-shrink: 0; color: #ed8936; }

.notas-tabla { background: #fff3cd; border: 1px solid #ffc107; border-radius: 0.6rem; margin: 0 1.5rem 1.5rem; padding: 1rem 1.2rem; font-size: 0.85rem; color: #856404; }
.notas-tabla p { display: flex; align-items: flex-start; gap: 0.5rem; }
.notas-tabla p i { margin-top: 0.2rem; flex-shrink: 0; color: #d97706; }

/* CONDICIONES */
.cond-intro { padding: 1.5rem 1.5rem 0; }
.cond-intro p { font-size: 0.92rem; color: var(--text-dark); margin-bottom: 0.6rem; }
.condiciones-list { padding: 1.5rem; }
.condicion-item { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.8rem 0; border-bottom: 1px solid var(--card-border); }
.condicion-item:last-child { border-bottom: none; }
.condicion-item i { color: var(--pamb); margin-top: 0.25rem; flex-shrink: 0; }
.condicion-item p { font-size: 0.92rem; color: var(--text-dark); }
.notas-contratacion { background: var(--pamb-light); margin: 0 1.5rem 1.5rem; padding: 1rem 1.2rem; border-radius: 0.6rem; border: 1px solid #fde68a; }
.notas-contratacion p { font-size: 0.83rem; color: var(--pamb-dark); padding: 0.25rem 0; border-bottom: 1px solid rgba(180,83,9,0.1); }
.notas-contratacion p:last-child { border-bottom: none; }

/* LEGAL */
.legal-section { padding: 2rem 1.5rem; background: #f0f4f8; }
.legal-text { font-size: 0.82rem; color: var(--text-light); text-align: center; max-width: 900px; margin: 0 auto; }

/* CTA */
.cta-final { padding: 4rem 1.5rem; background: linear-gradient(135deg, var(--pamb-dark), var(--pamb)); text-align: center; }
.cta-final h2 { color: #fff; font-size: 2rem; margin-bottom: 0.6rem; }
.cta-final p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1rem; }
.btn-cta-final { display: inline-block; background: #fff; color: var(--pamb); font-weight: 700; font-size: 1rem; padding: 0.9rem 2.8rem; border-radius: 50px; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.btn-cta-final:hover { background: var(--pamb-dark); color: #fff; transform: translateY(-2px); }

/* FOOTER */
.footer { background-color: #1a365d; color: #fff; }
.footer-wrapper { display: flex; flex-wrap: wrap; gap: 3rem; padding: 3.5rem 1.5rem; justify-content: space-between; }
.footer-logo-col { flex: 1; min-width: 200px; }
.logo-img-footer { height: 45px; width: auto; display: block; margin-bottom: 1.5rem; }
.footer-logo-col p { color: #cbd5e0; font-size: 0.95rem; line-height: 1.6; }
.footer-info-col { flex: 2; display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 768px) { .footer-info-col { flex-direction: row; justify-content: flex-end; gap: 6rem; } }
.footer-links h3, .footer-contact h3 { font-size: 1.2rem; margin-bottom: 1.5rem; color: #fff; font-weight: 600; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #cbd5e0; text-decoration: none; transition: color 0.3s ease; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact p { color: #cbd5e0; margin-bottom: 0.8rem; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-contact p i { color: #63b3ed; width: 20px; text-align: center; font-size: 1.1rem; }
.footer-bottom { background-color: #1a365d; text-align: center; padding: 1.5rem 2rem; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom p { color: #a0aec0; font-size: 0.9rem; margin: 0; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .cob-hero { padding: 3.5rem 1.2rem 3rem; }
    .cob-hero__subtitulo-plan { font-size: clamp(2rem, 10vw, 3.5rem); }
    .cob-hero__stats { flex-direction: column; gap: 0.5rem; }
    .stat-divider { width: 60px; height: 1px; }
    .stat { padding: 0.4rem 1rem; }
    .cobertura-visual { flex-direction: column; }
    .cobertura-visual__pct { width: 100%; }
    .cobertura-visual__lista { grid-template-columns: 1fr; }
    .deducibles-row { flex-direction: column; }
    .accordion__btn { font-size: 0.88rem; padding: 1rem; }
    .cob-table { font-size: 0.82rem; }
    .cob-table thead th, .cob-table tbody td { padding: 0.7rem 0.7rem; }
    .section-title { font-size: 1.5rem; }
    .cta-final h2 { font-size: 1.5rem; }
    .sobre-card { padding: 1.5rem; }
}
