@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

    :root {
      --bg: #f6f9ff;
      --panel: #ffffff;
      --text: #0f172a;
      --muted: #475569;
      --primary: #1d4ed8;
      --primary-dark: #1e3a8a;
      --border: #dbe7fb;
      --radius: 18px;
      --shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
      --container: 1120px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; scrollbar-gutter: stable; }
    body { margin: 0; font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
    a { color: inherit; }

    html, body {
        width: 100%; margin: 0; padding: 0; overflow-x: hidden;
      }

    html.modal-open,
    body.modal-open {
      overflow: hidden; overscroll-behavior: none;
    }

    .call-dropdown { position: relative; display: inline-flex; }
    .call-dropdown__menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; padding: 8px 0; background: #ffffff; border: 1px solid rgba(15, 23, 42, 0.12); border-radius: 18px; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease; z-index: 20; }
    .call-dropdown--open .call-dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
    .call-dropdown__item { width: 100%; border: none; background: transparent; padding: 14px 18px; text-align: left; color: #111827; font-size: 0.96rem; cursor: pointer; transition: background 160ms ease; }
    .call-dropdown__item:hover,
    .call-dropdown__item:focus { background: rgba(15, 23, 42, 0.06); outline: none; }
    .call-dropdown__button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
    .call-dropdown__arrow { display: inline-block; transition: transform 180ms ease; }
    .call-dropdown--open .call-dropdown__arrow { transform: rotate(180deg); }
    .call-dropdown__label { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
    .call-dropdown__label span { font-size: 0.75rem; color: #6b7280; }
    @media (max-width: 720px) { .call-dropdown__menu { min-width: 100%; right: 0; left: auto; } }


    .advantage-icon i, .coverage-icon i {
      color: #0056b3; font-size: 1.2em;
    }

    .container { width: min(100% - 36px, var(--container)); margin-inline: auto; }

    /* -- HEADER -- */
    .top-banner { 
        position: fixed; top: 0; width: 100%; z-index: 1000; background: #fff; backdrop-filter: blur(10px); border-bottom: 1px solid #dbe7fb; box-shadow: 0 8px 24px rgba(15,23,42,0.08); 
    }
    .top-banner__content { 
        width: 100%; margin-left: 5%; padding-right: 10%; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 26px; 
    }
    .brand-block {
        display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; color: inherit;
    }
    .brand-logo-wrap {
        display: inline-flex; align-items: center; flex-shrink: 0; line-height: 0; background: #ffffff; border-radius: 6px;
    }
    .brand-logo {
        height: 44px; width: auto; max-width: min(120px, 22vw); object-fit: contain; display: block;
        flex-shrink: 0; mix-blend-mode: multiply; opacity: 1;
    }
    .brand-text {
        min-width: 0;
    }
    .brand { 
        margin: 0; font-size: 1.15rem; font-weight: 700; color: #0f172a; 
    }
    .brand-subtitle { 
        margin: 4px 0 0; font-size: 0.8rem; color: var(--primary); 
    }
    .header-nav { 
        flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 18px; 
    }
    .mobile-menu-toggle { display: none; }
    .nav-group { 
        display: flex; align-items: center; gap: 18px; 
    }
    .nav-item { 
        position: relative; 
    }
    .nav-link { 
        position: relative; text-decoration: none; color: #1e293b; font-size: 0.9rem; font-weight: 500; padding: 8px 0; transition: opacity 0.2s ease; 
    }
    .nav-link::after { 
        content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; border-radius: 999px; background: #2563eb; transform: scaleX(0); transform-origin: left center; transition: transform 0.22s ease; 
    }
    .nav-link:hover { 
        opacity: 0.9; 
    }
    .nav-link:hover::after { 
        transform: scaleX(1); 
    }
    .submenu { 
        position: absolute; top: calc(100% + 10px); left: 0; min-width: 200px; list-style: none; margin: 0; padding: 8px; border-radius: 12px; border: 1px solid #bfdbfe; background: #ffffff; box-shadow: 0 14px 28px rgba(15,23,42,0.12); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; z-index: 20; 
    }
    .submenu li a { 
        display: block; text-decoration: none; color: #1e293b; font-size: 0.84rem; padding: 8px 10px; border-radius: 8px; transition: background-color 0.2s ease, color 0.2s ease; 
    }
    .submenu li a:hover { 
        background: #eff6ff; color: #1d4ed8; 
    }
    .nav-item:hover .submenu, .nav-item:focus-within .submenu { 
        opacity: 1; visibility: visible; transform: translateY(0); 
    }

    /* -- HERO -- */
    main { 
        padding-bottom: 0; 
    }
    .hero { 
        min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 90px 0 70px; color: #fff; background: linear-gradient(180deg,rgba(2,6,23,0.55),rgba(15,23,42,0.68)), url("../IMG/portada.png") center/cover no-repeat; 
    }
    .hero h1 { 
        margin: 0; font-size: clamp(2rem,4.4vw,3.6rem); line-height: 1.05; letter-spacing: -0.02em; 
    }
    .hero p { 
        max-width: 640px; margin: 16px auto 28px; color: rgba(255,255,255,0.9); line-height: 1.6; font-size: 1.04rem; 
    }
    .hero-cta { 
        display: inline-flex; align-items: center; justify-content: center; background: #1d4ed8; color: #fff; text-decoration: none; margin-top: 12px; padding: 11px 22px; min-height: 46px; border-radius: 10px; font-weight: 600; border: 1px solid #1d4ed8; box-shadow: 0 8px 20px rgba(30,64,175,0.28); transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; 
    }
    .hero-cta:hover { 
        transform: translateY(-2px); background: #1e40af; box-shadow: 0 12px 24px rgba(30,64,175,0.32); 
    }

    /* -- SECTIONS -- */
    .section { 
        padding: 64px 0; margin-top: 2%; margin-bottom: 5%; 
    }
    .section-head { 
        text-align: center; margin-bottom: 30px; 
    }
    .section-head h2 { 
        margin: 0 0 8px; font-size: clamp(1.45rem,3vw,2rem); letter-spacing: -0.01em; 
    }
    .section-head p { 
        margin: 0 auto; max-width: 700px; color: var(--muted); line-height: 1.6; 
    }
    #seguro { scroll-margin-top: 90px; }

    /* -- INSURANCE GRID -- */
    .insurance-grid {
        width: min(100% - 32px, var(--container)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 7% auto;
    }
    .insurance-item { 
        background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column;
    }
    .insurance-item:hover { 
        transform: translateY(-3px); box-shadow: 0 20px 42px rgba(15,23,42,0.12); 
    }
    .insurance-item--clickable {
        cursor: pointer;
    }
    .insurance-item--clickable:focus-visible {
        outline: 3px solid #2563eb;
        outline-offset: 3px;
    }
    .insurance-image { 
        height: 180px; 
    }
    .insurance-image--icon {
        display: grid; place-items: center; background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 55%, #f8fafc 100%);
    }
    .insurance-image--icon i {
        font-size: 3.25rem; color: #1d4ed8;
    }
    .insurance-image img { 
        width: 100%; height: 100%; object-fit: cover; display: block; 
    }
    .insurance-text { 
        padding: 18px; background: linear-gradient(180deg,#ffffff 0%,#f8fbff 100%); flex-grow: 1; display: flex; flex-direction: column; 
    }
    .insurance-text h3 { 
        margin: 0 0 8px; font-size: 1.15rem; 
    }
    .insurance-text p { 
        margin: 0 0 14px; color: var(--muted); line-height: 1.55; font-size: 0.95rem; flex-grow: 1; 
    }
    .insurance-text a,
    .insurance-text__cta { 
        text-decoration: none; font-weight: 600; color: var(--primary); font-size: 0.93rem; cursor: pointer; 
    }
    .insurance-text a:hover,
    .insurance-text__cta:hover { 
        text-decoration: underline; text-underline-offset: 3px; 
    }

    /* -- STATS -- */
    .stats-section { 
        position: relative; overflow: hidden; color: #fff; background: url("../IMG/familiaa.jpg") center/cover no-repeat; padding: 84px 28px 74px; width: 100%; 
    }
    .stats-inner { 
        position: relative; z-index: 1; width: min(100%, var(--container)); margin: 0 auto;
    }
    .stats-section::before { 
        content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(2,6,23,0.18) 0%,rgba(2,6,23,0.55) 100%), radial-gradient(circle at 50% 0%,rgba(255,255,255,0.12),transparent 55%); pointer-events: none; 
    }
    .stats-section::after { 
        content: ""; position: absolute; inset: -2px; background-image: radial-gradient(rgba(255,255,255,0.14) 1px,transparent 1px); background-size: 22px 22px; opacity: 0.08; pointer-events: none; mix-blend-mode: overlay; 
    }
    .proof-advantages { 
        margin-top: 54px; padding-top: 36px; border-top: 1px solid rgba(191,219,254,0.32); 
    }
    .proof-advantages .section-head { 
        margin-bottom: 26px; 
    }
    .proof-advantages .section-head h2 { 
        color: #fff; 
    }
    .proof-advantages .section-head p { 
        color: rgba(226,232,240,0.9); 
    }
    .stats-copy { 
        text-align: center; margin-bottom: 26px; 
    }
    .stats-kicker { 
        margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; color: #609ffc; font-weight: 700; 
    }
    .stats-title { 
        margin: 0; font-size: clamp(1.4rem,2.8vw,2.1rem); line-height: 1.2; 
    }
    .stats-title strong { 
        color: #bae6fd; 
    }
    .stats-grid { 
        display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; 
    }
    .stat-item { 
        position: relative; border: 1px solid rgba(219,234,254,0.38); background: linear-gradient(180deg,rgba(15,23,42,0.28),rgba(15,23,42,0.18)); backdrop-filter: blur(10px); border-radius: 16px; padding: 16px 12px; text-align: center; box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 18px 38px rgba(2,6,23,0.22); transition: transform 0.2s ease; 
    }
    .stat-item:hover { 
        transform: translateY(-3px); border-color: rgba(186,230,253,0.72); 
    }
    .stat-value { 
        display: block; font-size: 1.75rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.02em; 
    }
    .stat-label { 
        margin: 0; font-size: 0.78rem; color: rgba(226,232,240,0.92); 
    }

    /* -- ADVANTAGES -- */
    .advantages-grid { 
        display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; 
    }
    .advantage-card { 
        position: relative; overflow: hidden; background: linear-gradient(180deg,rgba(255,255,255,0.94),rgba(248,251,255,0.9)); border: 1px solid rgba(219,234,254,0.92); border-radius: var(--radius); padding: 20px 18px 18px; box-shadow: 0 16px 34px rgba(2,6,23,0.16); transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease; 
    }
    .advantage-card::before { 
        content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg,rgba(56,189,248,0.55),rgba(37,99,235,0.08),rgba(56,189,248,0.45)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events: none; 
    }
    .advantage-card::after { 
        content: ""; position: absolute; top: -52px; right: -52px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle,rgba(56,189,248,0.2) 0%,rgba(56,189,248,0) 70%); pointer-events: none; 
    }
    .advantage-card:hover { 
        transform: translateY(-6px); border-color: rgba(147,197,253,0.95); box-shadow: 0 26px 52px rgba(2,6,23,0.24); 
    }
    .advantage-icon { 
        display: inline-block; font-size: 1.22rem; margin-bottom: 10px; 
    }
    .advantage-title { 
        margin: 0 0 9px; font-size: 1.1rem; line-height: 1.3; color: #0f172a; 
    }
    .advantage-title span { 
        color: var(--primary); 
    }
    .advantage-description { 
        margin: 0; color: #475569; line-height: 1.62; font-size: 0.94rem; 
    }
    .advantages-cta { 
        text-align: center; margin-top: 26px; 
    }
    .advantages-cta-link { 
        display: inline-block; text-decoration: none; background: rgba(2,6,23,0.32); border: 1px solid rgba(219,234,254,0.36); color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; backdrop-filter: blur(8px); box-shadow: 0 14px 26px rgba(2,6,23,0.22); transition: transform 0.2s ease, background-color 0.2s ease; 
    }
    .advantages-cta-link:hover { 
        transform: translateY(-2px); background: rgba(2,6,23,0.4); 
    }

    /* -- CONTACT -- */
    .contact-section { 
        position: relative; padding: 10% 0 124px; overflow: hidden; 
    }
    .contact-section::before { 
        content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg,rgba(59,130,246,0) 0%,rgba(59,130,246,0.5) 50%,rgba(59,130,246,0) 100%); pointer-events: none; 
    }
    .contact-section::after { 
        content: ""; position: absolute; right: -140px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle,rgba(59,130,246,0.18) 0%,rgba(59,130,246,0) 68%); pointer-events: none; 
    }
    .contact-layout { 
        width: min(1100px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 34px; align-items: center; min-height: 340px; position: relative; z-index: 1; 
    }
    .contact-copy { 
        text-align: left; padding: 18px 0; 
    }
    .contact-kicker { 
        margin: 0 0 12px; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; color: #1e40af;
    }
    .contact-title { 
        margin: 0 0 14px; font-size: clamp(1.8rem,3vw,2.45rem); letter-spacing: -0.02em; color: #0f172a; 
    }
    .contact-text { 
        max-width: 620px; margin: 0 0 26px; color: var(--muted); line-height: 1.6; 
    }
    .contact-highlights { 
        display: flex; align-items: center; flex-wrap: wrap; gap: 9px; 
    }
    .contact-pill { 
        padding: 8px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: #1e3a8a; background: rgba(219,234,254,0.75); border: 1px solid rgba(147,197,253,0.58); 
    }
    .contact-actions { 
        display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; border: 1px solid rgba(148,163,184,0.3); background: linear-gradient(180deg,rgba(255,255,255,0.98),rgba(248,251,255,0.95)); box-shadow: 0 20px 44px rgba(15,23,42,0.12); 
    }
    .contact-link { 
        width: 100%; text-decoration: none; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 0.92rem; border: 1px solid rgba(37,99,235,0.3); color: #1e3a8a; background: rgba(255,255,255,0.86); transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; text-align: center; 
    }
    .contact-link:hover { 
        transform: translateY(-2px); border-color: rgba(37,99,235,0.46); box-shadow: 0 12px 24px rgba(37,99,235,0.16); background: #ffffff; 
    }
    .contact-link--primary { 
        color: #ffffff; border-color: rgba(37,99,235,0.75); background: linear-gradient(120deg,#1d4ed8,#2563eb); box-shadow: 0 14px 26px rgba(37,99,235,0.34); 
    }
    .contact-link--primary:hover { 
        background: linear-gradient(120deg,#1e40af,#1d4ed8); 
    }

    /* -- FOOTER -- */
    .site-footer { 
        background: linear-gradient(120deg,#e2e8f0,#dbeafe 42%,#e2e8f0); color: #1e293b; border-top: 1px solid #cbd5e1; box-shadow: inset 0 1px 0 rgba(255,255,255,0.75); 
    }
    .site-footer__content { 
        padding: 28px 0; display: grid; gap: 18px; grid-template-columns: 1.1fr 1fr 1fr; align-items: start; 
    }
    .site-footer h3 { 
        margin: 0 0 8px; color: #0f172a; font-size: 1rem; 
    }
    .site-footer p { 
        margin: 0; line-height: 1.65; font-size: 0.9rem; color: #334155; 
    }
    .footer-links { 
        display: flex; flex-direction: column; gap: 8px; 
    }
    .footer-links a { 
        color: #1e40af; text-decoration: none; font-size: 0.9rem; 
    }
    .footer-links a:hover { 
        color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; 
    }
    .site-footer__bottom { 
        border-top: 1px solid #cbd5e1; padding: 12px 0 16px; 
    }
    .site-footer__bottom p { 
        margin: 0; font-size: 0.83rem; color: #475569; 
    }

    /* -- MODAL SYSTEM -- */
    .modal-overlay {
      position: fixed; inset: 0; z-index: 1100; background: rgba(2, 6, 23, 0.55); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .modal-overlay.is-open {
      opacity: 1; visibility: visible;
    }

    .modal {
      position: relative; background: #fff; border-radius: 24px; width: calc(100% - 32px); max-width: 920px; max-height: 88vh; overflow-y: auto; box-shadow: 0 32px 80px rgba(2, 6, 23, 0.28); transform: translateY(18px) scale(0.98); transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1); scrollbar-width: thin; scrollbar-color: #bfdbfe #f1f5f9;
    }
    .modal-overlay.is-open .modal {
      transform: translateY(0) scale(1);
    }

    .modal-hero {
      position: relative; height: 220px; border-radius: 24px 24px 0 0; overflow: hidden;
    }
    .modal-hero img {
      width: 100%; height: 100%; object-fit: cover; display: block;
    }
    .modal-hero-overlay {
      position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,0.12) 0%, rgba(2,6,23,0.62) 100%); display: flex; align-items: flex-end; padding: 24px 28px;
    }
    .modal-hero-title {
      margin: 0; font-size: 1.65rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.1;
    }
    .modal-hero-badge {
      display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(37,99,235,0.85); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    }

    .modal-close {
      position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,0.88); backdrop-filter: blur(4px); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #0f172a; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: background-color 0.2s ease, transform 0.2s ease; z-index: 10;
    }
    .modal-close:hover { background: #fff; transform: scale(1.08); }

    .modal-body {
      padding: 20px 12px 24px;
    }

    .modal-description {
      color: var(--muted); line-height: 1.65; font-size: 0.97rem; margin: 0 0 28px;
    }

    .modal-section-title {
      margin: 0 0 14px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--primary);
    }

    .coverage-table-wrap {
      margin: 0 0 36px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border);
      border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); padding: 0;
      width: 100%;
    }

    .coverage-table {
      width: 100%; min-width: 100%; border-collapse: collapse; border-spacing: 0;
      font-size: 0.95rem; color: var(--text); table-layout: fixed;
    }
    
    .coverage-table thead th {
      padding: 14px 12px; text-align: center; font-weight: 700;
      font-size: 0.78rem; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary-dark);
      background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%); border-bottom: 1px solid var(--border); vertical-align: middle; white-space: normal;
    }
    
    
    .coverage-table thead th:first-child {
      text-align: left; padding-left: 14px; width: 30%; min-width: 140px;  position: sticky; left: 0;
      z-index: 3; box-shadow: 4px 0 10px rgba(15, 23, 42, 0.05);
    }
    

    .coverage-table tbody td {
      padding: 14px 12px; text-align: center;
      border-bottom: 1px solid var(--border); vertical-align: middle; background: #fff; transition: background-color 0.15s ease;
    }
    
    
    .coverage-table__name {
      text-align: left; padding: 14px 18px; font-weight: 600;
      font-size: 0.95rem; line-height: 1.3; color: var(--text); background: #fff; border-bottom: 1px solid var(--border); position: sticky; left: 0; z-index: 1;
      width: 30%; min-width: 100px;  box-shadow: 4px 0 10px rgba(15, 23, 42, 0.05); transition: background-color 0.15s ease;
    }

    /* Columnas más estrechas para que la tabla quepa al abrirse */
    .coverage-table thead th:not(:first-child) {
      width: 12.5%; min-width: 60px; padding: 8px 6px; text-align: center;
    }
    .coverage-table tbody td:not(:first-child) {
      width: 12.5%; min-width: 60px; padding: 8px 6px; text-align: center;
    }
    .coverage-table thead th:first-child {
      text-align: left; padding-left: 14px; width: 30%; min-width: 100px;  position: sticky; left: 0;
      z-index: 3; box-shadow: 4px 0 10px rgba(15, 23, 42, 0.05);
    }
    
    /* --- ESTILOS COMPARTIDOS DE FILAS (COLORES Y HOVERS) --- */
    
    /* Filas pares (Gris intercalado uniforme en toda la línea) */
    .coverage-table tbody tr:nth-child(even) td,
    .coverage-table tbody tr:nth-child(even) .coverage-table__name {
      background: #f8fafc;
    }
    
    /* Efecto Hover (Ilumina la fila completa al pasar el ratón) */
    .coverage-table tbody tr:hover td,
    .coverage-table tbody tr:hover .coverage-table__name {
      background: #f1f5f9;
    }
    

    .coverage-table tbody tr:last-child td,
    .coverage-table tbody tr:last-child .coverage-table__name {
      border-bottom: none;
    }
    

    .coverage-table__icon {
      display: inline-flex; align-items: center; justify-content: center;
      width: 24px; height: 24px; border-radius: 50%; font-size: 0.75rem; line-height: 1;
    }
    
    
    .coverage-table__icon--yes {
      color: #15803d; background: #dcfce7;
    }
    
    .coverage-table__icon--no {
      color: #94a3b8; background: #f1f5f9;
    }

    .coverage-table__section th {
      padding: 14px 16px 10px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-align: left; color: #1e40af; background: #eff6ff; border-top: 2px solid #bfdbfe;
    }

    .modal-block--other-branches {
      margin: 8px 0 24px; padding: 20px 22px; border: 1px solid #dbe7fb; border-radius: 14px; background: linear-gradient(160deg, #f8fbff, #f1f5f9 70%);
    }

    .other-branches-list {
      display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 12px 0 0; padding: 0; list-style: none;
    }

    .other-branches-list li {
      position: relative; padding-left: 18px; font-size: 0.92rem; color: #334155; line-height: 1.45;
    }

    .other-branches-list li::before {
      content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: #2563eb;
    }

    .modal-hero--compact {
      min-height: 140px; background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 48%, #3b82f6 100%);
    }

    .modal-hero--compact .modal-hero-overlay {
      position: relative; min-height: 140px; padding: 28px 24px;
    }

    @media (max-width: 640px) {
      .other-branches-list { grid-template-columns: 1fr; }
      .coverage-table thead th,
      .coverage-table__name {
        min-width: 160px;
      }
    }

    /* Keep table layout on small screens; modal width increased so table fits without collapsing.
       If horizontal space is insufficient, user can scroll inside .coverage-table-wrap. */

    .modal-highlight-box {
      display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(120deg, #eff6ff, #dbeafe); border: 1px solid #bfdbfe; margin-bottom: 28px;
    }
    .modal-highlight-box .icon { 
        font-size: 1.5rem;
    
    }
    
    .modal-highlight-box .icon i.fa-star {
      color: #f1c40f !important;
    }
    .modal-highlight-box p { 
        margin: 0; font-size: 0.88rem; color: #1e3a8a; line-height: 1.5; 
    }
    .modal-highlight-box p strong { 
        display: block; font-size: 0.94rem; margin-bottom: 2px; 
    }

    .modal-footer {
      display: flex; gap: 10px; padding-top: 20px; border-top: 1px solid var(--border);
    }

    .modal-btn {
      flex: 1; padding: 13px 20px; 
      border-radius: 12px; font-weight: 600; 
      font-size: 0.93rem; cursor: pointer; text-align: center; text-decoration: none; 
      border: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    }
    
    .modal-btn:hover { 
      transform: translateY(-2px); 
    }

    .modal-btn--primary { 
      background: linear-gradient(120deg, #1d4ed8, #2563eb); color: #fff; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3); 
    }
    
    .modal-btn--primary:hover { 
      box-shadow: 0 14px 28px rgba(37, 99, 235, 0.36); 
    }
    .modal-btn--primary-clicked {
      color: #ffffff !important;
      background: linear-gradient(120deg, #7a99ee, #2563eb) !important; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3) !important;
    }

    .modal-btn--secondary { 
      background: #f1f5f9; color: #1e293b;  border: 1px solid #cbd5e1; 
    }
    
    .modal-btn--secondary:hover { 
      box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
    }
    
    .modal-btn--secondary-clicked {
      background: #1e293b !important;
      color: #ffffff !important; border-color: #1e293b !important; box-shadow: 0 10px 24px rgba(30, 41, 59, 0.3) !important;
    }

    /* -- RESPONSIVE -- */
    @media (max-width: 980px) {
      .insurance-grid, .advantages-grid { 
        grid-template-columns: 1fr 1fr; 
    }
      .stats-grid { 
        grid-template-columns: 1fr 1fr; 
    }
      .contact-layout { 
        width: min(1100px, calc(100% - 40px)); grid-template-columns: 1fr; gap: 20px; min-height: 0; 
    }
      .site-footer__content { 
        grid-template-columns: 1fr 1fr; 
    }
      .coverage-grid { 
        grid-template-columns: 1fr; 
    }
    }
    @media (max-width: 700px) {
      .top-banner__content { 
        min-height: auto; padding: 12px 0; align-items: flex-start; flex-direction: column; 
    }
      .header-nav { 
        flex-direction: column; align-items: flex-start; width: 100%; 
    }
      .nav-group { 
        gap: 10px 14px; flex-wrap: wrap; 
    }
      .submenu { 
        position: static; opacity: 1; visibility: visible; transform: none; margin-top: 4px; min-width: 100%; box-shadow: none; background: #f8fafc; 
    }
      .hero {
        min-height: 64vh; 
    }
      .section { 
        padding: 52px 0; 
    }
      .insurance-grid, .advantages-grid, .stats-grid { 
        grid-template-columns: 1fr; 
    }
      .contact-section { 
        padding: 68px 0 86px; 
    }
      .contact-layout { 
        width: min(1100px, calc(100% - 30px)); 
    }
      .contact-actions { 
        padding: 18px; 
    }
      .site-footer__content { 
        grid-template-columns: 1fr; padding: 24px 0; 
    }
      .modal-hero { 
        height: 170px; 
    }
      .modal-body { 
        padding: 20px 20px 24px; 
    }
      .modal-footer { 
        flex-direction: column; 
    }
      .coverage-grid { 
        grid-template-columns: 1fr; 
    }
    }
    /* Styles for transformed coverage cards on small screens */
    .coverage-cards {
      display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 8px; margin-bottom: 28px;
    }
    .coverage-card {
      border: 1px solid var(--border); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); overflow: hidden;
    }
    .coverage-card__header {
      padding: 12px 14px; font-weight: 700; color: var(--primary-dark); background: linear-gradient(180deg,#fff,#fff); border-bottom: 1px solid var(--border);
    }
    .coverage-card__list { list-style: none; margin: 0; padding: 8px 6px; }
    .coverage-card__item { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px; border-bottom: 1px dashed rgba(0,0,0,0.04); }
    .coverage-card__item:last-child { border-bottom: none; }
    .coverage-card__label { color: var(--text); font-size: 0.95rem; }
    .coverage-card__value { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; }

    @media (min-width: 701px) {
      .coverage-cards { display: none; }
    }

    .reveal {
      opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; will-change: opacity, transform;
    }

    .reveal.active {
      opacity: 1; transform: translateY(0);
    }

   /* Contenedor principal con efecto de profundidad moderna */
.form {
    display: flex; flex-direction: column; gap: 16px; max-width: 400px; background: #ffffff; padding: 32px; border-radius: 24px; position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 20px 25px -5px rgba(0, 0, 0, 0.05),
                0 0 0 1px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.8);
  }
  
  
  .title {
    font-size: 26px; color: #1e293b; font-weight: 700; letter-spacing: -0.025em; margin: 0;
  }
  
  .message {
    color: #64748b; font-size: 14px; line-height: 1.5; margin-bottom: 8px;
  }
  
  .flex {
    display: flex; width: 100%; gap: 12px;
  }

.modal-form-compact {
  background: #f8fafc; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; margin-top: 25px;
}

.form-title {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; color: #1e293b;
}

.form-subtitle {
  font-size: 0.78rem; color: #64748b; margin-bottom: 15px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

/* Layout de filas */
.form-row { 
  display: flex; gap: 12px; margin-bottom: 12px;
}

.form-group {
  flex: 1;
}

.form-group--lower {
  margin-top: 20px;
}

.form-input {
  width: 100%; margin-top: 1%;
  padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.9rem; transition: all 0.3s ease; outline: none;
}

.form-input2 {
  width: 100%; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.9rem; transition: all 0.3s ease; outline: none;
}

.form-input:focus {
  border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical; min-height: 88px; line-height: 1.5; font-family: inherit;
}

.date-field {
  position: relative; margin-top: 3%; z-index: 1;
}

.date-field.is-open {
  z-index: 50;
}

.date-field__trigger {
  margin-top: 0 !important; position: relative; display: flex; align-items: center; width: 100%;
  min-height: 42px; padding: 10px 44px 10px 14px; text-align: left; background: #fff; cursor: pointer; font-family: inherit;
}

.date-field__label {
  font-size: 0.9rem; color: #94a3b8; transition: opacity 0.2s ease;
}

.date-field.is-filled .date-field__label {
  display: none;
}

.date-field__value {
  display: none; font-size: 0.9rem; font-weight: 500; color: #1e293b;
}

.date-field.is-filled .date-field__value {
  display: block;
}

.date-field__icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1.05rem; color: #64748b;
  pointer-events: none; transition: color 0.2s ease, transform 0.2s ease;
}

.date-field:hover .date-field__icon,
.date-field.is-open .date-field__icon {
  color: #2563eb;
}

.date-field.is-open .date-field__trigger {
  border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.date-picker {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); padding: 14px;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.date-picker[hidden] {
  display: none;
}

.date-picker__row {
  display: grid; grid-template-columns: 1fr 1.15fr 0.7fr; gap: 8px;
}

.date-picker__select {
  width: 100%; padding: 10px 8px; border: 1.5px solid #cbd5e1; border-radius: 8px; font-size: 0.88rem; font-family: inherit;
  color: #1e293b; background: #fff; cursor: pointer; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.date-picker__select:hover:not(:disabled) {
  border-color: #93c5fd;
}

.date-picker__select:focus {
  border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.date-picker__select:disabled {
  opacity: 0.55; cursor: not-allowed; background: #f1f5f9;
}

.date-picker__select[data-part="year"] {
  font-weight: 600;
}

@media (max-width: 480px) {
  .date-picker__row {
    grid-template-columns: 1fr;
  }
}


.multi-select-group {
  margin-top: 4px;
}

.multi-select-label {
  margin: 0 0 10px; font-size: 0.9rem; font-weight: 600; color: #1e293b; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
}

.multi-select-hint {
  font-size: 0.78rem; font-weight: 400; color: #64748b;
}

.multi-select-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}

.multi-select-grid .multi-select-option:last-child {
  grid-column: 1 / span 2;
}

.multi-select-option {
  position: relative; cursor: pointer; margin: 0;
}

.multi-select-option input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}

.multi-select-option__inner {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  border: 1.5px solid #cbd5e1; border-radius: 10px; background: #fff; font-size: 0.84rem; font-weight: 500; color: #334155;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease; user-select: none;
}

.multi-select-option__inner i {
  flex-shrink: 0; width: 18px; text-align: center; font-size: 0.95rem; color: #64748b; transition: color 0.2s ease;
}

.multi-select-option:hover .multi-select-option__inner {
  border-color: #93c5fd; background: #f8fafc;
}

.multi-select-option input:focus-visible + .multi-select-option__inner {
  outline: 2px solid #3b82f6; outline-offset: 2px;
}

.multi-select-option input:checked + .multi-select-option__inner {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: #1e40af; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.multi-select-option input:checked + .multi-select-option__inner i {
  color: #2563eb;
}

.multi-select-option input:checked + .multi-select-option__inner::after {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; font-size: 0.75rem; color: #2563eb;
}

.multi-select-option--wide {
  grid-column: 1 / -1;
}

@media (max-width: 480px) {
  .multi-select-grid {
    grid-template-columns: 1fr;
  }

  .multi-select-option--wide {
    grid-column: auto;
  }
}

/* Botón estilizado */
.form-submit-btn {
  width: 100%; padding: 12px; background-color: #1d4ed8; color: white;
  border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background 0.3s ease; margin-top: 5px;
}

.form-submit-btn:hover {
  background-color: #1e40af; box-shadow: 0 12px 24px rgba(30, 64, 175, 0.32);
}

/* Adaptación móvil */
@media (max-width: 480px) {
  .form-row {
    flex-direction: column; gap: 12px; margin-bottom: 0;
  }
  .form-group {
    margin-bottom: 12px;
  }
}

@media (max-width: 900px) {
  .container { width: min(100% - 28px, var(--container)); }
  .top-banner__content { padding: 12px 18px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
  .top-banner__content { position: relative; }
  .top-banner__content { flex-wrap: wrap; }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(37,99,235,0.18);
    background: #ffffff;
    color: #1d4ed8;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }
  /* Ensure hamburger sits to the right of the logo */
  .brand-text { display: none; }
  .brand-logo { max-width: 96px; }
  .mobile-menu-toggle { margin-left: auto; }
  .mobile-menu-toggle:hover { background: rgba(37,99,235,0.08); }
  .mobile-menu-toggle i { display: block; }
  .header-nav { position: absolute; top: 100%; left: calc(50% - 50vw + 12px); width: calc(100vw - 12px); transform: none; flex-direction: column; align-items: stretch; justify-content: flex-start; max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: max-height 0.32s ease, opacity 0.24s ease; background: #ffffff; border-top: 1px solid #e2e8f0; box-shadow: 0 18px 32px rgba(15,23,42,0.08); }
  .header-nav.is-open { max-height: 900px; opacity: 1; pointer-events: auto; }
  .header-nav { order: 2; }
  .nav-group { width: 100%; flex-direction: column; gap: 12px; }
  .nav-group { align-items: stretch; }
  .nav-item { width: 100%; }
  .submenu { position: static; min-width: auto; margin: 0; left: auto; right: auto; border-radius: 0; border: none; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; padding: 0 0 0 16px; }
  .nav-link::after { display: none; }
  .submenu li a { padding: 10px 16px; border-bottom: 1px solid #f8fafc; }
  .hero { padding: 80px 0 60px; }
  .contact-layout { grid-template-columns: 1fr; min-height: auto; gap: 26px; }
  .contact-actions { padding: 20px; }
  .site-footer__content { grid-template-columns: 1fr 1fr; gap: 16px; }
  .modal { width: min(100%, calc(100% - 32px)); }
  .modal-hero { height: 200px; }
  .modal-body { padding: 24px; }
  .modal-highlight-box { flex-direction: column; align-items: flex-start; }
  .form-row { flex-wrap: wrap; }
  .form-row > .form-group { flex: 1 1 100%; }
  .multi-select-grid { grid-template-columns: 1fr; }
  .coverage-table-wrap { margin-bottom: 20px; }
  .coverage-table thead th,
  .coverage-table__name {
    min-width: auto;
    position: static;
    box-shadow: none;
  }
  .coverage-table thead th:first-child { left: auto; }
  .modal-footer { flex-direction: column; }
  .call-dropdown { width: 100%; }
  .call-dropdown__button { width: 100%; justify-content: space-between; }
  .call-dropdown__menu { min-width: 100%; }
}

@media (max-width: 640px) {
  .top-banner__content { margin-left: 0; padding: 12px 14px 8px; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .top-banner__content { position: relative; }
  .brand-block { order: 0; }
  .header-nav { position: absolute; top: 100%; left: calc(50% - 50vw + 12px); width: calc(100vw - 12px); transform: none; flex: 0 0 auto; order: 2; flex-direction: column; align-items: stretch; gap: 0; margin-top: 0; max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: max-height 0.32s ease, opacity 0.24s ease; background: #ffffff; border-top: 1px solid #e2e8f0; box-shadow: 0 18px 32px rgba(15,23,42,0.08); }
  .header-nav.is-open { max-height: 900px; opacity: 1; pointer-events: auto; }
  .nav-group { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 0; }
  .nav-item { width: 100%; }
  .nav-link { font-size: 0.88rem; display: block; width: 100%; padding: 14px 16px; border-bottom: 1px solid #f1f5f9; }
  .nav-link::after { display: none; }
  .submenu { position: static; min-width: auto; margin: 0; left: auto; right: auto; border-radius: 0; border: none; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; padding: 0 0 0 16px; }
  .nav-item:hover .submenu, .nav-item:focus-within .submenu { opacity: 1; visibility: visible; }
  .submenu li a { padding: 10px 16px; border-bottom: 1px solid #f8fafc; }
  .hero { padding: 70px 0 55px; }
  .hero { padding: 70px 0 55px; }
  .hero p { margin: 18px auto 22px; }
  .insurance-grid, .advantages-grid, .stats-grid { gap: 16px; }
  .contact-actions { padding: 18px; }
  .contact-link { font-size: 0.95rem; }
  .site-footer__content { padding: 20px 0; grid-template-columns: 1fr; }
  .modal-hero { height: 170px; }
  .modal-hero-overlay { padding: 18px; }
  .modal-hero-title { font-size: 1.4rem; }
  .modal-body { padding: 18px 16px 20px; }
  .form-input, .form-input2, .form-submit-btn { font-size: 0.95rem; }
  .form-textarea { min-height: 100px; }
  .multi-select-grid { gap: 10px; }
  .footer-links { gap: 10px; }
}
  
  /* Botón con degradado moderno */
  .submit {
    margin-top: 10px; border: none; outline: none;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); padding: 14px; border-radius: 12px;
    color: #fff; font-size: 16px; font-weight: 600; box-shadow: 0 4px 12px #3b82f6; transition: all 0.3s ease; cursor: pointer;
  }
  
  .submit:hover {
    transform: translateY(-2px); box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3); filter: brightness(1.1);
  }
  
  .submit:active {
    transform: translateY(0);
  }