/* ==========================================================================
   Laboratorios Páez - Design System CSS
   Compatible con Elementor 3.35.9
   ========================================================================== */

/* --------------------------------------------------------------------------
   FONTS - Subir las fuentes Nexa y Gotham al servidor 
   y actualizar las rutas url() según corresponda.
   Poppins y Montserrat se cargan desde Google Fonts.
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* Si tienes las fuentes Nexa y Gotham localmente, descomenta y ajusta rutas: */
/*
@font-face {
    font-family: 'Nexa Bold';
    src: url('/wp-content/uploads/fonts/NexaBold.woff2') format('woff2'),
         url('/wp-content/uploads/fonts/NexaBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa Light';
    src: url('/wp-content/uploads/fonts/NexaLight.woff2') format('woff2'),
         url('/wp-content/uploads/fonts/NexaLight.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('/wp-content/uploads/fonts/Gotham-Book.woff2') format('woff2'),
         url('/wp-content/uploads/fonts/Gotham-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('/wp-content/uploads/fonts/Gotham-Medium.woff2') format('woff2'),
         url('/wp-content/uploads/fonts/Gotham-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('/wp-content/uploads/fonts/Gotham-Bold.woff2') format('woff2'),
         url('/wp-content/uploads/fonts/Gotham-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('/wp-content/uploads/fonts/Gotham-Light.woff2') format('woff2'),
         url('/wp-content/uploads/fonts/Gotham-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
*/

/* --------------------------------------------------------------------------
   CSS VARIABLES / DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Colores primarios */
    --lp-primary-blue: #0083FF;
    --lp-primary-orange: #FD5316;
    --lp-light-blue: #0098FF;

    /* Colores neutrales */
    --lp-dark-gray: #3C3C3B;
    --lp-grey: #606060;
    --lp-gray: #CBCBCB;
    --lp-light-gray: #EDEEF0;
    --lp-white: #FFFFFF;
    --lp-black: #000000;

    /* Colores secundarios */
    --lp-navy-blue: #282B60;
    --lp-red: #F93939;
    --lp-yellow: #FFDA2C;
    --lp-golden: #D4AF2C;
    --lp-red-wine: #AF010D;
    --lp-brown: #AE6A3E;
    --lp-blue-dark: #282B60;

    /* Tipografía */
    --lp-font-heading: 'Nexa Bold', 'Poppins', sans-serif;
    --lp-font-heading-light: 'Nexa Light', 'Poppins', sans-serif;
    --lp-font-body: 'Gotham', 'Montserrat', sans-serif;
    --lp-font-accent: 'Poppins', sans-serif;
    --lp-font-small: 'Montserrat', sans-serif;

    /* Tamaños de fuente */
    --lp-h1-size: 72px;
    --lp-h2-size: 48px;
    --lp-h3-size: 32px;
    --lp-h4-size: 21px;
    --lp-h5-size: 24px;
    --lp-body-size: 18px;
    --lp-small-size: 14px;
    --lp-caption-size: 12px;

    /* Bordes */
    --lp-radius-sm: 5px;
    --lp-radius-md: 10px;
    --lp-radius-lg: 20px;
    --lp-radius-xl: 60px;
}

/* --------------------------------------------------------------------------
   CLASES UTILITARIAS para Elementor (usar como CSS Classes en widgets)
   -------------------------------------------------------------------------- */

/* Headings con colores mixtos */
.lp-heading-mixed span.blue {
    color: var(--lp-primary-blue);
}

.lp-heading-mixed span.dark {
    color: var(--lp-dark-gray);
}

.lp-heading-mixed span.orange {
    color: var(--lp-primary-orange);
}

.lp-heading-mixed span.white {
    color: var(--lp-white);
}

/* Botón primario (relleno azul) */
.lp-btn-primary {
    background-color: var(--lp-primary-blue) !important;
    color: var(--lp-white) !important;
    border-radius: var(--lp-radius-sm) !important;
    padding: 8px 32px !important;
    font-family: var(--lp-font-body) !important;
    font-size: var(--lp-body-size) !important;
    border: none !important;
    transition: opacity 0.3s ease !important;
}
.lp-btn-primary:hover {
    opacity: 0.85 !important;
}

/* Botón outline azul */
.lp-btn-outline {
    background-color: transparent !important;
    color: var(--lp-primary-blue) !important;
    border: 1px solid var(--lp-primary-blue) !important;
    border-radius: var(--lp-radius-sm) !important;
    padding: 8px 32px !important;
    font-family: var(--lp-font-body) !important;
    font-size: var(--lp-body-size) !important;
    transition: all 0.3s ease !important;
}
.lp-btn-outline:hover {
    background-color: var(--lp-primary-blue) !important;
    color: var(--lp-white) !important;
}

