/* =====================================================
RESET Y BASE
===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#footer {
    margin-top: auto;
}

/* =====================================================
TIPOGRAFÍAS
===================================================== */
.section-title,
.sobre-title,
.practicas-title,
.practica-item,
.frase-text,
.faq-title,
.contacto-title,
.testimonios-title,
.equipo-card h4,
.consultorio-title,
.obras-container>h2,
.equipo-title {
    font-family: 'Playfair Display', serif;
}

.hero-title,
.doctor-nombre {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

/**************************************************************************************** NAVBAR GENERAL ****************************************************************************************/
/* Contenedor*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: white;
    padding-top: 1px;
    padding-bottom: 1px;
    border-bottom: 1px solid #e5e5e5;
}

.logo-img {
    height: 100px;
}

.menu-nav {
    gap: 40px;
}

.nav-link {
    font-size: 18px;
    font-weight: 500;
    color: #222 !important;
    position: relative;
}

.nav-link:hover {
    color: #609DEB !important;
}

.active-link {
    font-weight: 600;
    color: #609DEB !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0px;
    margin-right: 40px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background-color: #609DEB;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.active-link::after {
    width: 100%;
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .logo-img {
        height: 70px;
    }

    .navbar-collapse {
        background: white;
        margin-top: 10px;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

        position: absolute;
        top: 100%;
        right: 10px;
        left: 10px;
        z-index: 9999;
    }

    .menu-nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav-link {
        font-size: 18px;
        padding: 10px 0;
    }

    .menu-open-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }

}

/******** ********************************************************************************HERO ************************************************************************************************/
.hero {
    background-color: #1f3c4d;
    background-image: url('../img/img/Imagen\ portada\ final.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 100vh;
    padding: 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    /* podés ajustar entre 0.35 y 0.55 */
}

.hero-content {
    position: absolute;
    left: 8%;
    bottom: 12%;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    animation: heroFade 1.2s ease forwards;
}

.hero-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    animation: heroFade 1.6s ease forwards;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    .hero-content {
        left: 5%;
        bottom: 10%;
        right: 5%;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.1;
    }

    .hero-text {
        font-size: 15px;
        max-width: 100%;
    }

}

/**************************************************************************************** SECCIÓN PRACTICAS ********************************************************************************/
.section-title {
    font-size: 48px;
    font-weight: 600;
}

.section-subtitle {
    color: #777;
    font-size: 18px;
}

.practica-card {
    border-radius: 14px;
    padding: 22px;
    background: #fff;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practica-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.practica-card .card-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
}

.practica-card .card-text {
    font-size: 14.5px;
    color: #555;
    line-height: 1.6;
}

.practicas .row {
    margin-top: 30px;
    align-items: stretch;
}

.ver-mas-btn {
    background-color: #609DEB;
    color: white;
    border-radius: 8px;
    padding: 10px 22px;
    border: none;

}

.practicas .container-fluid {
    max-width: 1600px;
}

.practicas-inner {
    width: 84%;
    margin: 0 auto;
    padding: 55px 0 75px 0;
}


@media (max-width: 768px) {

    .practicas-title {
        margin-bottom: 5px;
    }

    .practicas-subtitle {
        margin-bottom: 20px;
    }

    .practicas-inner {
        padding: 30px 0 50px 0;
    }

}

.practica-card .card-title {
    font-family: 'Playfair Display', serif;
}

.practica-card .card-text {
    font-family: 'Inter', sans-serif;
}

.practica-card {
    border: none !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/**************************************************************************************** SECCIÓN FRASE ********************************************************************************/
.frase-section {
    background-color: #f3f4f6;
    padding: 70px 0;
}

.frase-container {
    width: 84%;
    margin-left: 8%;
    max-width: 1400px;
}

.frase-text {
    font-size: 60px;
    line-height: 1.3;
    font-style: italic;
    color: #4fa3ff;
    font-weight: 500;
}

.frase-autor {
    margin-top: 10px;
    font-size: 18px;
    color: #555;
}

@media (max-width: 768px) {

    .frase-section {
        padding: 50px 0;
    }

    .frase-text {
        font-size: 34px;
        line-height: 1.3;
    }

}

/******** ********************************************************************************SECCIÓN TESTIMONIOS ********************************************************************************/

.testimonios-section {
    background-color: #cfeae4;
    padding: 70px 0;
}

.testimonios-container {
    width: 84%;
    margin: 0 auto;
}


.testimonios-title {
    font-size: 48px;
    font-weight: 600;
    margin: 0;
}

.testimonios-subtitle {
    font-size: 20px;
    color: #555;
    margin: 4px 0 30px 0;
}


.testimonio-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.testimonio-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.testimonio-card .autor {
    margin-top: 15px;
    font-weight: 600;
}


.testimonio-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.testimonio-foto {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonio-info {
    display: flex;
    flex-direction: column;
}

.testimonio-nombre {
    font-weight: 600;
    font-size: 16px;
}

.testimonio-rating {
    color: #fbbc04;
    font-size: 14px;
    letter-spacing: 2px;
}

.testimonio-google {
    font-size: 12px;
    color: #888;
}

@media (max-width: 768px) {

    .testimonios-section {
        padding: 50px 0 !important;
    }

}

@media (max-width: 768px) {

    .testimonios-section .row.g-4 {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
        scroll-snap-type: x proximity;
    }

    .testimonios-section .col-md-4 {
        min-width: 280px;
        flex: 0 0 auto;
        /* 🔥 CLAVE */
        scroll-snap-align: start;
    }

    /* ocultar scrollbar */
    .testimonios-section .row.g-4::-webkit-scrollbar {
        display: none;
    }

    .testimonios-section .row.g-4 {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/******** ********************************************************************************SECCIÓN CONSULTORIO ********************************************************************************/
.consultorio-section {
    padding: 80px 0;
    background-color: #fff;
}

.consultorio-container {
    width: 84%;
    margin: 0 auto;
}

/* COLUMNA IZQUIERDA */
.consultorio-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sucursales-btns {
    margin-bottom: 15px;
}

.sucursal-btn {
    background: #cfeae4;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 14px;
    cursor: pointer;
}

.sucursal-btn.active {
    background: #8fd3c5;
}

.consultorio-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.15;
    margin: 5px 0 15px 0;
}

.consultorio-direccion {
    font-size: 18px;
    color: #555;
}

.btn-como-llegar {
    display: inline-block;
    margin-top: 20px;
    background: #609DEB;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn-como-llegar:hover {
    background: #609DEB;
    transform: translateY(-2px);
}

.mapa-col {
    position: relative;
}

.mapa-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background-color: #e9f7ff;
}

.mapa-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.consultorio-slider {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 100%;
    pointer-events: auto;
}

.consultorio-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.flecha-mapa {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 5;
}

.flecha-mapa img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flecha-der {
    right: -40px;
}

.flecha-izq {
    left: -40px;
}

@media (max-width: 768px) {

    .consultorio-title {
        font-size: 28px;
        line-height: 1.2;
        word-break: break-word;
    }


    .btn-como-llegar {
        margin-bottom: 20px;
    }


    .mapa-box {
        aspect-ratio: auto;
        height: 320px;
    }


    .consultorio-section {
        padding: 60px 0;
    }

}

/**************************************************************************************** SECCIÓN CONTACTO ****************************************************************************************/
.contacto-section {
    background-color: #F2F2F2;
    padding: 125px 0px 125px 0px;
}

.contacto-container {
    width: 84%;
    margin: 0 auto;
}

.contacto-title {
    font-size: 48px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}

.contacto-text {
    font-size: 18px;
    color: #444;
    max-width: 400px;
    margin-bottom: 15px;
}

.btn-enviar {
    background: #609DEB;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contacto-card {
    background: #cfeae4;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.contacto-form label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    border-color: #609DEB;
    box-shadow: 0 0 0 3px rgba(79, 163, 255, 0.15);
    outline: none;
}

.contacto-form select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif;
}

.contacto-form select:focus {
    border-color: #4fa3ff;
    box-shadow: 0 0 0 3px rgba(79, 163, 255, 0.15);
    outline: none;
}

@media (max-width: 768px) {

    .contacto-card h5 {
        font-size: 15px;
    }

    .contacto-section {
        padding: 70px 0 !important;
    }

}

/************************************************************************************* SECCION PREGUNTAS FRECUENTES ****************************************************************/

.faq2-section {
    padding: 80px 0 70px;
    background: #ffffff;
}

.faq2-container {
    width: 84%;
    margin: 0 auto;
}

.faq2-container h2 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 35px;
}

.faq2-columns {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.faq2-list {
    width: 50%;
    list-style: disc;
    padding-left: 22px;
}

.faq2-list li {
    margin-bottom: 16px;
    color: #444;
    font-size: 17px;
    line-height: 1.6;
}

.faq2-btn {
    display: inline-block;
    margin-top: 25x;
    padding: 14px 26px;
    background: #609DEB;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 768px) {

    .faq2-columns {
        flex-direction: column;
        gap: 0;
    }

    .faq2-list {
        width: 100%;
    }

    .faq2-section {
        padding: 60px 0 50px;
    }

}

/******************************************************************************************* OBRAS SOCIALES Y PREPAGAS ************************************************************************/

.obras-logos-wrapper {
    overflow: hidden;
    width: 100%;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.obras-logos-track {
    display: flex;
    gap: 70px;
    align-items: center;
    width: max-content;
    padding: 20px 0;
    /* espacio vertical */
    animation: scrollLogos 22s linear infinite;
    will-change: transform;
}

.obras-section {
    padding: 70px 0 80px 0;
}

.obras-container {
    width: 84%;
    margin: 0 auto;
}

.obras-container h2 {
    font-size: 40px;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
}

.obras-logos-track img:hover {
    transform: scale(1.2);
}

.obras-logos-wrapper:hover .obras-logos-track {
    animation-play-state: paused;
}

@keyframes scrollLogos {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 35px));
    }
}

