/* =========================================
   VARIABLES
   ========================================= */
:root {
    --blue-hospital: #005b96;
    --blue-hospital-hover: #004a7c;
    --blue-dark: #1a365d;
    --blue-light: #e8f2fa;
    --bg-white: #ffffff;
    --bg-section: #f8fbff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --card-border: #edf2f7;
    --green-ok: #276749;
    --accent: #0077c8;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 1rem;
    --radius-sm: 0.5rem;
}

/* =========================================
   RESET
   ========================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

/* Visually hidden (SEO accessible) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 90px;
}

.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;
    font-family: 'Poppins', sans-serif;
}
.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-item--inicio { display: none; }
.nav-menu { flex: 1; display: flex; justify-content: center; }
.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.3rem;
    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: var(--radius-sm);
    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-item--inicio { display: list-item; }
    .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;
        opacity: 1; visibility: visible; transform: none;
        display: block;
        background-color: #f8fafc;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        padding: 0;
    }
    .dropdown.active .dropdown-menu {
        max-height: 400px;
        padding: 0.4rem 0;
    }
    .dropdown.active .nav-link i { transform: rotate(180deg); }
    .dropdown-menu li a { padding: 0.8rem 5% 0.8rem 10%; }
}

/* =========================================
   HERO SLIDER
   ========================================= */
.slider {
    width: 100%;
    height: 640px;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}
.slider .list {
    position: absolute;
    top: 0; left: 0;
    display: flex;
    height: 100%; width: 100%;
    transition: transform 0.9s ease-in-out;
}
.slider .item {
    position: relative;
    overflow: hidden;
    min-width: 100%;
    height: 100%;
}

/* ── Slide 1: Libre Elección — Azul royal intenso ── */
.item--libre {
    background: linear-gradient(135deg, #010c1f 0%, #003378 40%, #0055cc 70%, #1a80ff 100%);
}
.item--libre .item-pattern {
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}
.item--libre::before {
    top: -80px; right: -80px;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(26,128,255,0.35) 0%, transparent 65%);
    border-radius: 50%;
}
.item--libre::after {
    bottom: -200px; left: -80px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,30,90,0.6) 0%, transparent 70%);
    border-radius: 50%;
}

/* ── Slide 2: Cerrados — Gris pizarra / charcoal oscuro ── */
.item--cerrados {
    background: linear-gradient(170deg, #050810 0%, #0c1525 35%, #142240 65%, #1c3660 100%);
}
.item--cerrados .item-pattern {
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.035) 0px,
            rgba(255,255,255,0.035) 1px,
            transparent 1px,
            transparent 22px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(255,255,255,0.035) 0px,
            rgba(255,255,255,0.035) 1px,
            transparent 1px,
            transparent 22px
        );
}
.item--cerrados::before {
    top: -120px; left: 50%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(80,130,200,0.12) 0%, transparent 65%);
    border-radius: 50%;
}
.item--cerrados::after {
    bottom: -160px; right: -120px;
    width: 480px; height: 480px;
    background: rgba(10,20,50,0.5);
    border-radius: 50%;
}

/* ── Slide 3: MultiSalud — Cian/turquesa vibrante ── */
.item--multisalud {
    background: linear-gradient(135deg, #001018 0%, #003848 40%, #006878 70%, #00aacc 100%);
}
.item--multisalud .item-pattern {
    background-image: radial-gradient(circle, rgba(255,255,255,0.12) 2px, transparent 2px);
    background-size: 52px 52px;
    background-position: 26px 26px;
}
.item--multisalud::before {
    top: -60px; right: -80px;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(0,170,204,0.28) 0%, transparent 65%);
    border-radius: 50%;
}
.item--multisalud::after {
    bottom: -180px; left: -60px;
    width: 440px; height: 440px;
    background: rgba(0,0,0,0.22);
    border-radius: 50%;
}

/* ── Slide 4: Pyme — Ámbar / dorado oscuro ── */
.item--pyme {
    background: linear-gradient(135deg, #1a0d00 0%, #4a2900 40%, #916000 70%, #c98a00 100%);
}
.item--pyme .item-pattern {
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 38px 38px;
}
.item--pyme::before {
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(201,138,0,0.38) 0%, transparent 65%);
    border-radius: 50%;
}
.item--pyme::after {
    bottom: -140px; left: -100px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(80,40,0,0.5) 0%, transparent 70%);
    border-radius: 50%;
}

