﻿:root {
    /*--bg-de: linear-gradient(to right, rgb(1, 9, 32), rgb(6, 22, 56), rgb(22, 70, 140), rgb(25,76,153));*/
    --bg-de: linear-gradient(to right, rgba(38,166,154,1) 0%, rgba(38,166,154,1) 24%, rgba(20,50,150,1) 100%);
}


/* ---------------------        NAVBAR       ----------------------*/


.navbar-container {
    box-shadow: 0px 0px 10px 3px rgba(38,166,154, 0.2);
    /*top: 25px;*/
}

.menu-icon {
    display: none; /* Ocultar icono por defecto */
}

.img-navbar {
    height: 50px;
    object-fit: cover;
}

.navbar-buttom:hover {
    background-color: #26A69A;
    color: white;
    transition: all ease-in 300ms;
}

.active-menu {
    font-weight: bold;
    color: #26A69A;
    border-bottom: 6px solid #26A69A;
    transition: all ease-in 300ms;
}

.menu-container {
    display: flex;
    gap: 20px;
}

.navbar-subbuttom {
    text-transform: uppercase;
}

    .navbar-subbuttom:hover {
        color: #26A69A;
    }

.items-btn {
    position: relative;
    display: flex;
    align-items: center; /* Centra verticalmente el icono y el texto */
    gap: 10px; /* Ajusta el espacio entre el icono y el texto */
    font-size: 1.3em;
    font-weight: 500;
    text-align: center;
    transition: color 0.4s linear;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

    .items-btn i {
        font-size: 2em;
    }

    .items-btn:hover {
        color: #eee;
    }

    .items-btn::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        border-radius: 5px;
        z-index: -1;
        transition: transform 0.5s;
        transform-origin: 0 0;
        transition-timing-function: cubic-bezier(0,5,1.6,0.4,0.7);
        transform: scaleX(0)
    }

    .items-btn:hover::before {
        transform: scaleX(1);
    }


    .items-btn.instagram::before {
        background: linear-gradient(45deg, #833AB4, #C13584, #F56040, #FFDC80); /* Gradiente de Instagram */
    }

    .items-btn.facebook::before {
        background: linear-gradient(45deg, #1877F2, #3b5998); /* Azul de Facebook */
    }

    .items-btn.whatsapp::before {
        background: linear-gradient(45deg, #25D366, #128C7E); /* Verde de WhatsApp */
    }

.whatsapp {
    color: #25D366;
}

.instagram {
    color: #D81B60;
}

.facebook {
    color: #1565C0;
}

/* Etiqueta */
.etiqueta {
    position: fixed;
    color: white;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 1);
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    transition: opacity 1s ease-in-out;
    cursor: pointer;
    text-align: left;
    padding: 0px 10px;
    width: max-content;
    height: max-content;
    right: -5px;
}

.primeraEtiqueta {
    background-color: rgba(190, 20, 20, 1);
}

.segundaEtiqueta {
    background-color: rgba(255, 200, 5, 1);
}

/*ESLOGAN*/
.eslogan-div {
    position: fixed;
    height: 25px;
    top: 0px;
    left: 0;
    width: 100%;
    white-space: nowrap;
    /*background: var(--bg-de);*/
    background-image: repeating-linear-gradient(140deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 5px,transparent 10px, transparent 20px),linear-gradient(to right, rgba(38,166,154,1) 0%, rgba(38,166,154,1) 24%, rgba(20,50,150,1) 100%);
    color: white;
    padding: 2px 0;
    overflow: hidden;
    z-index: 1000;
}

.eslogan-text {
    width: 100%;
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.barraMenu {
    /*background: var(--bg-de);*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0.8;
    height: 100%;
    top: 25px;
}


@keyframes marquee {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}


@media (max-width: 960px) {
    .menu-icon {
        display: inline-flex; /* Muestra el icono solo en pantallas pequeñas */
    }

    .img-navbar {
        height: 40px;
    }

    .menu-container {
        display: none; /* Oculta el menú en pantallas pequeñas */
    }

    .redes-navbar {
        display: none !important;
    }

    .etiqueta h6 {
        font-size: 14px;
    }

    .etiqueta h4 {
        font-size: 18px;
    }
}



/* --------------------   FOOTER  ----------------------*/



.footer {
    background: linear-gradient(180deg, rgba(38,166,154,1) 0%, rgba(38,166,154,1) 40%, rgba(112,211,201,1) 70%);
    color: white;
    padding: 20px 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    border-top: 2px solid white;
}

.img-container-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.footer-subcontainer-sedes {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-sedes-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-sedes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vertical-divider {
    height: 100%;
    display: flex;
    align-items: center;
}

.esloganFooter {
    display: inline-block;
    font-weight: 900;
    background: linear-gradient(90deg, rgba(20,50,150,1), #26A69A, white);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}


/* --------------------     HOME    ------------------- */



.home-carousel {
    height: 500px !important;
    width: 100%;
}

.home-car-service-container {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.home-car-service-subcontainer {
    max-width: 400px;
    background: linear-gradient(180deg, transparent 11%, transparent 60%, #26A69A 100%) !important;
    transition: all ease-in 300ms;
    padding: 10px;
    box-shadow: 0px 0px 5px rgba(2,50,150,0.5);
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home-card-service {
    width: 100%;
    height: 350px;
    text-align: center;
    transition: all ease-in 300ms;
    cursor: pointer;
    background-color: transparent !important;
}


    .home-card-service:hover {
        transform: scale(1.1);
    }

.home-card-service-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.home-card-service-img {
    width: 100%;
    height: 70%;
    border-radius: 8px;
    object-fit: cover;
}

.home-card-service-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
}

/*Prueba de carusel alianza*/

.img-carousel-container {
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 15px
}

.image-item {
    width: 100%;
    object-fit: contain;
    max-width: 150px;
}


/*texto de carrusel*/

.carousel-item-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-text-overlay {
    position: absolute;
    top: 15%;
    left: 5%;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    z-index: 2;
    max-width: 90%;
}

.carousel-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.carousel-description {
    font-size: 1rem;
}



@media (max-width: 768px) {
    .home-carousel {
        height: 300px !important;
    }

    .home-car-service-subcontainer {
        width: 100%;
    }
}

.sedes-grid {
    display: flex;
    flex-wrap: wrap;
}


.sedes-img {
    width: 100%;
    border-radius: 20px;
}

.sedes-subcontainers {
    display: flex;
    gap: 10px;
    width: 100%
}


/* ----------------------     Servicios       -------------------*/

.service-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding-top: 50px;
}

.service-subcontainer {
    display: flex;
    gap: 10px;
    padding: 0px 50px;
}

.service-container-text {
    display: flex;
    flex-direction: column;
    width: 60%;
    justify-content: center;
    align-items: center;
}

.service-container-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
}

.service-container-image-UnidadApoyo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-service {
    height: 250px;
}

.servicio-carousel {
    height: 300px;
    width: 70%;
}

.div-elementos {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    width: 90%;
    max-width: 90%;
    margin: auto;
    gap: 50px;
}

.service-card-container {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center !important;
}

.service-card-container > div {
        width: 25%;
        min-width: 300px; /* Ancho mínimo para mantener la consistencia */
    }

.service-card-content {
    flex-grow: 1; /* Permite que el contenido crezca si es necesario */
    min-height: 150px; /* Ajusta el tamaño mínimo según sea necesario */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.tarjeta {
    margin: 10px;
    width: 100%;
    max-width: 400px; /* TODAS del mismo ancho */
    border-radius: 10%;
    display: flex;
    align-items: center;
    flex-direction: column;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: .7s ease;
    transition: .7s ease;
    position: relative; /* 🔴 CLAVE */
    height: 460px; /* 🔴 ALTURA FIJA */
}

.tarjeta:hover {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.card-image-wrapper {
    width: 100%;
    height: 460px; /* MISMA ALTURA PARA TODAS */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 14px;
}

.card-image {
    width: 100%;
    height: 100%;
}

.adelante {
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    flex-direction: column;
    width: 100%;
    border-radius: 10%;
}

.atras {
    background: var(--bg-de);
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    padding: 15px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    color: white;
}

.adelante, .atras {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 20px;
    top: 0;
    left: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.blur {
    backdrop-filter: blur(30px);
}

.cartaDetalle {
    background-color: transparent;
}

.cartaDetalle-surface {
    background: rgb(from var(--mud-palette-surface) r g b / 75%);
}

/* ------------------------   ESPECIALIDADES ------------------- */

.especialidades-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    padding: 50px 20px;
    min-height: 100vh;
}

.especialidades-subcontainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.especialidades-card-container {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    width: 25%;
    max-width: 300px;
    min-width: 250px;
    padding: 10px;
    box-shadow: 0px 0px 5px #26A69A;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
        transform: scale(1.1); /* Escala la carta al 110% */
        box-shadow: 0px 0px 15px #26A69A;
    }

.detalle-especialidad-card-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detalle-especialidad-card {
    width: 50%;
    background-color: #5ec8be !important;
}

.tabla-cabecera-container th {
    text-align: center !important;
    vertical-align: middle;
    padding: 16px !important;
}

.imagen-especialidad-container {
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.imagen-especialidad {
    width: 100%;
}

@media (min-width: 960px) {
    .imagen-especialidad {
        width: 60%;
    }
    .imagen-especialidad-container{
        padding: 20px ;
    }
}

@media (max-width: 768px) {
    /* Estilos para pantallas de 768px o menos */
    .detalle-especialidad-card {
        width: 100%;
    }


    /* Contenedor general */
    .service-container {
        gap: 30px;
        padding-top: 30px;
    }

    /* Imagen superior */
    .image-service {
        height: 180px;
        width: 100%;
        object-fit: cover;
    }

    /* Cards */
    .tarjeta {
        max-width: 100%;
        height: 380px; /* MÁS BAJA EN MÓVIL */
        border-radius: 16px;
    }

    /* Imagen dentro de la card */
    .card-image-wrapper {
        height: 200px; /* SOLO LA IMAGEN */
        border-radius: 16px 16px 0 0;
    }

    .card-image {
        object-fit: cover;
    }

    /* Texto trasero */
    .atras {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Listas */
    .mud-list-item {
        padding: 4px 0;
    }

    .service-subcontainer {
        flex-direction: column;
        padding: 0 20px;
        gap: 25px;
    }

    /* Texto ocupa todo */
    .service-container-text {
        width: 100%;
        align-items: flex-start;
    }

    /* Imagen ocupa todo */
    .service-container-image {
        width: 100%;
        justify-content: center;
    }

    /* Imagen responsive */
    .image-service {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    /* Carrusel */
    .servicio-carousel {
        width: 100%;
    }

    /* Cards del carrusel */
    .div-elementos {
        flex-direction: column;
        gap: 20px;
    }
}



/*--------------------- ATENCION AL PACIENTE -------------------*/

.protocolo-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
}

.text-list-atencion li {
    font-size: 16px;
    color: #000;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {

    /* Estilos para pantallas de 768px o menos */
    .text-list-atencion li {
        font-size: 14px;
    }
}

/*   ----------------------   NOTICIAS   ------------*/



.noticias-container {
    width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.noticias-subcontainer {
    display: flex;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease, box-shadow 0.3s ease;
}

    .noticias-subcontainer:hover {
        transform: scale(1.05); /* Escala la carta al 110% */
    }

.noticia-image {
    width: 50%;
    border-radius: 20px;
}

.noticias-text-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.div-imagenNoticia {
    background: #26A69A;
    border-radius: 50%;
    margin: 40px;
}

.imagenNoticia {
    width: 100%;
    min-width: 500px;
    padding: 20px;
    border-radius: 50px;
    transition: all ease-in 300ms;
    cursor: move;
}P



/*  -------------------      NOSOTROS      -----------------*/


.div-imagenNosotros {
    background: #26A69A;
    border-radius: 50%;
    margin: 40px;
}

.imagenNosotros {
    width: 100%;
    padding: 20px;
    border-radius: 50px;
    transition: all ease-in 300ms;
    cursor: move;
}

.classVideo {
    border-radius: 50%;
    background: transparent;
}

.classVideo:hover {
        background: #26A69A;
        transform: scale(1.1);
    }