/* Sección de estadísticas */
.lp-stats-section {
    background-color: var(--lp-light-gray);
}

.lp-stat-number {
    font-family: var(--lp-font-heading) !important;
    font-size: 83px !important;
    color: var(--lp-primary-blue) !important;
    line-height: 1 !important;
}

.lp-stat-prefix {
    font-family: var(--lp-font-heading-light) !important;
    font-size: 48px !important;
    color: var(--lp-primary-blue) !important;
    line-height: 1 !important;
}

.lp-stat-label {
    font-family: var(--lp-font-body) !important;
    font-size: var(--lp-body-size) !important;
    color: var(--lp-primary-blue) !important;
    text-transform: uppercase;
}

/* Tarjeta de servicio */
.lp-service-card {
    padding: 48px !important;
    min-height: 432px;
    position: relative;
}

.lp-service-card.gray-bg {
    background-color: var(--lp-light-gray) !important;
}

.lp-service-card.blue-bg {
    background-color: var(--lp-primary-blue) !important;
}

.lp-service-card.blue-bg .elementor-heading-title,
.lp-service-card.blue-bg .elementor-widget-text-editor,
.lp-service-card.blue-bg .lp-link-more {
    color: var(--lp-white) !important;
}

.lp-link-more {
    font-family: var(--lp-font-body) !important;
    font-weight: 700 !important;
    font-size: var(--lp-body-size) !important;
    color: var(--lp-dark-gray);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}
.lp-link-more:hover {
    gap: 12px;
}

.lp-link-more::after {
    content: '→';
    font-size: 16px;
}

/* CTA Catálogo naranja */
.lp-catalog-cta {
    background-color: var(--lp-primary-orange) !important;
    border-radius: var(--lp-radius-md) !important;
    padding: 20px 24px !important;
    position: relative;
}

/* Línea decorativa antes de subtítulos */
.lp-subtitle-line {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.lp-subtitle-line::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: var(--lp-primary-blue);
}

/* Tarjeta de blog/artículo */
.lp-blog-card {
    background: var(--lp-white);
    padding: 36px;
    position: relative;
}

.lp-blog-card .lp-subtitle-line::before {
    background-color: var(--lp-primary-orange);
}

/* Barra lateral "Afilíese aquí" */
.lp-sidebar-cta {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background-color: var(--lp-navy-blue);
    border-radius: 0 10px 10px 0;
    width: 88px;
    height: 174px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: width 0.3s ease;
}

.lp-sidebar-cta:hover {
    width: 100px;
}

.lp-sidebar-cta span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--lp-white);
    font-family: var(--lp-font-small);
    font-weight: 600;
    font-size: 16px;
}

/* Botones flotantes (Cotizar Pruebas + WhatsApp) */
.lp-floating-btns {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lp-float-cotizar {
    width: 82px;
    height: 82px;
    background-color: var(--lp-light-blue);
    border-radius: var(--lp-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--lp-white);
    font-family: var(--lp-font-body);
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.lp-float-cotizar:hover {
    transform: scale(1.05);
}

.lp-float-cotizar svg,
.lp-float-cotizar img {
    width: 29px;
    height: 40px;
    margin-bottom: 4px;
}

.lp-float-whatsapp {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-float-whatsapp img {
    width: 82px;
    height: 82px;
    border-radius: 50%;
}

/* Tarjetas de valores (página Nosotros) */
.lp-valor-card {
    position: relative;
    min-height: 432px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px !important;
}

.lp-valor-card.orange-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(253, 83, 22, 0.65);
    z-index: 0;
}

.lp-valor-card.blue-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 152, 255, 0.85);
    z-index: 0;
}

.lp-valor-card > * {
    position: relative;
    z-index: 1;
}

.lp-valor-card .elementor-heading-title {
    color: var(--lp-white) !important;
}

.lp-valor-card .elementor-widget-text-editor {
    color: var(--lp-white) !important;
}

.lp-valor-card.radius-bl {
    border-radius: 0 0 0 var(--lp-radius-xl);
}

.lp-valor-card.radius-tr {
    border-radius: 0 var(--lp-radius-xl) 0 0;
}

/* Sección Nosotros - Tarjeta principal sobre el hero */
.lp-about-card {
    background: var(--lp-white);
    border-radius: var(--lp-radius-lg);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.25);
    padding: 60px 80px;
    margin-top: -100px;
    position: relative;
    z-index: 2;
}