.obras-logos-track img {
    height: 65px;
    width: auto;
    flex-shrink: 0;
    transition: transform .3s ease;
    transform-origin: center bottom;
}

.obras-logos-track img:hover {
    transform: scale(1.25);
    z-index: 5;
}

@media (max-width: 768px) {

    .obras-logos-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .obras-logos-track {
        animation: scrollLogos 25s linear infinite;
    }

    /* PAUSA cuando el usuario interactúa */
    .obras-logos-wrapper:active .obras-logos-track,
    .obras-logos-wrapper:hover .obras-logos-track {
        animation-play-state: paused;
    }
}

/* TEXTO SOLO EN MOBILE */
@media (min-width: 769px) {
    .obras-hint {
        display: none;
    }
}

.obras-hint {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

/* *************************************************************************************** SOBRE NOSOTROS PAGINA ************************************************************************************************ */
.sobre-section {
    padding: 125px 0 60px 0;
}

.sobre-container {
    width: 84%;
    margin: 0 auto;
}

.sobre-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.sobre-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 60px;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 60px;
    align-items: start;
}

.sobre-img img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    display: block;
}

.sobre-texto {
    max-width: 1020px;
}

.doctor-nombre {
    font-size: 50px;
    font-style: italic;
    color: #609DEB;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.bio-resumen p,
.bio-normal p,
.bio-expandida p {
    font-size: 18px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 18px;
    font-family: 'Inter', sans-serif;
}

.bio-normal::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 20px;

    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 1));

    pointer-events: none;
    transition: opacity .4s ease;
}