/* ── Slide 5: Ambulatorio — Esmeralda profundo ── */
.item--ambulatorio {
    background: linear-gradient(135deg, #001209 0%, #003820 40%, #006838 70%, #00a050 100%);
}
.item--ambulatorio .item-pattern {
    background-image:
        repeating-radial-gradient(circle at 60% 55%,
            transparent 0px, transparent 38px,
            rgba(255,255,255,0.045) 38px, rgba(255,255,255,0.045) 39px
        );
}
.item--ambulatorio::before {
    top: -60px; left: -60px;
    right: auto;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,160,80,0.3) 0%, transparent 65%);
    border-radius: 50%;
}
.item--ambulatorio::after {
    bottom: -120px; right: -80px;
    left: auto;
    width: 500px; height: 500px;
    background: rgba(0,0,0,0.25);
    border-radius: 50%;
}

/* ── Slide 6: Complementa — Teal profundo ── */
.item--complementa {
    background: linear-gradient(135deg, #001a1a 0%, #0d3d40 40%, #0d7377 70%, #14a9ae 100%);
}
.item--complementa .item-pattern {
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1.5px, transparent 1.5px);
    background-size: 36px 36px;
}
.item--complementa::before {
    top: -80px; right: -80px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(20,169,174,0.3) 0%, transparent 65%);
    border-radius: 50%;
}
.item--complementa::after {
    bottom: -160px; left: -60px;
    width: 460px; height: 460px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
}

/* ── Slide 7: Adulto Mayor — Terracota cálida ── */
.item--adulto-mayor {
    background: linear-gradient(135deg, #3d0c00 0%, #8b2500 35%, #c84500 65%, #e85f20 100%);
}
.item--adulto-mayor .item-pattern {
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 42px 42px;
}
.item--adulto-mayor::before {
    top: -90px; right: -90px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(232,95,32,0.35) 0%, transparent 65%);
    border-radius: 50%;
}
.item--adulto-mayor::after {
    bottom: -150px; left: -90px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(100,20,0,0.5) 0%, transparent 70%);
    border-radius: 50%;
}

/* ── Slide legacy: Urgencia — Esmeralda profundo ── */
.item--urgencia {
    background: linear-gradient(145deg, #001209 0%, #003820 40%, #006838 70%, #00a050 100%);
}
.item--urgencia .item-pattern {
    background-image:
        repeating-radial-gradient(circle at 60% 55%,
            transparent 0px, transparent 38px,
            rgba(255,255,255,0.045) 38px, rgba(255,255,255,0.045) 39px
        );
}
.item--urgencia::before {
    top: -60px; left: -60px;
    right: auto;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,160,80,0.3) 0%, transparent 65%);
    border-radius: 50%;
}
.item--urgencia::after {
    bottom: -120px; right: -80px;
    left: auto;
    width: 500px; height: 500px;
    background: rgba(0,0,0,0.25);
    border-radius: 50%;
}

/* Base: posición y z-index de los pseudoelementos */
.slider .item::before,
.slider .item::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* Base del patrón */
.item-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.slider .item .info {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    width: 90%;
    max-width: 680px;
    text-align: center;
    z-index: 2;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.slider .item .info h2 {
    margin: 0 0 0.8rem;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
}
.slider .item .info h4 {
    margin: 0 0 1.8rem;
    font-weight: 400;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.88);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.btn-more {
    background-color: var(--blue-hospital);
    border: none;
    padding: 0.85rem 2.4rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 6px 20px rgba(0,91,150,0.4);
}
.btn-more:hover {
    background-color: #fff;
    color: var(--blue-hospital);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.slider .buttons {
    position: absolute;
    top: 38%; left: 3%;
    width: 94%;
    display: flex;
    justify-content: space-between;
    z-index: 3;
}
.slider .buttons button {
    width: 50px; height: 50px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
    backdrop-filter: blur(4px);
}
.slider .buttons button:hover { background-color: rgba(255,255,255,0.45); transform: scale(1.1); }
.slider .dots {
    position: absolute;
    bottom: 22px; left: 0;
    width: 100%;
    display: flex; justify-content: center;
    z-index: 3;
    padding: 0; margin: 0; list-style: none;
}
.slider .dots li {
    width: 10px; height: 10px;
    background-color: rgba(255,255,255,0.45);
    margin: 0 6px;
    border-radius: 20px;
    transition: 0.4s;
    cursor: pointer;
}
.slider .dots li.active { width: 32px; background-color: #fff; }

@media (max-width: 1024px) {
    .slider .buttons button { width: 38px; height: 38px; font-size: 16px; }
}
@media (max-width: 768px) {
    .slider { height: 520px; }
    .slider .item .info { width: 74%; }
    .slider .item .info h4 { margin-bottom: 1.2rem; }
    .slider .item .info h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
    .slider .buttons button { width: 30px; height: 30px; font-size: 13px; }
}

/* =========================================
   STATS BAR
   ========================================= */
.stats-bar {
    background: linear-gradient(135deg, #0a2a52 0%, var(--blue-hospital) 100%);
    padding: 1.5rem 1.5rem;
}
.stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 2.5rem;
    text-align: center;
}
.stat-num {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.75);
    margin-top: 0.2rem;
}
.stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.25);
}
@media (max-width: 600px) {
    .stats-inner { gap: 0.5rem; }
    .stat-item { padding: 0.5rem 1rem; }
    .stat-sep { display: none; }
    .stat-num { font-size: 1.3rem; }
}