/* Video play button */
.lp-video-wrapper {
    position: relative;
    border-radius: var(--lp-radius-lg);
    overflow: hidden;
}

.lp-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 94px;
    height: 94px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lp-play-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.lp-play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent white;
    margin-left: 5px;
}

/* Footer */
.lp-footer {
    background-color: var(--lp-dark-gray);
    padding: 60px 96px;
}

.lp-footer,
.lp-footer p,
.lp-footer a,
.lp-footer .elementor-heading-title {
    color: var(--lp-white) !important;
}

.lp-footer a:hover {
    opacity: 0.8;
}

/* Seguros section logos */
.lp-insurance-logos img {
    mix-blend-mode: multiply;
    max-height: 86px;
    width: auto;
}

/* Hero Nosotros overlay */
.lp-hero-overlay {
    position: relative;
}

.lp-hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.lp-hero-overlay > * {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --lp-h1-size: 48px;
        --lp-h2-size: 36px;
        --lp-h3-size: 28px;
    }

    .lp-stat-number {
        font-size: 60px !important;
    }

    .lp-stat-prefix {
        font-size: 36px !important;
    }

    .lp-about-card {
        padding: 40px;
        margin-top: -60px;
    }
}

@media (max-width: 767px) {
    :root {
        --lp-h1-size: 36px;
        --lp-h2-size: 28px;
        --lp-h3-size: 24px;
        --lp-h5-size: 18px;
        --lp-body-size: 16px;
    }

    .lp-stat-number {
        font-size: 44px !important;
    }

    .lp-stat-prefix {
        font-size: 28px !important;
    }

    .lp-sidebar-cta {
        display: none;
    }

    .lp-floating-btns {
        right: 10px;
        bottom: 10px;
        top: auto;
        transform: none;
    }

    .lp-about-card {
        padding: 24px;
        margin-top: -40px;
    }

    .lp-service-card,
    .lp-valor-card {
        min-height: 300px;
        padding: 32px !important;
    }
}

/* ==========================================================================
   SERVICIOS PAGE - Tabs & Content
   ========================================================================== */

/* --- Tab Bar --- */
.lp-tabs-bar {
    cursor: pointer;
    max-width: 1200px;
    margin: 0 auto;
}

