/* ========================================
   GENERAL
   ======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #263b4a;
    background: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
}


/* =========================================
   CABECERA
========================================= */

header {
    background: #ffffff;

    border-bottom: 1px solid #eeeeee;

    position: sticky;
    top: 0;

    z-index: 1000;
}


/* CONTENEDOR PRINCIPAL */

.cabecera {
    max-width: 1400px;

    margin: 0 auto;

    min-height: 105px;

    padding: 10px 45px;

    display: flex;

    align-items: center;

    gap: 35px;
}


/* =========================================
   MARCA
========================================= */

.marca {

    display: flex;

    align-items: center;

    text-decoration: none;

    color: #102f50;

    flex-shrink: 0;
}


/* LOGO */

.marca-logo {

    width: 70px;

    height: 82px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;
}


.marca-logo img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;
}


/* =========================================
   NOMBRE DEL DOCTOR
========================================= */

.marca-texto {

    display: flex;

    flex-direction: column;

    padding-left: 22px;

    margin-left: 10px;

    border-left: 1px solid #cfcfcf;
}


.marca-texto strong {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 30px;

    font-weight: 500;

    line-height: 1.15;

    color: #102f50;
}


.marca-texto span {

    margin-top: 10px;

    font-family: Arial, sans-serif;

    font-size: 12px;

    letter-spacing: 3px;

    color: #5d6570;
}


/* =========================================
   MENÚ
========================================= */

nav {

    display: flex;

    align-items: center;

    gap: 38px;

    margin-left: auto;
}


nav a {

    color: #102f50;

    text-decoration: none;

    font-family: Arial, sans-serif;

    font-size: 16px;

    font-weight: 600;

    transition:
        color 0.25s ease;
}


nav a:hover {

    color: #e18a3d;
}


/* =========================================
   BOTÓN SOLICITAR CITA
========================================= */

.boton-cabecera {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 52px;

    padding: 0 28px;

    background: #0d3458;

    color: #ffffff;

    border-radius: 6px;

    text-decoration: none;

    font-family: Arial, sans-serif;

    font-size: 15px;

    font-weight: 600;

    white-space: nowrap;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.boton-cabecera:hover {

    background: #16466f;

    transform: translateY(-1px);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .cabecera {

        padding: 10px 25px;

        gap: 20px;
    }


    nav {

        gap: 20px;
    }


    nav a {

        font-size: 14px;
    }


    .marca-texto strong {

        font-size: 25px;
    }


    .marca-texto span {

        font-size: 10px;

        letter-spacing: 2px;
    }


    .boton-cabecera {

        padding: 0 20px;
    }
}


/* =========================================
   MÓVIL
========================================= */

@media (max-width: 900px) {

    .cabecera {

        min-height: 82px;

        padding: 8px 20px;

        gap: 15px;
    }


    .marca-logo {

        width: 55px;

        height: 65px;
    }


    .marca-texto {

        padding-left: 12px;

        margin-left: 4px;
    }


    .marca-texto strong {

        font-size: 21px;
    }


    .marca-texto span {

        font-size: 8px;

        letter-spacing: 1.5px;

        margin-top: 6px;
    }


    nav {

        display: none;
    }


    .boton-cabecera {

        margin-left: auto;

        min-height: 42px;

        padding: 0 16px;

        font-size: 13px;
    }
}


/* =========================================
   MÓVILES PEQUEÑOS
========================================= */

@media (max-width: 500px) {

    .cabecera {

        padding: 7px 14px;
    }


    .marca-logo {

        width: 45px;

        height: 55px;
    }


    .marca-texto {

        border-left: none;

        padding-left: 0;

        margin-left: 0;
    }


    .marca-texto strong {

        font-size: 18px;
    }


    .marca-texto span {

        font-size: 7px;

        letter-spacing: 1px;
    }


    .boton-cabecera {

        padding: 0 12px;

        font-size: 12px;
    }
}

/* ========================================
   PORTADA
   ======================================== */

.hero {
    background: #edf6f8;
    padding: 65px 30px;
}

.hero-contenido {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
}

.hero-texto {
    max-width: 600px;
}

.hero-texto h1 {
    margin: 15px 0 25px;
    font-size: 58px;
    line-height: 1.08;
    color: #173f5f;
}

.hero-texto h1 strong {
    display: block;
}

.hero-texto .descripcion {
    max-width: 560px;
    margin-bottom: 35px;
    font-size: 19px;
    line-height: 1.7;
    color: #526674;
}

.zona-cita {
    margin-top: 30px;
}

.hero-foto {
    width: 100%;
    height: 560px;
    overflow: hidden;
    border-radius: 18px;
}

.hero-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}



/* ========================================
   CITA
   ======================================== */

.zona-cita {
    display: flex;
    align-items: center;
    gap: 28px;
}

.boton-cita {
    display: inline-block;

    padding: 16px 30px;

    background: #147c9b;
    color: white;

    border-radius: 5px;

    font-weight: bold;
    font-size: 16px;
}