.bio-expandida {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .8s ease, opacity .5s ease;
    margin-top: 0;
    padding-left: 0;
    border-left: 3px solid transparent;
}

.bio-expandida.activa {
    max-height: 2000px;
    opacity: 1;
    margin-top: 25px;
    padding-left: 22px;
    border-left: 2px solid #609DEB;
}

.ver-mas-sobre {
    background: none;
    border: none;
    color: #609DEB;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 25px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .25s ease;
}

.ver-mas-sobre::after {
    content: "→";
    font-size: 18px;
    transition: transform .25s ease;
}

.ver-mas-sobre:hover {
    color: #609DEB;
}

.ver-mas-sobre:hover::after {
    transform: translateX(4px);
}

.bio-lista {
    margin: 15px 0;
    padding-left: 22px;
}

.bio-lista li {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.6;
}

@media (max-width: 768px) {

    /* SOBRE */
    .sobre-section {
        padding: 100px 0 30px 0 !important;
    }

    .sobre-title {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .sobre-img img {
        object-fit: cover;
        max-height: 420px;
    }

    .doctor-nombre {
        font-size: 30px;
        line-height: 1.2;
    }

    .ver-mas-sobre {
        margin-top: 20px;
        font-size: 16px;
    }

    .bio-resumen p,
    .bio-normal p,
    .bio-expandida p {
        font-size: 15.5px;
        line-height: 1.65;
        color: #555;
    }

    /* EQUIPO (SCROLL HORIZONTAL) */
    .equipo-grid {
        display: flex !important;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
        scroll-snap-type: x proximity;
    }

    .equipo-card {
        min-width: 280px;
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 18px;

    }

    .equipo-foto {
        aspect-ratio: 4 / 3;
        max-height: 220px;
    }

    /* OCULTAR SCROLLBAR */
    .equipo-grid::-webkit-scrollbar {
        display: none;
    }

    .equipo-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;

    }

    @media (max-width: 768px) {

        .equipo-section {
            padding: 30px 0 40px 0 !important;
        }

    }
}