.lp-tab-item {
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.lp-tab-item:hover {
    background-color: rgba(0, 131, 255, 0.05);
}

.lp-tab-item.lp-tab-active {
    background-color: rgba(0, 131, 255, 0.1) !important;
}

.lp-tab-item.lp-tab-active .elementor-heading-title {
    color: var(--lp-primary-blue) !important;
}

.lp-tab-item .lp-tab-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* --- Tab Panels --- */
.lp-tab-panel {
    display: none;
}

.lp-tab-panel.lp-tab-panel-active {
    display: flex;
}

/* --- Hero Servicios --- */
.lp-servicios-hero {
    background-position: center center;
    background-size: cover;
    position: relative;
}

.lp-servicios-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.lp-servicios-hero > .elementor-widget-wrap,
.lp-servicios-hero > .e-con-inner > * {
    position: relative;
    z-index: 1;
}

/* --- Patient Card Hero --- */

/* ========================================================================
   SEDES PAGE
   ======================================================================== */

/* Province Tabs */
.lp-province-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.lp-province-tabs::-webkit-scrollbar { display: none; }

.lp-prov-tab {
    cursor: pointer;
    padding: 8px 12px;
    white-space: nowrap;
    transition: color 0.3s ease;
    position: relative;
}
.lp-prov-tab:hover { color: #0083FF !important; }
.lp-prov-tab.lp-prov-active { color: #0083FF !important; }
.lp-prov-tab.lp-prov-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #0083FF;
    border-radius: 2px;
}

/* Sub-location Buttons */
.lp-location-btns {
    overflow-x: auto;
    scrollbar-width: none;
}
.lp-location-btns::-webkit-scrollbar { display: none; }

.lp-loc-btn .elementor-button {
    background: #EDEEF0 !important;
    color: #3C3C3B !important;
    border-radius: 5px !important;
    padding: 8px 20px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}
.lp-loc-btn .elementor-button:hover {
    background: #0083FF !important;
    color: #FFFFFF !important;
}
.lp-loc-active .elementor-button {
    background: #0083FF !important;
    color: #FFFFFF !important;
}

/* Sede Detail Card */
.lp-sede-card {
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.lp-sede-card:hover {
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
    .lp-province-tabs {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }
    .lp-location-btns {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }
    .lp-loc-btn .elementor-button {
        font-size: 15px !important;
        min-width: 100px;
    }
}


/* ========================================================================
   PROMOCIONES PAGE
   ======================================================================== */

/* Featured Card with MediSmart */
.lp-featured-card {
    position: relative;
    z-index: 2;
}
.lp-medismart-blue-card {
    min-height: 280px;
}

/* Promo Image Grid */
.lp-promo-image img {
    border-radius: 20px !important;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    width: 100%;
    height: 588px;
    object-fit: cover;
}
.lp-promo-image img:hover {
    transform: scale(1.02);
}

/* Load More Link */
.lp-load-more .elementor-button {
    background: transparent !important;
    font-weight: 700 !important;
    text-decoration: underline;
}
.lp-load-more .elementor-button:hover {
    opacity: 0.8;
}

/* Floating Sidebar */
.lp-floating-sidebar {
    position: fixed !important;
    right: 0 !important;
    top: 30% !important;
    z-index: 9999 !important;
    width: auto !important;
    max-width: 60px !important;
}
.lp-float-btn .elementor-button {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 12px 8px !important;
    border-radius: 5px 0 0 5px !important;
    font-size: 13px !important;
}
.lp-float-wa .elementor-button {
    writing-mode: horizontal-tb;
    padding: 12px !important;
    border-radius: 50% 0 0 50% !important;
    width: 48px;
    height: 48px;
}
.lp-float-afiliese .elementor-button { background: #282B60 !important; }
.lp-float-wa .elementor-button { background: #25D366 !important; }
.lp-float-cotizar .elementor-button { background: #0098FF !important; }

@media (max-width: 767px) {
    .lp-promo-image img { height: 400px; }
    .lp-floating-sidebar { display: none !important; }
}


/* ========================================================================
   BLOG PAGE
   ======================================================================== */

/* Featured Article Card */
.lp-featured-article {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Blog Cards */
.lp-blog-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lp-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* Category Badge */
.lp-category-badge {
    position: absolute !important;
    top: 16px;
    left: 16px;
    z-index: 2;
}
.lp-category-badge .elementor-heading-title {
    background: #0083FF;
    color: #FFFFFF !important;
    padding: 4px 16px;
    border-radius: 4px;
    font-size: 14px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    display: inline-block;
}

@media (max-width: 767px) {
    .lp-blog-card {
        width: 100% !important;
    }
}
.lp-servicios-card-hero {
    position: relative;
    overflow: hidden;
}

.lp-servicios-card-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 0;
}

.lp-servicios-card-hero > * {
    position: relative;
    z-index: 1;
}

/* --- Mini Cards (blue & orange) --- */
.lp-mini-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lp-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lp-mini-card-blue {
    background-color: rgba(0, 152, 255, 0.1);
    border: 1px solid rgba(0, 131, 255, 0.2);
}

.lp-mini-card-orange {
    background-color: rgba(253, 83, 22, 0.1);
    border: 1px solid rgba(253, 83, 22, 0.2);
}

/* --- Results Bar --- */
.lp-results-bar {
    background: #FFFFFF;
    padding: 24px 32px;
}

/* --- MediSmart Card --- */
.lp-medismart-card {
    transition: transform 0.3s ease;
}

.lp-medismart-card:hover {
    transform: translateY(-4px);
}

/* --- Otros Servicios List --- */
.lp-otros-servicios-list .elementor-icon-list-item .elementor-icon-list-icon i {
    font-size: 8px !important;
    color: var(--lp-primary-blue) !important;
}

.lp-otros-servicios-list .elementor-icon-list-item:hover .elementor-icon-list-text {
    color: var(--lp-primary-blue);
}

/* --- Médicos Features List --- */
.lp-features-list .elementor-icon-list-item .elementor-icon-list-icon i {
    color: var(--lp-primary-blue) !important;
    font-size: 16px;
}

.lp-features-list .elementor-icon-list-text {
    font-family: var(--lp-font-body);
    font-size: 18px;
    color: var(--lp-dark-gray);
}

/* --- Medicos Image --- */
.lp-medicos-image {
    overflow: hidden;
}

/* ==========================================================================
   SERVICIOS RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .lp-tabs-bar {
        flex-wrap: wrap;
    }

    .lp-tabs-bar > .elementor-element {
        width: 50% !important;
    }
}

@media (max-width: 767px) {
    .lp-tabs-bar > .elementor-element {
        width: 100% !important;
    }

    .lp-tab-item .elementor-heading-title {
        font-size: 18px !important;
    }

    .lp-results-bar {
        flex-direction: column;
        gap: 16px;
    }
}
