/* =========================================
   VARIABLES Y RESET
   ========================================= */
: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;
    --orange: #e65100;
    --orange-light: #fff3e0;
    --pyme70: #0d7a5f; /* verde azulado distinto al Pymes 50 */
    --pyme70-light: #e6f7f3;
}

* { 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 — verde azulado para diferenciarlo del 50
   ========================================= */
.cob-hero {
    position: relative;
    background: linear-gradient(135deg, #062a1f 0%, #0d7a5f 50%, #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 15% 50%, rgba(13,122,95,0.25) 0%, transparent 55%),
        radial-gradient(circle at 85% 15%, rgba(0,91,150,0.2) 0%, transparent 50%);
    pointer-events: none;
}
.cob-hero__content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.cob-hero__badge { display: inline-block; background: rgba(255,255,255,0.15); color: #fff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 1rem; border-radius: 50px; margin-bottom: 1.2rem; border: 1px solid rgba(255,255,255,0.25); }
.cob-hero__title { font-size: clamp(2.2rem, 5vw, 3.5rem); color: #fff; line-height: 1.15; margin-bottom: 0.8rem; font-weight: 300; }
.cob-hero__title em { font-style: italic; font-weight: 300; }
.cob-hero__title strong { font-weight: 800; }
.cob-hero__subtitle { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 2.5rem; }
.cob-hero__subtitle em { font-style: italic; color: #7ee8cc; }
.cob-hero__stats { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 2.5rem; background: rgba(255,255,255,0.1); border-radius: 1rem; padding: 1.5rem; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.15); }
.stat { text-align: center; padding: 0.5rem 2rem; }
.stat__num { display: block; font-size: 1.8rem; font-weight: 700; color: #fff; }
.stat__label { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-top: 0.2rem; }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.25); }
.cob-hero__cta { display: inline-block; background-color: #fff; color: var(--pyme70); 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.2); }
.cob-hero__cta:hover { background-color: var(--blue-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: 700px; margin-left: auto; margin-right: auto; }

/* =========================================
   RESUMEN
   ========================================= */
.resumen-section { padding: 4rem 1.5rem; background: #f8fbff; }
.resumen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.resumen-card { background: #fff; border-radius: 1rem; padding: 2rem 1.5rem; border: 1px solid var(--card-border); transition: box-shadow 0.3s ease, transform 0.3s ease; }
.resumen-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.09); transform: translateY(-3px); }
.resumen-card__icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.3rem; }
.resumen-card--base .resumen-card__icon { background: var(--pyme70-light); color: var(--pyme70); }
.resumen-card--catastrofica .resumen-card__icon { background: var(--green-light); color: var(--green-ok); }
.resumen-card--dental .resumen-card__icon { background: #fff3e0; color: var(--orange); }
.resumen-card h3 { font-size: 1.1rem; color: var(--blue-dark); margin-bottom: 0.5rem; }
.resumen-card p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 1rem; }
.resumen-card__tope { font-size: 0.85rem; background: #f7fafc; border-radius: 0.4rem; padding: 0.4rem 0.8rem; display: inline-block; border: 1px solid var(--card-border); }
.resumen-card__tope strong { color: var(--pyme70); }

/* SOBRE EL SEGURO */
.sobre-card { background: var(--pyme70-light); border-left: 4px solid var(--pyme70); border-radius: 0.8rem; padding: 2rem 2.5rem; }
.sobre-card__title { color: var(--pyme70); 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; margin-bottom: 1.5rem; }
.sobre-list li { padding: 0.5rem 0; padding-left: 1.2rem; position: relative; font-size: 0.95rem; border-bottom: 1px solid rgba(13,122,95,0.1); }
.sobre-list li:last-child { border-bottom: none; }
.sobre-list li::before { content: '•'; position: absolute; left: 0; color: var(--pyme70); font-weight: 700; }
.deducibles-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.deducible-item { flex: 1; min-width: 160px; background: var(--pyme70); color: #fff; border-radius: 0.6rem; padding: 0.8rem 1.2rem; display: flex; flex-direction: column; gap: 0.2rem; }
.deducible-label { font-size: 0.75rem; opacity: 0.8; }
.deducible-val { font-size: 1.1rem; font-weight: 700; }
.sobre-nota { font-size: 0.82rem; color: var(--text-light); }

/* =========================================
   ACORDEÓN
   ========================================= */
.tablas-section { padding: 3rem 1.5rem; background: #fff; }
.catastrofica-section { padding: 3rem 1.5rem; background: var(--green-light); }
.dental-section { padding: 3rem 1.5rem; background: var(--orange-light); }
.reembolso-section { padding: 3rem 1.5rem; background: #f8fbff; }
.condiciones-section { padding: 3rem 1.5rem; background: #fff; }

.catastrofica-title-row { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2rem; }
.catastrofica-title-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green-ok); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }

.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(--blue-light); }
.accordion__btn.open { background: var(--blue-light); }
.accordion__btn--green { background: var(--green-ok); color: #fff; }
.accordion__btn--green:hover { background: #1e5230; }
.accordion__btn--green.open { background: #1e5230; }
.accordion__btn--green .accordion__arrow { color: rgba(255,255,255,0.8); }
.accordion__icon-wrap { width: 36px; height: 36px; background: var(--blue-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.accordion__btn--green .accordion__icon-wrap { background: rgba(255,255,255,0.2); }
.accordion__icon-wrap i { color: var(--blue-hospital); font-size: 0.95rem; }
.accordion__btn--green .accordion__icon-wrap i { color: #fff; }
.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, .accordion__btn--green.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(--blue-light); }
.cob-table tbody td { padding: 0.85rem 1rem; color: var(--text-dark); vertical-align: middle; }
.categoria-cell { background: #f8fbff; font-weight: 500; color: var(--blue-dark); border-right: 2px solid var(--blue-light); }

/* BADGES */
.badge-pct { display: inline-block; background: var(--pyme70); color: #fff; font-weight: 700; font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 50px; white-space: nowrap; }
.badge-pct--40 { background: #e53e3e; }
.badge-pct--70 { background: var(--pyme70); }
.badge-pct--50 { background: #3182ce; }
.badge-pct--100 { background: var(--green-ok); }
.badge-carencia { display: inline-block; background: #fff3e0; color: var(--orange); border: 1px solid #ffcc80; font-size: 0.7rem; font-weight: 600; padding: 0.1rem 0.5rem; border-radius: 50px; margin-left: 0.4rem; white-space: nowrap; }

.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; }

/* CONVENIO FARMACIAS (dentro de medicamentos) */
.conv-farmacias { background: #f0fff4; border: 1px solid #9ae6b4; border-radius: 0.8rem; margin: 0 1.5rem 1.5rem; padding: 1.2rem 1.5rem; }
.conv-farmacias__titulo { font-weight: 600; color: var(--green-ok); margin-bottom: 0.8rem; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
.conv-farmacias__items { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 0.8rem; }
.conv-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; }
.conv-pct { display: inline-block; background: var(--green-ok); color: #fff; font-weight: 700; font-size: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 50px; }
.conv-nota { font-size: 0.78rem; color: var(--text-light); }

/* REEMBOLSO SECTION */
.reembolso-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.reembolso-card { background: #fff; border: 1px solid var(--card-border); border-radius: 1rem; padding: 2rem; }
.reembolso-card__icon { width: 52px; height: 52px; background: var(--pyme70-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--pyme70); margin-bottom: 1rem; }
.reembolso-card h3 { font-size: 1.05rem; color: var(--blue-dark); margin-bottom: 0.6rem; }
.reembolso-card p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 1rem; }
.reembolso-list { list-style: none; padding: 0; margin-bottom: 0; }
.reembolso-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--text-dark); padding: 0.35rem 0; border-bottom: 1px solid var(--card-border); }
.reembolso-list li:last-child { border-bottom: none; }
.reembolso-list li i { color: var(--pyme70); font-size: 0.8rem; flex-shrink: 0; }
.farm-items { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.8rem; }
.farm-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; }
.farm-pct { display: inline-block; background: var(--pyme70); color: #fff; font-weight: 700; font-size: 0.8rem; padding: 0.2rem 0.5rem; border-radius: 50px; }
.farm-nota { font-size: 0.78rem; color: var(--text-light); }

/* CONDICIONES */
.condiciones-list { padding: 1.5rem; }
.condicion-item { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--card-border); }
.condicion-item:last-child { border-bottom: none; }
.condicion-item i { color: var(--pyme70); margin-top: 0.25rem; flex-shrink: 0; }
.condicion-item p { font-size: 0.92rem; }

/* LEGAL */
.legal-section { padding: 2rem 1.5rem; background: #f0f4f8; }
.legal-text { font-size: 0.82rem; color: var(--text-light); text-align: center; max-width: 800px; margin: 0 auto; }

/* CTA */
.cta-final { padding: 4rem 1.5rem; background: linear-gradient(135deg, #062a1f, var(--pyme70)); 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(--pyme70); 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(--blue-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__stats { flex-direction: column; gap: 0.5rem; }
    .stat-divider { width: 60px; height: 1px; }
    .stat { padding: 0.4rem 1rem; }
    .resumen-grid { grid-template-columns: 1fr; }
    .deducibles-row { flex-direction: column; }
    .catastrofica-title-row { flex-direction: column; align-items: flex-start; }
    .reembolso-grid { grid-template-columns: 1fr; }
    .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; }
}
@media (max-width: 480px) {
    .conv-farmacias__items { flex-direction: column; }
}