/* =========================================
   SECTION HEADERS
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.6rem;
}
.section-header p {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}
.section-header--light h2 { color: #fff; }
.section-header--light p  { color: rgba(255,255,255,0.8); }

.section-tag {
    display: inline-block;
    background: var(--blue-light);
    color: var(--blue-hospital);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.8rem;
}
.section-tag--light {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

/* =========================================
   ¿POR QUÉ BUPA?
   ========================================= */
.porque-section {
    padding: 5rem 1.5rem;
    background: var(--bg-white);
}
.porque-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 900px) { .porque-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .porque-grid { grid-template-columns: 1fr; } }

.porque-card {
    background: var(--bg-section);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    border: 1px solid var(--card-border);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.porque-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}
.porque-card--accent {
    background: linear-gradient(135deg, var(--blue-hospital), #0077c8);
    border-color: transparent;
    color: #fff;
}
.porque-card--accent h3 { color: #fff; }
.porque-card--accent p  { color: rgba(255,255,255,0.85); }
.porque-card--accent .porque-icon { background: rgba(255,255,255,0.15); color: #fff; }

.porque-icon {
    width: 54px; height: 54px;
    background: var(--blue-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--blue-hospital);
    margin-bottom: 1.2rem;
}
.porque-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}
.porque-card p { font-size: 0.88rem; color: var(--text-light); }

/* =========================================
   CATÁLOGO / TABS
   ========================================= */
.catalogo-section {
    padding: 5rem 0;
    background: var(--bg-section);
    overflow-x: hidden;
}
/* ── Barra de categorías (select) ── */
.tabs-select-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    background: var(--bg-white);
    border: 1.5px solid var(--card-border);
    border-radius: 50px;
    padding: 0.55rem 1.2rem;
    box-shadow: var(--shadow-soft);
    max-width: 480px;
}
.tabs-select-bar label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue-hospital);
    white-space: nowrap;
    flex-shrink: 0;
}
.categoria-select {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
@media (max-width: 600px) {
    .tabs-select-bar { max-width: 100%; }
}

/* Título separador de categoría dentro del grid */
.categoria-titulo {
    grid-column: 1 / -1;
    padding: 0.4rem 0 0.2rem;
    border-bottom: 2px solid var(--blue-light);
    margin-bottom: 0.25rem;
}
.categoria-titulo:not(:first-child) {
    margin-top: 1.5rem;
}
.categoria-titulo h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-hospital);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 768px) { .grid-servicios { grid-template-columns: 1fr; gap: 0.65rem; } }

/* Tarjetas en móvil/tablet: verticales pero compactas con botones en fila */
@media (max-width: 768px) {
    .card {
        padding: 1.2rem 1.2rem 1rem;
    }
    .card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    .card p {
        font-size: 0.82rem;
        margin-bottom: 1rem;
    }
    .botones-tarjeta {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }
    .btn-cotizar {
        font-size: 0.82rem;
        padding: 0.55rem 1rem;
        flex: 1;
        max-width: 160px;
    }
    .btn-condiciones {
        font-size: 0.82rem;
        white-space: nowrap;
    }
}