/* **************************************************************************************** EQUIPO **************************************************************************************** */
.equipo-section {
    padding: 60px 0 80px;
}

.equipo-container {
    width: 84%;
    margin: 0 auto;
}

.equipo-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 15px;
}

.equipo-subtitle {
    font-size: 20px;
    color: #555;
    margin-bottom: 40px;
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.equipo-card {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.equipo-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.equipo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.equipo-foto {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 15px;
}

.equipo-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
     object-position: center top;
}

.equipo-card:nth-child(1) img {
    object-position: center 20%;
}

.equipo-card:nth-child(2) img {
    object-position: 50% 20%;
}

.equipo-card h4 {
    font-size: 18px;
    margin: 12px 0 24px 0;
}

.equipo-card p {
    font-size: 14px;
    color: #555;
}

.cmp-title {
    font-size: 22px;
    margin-bottom: 25px;
    color: #1f1e1e;
}

.equipo-intro {
    max-width: 2000px;
    margin: 30px 0 50px 0;
}

.equipo-intro p {
    font-size: 18px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 18px;
}

.equipo-lista {
    margin: 15px 0;
    padding-left: 20px;
}

.equipo-lista li {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.6;
}

@media (max-width: 768px) {

    /* GRID SOBRE NOSOTROS */
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* IMAGEN */
    .sobre-img img {
        height: auto;
    }

    /* NOMBRE DOCTOR */
    .doctor-nombre {
        font-size: 36px;
    }

    /* TEXTO */
    .bio-resumen p,
    .bio-normal p,
    .bio-expandida p {
        font-size: 16px;
    }

    /* BOTON */
    .ver-mas-sobre {
        font-size: 15px;
    }

    /* EQUIPO */
    .equipo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .equipo-card {
        width: 100%;
    }

}

/**************************************************************************************** PRACTICAS PAGINA **********************************************************************************/

.practicas-page {
    background: #ffffff;
    padding: 125px 0 125px;
}

.practicas-container {
    width: 84%;
    margin: 0 auto;
}

.practicas-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 10px;
}

.practicas-subtitle {
    font-size: 18px;
    color: #666;
}

