/*
Theme Name: Pasteurlab CA Theme
Author: Pasteur Laboratorios Clínico de Colombia SAS
Description: Tema base compatible con Elementor y Gutenberg
Version: 1.0.0
Text Domain: pasteurlabca.com
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* ===========================
   HEADER
   =========================== */
.header {
    width: 100%;
    background-color: #003282;
    padding-left: 50px;
    padding-right: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition:
        background-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease,
        padding .25s ease;
}

/* Compatibilidad con admin bar de WP */
body.admin-bar .header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}

/* Scroll behavior */
.header.is-scrolled {
    background: rgba(0, 57, 130, 0.92);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
    backdrop-filter: saturate(140%) blur(6px);
}

.header.is-hidden {
    transform: translateY(-100%);
}

.content-header {
    width: 100%;
    display: flex;
    align-items: center;
}

.logo-image {
    width: 60%;
    height: auto;
}

/* ===========================
   MENÚ
   =========================== */
.content-menu {
    width: 100%;
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.menu li {
    list-style: none;
    display: inline;
    padding: 5px 10px;
}

.menu li a {
    color: white;
    text-decoration: none;
}

/* Botones de menú */
.menu-buttons {
    display: flex;
    justify-content: flex-end;
}

.menu-buttons-list {
    list-style: none;
    display: flex;
}

.menu-button {
    margin-left: 10px;
}

.menu-button a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    background-color: #007bff;
    border-radius: 5px;
}

/* ===========================
   BÚSQUEDA Y RESULTADOS
   =========================== */
#search-input {
    display: flex;
    align-items: center;
    background-color: white;
    border: none;
    outline: none;
    padding: 5px 10px;
    border-radius: 17px !important;
}

#search-input:focus {
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.btn-search {
    border: none;
    background-color: transparent;
}

.btn-search i {
    color: white;
    border: none;
    border-radius: 17px !important;
    padding: 5px 10px;
    font-size: 20px;
}

#btnResultadosEnLinea {
    color: #00245f;
    text-decoration: none;
    padding: 5px 10px;
    background-color: #ffffff;
    border-top-right-radius: 17px;
    border-bottom-right-radius: 17px;
    font-weight: bold;
}

#btnResultadosEnLinea:hover {
    background-color: #e2f4ff;
}

#btnIconResltadoEnLinea {
    color: white;
    background-color: #00245f;
}

#btnIconResltadoEnLinea:focus {
    box-shadow: 0 0 0px rgba(0, 123, 255, 0.5);
}

/* ===========================
   BANNER PRINCIPAL (RESPONSIVE REAL)
   =========================== */