.card {
    background-color: var(--bg-white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    min-width: 0;
    width: 100%;
}
.card:hover { box-shadow: var(--shadow-medium); transform: translateY(-4px); }
.card h3 { color: var(--blue-dark); margin-bottom: 0.8rem; font-size: 1rem; font-weight: 700; }
.card p { color: var(--text-light); margin-bottom: 1.5rem; flex-grow: 1; font-size: 0.88rem; }

.botones-tarjeta { display: flex; flex-direction: column; gap: 0.7rem; }
.btn-cotizar {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border: 2px solid var(--blue-hospital);
    background-color: var(--blue-hospital);
    color: #fff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.88rem;
}
.btn-cotizar:hover { background-color: var(--blue-hospital-hover); border-color: var(--blue-hospital-hover); }
.btn-condiciones {
    font-family: 'Poppins', sans-serif;
    font-size: 0.83rem;
    color: var(--blue-hospital);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.btn-condiciones:hover { color: var(--blue-hospital-hover); text-decoration: underline; }

/* =========================================
   CÓMO FUNCIONA
   ========================================= */
.como-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, #0a2a52 0%, var(--blue-hospital) 100%);
}
.como-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.como-step {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(6px);
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    position: relative;
}
.como-num {
    position: absolute;
    top: -16px; left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: var(--blue-hospital);
    font-weight: 800;
    font-size: 0.85rem;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.como-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 auto 1.2rem;
}
.como-step h3 { color: #fff; font-size: 1rem; margin-bottom: 0.5rem; }
.como-step p  { color: rgba(255,255,255,0.8); font-size: 0.85rem; }
.como-arrow { color: rgba(255,255,255,0.5); font-size: 1.5rem; flex-shrink: 0; }
@media (max-width: 700px) { .como-arrow { display: none; } .como-step { max-width: 100%; width: 100%; } }

/* =========================================
   RED DE PRESTADORES
   ========================================= */
.prestadores-section {
    padding: 5rem 1.5rem;
    background: var(--bg-white);
}
.prestadores-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) { .prestadores-logos { grid-template-columns: repeat(2, 1fr); } }
.prestador-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 2.5rem 1.5rem;
    border: 2px solid var(--card-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue-dark);
    transition: all 0.3s ease;
    cursor: default;
}
.prestador-logo-card i {
    font-size: 2rem;
    color: var(--blue-hospital);
}
.prestador-logo-card:hover {
    border-color: var(--blue-hospital);
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}
.prestador-logo-card--accent {
    background: linear-gradient(135deg, var(--blue-hospital), #0077c8);
    border-color: transparent;
    color: #fff;
}
.prestador-logo-card--accent i { color: #fff; }

/* =========================================
   TELÉFONO CON PREFIJO
   ========================================= */
/* Double-class selector beats .input-wrap { align-items: center } */
.input-wrap.input-wrap--phone {
    align-items: stretch;
    gap: 0;
}
.input-wrap--phone i { display: none; }
.phone-prefix {
    flex-shrink: 0;
    align-self: stretch;
    box-sizing: border-box;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e0;
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 0 0.85rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    display: flex;
    align-items: center;
    letter-spacing: 0.02em;
}
.input-wrap--phone input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
    padding-left: 0.75rem !important;
    flex: 1;
    min-width: 0;
    align-self: stretch;
    height: auto;
}
.input-wrap--phone input:focus { border-color: var(--blue-hospital); box-shadow: 0 0 0 3px rgba(0,91,150,0.12); }
.input-error .phone-prefix { border-color: #e53e3e; }

/* Honeypot: invisible para humanos */
.hp-wrap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* =========================================
   CONTACTO
   ========================================= */
.contacto-section {
    background: linear-gradient(135deg, #061e3a 0%, #0a2a52 50%, #005b96 100%);
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.contacto-section::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.contacto-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
/* Columna izquierda: envuelve título e info en escritorio */
.contacto-left {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #fff;
}

/* Bloque título con logo Bupa */
.contacto-title-block {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.contacto-bupa-logo {
    height: 56px;
    width: auto;
    flex-shrink: 0;
    opacity: 0.92;
}
.contacto-title-block h2 {
    margin: 0;
}
.contacto-title-block .section-tag {
    display: none;
}

.contacto-info-col {
    color: #fff;
}
.contacto-info-col h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.contacto-desc {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.contacto-beneficios {
    list-style: none;
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.contacto-beneficios li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}
.contacto-beneficios li i { color: #6ee7b7; font-size: 1rem; flex-shrink: 0; }
.contacto-datos { display: flex; flex-direction: column; gap: 0.8rem; }
.contacto-dato {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
}
.contacto-dato i { color: #93c5fd; width: 20px; text-align: center; }
.contacto-tel-link { color: inherit; text-decoration: none; }
.contacto-tel-link:hover { text-decoration: underline; }

.formulario-col { flex: 1; min-width: 280px; }

/* Móvil: título → formulario → info */
@media (max-width: 768px) {
    .contacto-wrapper { flex-direction: column; gap: 1.5rem; }
    .contacto-left { display: contents; }
    .contacto-title-block { order: 1; }
    .formulario-col { order: 2; }
    .contacto-info-col { order: 3; }
    .contacto-bupa-logo { height: 48px; }
}

/* FORM CARD */
.form-container {
    padding: 1.5rem;
    text-align: left;
    overflow: hidden;
    position: relative;
    min-height: 200px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    border: none;
}
.form-header { margin-bottom: 0.9rem; border-bottom: 1px solid var(--card-border); padding-bottom: 0.7rem; }
.form-header h3 { font-size: 1.05rem; color: var(--blue-dark); font-weight: 700; }
.form-header p  { font-size: 0.8rem; color: var(--text-light); margin-top: 0.15rem; }

.form-row { margin-bottom: 0; }
.form-group { margin-bottom: 0.65rem; }
.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-dark);
}

/* Input wrapper con ícono */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap i {
    position: absolute;
    left: 0.9rem;
    color: var(--text-light);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}
.input-wrap input,
.input-wrap select {
    width: 100%;
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    border: 1.5px solid #cbd5e0;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}
.input-wrap input:focus,
.input-wrap select:focus {
    outline: none;
    border-color: var(--blue-hospital);
    box-shadow: 0 0 0 3px rgba(0,91,150,0.12);
}
.input-wrap--select::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    color: var(--text-light);
    font-size: 0.75rem;
    pointer-events: none;
}

/* ── Grupo de botones submit ─────────────────────────── */
.submit-btns-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.3rem;
}
.submit-wa-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.submit-atencion-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.submit-atencion-label i { font-size: 0.7rem; }

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.btn-submit--email {
    background: linear-gradient(135deg, var(--blue-hospital), #0077c8);
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(0,91,150,0.35);
}
.btn-submit--email:hover {
    background: linear-gradient(135deg, var(--blue-hospital-hover), #005ea8);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,91,150,0.45);
}
.btn-submit--wa {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    box-shadow: 0 4px 14px rgba(22,163,74,0.35);
}
.btn-submit--wa:hover {
    background: linear-gradient(135deg, #15803d, #16a34a);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(22,163,74,0.45);
}
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Errores */
.error-msg {
    color: #e53e3e;
    font-size: 0.78rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1rem;
    font-weight: 500;
}
.input-error input,
.input-error select {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229,62,62,0.1) !important;
}

/* Animaciones formulario */
.fade-out-up { animation: fadeOutUp 0.4s ease-in forwards; }
.fade-in-up  { display: flex !important; animation: fadeInUp 0.5s ease-out forwards; }
@keyframes fadeOutUp {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}
@keyframes fadeInUp {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Mensaje éxito */
.success-msg-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
}
.success-msg-container .icono-exito {
    font-size: 3.5rem;
    color: var(--green-ok);
    margin-bottom: 1rem;
    animation: latido 1.5s infinite ease-in-out;
}
.success-msg-container h3 { color: var(--green-ok); font-size: 1.5rem; margin-bottom: 0.5rem; }
.success-msg-container p  { color: var(--text-light); font-size: 0.95rem; }
@keyframes latido {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--blue-dark);
    color: #ffffff;
    padding: 4rem 0 0;
    font-family: 'Poppins', sans-serif;
}
.footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    padding-bottom: 3rem;
    justify-content: space-between;
}
@media (min-width: 768px) {
    .footer-wrapper { flex-direction: row; align-items: flex-start; }
}
.footer-logo-col { flex: 1; min-width: 200px; }
.logo-img-footer { height: 45px; width: auto; display: block; margin-bottom: 1.2rem; }
.footer-logo-col p { color: #cbd5e0; font-size: 0.92rem; line-height: 1.7; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: #cbd5e0;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-social a:hover { background: var(--blue-hospital); color: #fff; border-color: var(--blue-hospital); }

.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: 1rem; margin-bottom: 1.2rem; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a { color: #cbd5e0; text-decoration: none; transition: color 0.3s ease; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact p {
    color: #cbd5e0;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-contact p i { color: #63b3ed; width: 20px; text-align: center; font-size: 1rem; }
.footer-bottom {
    background-color: var(--blue-dark);
    text-align: center;
    padding: 1.2rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom p { color: #a0aec0; font-size: 0.85rem; margin: 0; }

/* =========================================
   TRANSICIONES DE PÁGINA
   ========================================= */
body {
    animation: pageEnter 0.35s ease backwards;
}
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; }
}
body.page-exit {
    animation: pageLeave 0.28s ease forwards;
}
@keyframes pageLeave {
    from { opacity: 1; }
    to   { opacity: 0; transform: translateY(-8px); }
}