.practica-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 180px;
}

.practica-card,
.practica-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.practica-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.practica-item h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.practica-item p {
    font-size: 14px;
    color: #666;
    flex-grow: 1;
}

.practica-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.practica-item h5 {
    font-family: 'Playfair Display', serif;
}

.practica-item p {
    font-family: 'Inter', sans-serif;
}


.practicas-page .col-lg-4 {
    flex: 1 1 calc(33.333% - 17px);
    max-width: calc(33.333% - 17px);
}

.practica-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.practica-card .card-text {
    flex-grow: 1;
}
/* ================= CONSULTORIA ================= */

.consultoria-section {

    padding: 100px 0 0px;
}

.consultoria-container {
    width: 84%;
    margin: 0 auto;
}

.consultoria-title {
    font-size: 40px;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
}

.consultoria-texto {
    font-size: 18px;
    color: #555;
    max-width: 100%;
    margin-bottom: 50px;
}

.consultoria-cards {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;

}

.consultoria-card {
    background: #f2f2f2;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    width: 33%;
}

.consultoria-card h5 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-bottom: 10px;
}

.consultoria-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.consultoria-enfoque strong {
    display: block;
    margin-bottom: 10px;
}

.consultoria-enfoque p {
    font-size: 16px;
    color: #555;
    max-width: 100%;

}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .consultoria-cards {
        overflow-x: auto;
        display: flex;
        gap: 15px;
        padding-bottom: 10px;
    }

    .consultoria-card {
        min-width: 280px;
        flex-shrink: 0;
    }

    .consultoria-title {
        font-size: 28px;
    }

    .consultoria-texto {
        font-size: 16px;
    }

    .practicas-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .practica-item {
        margin-bottom: 20px;
    }

    @media (max-width: 768px) {
        .consultoria-section {
            padding: 60px 0 0px !important;
        }
    }
}

/**************************************************************************************** PREGUNTAS FRECUE PAGINA ************************************************************************/
.faq-page {
    background: #ffffff;
    padding: 125px 0 125px;
}

.faq-container {
    width: 84%;
    margin: 0 auto;
}

.faq-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 15px;
}

.faq-subtitle {
    font-size: 18px;
    color: #555;
    max-width: 900px;
}

.faq-item {
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    border: none;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-button {
    background: white !important;
    font-size: 16px;
    font-weight: 500;
}

.faq-button:not(.collapsed) {
    background: #ffffff !important;
    box-shadow: none;
}

.faq-body {
    background: #ffffff;
    color: #555;
    font-size: 15px;
}

@media (max-width: 768px) {

    .faq-title {
        font-size: 30px;
        line-height: 1.2;
    }

    .faq-subtitle {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 25px;
    }

    .faq-item {
        margin-bottom: 15px;
    }

    /* ===== BOTON (pregunta) ===== */
    .faq-button {
        font-size: 15px;
        padding: 14px;
    }

    /* ===== CONTENIDO (respuesta) ===== */
    .faq-body {
        padding: 18px;
        font-size: 15px;
        line-height: 1.6;
    }

}

/**************************************************************************************** CONTACTO PAGE ****************************************************************************************/
.contacto-dato {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #555;
}

.contacto-dato img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

@media (max-width: 768px) {

    .contacto-title {
        font-size: 30px;
    }

    .contacto-text {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .contacto-card {
        padding: 25px;
    }

    .contacto-form input,
    .contacto-form textarea,
    .contacto-form select {
        font-size: 15px;
    }
}

/**************************************************************************************** GALERIA PAGINA ************************************************************************************************/
.galeria-section {
    background: #ffffff;
    padding: 125px 0 125px;
}

.galeria-container {
    width: 84%;
    margin: 0 auto;
}

.galeria-subtitle {
    font-size: 18px;
    color: #555;
    max-width: 1270px;
    margin-bottom: 60px;
}

.galeria-bloque {
    margin-bottom: 60px;
}

.galeria-bloque:last-child {
    margin-bottom: 0;
}

.galeria-bloque-titulo {
    font-size: 20px;
    margin-bottom: 25px;
}

.galeria-grid {
    display: flex;
    gap: 25px;
}

.galeria-grid img {
    width: 100%;
    max-width: 32%;
    border-radius: 16px;
    object-fit: cover;
    transition: 0.3s ease;
}

.galeria-grid img:hover {
    transform: scale(1.03);
}

.practica-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.practica-link:hover .practica-item {
    transform: translateY(-4px);
    transition: 0.3s;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {

    .galeria-grid {
        overflow-x: auto;
        gap: 15px;
    }

    .galeria-grid img {
        max-width: 70%;
        flex-shrink: 0;
    }

}

/*****************************************************************************************Otras pages********************************************************************************************/
.practica-detalle {
    padding: 120px 0;
    background: #ffffff;
}

.practica-detalle-container {
    width: 84%;
    max-width: 1250px;
    margin-left: 8%;
}

.practica-detalle h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.practica-detalle p {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.practica-lista {
    margin: 25px 0;
    padding-left: 20px;
}

.practica-lista li {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
}

.volver-practicas {
    display: inline-block;
    margin-top: 30px;
    color: #609DEB;
    text-decoration: none;
    font-weight: 500;
}

.practica-detalle h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 25px;
}

.practica-detalle h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    margin-top: 45px;
    margin-bottom: 20px;
}

.practica-detalle h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
}

.practica-detalle p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #444;
}