.banner-1 {
    width: 100%;
    aspect-ratio: 16 / 7;
    /* relación base similar a tu imagen */
    background-image: url('assets/img/back-1.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner-1 .wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

.banner-1 .banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    z-index: 1;
}

.banner-1 .banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding-inline: clamp(16px, 3vw, 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.banner-1 .banner-title {
    font-size: clamp(22px, 4vw, 48px);
    line-height: 1.1;
    margin-bottom: 8px;
}

.banner-1 .banner-subtitle {
    font-size: clamp(14px, 2vw, 20px);
    max-width: 60ch;
    margin-bottom: 16px;
}

/* ===========================
   SECCIONES
   =========================== */
.section-info-1,
.section-info-4 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-info-2 .banner-2-section {
    z-index: 3;
}

.section-info-1 .banner-1-section {
    margin-top: 50px;
    z-index: -1;
    background-color: #009de0;
}

.section-info-4 {
    background-color: #f5f5f5;
    padding: 50px 20px;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 1rem;
    flex-wrap: wrap;
    margin-top: -210px;
    z-index: 2;
}

.stat-box {
    background: #003282;
    color: white;
    border-radius: 70px;
    text-align: center;
    font-size: 35px;
    width: 250px;
    box-shadow: 0 8px 0 0 #00cfff;
    font-weight: bold !important;
    padding: 10px 40px;
    margin: 0 50px;
}

.stat-box h2 {
    font-size: 2rem;
    margin-bottom: .5rem;
}

/* ===========================
   SERVICIOS
   =========================== */
.section-info-2 {
    position: relative;
    width: 100%;
    min-height: 670px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/img/banner-4.svg');
    background-size: cover;
    background-position: center;
}

.servicios-container {
    width: 100%;
    max-width: 1600px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    justify-items: center;
    align-items: start;
    padding: 60px 4%;
    box-sizing: border-box;
}

.servicio-box {
    width: 100%;
    max-width: 100%;
    min-height: 260px;
    border-radius: 30px;
    color: white;
    text-align: center;
    padding: 100px 15px 40px;
    font-size: 18px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ===========================
   EXÁMENES
   =========================== */
.section-info-3 {
    width: 100%;
    background-color: #003282;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -80px;
}

.content-cards {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

.cards-section {
    width: 15%;
    height: 200px;
    position: relative;
}

.cards-section-body {
    width: 100%;
    height: 140px;
    border-radius: 30px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 10px;
    font-size: 17px;
    background: linear-gradient(180deg, #009DE0 0%, #009DE0 50%, #008DD3 100%);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    width: 100%;
    background-color: #eaeaea;
    padding: 20px;
    color: white;
    text-align: center;
}

.barLogoResponsive {
    display: none;
}

/* ===========================
   RESPONSIVE
   =========================== */

/* Teléfonos pequeños */
@media (max-width: 480px) {
    .header {
        position: fixed;
    }

    .barLogoResponsive {
        display: block;
        text-align: center;
        margin: 10px 0;
    }

    .content-menu {
        display: none;
    }

    /* Banner fluido */
    .banner-1 {
        aspect-ratio: 16 / 9;
        background-position: center top;
        height: 20vh !important;
    }

    .banner-1 .wave,
    .banner-1 .swiper-button-prev,
    .banner-1 .swiper-button-next {
        display: none;
    }

    .banner-1 .banner-content {
        align-items: flex-end;
        justify-content: flex-end;
        padding-bottom: 12%;
    }

    .banner-1-section img {
        display: none;
    }

    .section-info-2 {
        background-image: none;
    }

    /* Stats */
    .stats-container {
        background-color: #003982;
        padding-bottom: 30px;
    }

    /* Servicios apilados */
    .servicios-container {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 1.5rem;
    }

    .servicio-box {
        width: 100%;
        font-size: 15px;
        padding: 90px 20px 35px;
        min-height: 200px;
    }

    .servicio-box .icono {
        width: 100px;
        height: 100px;
        top: -50px;
        font-size: 42px;
    }

    /* Exámenes centrados */
    .content-cards {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 20px;
    }

    .cards-section {
        width: 100% !important;
        max-width: 380px;
        margin: 0 auto;
        height: auto !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cards-section-body {
        width: 100%;
        height: auto;
        padding: 20px 15px;
        font-size: 15px;
    }

    #btnIrResultados {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 15px;
    }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
  .banner-1 {
    aspect-ratio: 16 / 8;
    background-position: center top;
  }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
    .banner-1 {
        height: 45vh;
        background-position: center top;
    }

    .stat-box {
        width: 90%;
        margin: 20px auto;
        font-size: 24px;
        padding: 20px;
    }

    .servicios-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 2rem;
        padding: 40px 5%;
    }

    .servicio-box {
        width: 100%;
        font-size: 16px;
        min-height: 220px;
    }

    .content-cards {
        padding: 5rem;
    }

    .cards-section {
        width: 100%;
    }

    .section-info-1,
    .section-info-2,
    .section-info-3,
    .section-info-4 {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .content-footer {
        width: 100%;
        padding: 50px;
    }

    .banner-1-section img {
        display: none;
    }
}

@media screen and (min-width: 820px) {
    .section-info-1 .banner-1-section {
        background-color: #003982;
    }

    .banner-1-section img {
        display: none;
    }

    .servicio-box {
        width: 90%;
        margin-left: 50px;
    }
}

/* Laptops pequeñas */
@media (max-width: 1024px) {
    .banner-1 {
        height: 60vh;
        background-position: center top;
    }

    .servicio-box {
        font-size: 17px;
        min-height: 240px;
    }
}

/* Laptops */
@media (min-width: 769px) and (max-width: 1200px) {
  .banner-1 {
    aspect-ratio: 16 / 7;
  }
}

/* Laptops grandes */
@media (max-width: 1440px) {
    .banner-1 {
        width: 100%;
        height: 90vh !important;
    }
}

/* Escritorios ultra anchos */
@media (max-width: 1920px) {
    .espacio-banner-1 {
        height: 100px;
        background-color: #009de0;
        margin-bottom: -60px !important;
    }

    .banner-1 {
        width: 100%;
        height: 80vh !important;
    }

    .banner-1-section img {
        background-color: #003982;
    }
}


/* Escritorios grandes */
@media (min-width: 1201px) {
  .banner-1 {
    aspect-ratio: 16 / 6.5;
  }
}

/* Evita deformaciones en pantallas ultrapanorámicas */
@media (min-aspect-ratio: 21/9) {
  .banner-1 {
    background-size: contain;
    background-color: #003282;
  }
}

/* ===========================
   FIX BANNER - ALTURA REAL EN MÓVIL
   =========================== */

/* Altura adaptable que compensa el header fijo */
.banner-1 {
  min-height: calc(100vh - 80px); /* compensa el header en móviles */
}

/* Para móviles pequeños */
@media (max-width: 480px) {
  .banner-1 {
    min-height: calc(100vh - 70px); /* header móvil más pequeño */
    height: auto !important;
    aspect-ratio: auto !important;
    background-size: cover;
    background-position: center top;
  }

  /* Centra el contenido */
  .banner-1 .banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
    height: 100%;
  }

  /* Ajuste para evitar que el contenido se recorte */
  .banner-1 .banner-title,
  .banner-1 .banner-subtitle {
    max-width: 90%;
    margin: 0 auto;
  }
}