.telefono {
    padding-left: 25px;
    border-left: 2px solid #cbdde3;

    display: flex;
    flex-direction: column;

    color: #173f5f;
}

.telefono strong {
    font-size: 20px;
}

.telefono span {
    color: #657883;
    font-size: 14px;
}


/* ========================================
   FOTO
   ======================================== */

.hero-foto {
    height: 560px;
    overflow: hidden;
}

.hero-foto img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    /*
       Esta posición hace que el doctor quede
       más centrado y tenga mayor protagonismo.
    */
    object-position: 38% center;
}


/* ========================================
   ESPECIALIDADES
   ======================================== */

.contenido {
    max-width: 1250px;
    margin: auto;
    padding: 75px 30px;
}

.contenido h2 {
    margin: 0;

    color: #173f5f;

    font-size: 36px;
    line-height: 1.2;
}

.tarjetas {
    margin-top: 35px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.tarjeta {
    padding: 32px;

    display: flex;
    gap: 25px;

    border: 1px solid #dce8ec;
    border-radius: 7px;

    background: #ffffff;
}

.numero {
    flex-shrink: 0;

    color: #147c9b;

    font-size: 14px;
    font-weight: bold;
}

.tarjeta h3 {
    margin: 0 0 10px;

    color: #173f5f;

    font-size: 22px;
}

.tarjeta p {
    margin: 0;

    color: #60737e;
}


/* ========================================
   SOBRE EL DOCTOR
   ======================================== */

.sobre-doctor {
    background: #f1f7f9;
    padding: 75px 30px;
}

.sobre-contenido {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.sobre-doctor h2 {
    margin: 0 0 20px;

    color: #173f5f;
    font-size: 36px;
}

.sobre-doctor p:not(.etiqueta) {
    color: #526674;
    font-size: 17px;
}

.detalle-medico {
    padding: 30px;

    border-left: 3px solid #147c9b;

    background: white;

    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detalle-medico span {
    margin-top: 15px;

    color: #147c9b;

    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.detalle-medico span:first-child {
    margin-top: 0;
}

.detalle-medico strong {
    color: #173f5f;
}


/* ========================================
   CONTACTO
   ======================================== */

.contacto {
    background: #eaf5f8;
}

.contacto-contenido {
    max-width: 1000px;
    margin: auto;
    padding: 65px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.contacto h2 {
    margin: 0 0 10px;

    color: #173f5f;
    font-size: 34px;
}

.contacto p:not(.etiqueta) {
    margin: 0;
    color: #526674;
}

.contacto-telefono {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacto-telefono a {
    padding: 13px 28px;

    background: #147c9b;
    color: white;

    border-radius: 5px;

    font-size: 22px;
    font-weight: bold;
}

.contacto-telefono span {
    margin-top: 8px;
    color: #526674;
}


/* ========================================
   PIE DE PÁGINA
   ======================================== */

footer {
    padding: 25px;

    background: #173f5f;
    color: white;

    text-align: center;
}

footer p {
    margin: 0;
    font-size: 14px;
}
/* ========================================
   FORMACIÓN
   ======================================== */

.formacion {
    background: #ffffff;
    padding: 80px 30px;
}

.formacion-contenido {
    max-width: 1000px;
    margin: auto;
}

.formacion h2 {
    margin: 0 0 20px;

    color: #173f5f;
    font-size: 36px;
}

.formacion-contenido > p:not(.etiqueta) {
    max-width: 800px;

    color: #526674;
    font-size: 17px;
}

.lista-formacion {
    margin-top: 35px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.lista-formacion div {
    padding: 20px 25px;

    border-left: 3px solid #147c9b;

    background: #f1f7f9;

    color: #173f5f;
}

.sociedades {
    margin-top: 40px;
    padding-top: 25px;

    border-top: 1px solid #dce8ec;
}

.sociedades p {
    color: #526674;
}


/* ========================================
   MI CONSULTA
   ======================================== */

.consulta {
    background: #edf6f8;
    padding: 85px 60px;
}

.consulta-contenido {
    max-width: 1000px;
    margin: auto;
}

.consulta h2 {
    margin: 0 0 25px;

    color: #173f5f;
    font-size: 38px;
}

.consulta-texto p:not(.etiqueta) {
    color: #526674;
    font-size: 18px;
}

.consulta-texto p:last-child {
    margin-top: 30px;

    color: #173f5f;
    font-weight: 600;
}

/* ========================================
   MÓVILES
   ======================================== */

@media (max-width: 850px) {
.lista-formacion {
    grid-template-columns: 1fr;
}

.formacion h2,
.consulta h2 {
    font-size: 30px;
}
    .cabecera {
        flex-wrap: wrap;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero-contenido {
        grid-template-columns: 1fr;
    }

    .hero-texto {
        padding: 60px 0 35px;
    }

    .hero-foto {
        height: 450px;
    }

    .tarjetas {
        grid-template-columns: 1fr;
    }

    .sobre-contenido {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .contacto-contenido {
        flex-direction: column;
        text-align: center;
    }
}


@media (max-width: 600px) {

    .cabecera {
        padding: 18px 20px;
    }

    .logo {
        font-size: 21px;
    }

    nav {
        gap: 18px;
    }

    .boton-cabecera {
        display: none;
    }

    .hero-contenido {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .descripcion {
        font-size: 18px;
    }

    .zona-cita {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .telefono {
        padding-left: 0;
        border-left: none;
    }

    .hero-foto {
        height: 380px;
    }

    .contenido {
        padding: 60px 20px;
    }

    .contenido h2,
    .sobre-doctor h2 {
        font-size: 30px;
    }

    .sobre-doctor {
        padding: 60px 20px;
    }

    .contacto-contenido {
        padding: 55px 20px;
    }

}.texto-desplegable ol,
.texto-desplegable ul {
    margin: 15px 0 20px;
    padding-left: 25px;
    color: #526674;
}

.texto-desplegable li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.texto-desplegable strong {
    color: #173f5f;
}

/* ========================================
   SOLICITAR UNA VISITA
   ======================================== */

.contacto {
    background: #edf6f8;
    padding: 85px 30px;
}

.solicitud-contenido {
    max-width: 1150px;
    margin: auto;
}

.solicitud-contenido h2 {
    margin: 0 0 15px;

    color: #173f5f;
    font-size: 40px;
    line-height: 1.2;
}

.solicitud-introduccion {
    max-width: 750px;
    margin: 0 0 45px;

    color: #526674;
    font-size: 18px;
}


/* OPCIONES */

.opciones-visita {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 20px;
}

.opcion-visita {
    padding: 32px;

    background: #ffffff;
    border: 1px solid #dce8ec;
    border-radius: 7px;
}

.opcion-numero {
    margin-bottom: 18px;

    color: #147c9b;

    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
}

.opcion-visita h3 {
    margin: 0 0 12px;

    color: #173f5f;
    font-size: 21px;
    line-height: 1.3;
}

.opcion-visita > p {
    color: #60737e;
    font-size: 15px;
}


/* FORMULARIO */

.formulario-visita {
    margin-top: 25px;
}

.campo {
    margin-bottom: 18px;
}

.campo label {
    display: block;
    margin-bottom: 7px;

    color: #173f5f;

    font-size: 14px;
    font-weight: bold;
}

.campo input,
.campo textarea {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid #ccdce1;
    border-radius: 4px;

    background: #ffffff;

    color: #263b4a;

    font-family: inherit;
    font-size: 15px;
}

.campo input:focus,
.campo textarea:focus {
    outline: none;
    border-color: #147c9b;
}

.campo textarea {
    resize: vertical;
}


/* PRIVACIDAD */

.privacidad {
    margin: 20px 0;
}

.privacidad label {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    color: #60737e;

    font-size: 12px;
    line-height: 1.5;
}

.privacidad input {
    margin-top: 3px;
    flex-shrink: 0;
}

.privacidad a {
    color: #147c9b;
    text-decoration: underline;
}


/* BOTÓN FORMULARIO */

.boton-formulario {
    width: 100%;

    padding: 14px 20px;

    border: none;
    border-radius: 5px;

    background: #147c9b;
    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: bold;

    cursor: pointer;
}

.boton-formulario:hover {
    background: #0e647f;
}


/* TELÉFONO Y WHATSAPP */

.opcion-contacto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.boton-contacto,
.boton-whatsapp {
    display: inline-block;

    margin-top: 25px;
    padding: 14px 22px;

    border-radius: 5px;

    color: #ffffff;

    font-weight: bold;
    font-size: 16px;
}

.boton-contacto {
    background: #147c9b;
}

.boton-contacto:hover {
    background: #0e647f;
}

.boton-whatsapp {
    background: #147c9b;
}

.boton-whatsapp:hover {
    background: #0e647f;
}

.texto-contacto {
    margin-top: 12px;

    color: #60737e;
    font-size: 13px;
}


/* MÓVIL */

@media (max-width: 950px) {

    .opciones-visita {
        grid-template-columns: 1fr 1fr;
    }

    .opcion-visita:first-child {
        grid-column: 1 / -1;
    }

}


@media (max-width: 600px) {

    .contacto {
        padding: 65px 20px;
    }

    .solicitud-contenido h2 {
        font-size: 30px;
    }

    .solicitud-introduccion {
        font-size: 17px;
    }

    .opciones-visita {
        grid-template-columns: 1fr;
    }

    .opcion-visita:first-child {
        grid-column: auto;
    }

}.opciones-visita {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.opcion-google {
    grid-column: 1 / -1;
}

.reserva-online {
    width: 100%;
    margin-top: 20px;
}

.reserva-online iframe {
    display: block;
    width: 100%;
    border: 0;
}

@media (max-width: 750px) {
    .opciones-visita {
        grid-template-columns: 1fr;
    }

    .opcion-google {
        grid-column: auto;
    }
}
.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin: 0;
}