.practica-lista {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    padding-left: 20px;
}

.practica-lista li {
    margin-bottom: 12px;
}

@media (max-width: 768px) {

    /* ===== CONTENEDOR ===== */
    .practica-detalle-container {
        width: 90%;
        margin-left: 5%;
    }

    /* ===== TITULO PRINCIPAL ===== */
    .practica-detalle h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    /* ===== SUBTITULOS ===== */
    .practica-detalle h2 {
        font-size: 24px;
        line-height: 1.3;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    /* ===== TEXTO ===== */
    .practica-detalle p {
        font-size: 16px;
        line-height: 1.6;
    }

    /* ===== LISTAS ===== */
    .practica-lista li {
        font-size: 16px;
        line-height: 1.6;
    }
}

/**************************************************************************************** FOOTER ************************************************************************************************/
footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 35px 0;
}

.footer-container {
    width: 94%;
    margin: auto;
    display: flex;
    align-items: flex-start;
}

.footer-logo img {
    height: 126px;
    transform: scale(1.15);
    transform-origin: left top;
}

.footer-nav {
    display: flex;
    gap: 38px;
    font-size: 18px;
    margin-left: 120px;
    margin-top: 75px;
}

.footer-nav a {
    text-decoration: none;
    color: #222;
}

.footer-nav a:hover {
    color: #609DEB;
}

.footer-contact {
    margin-left: auto;
    display: flex;
    gap: 18px;
    margin-top: 73px;
}

.footer-contact img {
    height: 26px;
    transition: 0.3s;
}

.footer-contact img:hover {
    transform: scale(1.1);
}

.active-footer {
    color: #609DEB !important;
    font-weight: 600;
}

@media (max-width: 768px) {

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-logo img {
        height: 80px;
        transform: none;
    }

    .footer-nav {
        margin: 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        font-size: 14px;
    }

    .footer-contact {
        margin: 0;
        justify-content: center;
    }

}

/******************************************************************************* CSS GLOBAR MOBIL***********************************************************************************************/
@media (max-width: 768px) {

    /* ================= SECCIONES ================= */
    @media (max-width: 768px) {
        section {
            padding: 70px 0 60px 0 !important;
        }
    }

    /* ================= TITULOS ================= */
    .section-title,
    .testimonios-title,
    .contacto-title,
    .faq2-container h2 {
        font-size: 30px;
        line-height: 1.2;
    }

    /* ================= AJUSTES ESPECIFICOS ================= */

    /* Prácticas */
    .practicas {
        padding: 30px 0 !important;
    }

    /* Obras sociales */
    .obras-section {
        padding: 30px 0 60px 0 !important;
    }

}

