* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f6f9fc;
    color: #1f2933;
}

.contenedor {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Barra superior */

.barra-superior {
    background-color: #e70043;
    color: white;
    font-size: 14px;
    padding: 8px 0;
}

.barra-superior-contenido {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

/* Header principal */

.header-principal {
    background-color: #b00033;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-contenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 35px;
}

/* Logo */

.logo-contenedor {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-contenedor img {
    width: 70%;
    height: auto;
}

.nombre-laboratorio h1 {
    font-size: 22px;
    color: #005f7f;
    line-height: 1.1;
}

.nombre-laboratorio span {
    font-size: 14px;
    color: #6b7280;
}

/* Men煤 */

.menu-principal ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu-principal a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.menu-principal a:hover {
    color: #e7e1e1;
}

/* Bot贸n */

.header-boton a {
    background-color: #e70043;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 135px;
}

.header-boton a:hover {
    background-color: #710122;
}

/* Hero temporal */

.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 38px;
    color: #b00033;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    color: #4b5563;
}

/* Responsive */

@media screen and (max-width: 900px) {

    .header-contenido {
        flex-direction: column;
        align-items: center;
    }

    .menu-principal ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .barra-superior-contenido {
        flex-direction: column;
        text-align: center;
    }

    .header-boton {
        margin-top: 10px;
    }
}

@media screen and (max-width: 500px) {

    .logo-contenedor {
        flex-direction: column;
        text-align: center;
    }

    .nombre-laboratorio h1 {
        font-size: 19px;
    }

    .menu-principal ul {
        flex-direction: column;
        align-items: center;
    }

    .hero h2 {
        font-size: 28px;
    }
}

/* ==============================
   BANNER CARRUSEL
============================== */

.banner-carrusel {
    width: 100%;
    background: #eef4f8;
}

.carrusel-contenedor {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.slide.activo {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 520px;
    /*background: linear-gradient(90deg, rgb(0 0 0 / 100%), rgb(0 0 0 / 11%), rgb(0 0 0 / 18%));*/
    background: linear-gradient(90deg, rgb(0 0 0 / 65%), rgb(0 0 0 / 0%), rgb(0 0 0 / 0%));
    z-index: 1;
}

.slide-contenido {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    max-width: 580px;
    color: white;
    z-index: 5;
}

.slide-contenido h2 {
    font-size: 44px;
    line-height: 1.1;
    margin-bottom: 15px;
    color: white;
    font-weight: 800;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.slide-contenido p {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 25px;
    color: white;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.slide-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0099cc;
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: background 0.3s ease, transform 0.3s ease;
}

.slide-boton:hover {
    background: #007fa8;
    transform: translateY(-2px);
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.88);
    color: #006b8f;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 26px;
    font-weight: bold;
    z-index: 5;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carrusel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.08);
}

.carrusel-btn.anterior {
    left: 24px;
}

.carrusel-btn.siguiente {
    right: 24px;
}

.carrusel-puntos {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 6;
}

.punto {
    width: 13px;
    height: 13px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.punto.activo {
    background: white;
}

.banner-vacio {
    padding: 90px 20px;
    text-align: center;
}

.banner-vacio h2 {
    color: #006b8f;
    font-size: 36px;
    margin-bottom: 12px;
}

.banner-vacio p {
    color: #4b5563;
    font-size: 18px;
}

/* Responsive */

@media screen and (max-width: 768px) {
    .carrusel-contenedor {
        height: 460px;
    }

    .slide-contenido {
        left: 7%;
        right: 7%;
        max-width: none;
        text-align: center;
    }

    .slide-contenido h2 {
        font-size: 34px;
    }

    .slide-contenido p {
        font-size: 18px;
    }

    .carrusel-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

@media screen and (max-width: 480px) {
    .carrusel-contenedor {
        height: 430px;
    }

    .slide-contenido h2 {
        font-size: 29px;
    }

    .slide-contenido p {
        font-size: 16px;
    }

    .slide-boton {
        padding: 12px 22px;
    }

    .carrusel-btn.anterior {
        left: 10px;
    }

    .carrusel-btn.siguiente {
        right: 10px;
    }
}

/* ==============================
   SECCIÓN LABORATORIO CLÍNICO
============================== */

.seccion-laboratorio {
    background: #f1f5f7;
    padding: 80px 0;
}

.titulo-seccion {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 45px auto;
}

.titulo-seccion span {
    display: inline-block;
    background: #b00033;
    color: #ffffff;
    font-weight: bold;
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 14px;
    font-size: 14px;
}

.titulo-seccion h2 {
    font-size: 40px;
    /*color: #005f7f;*/
    color:#b00033;
    margin-bottom: 14px;
}

.titulo-seccion p {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.6;
}

.grid-examenes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.tarjeta-examen {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5edf3;
}

.tarjeta-examen:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.tarjeta-imagen {
    height: 180px;
    background: #eaf3f7;
    overflow: hidden;
}

.tarjeta-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tarjeta-examen:hover .tarjeta-imagen img {
    transform: scale(1.08);
}

.tarjeta-contenido {
    padding: 24px 20px 26px 20px;
    text-align: center;
}

.tarjeta-contenido h3 {
    color: #4b0f3f;
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tarjeta-contenido p {
    color: #5f6b76;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.tarjeta-contenido a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e70043;
    color: white;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s ease;
}

.tarjeta-contenido a:hover {
    background: #86042a;
}

/* Responsive */

@media screen and (max-width: 1100px) {
    .grid-examenes {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 800px) {
    .grid-examenes {
        grid-template-columns: repeat(2, 1fr);
    }

    .titulo-seccion h2 {
        font-size: 32px;
    }
}

@media screen and (max-width: 540px) {
    .seccion-laboratorio {
        padding: 60px 0;
    }

    .grid-examenes {
        grid-template-columns: 1fr;
    }

    .tarjeta-imagen {
        height: 210px;
    }

    .titulo-seccion h2 {
        font-size: 28px;
    }

    .titulo-seccion p {
        font-size: 16px;
    }
}


/* ==============================
   PARTE 3: CARRUSEL ACCESOS RÁPIDOS
============================== */

.seccion-accesos {
    background: #ffffff;
    padding: 75px 0;
}

.accesos-titulo {
    margin-bottom: 35px;
}

.accesos-titulo h2 {
    /*color: #0099cc;*/
    color: #b00033;
    font-size: 32px;
    margin-bottom: 8px;
}

.accesos-titulo p {
    color: #334155;
    font-size: 18px;
}

.accesos-carrusel-wrap {
    position: relative;
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.accesos-carrusel {
    width: 100%;
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 16px 6px 22px 6px;
    scrollbar-width: none;
}

.accesos-carrusel::-webkit-scrollbar {
    display: none;
}

.acceso-card {
    flex: 0 0 350px;
    width: 350px;
    height: 175px;
    background: #f3f7fb;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    text-decoration: none;
    color: #1e293b;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.acceso-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
    background: #eaf6fb;
}

.acceso-texto {
    width: 55%;
    padding: 25px 18px 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.acceso-texto h3 {
    font-size: 21px;
    line-height: 1.15;
    color: #334155;
    margin-bottom: 12px;
    font-weight: 800;
}

.acceso-texto p {
    font-size: 15px;
    line-height: 1.45;
    color: #64748b;
}

.acceso-imagen {
    width: 45%;
    height: 175px;
    overflow: hidden;
}

.acceso-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.acceso-card:hover .acceso-imagen img {
    transform: scale(1.08);
}

.accesos-flecha {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 38px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.accesos-flecha:hover {
    color: #0099cc;
    transform: scale(1.15);
}

/* Responsive */

@media screen and (max-width: 900px) {
    .accesos-carrusel-wrap {
        gap: 8px;
    }

    .acceso-card {
        flex: 0 0 320px;
        width: 320px;
    }
}

@media screen and (max-width: 600px) {
    .seccion-accesos {
        padding: 55px 0;
    }

    .accesos-flecha {
        display: none;
    }

    .acceso-card {
        flex: 0 0 300px;
        width: 300px;
        height: 165px;
    }

    .acceso-imagen {
        height: 165px;
    }

    .acceso-texto {
        padding: 18px 14px;
    }

    .acceso-texto h3 {
        font-size: 18px;
    }

    .acceso-texto p {
        font-size: 14px;
    }
}

/* ==============================
   CENTRO MÉDICO
============================== */

.seccion-centro-medico {
    background: #ffffff;
    padding: 80px 0;
}

.centro-medico-titulo {
    margin-bottom: 30px;
}

.buscador-medico {
    max-width: 600px;
    margin: 0 auto 40px auto;
    display: flex;
    justify-content: center;
}

.buscador-medico input {
    width: 100%;
    padding: 16px 24px;
    border: 2px solid #d8e2ea;
    border-radius: 35px;
    font-size: 18px;
    outline: none;
    color: #334155;
    background: #f8fbfd;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.buscador-medico input:focus {
    border-color: #0099cc;
    box-shadow: 0 0 0 4px rgba(0, 153, 204, 0.12);
}

.grid-centro-medico {
    display: grid;
    grid-template-columns: repeat(3, 350px);
    justify-content: center;
    gap: 28px;
}

.tarjeta-medico {
    width: 350px;
    height: 175px;
    background: #f3f7fb;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5edf3;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.tarjeta-medico:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
    background: #eaf6fb;
}

.medico-info {
    width: 58%;
    padding: 18px 15px 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.medico-info h3 {
    font-size: 18px;
    color: #263445;
    line-height: 1.15;
    margin-bottom: 4px;
    font-weight: 800;
}

.medico-info h4 {
    font-size: 15px;
    color: #0099cc;
    margin-bottom: 8px;
    font-weight: 700;
}

.medico-info p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.35;
    margin-bottom: 8px;
}

.medico-info a {
    color: #b00033;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}

.medico-info a:hover {
    text-decoration: underline;
}

.medico-imagen {
    width: 42%;
    height: 175px;
    overflow: hidden;
}

.medico-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tarjeta-medico:hover .medico-imagen img {
    transform: scale(1.08);
}

.sin-resultados-medicos {
    display: none;
    text-align: center;
    margin-top: 30px;
    color: #64748b;
    font-size: 18px;
    background: #f8fbfd;
    padding: 22px;
    border-radius: 14px;
}

/* Responsive */

@media screen and (max-width: 1180px) {
    .grid-centro-medico {
        grid-template-columns: repeat(2, 350px);
    }
}

@media screen and (max-width: 760px) {
    .grid-centro-medico {
        grid-template-columns: 1fr;
    }

    .tarjeta-medico {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 600px) {

    .tarjeta-medico {
        height: auto;
        flex-direction: column;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .medico-info {
        width: 100%;
        padding: 24px 22px 18px 22px;
        text-align: left;
    }

    .medico-imagen {
        width: 100%;
        height: auto;
        background: #f3f7fb;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .medico-imagen img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        object-position: center top;
        display: block;
    }

    .tarjeta-medico:hover .medico-imagen img {
        transform: none;
    }
}

/* ==============================
   FOTOS PROFESIONALES MÁS PEQUEÑAS EN MÓVIL
============================== */

@media screen and (max-width: 600px) {

    .tarjeta-medico {
        height: auto;
        flex-direction: column;
        width: 100%;
        max-width: 330px;
        margin: 0 auto;
    }

    .medico-info {
        width: 100%;
        padding: 22px 20px 16px 20px;
        text-align: left;
    }

    .medico-imagen {
        width: 100%;
        height: 260px;
        background: #f3f7fb;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        overflow: hidden;
    }

    .medico-imagen img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center top;
        display: block;
    }

    .tarjeta-medico:hover .medico-imagen img {
        transform: none;
    }
}

/* ==============================
   PAGINACIÓN CENTRO MÉDICO
============================== */

.paginacion-medicos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 38px;
    flex-wrap: wrap;
}

.pagina-btn {
    min-width: 42px;
    height: 42px;
    border: 1px solid #d8e2ea;
    background: #ffffff;
    color: #334155;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.pagina-btn:hover {
    background: #e0f2fe;
    color: #006b8f;
    border-color: #0099cc;
    transform: translateY(-2px);
}

.pagina-btn.activo {
    background: #b00033;
    color: white;
    border-color: #b00033;
    box-shadow: 0 8px 18px rgb(176 0 51 / 28%);
}

.pagina-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ==============================
   CENTRO ODONTOLÓGICO
============================== */

.seccion-odontologico {
    background: #f1f5f7;
    padding: 80px 0;
}

.grid-odontologico {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.tarjeta-odontologico {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5edf3;
}

.tarjeta-odontologico:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.tarjeta-odontologico:hover .tarjeta-imagen img {
    transform: scale(1.08);
}

/* Responsive */

@media screen and (max-width: 1100px) {
    .grid-odontologico {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 800px) {
    .grid-odontologico {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 540px) {
    .seccion-odontologico {
        padding: 60px 0;
    }

    .grid-odontologico {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   FOOTER
============================== */

/* ==============================
   FOOTER COMPACTO
============================== */

.footer-principal {
    background: #ffffff;
    padding: 35px 0 16px 0;
    color: #111827;
    border-top: 1px solid #edf2f7;
}

.footer-contenido {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 45px;
    align-items: start;
}

.footer-columna h2 {
    font-size: 28px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 20px;
}

.footer-iconos-redes {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-left: 28px;
}

.footer-iconos-redes a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eef9ff;
    color: #16a7e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 26px;
    font-weight: 500;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.footer-iconos-redes a:hover {
    transform: translateY(-4px);
    background: #dff4ff;
    box-shadow: 0 8px 18px rgba(0, 153, 204, 0.15);
}

.footer-info-linea {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 22px;
}

.footer-icono {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eef9ff;
    color: #16a7e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.footer-info-linea p {
    font-size: 17px;
    line-height: 1.25;
    color: #111827;
    margin: 0;
}

.footer-reserva {
    align-items: center;
}

.footer-reserva a {
    font-size: 17px;
    color: #111827;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-reserva a:hover {
    color: #0099cc;
}

.footer-legal {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid #9ca3af;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-legal p {
    font-size: 15px;
    color: #111827;
    margin: 0;
}

.footer-legal a {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #0099cc;
}

/* Responsive footer compacto */

@media screen and (max-width: 1050px) {
    .footer-contenido {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-info-linea {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .footer-iconos-redes {
        justify-content: center;
        padding-left: 0;
    }

    .footer-columna h2 {
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 520px) {
    .footer-principal {
        padding: 32px 0 16px 0;
    }

    .footer-columna h2 {
        font-size: 25px;
    }

    .footer-info-linea {
        grid-template-columns: 38px 1fr;
        gap: 10px;
    }

    .footer-icono {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .footer-info-linea p,
    .footer-reserva a {
        font-size: 16px;
    }

    .footer-legal p,
    .footer-legal a {
        font-size: 13px;
    }
}













/* ==============================
   HEADER EN TELÉFONOS MÓVILES
============================== */

@media screen and (max-width: 768px) {

    /* Oculta la franja superior con teléfonos y correo */
    .barra-superior {
        display: none;
    }

    /* Oculta el menú principal */
    .menu-principal {
        display: none;
    }

    /* Header más compacto */
    .header-contenido {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        gap: 12px;
    }

    /* Logo más ordenado */
    .logo-contenedor {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex: 1;
        min-width: 0;
    }

    .logo-contenedor img {
        width: 190px;
        max-width: 100%;
        height: auto;
    }

    /* Oculta el texto del nombre si molesta */
    .nombre-laboratorio {
        display: none;
    }

    /* Botón visible, pero pequeño */
    .header-boton {
        display: block;
        flex-shrink: 0;
        margin-top: 0;
    }

    .header-boton a {
        padding: 9px 14px;
        font-size: 13px;
        border-radius: 24px;
        min-width: auto;
        white-space: nowrap;
    }
}

/* ==============================
   BOTÓN PREPARACIÓN EXÁMENES
============================== */

.boton-preparacion-examen {
    margin-top: 26px;
    text-align: center;
}

.boton-preparacion-examen a,
.boton-preparacion-examen button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e70043;
    color: #ffffff;
    border: none;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 32px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(176, 0, 51, 0.22);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.boton-preparacion-examen a:hover,
.boton-preparacion-examen button:hover {
    background: #86042a;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(176, 0, 51, 0.28);
}

/* ==============================
   MODAL PREPARACIÓN EXÁMENES
============================== */

.modal-preparacion {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    padding: 22px;
}

.modal-preparacion.activo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-preparacion-fondo {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
}

.modal-preparacion-contenido {
    position: relative;
    width: min(920px, 100%);
    max-height: 88vh;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    animation: modalEntrada 0.25s ease;
}

@keyframes modalEntrada {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Botón cerrar */

.modal-preparacion-cerrar {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #b00033;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.modal-preparacion-cerrar:hover {
    background: #b00033;
    color: #ffffff;
    transform: rotate(90deg);
}

/* Encabezado del modal */

.modal-preparacion-header {
    background: linear-gradient(135deg, #b00033, #e70043);
    color: #ffffff;
    text-align: center;
    padding: 42px 70px 32px 70px;
    margin: 0;
    max-width: none;
    width: 100%;
}

.modal-preparacion-header span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 14px;
}

.modal-preparacion-header h2 {
    color: #ffffff;
    font-size: 34px;
    margin-bottom: 10px;
}

.modal-preparacion-header p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    line-height: 1.55;
    max-width: 680px;
    margin: 0 auto;
}

/* ==============================
   ACORDEÓN PREPARACIÓN EXÁMENES
============================== */

.preparacion-acordeon {
    padding: 26px 34px 34px 34px;
    overflow-y: auto;
    max-height: calc(88vh - 205px);
    background: #f8fbfd;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.preparacion-acordeon::-webkit-scrollbar {
    width: 9px;
}

.preparacion-acordeon::-webkit-scrollbar-track {
    background: #edf2f7;
}

.preparacion-acordeon::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}

.preparacion-acordeon::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.acordeon-item {
    background: #ffffff;
    border: 1px solid #e5edf3;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.acordeon-titulo {
    width: 100%;
    border: none;
    background: #ffffff;
    color: #263445;
    padding: 20px 22px;
    font-size: 20px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    transition: background 0.25s ease, color 0.25s ease;
}

.acordeon-titulo span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fce7ef;
    color: #b00033;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease;
}

.acordeon-titulo:hover {
    background: #fff5f8;
    color: #b00033;
}

.acordeon-item.activo .acordeon-titulo {
    background: #fff5f8;
    color: #b00033;
}

.acordeon-item.activo .acordeon-titulo span {
    background: #b00033;
    color: #ffffff;
}

.acordeon-contenido {
    display: none;
    padding: 8px 28px 26px 28px;
    background: #ffffff;
    border-top: 1px solid #edf2f7;
}

.acordeon-item.activo .acordeon-contenido {
    display: block;
}

.acordeon-contenido p,
.acordeon-contenido li {
    color: #475569;
    font-size: 18px;
    line-height: 1.7;
}

.acordeon-contenido ol {
    padding-left: 24px;
}

.acordeon-contenido li {
    margin-bottom: 8px;
}

.nota-preparacion {
    margin-top: 16px;
    background: #fff7ed;
    border-left: 5px solid #f97316;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
    color: #334155;
}

/* ==============================
   RESPONSIVE PREPARACIÓN EXÁMENES
============================== */

@media screen and (max-width: 760px) {
    .boton-preparacion-examen a,
    .boton-preparacion-examen button {
        width: 100%;
        max-width: 330px;
        font-size: 15px;
        padding: 13px 18px;
        text-align: center;
    }

    .modal-preparacion {
        padding: 10px;
    }

    .modal-preparacion.activo {
        align-items: flex-start;
    }

    .modal-preparacion-contenido {
        width: 100%;
        max-height: 94vh;
        border-radius: 22px;
        margin-top: 8px;
    }

    .modal-preparacion-header {
        padding: 58px 20px 24px 20px;
    }

    .modal-preparacion-header span {
        font-size: 13px;
    }

    .modal-preparacion-header h2 {
        font-size: 25px;
    }

    .modal-preparacion-header p {
        font-size: 15.5px;
        line-height: 1.5;
    }

    .modal-preparacion-cerrar {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .preparacion-acordeon {
        padding: 18px;
        max-height: calc(94vh - 215px);
    }

    .acordeon-titulo {
        font-size: 17px;
        padding: 17px;
    }

    .acordeon-titulo span {
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .acordeon-contenido {
        padding: 8px 20px 22px 20px;
    }

    .acordeon-contenido p,
    .acordeon-contenido li {
        font-size: 16px;
        line-height: 1.65;
    }
}


/* ==============================
   AJUSTE FINAL: MODAL EXÁMENES LIMPIO Y TEXTO VISIBLE
   Este bloque debe quedar al final del archivo.
============================== */

.modal-preparacion.activo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-preparacion-contenido {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    width: min(920px, 94vw) !important;
    max-height: 88vh !important;
    border-radius: 28px !important;
    background: #ffffff !important;
}

.modal-preparacion-header {
    width: 100% !important;
    margin: 0 !important;
    padding: 42px 70px 32px 70px !important;
    background: linear-gradient(135deg, #b00033, #e70043) !important;
}

.preparacion-acordeon {
    padding: 26px 34px 34px 34px !important;
    max-height: calc(88vh - 205px) !important;
    overflow-y: auto !important;
    background: #f8fbfd !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.acordeon-item {
    background: #ffffff !important;
    border: 1px solid #e5edf3 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07) !important;
}

/* ==============================
   CORRECCIÓN FINAL TÍTULOS ACORDEÓN
============================== */

.acordeon-titulo span {
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    display: inline !important;
    font-size: inherit !important;
    flex-shrink: 1 !important;
}

.acordeon-titulo .titulo-texto {
    display: block !important;
    width: auto !important;
    max-width: calc(100% - 60px) !important;
    color: inherit !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
}

.acordeon-titulo .icono-acordeon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: #fce7ef !important;
    color: #b00033 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
}

.acordeon-item.activo .icono-acordeon {
    background: #b00033 !important;
    color: #ffffff !important;
}

.acordeon-titulo {
    overflow: visible !important;
}

.acordeon-item.activo .acordeon-titulo {
    background: #fff5f8 !important;
    color: #b00033 !important;
}

/*.acordeon-item.activo .acordeon-titulo span {*/
/*    background: #b00033 !important;*/
/*    color: #ffffff !important;*/
/*}*/

.acordeon-contenido {
    display: none !important;
    padding: 20px 28px 26px 28px !important;
    background: #ffffff !important;
    border-top: 1px solid #edf2f7 !important;
    box-shadow: none !important;
}

.acordeon-item.activo .acordeon-contenido {
    display: block !important;
}

.acordeon-contenido p {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #475569 !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
    text-align: left !important;
}

.acordeon-contenido ol {
    display: block !important;
    margin: 0 !important;
    padding-left: 26px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.acordeon-contenido li {
    display: list-item !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 9px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #475569 !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
    text-align: left !important;
}

.nota-preparacion {
    display: block !important;
    margin-top: 16px !important;
    background: #fff7ed !important;
    border-left: 5px solid #f97316 !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    color: #334155 !important;
}

@media screen and (max-width: 760px) {
    .modal-preparacion.activo {
        align-items: flex-start !important;
    }

    .modal-preparacion-contenido {
        width: 100% !important;
        max-height: 94vh !important;
        border-radius: 22px !important;
        margin-top: 8px !important;
    }

    .modal-preparacion-header {
        padding: 58px 20px 24px 20px !important;
    }

    .modal-preparacion-header h2 {
        font-size: 25px !important;
    }

    .modal-preparacion-header p {
        font-size: 15.5px !important;
    }

    .preparacion-acordeon {
        padding: 18px !important;
        max-height: calc(94vh - 215px) !important;
    }

    .acordeon-titulo {
        min-height: 58px !important;
        font-size: 17px !important;
        padding: 17px !important;
    }

    .acordeon-contenido {
        padding: 18px 20px 22px 20px !important;
    }

    .acordeon-contenido p,
    .acordeon-contenido li {
        font-size: 16px !important;
        line-height: 1.65 !important;
    }
}

/* ==============================
   ARREGLO DEFINITIVO SCROLL MODAL
============================== */

.modal-preparacion.activo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
}

.modal-preparacion-contenido {
    width: min(920px, 100%) !important;
    height: 88vh !important;
    max-height: 88vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 28px !important;
}

/* El encabezado rojo queda fijo */
.modal-preparacion-header {
    flex: 0 0 auto !important;
}

/* ESTA ES LA PARTE IMPORTANTE */
.preparacion-acordeon {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 28px 44px 44px 44px !important;
    background: #f8fbfd !important;
}

/* Asegura que el contenido abierto no se corte */
.acordeon-item {
    overflow: visible !important;
}

.acordeon-contenido {
    overflow: visible !important;
}

/* Scroll visible */
.preparacion-acordeon::-webkit-scrollbar {
    width: 10px;
}

.preparacion-acordeon::-webkit-scrollbar-track {
    background: #eaf0f5;
    border-radius: 20px;
}

.preparacion-acordeon::-webkit-scrollbar-thumb {
    background: #b00033;
    border-radius: 20px;
}

.preparacion-acordeon::-webkit-scrollbar-thumb:hover {
    background: #86042a;
}

/* Móvil */
@media screen and (max-width: 760px) {
    .modal-preparacion.activo {
        align-items: flex-start !important;
        padding: 10px !important;
    }

    .modal-preparacion-contenido {
        height: 94vh !important;
        max-height: 94vh !important;
        width: 100% !important;
        border-radius: 22px !important;
    }

    .modal-preparacion-header {
        padding: 56px 20px 24px 20px !important;
    }

    .modal-preparacion-header h2 {
        font-size: 25px !important;
    }

    .modal-preparacion-header p {
        font-size: 15.5px !important;
    }

    .preparacion-acordeon {
        padding: 22px 18px 34px 18px !important;
    }
}








/* ==============================
   BOTÓN HEADER RESULTADOS
============================== */

.header-boton button {
    background-color: #e70043;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 135px;
    font-size: 15px;
}

.header-boton button:hover {
    background-color: #710122;
    transform: translateY(-2px);
}

/* ==============================
   MODAL RESULTADOS DE EXÁMENES
============================== */

.modal-resultados {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    padding: 20px;
}

.modal-resultados.activo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-resultados-fondo {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
}

.modal-resultados-contenido {
    position: relative;
    width: min(640px, 100%);
    max-height: 84vh;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.32);
    display: flex;
    flex-direction: column;
}

/* Botón cerrar */

.modal-resultados-cerrar {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #b00033;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-resultados-cerrar:hover {
    background: #b00033;
    color: #ffffff;
}

/* Encabezado */

.modal-resultados-header {
    background: linear-gradient(135deg, #b00033, #e70043);
    color: #ffffff;
    text-align: center;
    padding: 34px 42px 24px 42px;
}

.modal-resultados-header span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 30px;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 13px;
}

.modal-resultados-header h2 {
    color: #ffffff;
    font-size: 25px;
    line-height: 1.25;
    margin-bottom: 10px;
}

.modal-resultados-header p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.5;
    max-width: 520px;
    margin: 0 auto;
}

/* Cuerpo */

.modal-resultados-cuerpo {
    padding: 24px;
    background: #f8fbfd;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    overflow-y: auto;
}

/* Tarjetas */

.resultado-opcion {
    background: #ffffff;
    border: 1px solid #e5edf3;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
    text-align: center;
}

.resultado-opcion.resultado-destacado {
    border: 2px solid #e70043;
}

.resultado-fecha {
    font-size: 18px;
    font-weight: 800;
    color: #b00033;
    margin-bottom: 12px;
    line-height: 1.35;
}

.resultado-opcion p {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 18px;
}

/* Botones centrados */

.resultado-opcion a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e70043;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(176, 0, 51, 0.22);
    transition: background 0.3s ease, transform 0.3s ease;
    margin: 0 auto;
    min-width: 320px;
    max-width: 100%;
    text-align: center;
}

.resultado-opcion a:hover {
    background: #86042a;
    transform: translateY(-2px);
}

/* Scroll más limpio */

.modal-resultados-cuerpo::-webkit-scrollbar {
    width: 8px;
}

.modal-resultados-cuerpo::-webkit-scrollbar-track {
    background: #edf2f7;
}

.modal-resultados-cuerpo::-webkit-scrollbar-thumb {
    background: #b00033;
    border-radius: 20px;
}

.modal-resultados-cuerpo::-webkit-scrollbar-thumb:hover {
    background: #86042a;
}




/* ==============================
   RESPONSIVE MODAL RESULTADOS
============================== */

@media screen and (max-width: 760px) {
    .modal-resultados {
        padding: 10px;
    }

    .modal-resultados.activo {
        align-items: flex-start;
    }

    .modal-resultados-contenido {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px;
        margin-top: 8px;
    }

    .modal-resultados-cerrar {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 26px;
    }

    .modal-resultados-header {
        padding: 48px 18px 22px 18px;
    }

    .modal-resultados-header span {
        font-size: 12px;
        padding: 6px 14px;
    }

    .modal-resultados-header h2 {
        font-size: 21px;
    }

    .modal-resultados-header p {
        font-size: 14.5px;
    }

    .modal-resultados-cuerpo {
        padding: 18px 16px 22px 16px;
        gap: 16px;
    }

    .resultado-opcion {
        padding: 18px 16px;
    }

    .resultado-fecha {
        font-size: 17px;
    }

    .resultado-opcion p {
        font-size: 15px;
    }

    .resultado-opcion a {
        width: 100%;
        min-width: auto;
        font-size: 14px;
        padding: 12px 16px;
    }

    .header-boton button {
        padding: 9px 14px;
        font-size: 13px;
        border-radius: 24px;
        min-width: auto;
    }
}