@media (max-width: 768px) {

    .equipo-section {
        padding: 30px 0 40px 0 !important;
    }

    .equipo-title {
        font-size: 28px !important;
        line-height: 1.15;
        margin-bottom: 10px;
    }

    .equipo-subtitle {
        font-size: 15.5px;
        margin-bottom: 14px;
    }

    .equipo-intro {
        margin: 15px 0 25px 0;
    }

    .equipo-intro p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 10px;
        color: #666;
    }
}

@media (max-width: 768px) {

    .practicas-page,
    .faq-page,
    .galeria-section,
    .contacto-section,
    .consultorio-section {
        padding-top: 100px !important;
    }

}

@media (max-width: 1024px) {
    .practicas-page .col-lg-4 {
        flex: 1 1 calc(50% - 13px);
        max-width: calc(50% - 13px);
    }
}

@media (max-width: 600px) {
    .practicas-page .col-lg-4 {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
/*********************************************************************************VISTA GLOBAL TABLET********************************************************************************************/
@media (min-width: 769px) and (max-width: 1024px) {}
@media (min-width: 769px) and (max-width: 1024px) {


    .hero-content {
        left: 6%;
       
        max-width: 80%;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-text {
        font-size: 20px;
        max-width: 600px;
    }

    
    .navbar-collapse {
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .menu-nav {
        flex-direction: row !important;
        gap: 25px;
    }

}

@media (min-width: 769px) and (max-width: 1024px) {

   
    


    .practica-card {
        height: 100%;
    }

    .practica-card .card-text {
        font-size: 15px;
    }

}
@media (min-width: 769px) and (max-width: 1024px) {

    .testimonios-section .row.g-4 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .testimonios-section .col-md-4 {
        width: 48%;
    }

    

    .testimonio-card {
        padding: 22px;
    }

}

@media (min-width: 769px) and (max-width: 1024px) {

    .consultorio-title {
        font-size: 32px;
    }

    .consultorio-info {
    padding-right: 20px;
}

    .consultorio-direccion {
        font-size: 16px;
    }

    .mapa-box {
        height: 300px;
    }

    .flecha-der {
        right: -20px;
    }

    .flecha-izq {
        left: -20px;
    }

}
@media (min-width: 769px) and (max-width: 1024px) {

    .footer-container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
            align-items: center;

    }

    .footer-logo img {
        height: 90px;
    }

    .footer-nav {
        margin: 0;
        gap: 20px;
        font-size: 16px;
    }

    .footer-contact {
        margin: 0;
    }

}

@media (min-width: 769px) and (max-width: 1024px) {

    .contacto-section .row {
        flex-direction: column;
        gap: 30px;
    }

    .contacto-section .col-md-5,
    .contacto-section .col-md-7 {
        width: 100%;
    }

    .contacto-card {
        padding: 25px;
    }

    .contacto-form select {
    font-size: 14px;
}
}


@media (min-width: 769px) and (max-width: 1024px) {

    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .doctor-nombre {
        font-size: 38px;
        line-height: 1.2;
    }

    .bio-resumen p,
    .bio-normal p {
        font-size: 16px;
    }

    .sobre-texto {
        max-width: 700px;
        margin: 0 auto;
    }

    .sobre-img img {
        max-height: 500px;
        object-fit: cover;
    }
}


@media (min-width: 769px) and (max-width: 1024px) {

    .equipo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    @media (min-width: 769px) and (max-width: 1024px) {

    .equipo-card:last-child {
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
    }

}

}

@media (min-width: 769px) and (max-width: 1024px) {

    .galeria-container {
        width: 92%;
    }

    .galeria-grid {
        gap: 20px;
    }

    .galeria-grid img {
        max-width: 32%;
        height: 220px;
        object-fit: cover;
    }

}
