* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: #262338;
    background-color: #f7fafb;
    line-height: 1.6;
}

/* ENCABEZADO */

header {
    width: 100%;
    padding: 20px 8%;
    display: flex;
    align-items: center;
    gap: 40px;
    background-color:white;
}

.logo {
    margin-right: 30px;
}

nav {
    display: flex;
    gap: 35px;
    margin-right: auto;
}

header .btn {
    white-space: nowrap;
    margin-left: 30px;

}

.logo img {
    width: 220px;
    height: auto;
    display: block;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #262338;
    font-weight: 500;
}

nav a:hover {
    color: #f7b731;
}

/* BOTÓN */

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #163b6b;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

/* SECCIÓN PRINCIPAL */

.hero {
    min-height: 500px;
    padding: 50px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background: linear-gradient(135deg, #f7fbfc, #eaf4f6)
}

.hero-text {
    flex:1;
    max-width: 600px;
}

.hero-text h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 52px;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
    color: #173b4d;
}

.hero-text h1::after {
    content: "";
    display: block;
    width: 55px;
    height: 3px;
    background: #1f7a8c;
    margin-top: 25px;
    border-radius: 10px;
}

.hero-text p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 35px;
    color: #5f6f76

}

.btn {
    display: inline-block;
    background: #1f7a8c;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(31, 122, 140, 0.25);
}

.hero-image {
    flex: 1;
    height: 520px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0,12);

}

.hero-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


    /* ESPECIALIDADES */

.especialidades {
    padding: 60px 10% 100px;
    background: white;
}
.titulo-seccion {
    text-align: center;
    max-width: 650px;
    margin: auto;
    margin-bottom: 60px;
}

.titulo-seccion span {
    color: #1f7a8c;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.titulo-seccion h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #20213a;
    margin: 15px 0;
}

.titulo-seccion p {
    color: #6c7b80;
    line-height: 1.6;
}


.especialidades-contenedor {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 35px;
}

.especialidad-card {
    flex: 1;
    max-width: 420px;
    min-height: 280px;
    box-sizing: border-box;

    padding: 45px;

    background-color: #ffffff;

    border: 1px solid #e5eef0;
    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.especialidad-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);

}

.icono img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.icono {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5f6;
    border-radius: 18px;
    margin-bottom: 25px;
}

.especialidad-card h3 {
    font-size: 25px;
    color: #173b4d;
    margin-bottom: 15px;
}

.especialidad-card p {
    color: #68777d;
    line-height: 1.7;
    margin-bottom: 25px;
}

.especialidad-card a {
    color: #1f7a8c;
    font-weight: bold;
    text-decoration: none;
}
/* SECCIÓN NOSOTROS */

.nosotros {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 8% 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.nosotros-texto {
    flex: 1.3;
}

.nosotros-texto h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #20213a;
    margin-bottom: 25px;
}

.nosotros-texto p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #666;
}

.nosotros-imagen {
    flex: 0.7;
    text-align: center;
}

.nosotros-imagen img {
    max-width: 320px;
    width: 100%;
    height: auto;
}
/* CONTACTO */

.contacto {
    padding: 20px 8% 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.contacto h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.contacto > p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.contacto-info {
    display: flex;
    gap: 30px;
}

.contacto-item {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
}

.contacto-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.contacto-item p {
    line-height: 1.6;
    color: #555;
}
/* FOOTER */

footer {
    background-color: #addad4;
    color: white;
    padding: 40px 8% 20px;
}

.footer-contenido {
    display: grid;
    grid-template-columns: 1fr  1.5fr  1fr;
    align-items: center;
    gap: 25x;
}

.footer-logo {
    text-align: left;
}

.footer-logo img {
    width: 180px;
}

.footer-texto {
    max-width: 400px;
    line-height: 1.6;
    text-align: center;
    justify-self: center;
}

.footer-texto p {
    margin: 0;

}

.footer-contacto {
    text-align: right;
}

.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}
.slider {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease;
    
}

.slide.active {
    opacity: 1;
}

.ver-procedimientos {
    background: none;
    border: none;
    padding: 0;
    color: #1f7a8c;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.procedimientos {
    display: none;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5eef0;
}

.procedimientos.activo {
    display: block;
}

.procedimientos ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.procedimientos li {
    padding: 8px 0;
    color: #68777d;
    font-size: 15px;
}

.procedimientos li::before {
    content: "•";
    color: #1f7a8c;
    margin-right: 10px;
}

/* ================================
   VERSIÓN PARA CELULARES
   ================================ */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    header,
    main,
    .hero,
    .especialidades,
    .nosotros,
    .contacto,
    footer {
        width: 100%;
        max-width: 100%;
    }


    /* ENCABEZADO */
    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo {
        margin-right: 0;
    }

    .logo img {
        width: 180px;
    }

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
        margin-right: 0;
    }

    nav a {
        font-size: 14px;
    }

    header .btn {
        margin-left: 0;
        padding: 10px 22px;
        font-size: 14px;
    }


    /* INICIO / HERO */
    .hero {
        min-height: auto;
        padding: 45px 20px;
        flex-direction: column;
        gap: 35px;
        text-align: center;
    }

    .hero-text {
        width: 100%;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 36px;
        line-height: 1.12;
        letter-spacing: -0.8px;
        margin-bottom: 20px;
    }

    .hero-text h1::after {
        margin: 20px auto 0;
    }

    .hero-text p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .hero .btn {
        padding: 13px 25px;
        font-size: 15px;
    }

    .hero-image {
        width: 100%;
        height: 300px;
        border-radius: 22px;
    }

    .hero-image video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    /* ESPECIALIDADES */
    .especialidades {
        padding: 55px 20px 70px;
    }

    .titulo-seccion {
        width: 100%;
        margin-bottom: 40px;
    }

    .titulo-seccion span {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .titulo-seccion h2 {
        font-size: 34px;
        line-height: 1.2;
        margin: 12px 0;
    }

    .titulo-seccion p {
        font-size: 15px;
    }

    .especialidades-contenedor {
        width: 100%;
        flex-direction: column;
        gap: 25px;
        align-items: stretch;
    }

    .especialidad-card {
        width: 100%;
        max-width: none;
        min-height: auto;
        padding: 30px 25px;
    }

    .especialidad-card h3 {
        font-size: 22px;
    }

    .especialidad-card p {
        font-size: 15px;
        line-height: 1.6;
    }

    .icono {
        width: 58px;
        height: 58px;
        margin-bottom: 20px;
    }

    .icono img {
        width: 40px;
        height: 40px;
    }

    .procedimientos li {
        font-size: 14px;
    }


    /* NOSOTROS */
    .nosotros {
        width: 100%;
        padding: 55px 20px 60px;
        flex-direction: column;
        gap: 35px;
        text-align: center;
    }

    .nosotros-texto {
        width: 100%;
    }

    .nosotros-texto h2 {
        font-size: 34px;
        margin-bottom: 20px;
    }

    .nosotros-texto p {
        font-size: 16px;
        line-height: 1.65;
        margin-bottom: 18px;
    }

    .nosotros-imagen {
        width: 100%;
    }

    .slider {
        width: 100%;
        max-width: 420px;
        height: 330px;
        margin: 0 auto;
    }


    /* CONTACTO */
    .contacto {
        width: 100%;
        padding: 45px 20px 65px;
        text-align: center;
    }

    .contacto h2 {
        font-size: 34px;
    }

    .contacto > p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    .contacto-info {
        flex-direction: column;
        gap: 18px;
    }

    .contacto-item {
        width: 100%;
        padding: 25px 20px;
    }

    .contacto-item h3 {
        font-size: 19px;
    }

    .contacto-item p {
        font-size: 15px;
        word-break: break-word;
    }


    /* FOOTER */
    footer {
        padding: 35px 20px 20px;
        text-align: center;
    }

    .footer-contenido {
        flex-direction: column;
        gap: 25px;
    }

    .footer-logo img {
        width: 160px;
    }

    .footer-texto {
        max-width: 100%;
        font-size: 14px;
    }

    .footer-contacto {
        font-size: 14px;
    }

    .footer-copy {
        font-size: 12px;
    }
    
    footer {
    align-items: center;
    }

    footer p {
    text-align: center;
    }
    
    .footer-texto {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    }
}


/* CELULARES PEQUEÑOS */
@media (max-width: 480px) {

    .logo img {
        width: 160px;
    }

    nav {
        gap: 10px 14px;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        padding: 35px 18px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 15px;
    }

    .hero-image {
        height: 260px;
    }

    .titulo-seccion h2 {
        font-size: 29px;
    }

    .especialidad-card {
        padding: 25px 20px;
    }

    .nosotros-texto h2,
    .contacto h2 {
        font-size: 30px;
    }

    .slider {
        height: 280px;
    }
}


@media (max-width: 768px) {

    body {
        background: rgb(250, 252, 253) !important;
    }

    header,
    .hero,
    .especialidades,
    .nosotros,
    .contacto,
    footer {
        background: rgb(195, 218, 216) !important;
    }
}

.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

.redes-sociales a {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 50%;

    text-decoration: none;
    font-size: 18px;

    transition: all 0.3s ease;
}

/* Facebook */
.redes-sociales a:nth-child(1) {
    color: #ffffff;
    background: #1877F2;
}

/* Instagram */
.redes-sociales a:nth-child(2) {
    color: #ffffff;
    background: #E4405F;
}

/* TikTok */
.redes-sociales a:nth-child(3) {
    color: #ffffff;
    background: #111111;
}

/* Efecto al pasar el mouse */
.redes-sociales a:hover {
    filter: brightness(1.12);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.20);
}

.mapa-contacto {
    width: 100%;
    max-width: 1000px;
    margin: 35px auto 0;
}

.direccion-mapa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 17px;
}

.direccion-mapa span {
    font-size: 20px;
}

.mapa {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}

.mapa iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

.botones-mapa {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-mapa {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    color: white !important;
    background: #2f7f8f;
    transition: all 0.3s ease;
}

.btn-mapa:hover {
    background: #246675;
    color: white !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {

    .mapa-contacto {
        width: 100%;
        margin-top: 25px;
    }

    .direccion-mapa {
        text-align: center;
        font-size: 15px;
        padding: 0 10px;
    }

    .mapa iframe {
        height: 280px;
    }

    .botones-mapa {
        flex-direction: column;
        gap: 10px;
    }

    .btn-mapa {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

}

/* ==============================
   FOOTER EN CELULARES
   ============================== */

@media (max-width: 768px) {

    footer {
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
        padding: 40px 20px 25px;
    }

    .footer-contenido {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        box-sizing: border-box;
    }

    .footer-logo {
        width: 100%;
        text-align: center;
    }

    .footer-logo img {
        width: 100%;
        max-width: 280px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .footer-texto {
        width: 100%;
        max-width: 350px;
        text-align: center;
        box-sizing: border-box;
    }

    .footer-texto p {
        margin: 0;
        font-size: 16px;
        line-height: 1.6;
    }

    .footer-contacto {
        width: 100%;
        max-width: 350px;
        text-align: center;
        box-sizing: border-box;
    }

    .footer-contacto p {
        margin: 8px 0;
        font-size: 15px;
        line-height: 1.5;
        word-break: normal;
    }

    .redes-sociales {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 5px;
    }

    .footer-copy {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        margin-top: 20px;
    }

    .footer-copy p {
        font-size: 13px;
        line-height: 1.5;
        margin: 0;
    }
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.titulo-especialidad {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.titulo-especialidad:hover {
    color: #167c92;
}

/* =========================================
   CIRUGÍA PLÁSTICA
   ========================================= */

.cirugia-intro {
    padding: 70px 20% 65px;
    background: #ffffff;
}

.cirugia-intro-contenido {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.etiqueta-seccion {
    display: block;
    margin-bottom: 15px;
    color: #2f7f8f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.cirugia-intro h1 {
    margin: 0 0 22px;
    color: #20213a;
    font-size: 48px;
    line-height: 1.1;
}

.cirugia-intro h1 span {
    display: block;
    margin-top: 8px;
    color: #2f7f8f;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cirugia-intro p {
    max-width: 760px;
    margin: 0 auto;
    color: #687780;
    font-size: 18px;
    line-height: 1.7;
}


/* =========================================
   TÍTULO PROCEDIMIENTOS
   ========================================= */

.procedimientos-plastica {
    max-width: 1150px;
    margin: 0 auto;
    padding: 45px 8px 80px;
}

.titulo-procedimientos {
    margin-bottom: 40px;
}

.titulo-procedimientos span {
    display: block;
    margin-bottom: 10px;
    color: #2f7f8f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.titulo-procedimientos h2 {
    margin: 0;
    color: #20213a;
    font-size: 38px;
    font-weight: 600;
}


/* =========================================
   BLOQUES DE PROCEDIMIENTOS
   ========================================= */

.procedimiento-bloque {
    display: grid;
    grid-template-columns: 48% 52%;
    height: 300px;
    margin-bottom: 40px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e6ecee;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.procedimiento-imagen {
    min-height: 300px;
    overflow: hidden;
}

.procedimiento-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.procedimiento-bloque:hover .procedimiento-imagen img {
    transform: scale(1.03);
}

.procedimiento-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 40px;
}

.numero-procedimiento {
    margin-bottom: 15px;
    color: #2f7f8f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.procedimiento-info h3 {
    margin: 0 0 18px;
    color: #20213a;
    font-size: 32px;
    font-weight: 600;
}

.procedimiento-info p {
    max-width: 470px;
    margin: 0 0 30px;
    color: #687780;
    font-size: 16px;
    line-height: 1.75;
}

.conocer-mas {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #2f7f8f !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
}

.conocer-mas span {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.conocer-mas:hover span {
    transform: translateX(5px);
}


/* =========================================
   BLOQUES INVERTIDOS
   ========================================= */

.procedimiento-invertido {
    grid-template-columns: 52% 48%;
}

.procedimiento-invertido .procedimiento-imagen {
    order: 2;
}

.procedimiento-invertido .procedimiento-info {
    order: 1;
}


/* =========================================
   LLAMADA FINAL
   ========================================= */

.cirugia-contacto {
    padding: 90px 25px;
    background: #f3f8f9;
    text-align: center;
}

.cirugia-contacto > div {
    max-width: 750px;
    margin: 0 auto;
}

.cirugia-contacto span {
    display: block;
    margin-bottom: 12px;
    color: #2f7f8f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.cirugia-contacto h2 {
    margin: 0 0 15px;
    color: #20213a;
    font-size: 32px;
    line-height: 1.3;
}

.cirugia-contacto p {
    margin: 0 0 28px;
    color: #687780;
    font-size: 17px;
}

.btn-agendar {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 8px;
    background: #2f7f8f;
    color: white !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-agendar:hover {
    background: #246675;
    transform: translateY(-2px);
}


/* =========================================
   MÓVIL
   ========================================= */

@media (max-width: 768px) {

    .cirugia-intro {
        padding: 60px 20px 50px;
    }

    .cirugia-intro h1 {
        font-size: 32px;
    }

    .cirugia-intro p {
        font-size: 16px;
    }

    .procedimientos-plastica {
        padding: 30px 20px 60px;
    }

    .titulo-procedimientos {
        margin-bottom: 35px;
    }

    .titulo-procedimientos h2 {
        font-size: 30px;
    }

    .procedimiento-bloque,
    .procedimiento-invertido {
        display: flex;
        flex-direction: column;
        margin-bottom: 30px;
        min-height: 0;
    }

    .procedimiento-imagen,
    .procedimiento-invertido .procedimiento-imagen {
        order: 1;
        width: 100%;
        height: 280px;
        min-height: 280px;
    }

    .procedimiento-info,
    .procedimiento-invertido .procedimiento-info {
        order: 2;
        padding: 32px 25px 35px;
    }

    .procedimiento-info h3 {
        font-size: 27px;
    }

    .procedimiento-info p {
        font-size: 15px;
    }

    .cirugia-contacto {
        padding: 65px 20px;
    }

    .cirugia-contacto h2 {
        font-size: 27px;
    }

    .btn-agendar {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================
   PÁGINA DE RINOPLASTIA
========================================= */

.procedimiento-intro {
    padding: 80px 8% 55px;
    background: #ffffff;
}

.procedimiento-intro-contenido {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.procedimiento-etiqueta {
    display: block;
    margin-bottom: 15px;
    color: #2f7f8f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.procedimiento-intro h1 {
    margin: 0 0 22px;
    color: #20213a;
    font-size: 48px;
    line-height: 1.1;
}

.procedimiento-intro h1 span {
    display: block;
    margin-top: 8px;
    color: #2f7f8f;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.procedimiento-intro p {
    max-width: 760px;
    margin: 0 auto;
    color: #687780;
    font-size: 18px;
    line-height: 1.7;
}


/* IMAGEN PRINCIPAL */

.procedimiento-hero-imagen {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 30px 70px;
}

.procedimiento-imagen-grande {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
}

.procedimiento-imagen-grande img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* CONTENIDO */

.procedimiento-contenido {
    padding: 30px 25px 35px;
    background: #f7fafb;
}

.procedimiento-texto {
    max-width: 850px;
    margin: 0 auto;
}

.titulo-pequeno {
    display: block;
    margin-bottom: 12px;
    color: #2f7f8f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.procedimiento-texto h2 {
    margin: 0 0 25px;
    color: #20213a;
    font-size: 36px;
    line-height: 1.25;
}

.procedimiento-texto p {
    margin: 0 0 18px;
    color: #687780;
    font-size: 17px;
    line-height: 1.8;
}


/* EVALUACIÓN */

.rinoplastia-seccion {
    padding: 45px 25px 30px;
    background: #ffffff;
}

.rinoplastia-contenedor {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.rinoplastia-columna h2 {
    margin: 0 0 20px;
    color: #20213a;
    font-size: 30px;
    line-height: 1.3;
}

.rinoplastia-columna p {
    margin: 0 0 18px;
    color: #687780;
    font-size: 16px;
    line-height: 1.75;
}

.lista-rinoplastia {
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.lista-rinoplastia li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 25px;
    color: #687780;
    font-size: 16px;
    line-height: 1.6;
}

.lista-rinoplastia li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2f7f8f;
    font-weight: 700;
}


/* ESTÉTICA / FUNCIONAL */

.rinoplastia-dos-columnas {
    max-width: 1050px;
    margin: 0 auto;
    padding: 65px 25px 75px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;

    background-color: #f2f7f9;
    box-shadow: 0 0 0 100vmax #f2f7f9;
    clip-path: inset(0 -100vmax);
    box-sizing: border-box;

}

.rinoplastia-bloque {
    padding: 40px;
    background: #f3f8f9;
    border-radius: 16px;
}

.rinoplastia-bloque h3 {
    margin: 0 0 15px;
    color: #20213a;
    font-size: 25px;
}

.rinoplastia-bloque p {
    margin: 0;
    color: #687780;
    font-size: 16px;
    line-height: 1.75;
}


/* =========================================
   PREGUNTAS FRECUENTES - RINOPLASTIA
========================================= */

.preguntas-rinoplastia {
    padding: 50px 25px 80px;
    background: #f7fafb;
}

.preguntas-contenedor {
    max-width: 900px;
    margin: 0 auto;
}

.preguntas-encabezado {
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}

.preguntas-encabezado .titulo-pequeno {
    margin-bottom: 14px;
}

.preguntas-encabezado h2 {
    margin: 0 0 18px;
    color: #20213a;
    font-size: 38px;
    line-height: 1.25;
    font-weight: 700;
}

.preguntas-encabezado h2 span {
    color: #2f7f8f;
}

.preguntas-encabezado > p {
    max-width: 650px;
    margin: 0 auto;
    color: #687780;
    font-size: 16px;
    line-height: 1.75;
}

.lista-preguntas {
    border-top: 1px solid #dce6e8;
}

.pregunta {
    border-bottom: 1px solid #dce6e8;
}

.pregunta-boton {
    width: 100%;
    min-height: 75px;
    padding: 22px 5px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    color: #20213a;
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.pregunta-boton i {
    flex-shrink: 0;
    color: #2f7f8f;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.pregunta.activa .pregunta-boton i {
    transform: rotate(45deg);
}

.respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.respuesta p {
    max-width: 780px;
    margin: 0;
    padding: 0 45px 25px 5px;
    color: #687780;
    font-size: 15px;
    line-height: 1.75;
}

/* CONTACTO */

.procedimiento-contacto {
    padding: 90px 25px;
    background: #ffffff;
    text-align: center;
}

.procedimiento-contacto > div {
    max-width: 750px;
    margin: 0 auto;
}

.procedimiento-contacto span {
    display: block;
    margin-bottom: 12px;
    color: #2f7f8f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.procedimiento-contacto h2 {
    margin: 0 0 15px;
    color: #20213a;
    font-size: 32px;
    line-height: 1.3;
}

.procedimiento-contacto p {
    margin: 0 0 28px;
    color: #687780;
    font-size: 17px;
}


/* VOLVER */

.volver-cirugia {
    padding: 30px 20px 60px;
    text-align: center;
}

.volver-cirugia a {
    color: #2f7f8f !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
}

.volver-cirugia a:hover {
    color: #246675 !important;
}


/* =========================================
   RINOPLASTIA - MÓVIL
========================================= */

@media (max-width: 768px) {

    .procedimiento-intro {
        padding: 60px 20px 45px;
    }

    .procedimiento-intro h1 {
        font-size: 34px;
    }

    .procedimiento-intro h1 span {
        font-size: 22px;
    }

    .procedimiento-intro p {
        font-size: 16px;
    }

    .procedimiento-hero-imagen {
        padding: 0 20px 45px;
    }

    .procedimiento-imagen-grande {
        height: 350px;
        border-radius: 16px;
    }

    .procedimiento-contenido {
        padding: 25px 20px 55px;
    }

    .procedimiento-texto h2 {
        font-size: 29px;
    }

    .procedimiento-texto p {
        font-size: 16px;
    }

    .rinoplastia-seccion {
        padding: 35px 20px 60px;
    }

    .rinoplastia-contenedor {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .rinoplastia-columna h2 {
        font-size: 27px;
    }

    .rinoplastia-dos-columnas {
        grid-template-columns: 1fr;
        padding: 0 20px 60px;
        gap: 15px;
    }

    .rinoplastia-bloque {
        padding: 30px;
    }

    .preguntas-rinoplastia {
        padding: 60px 20px;
    }

    .preguntas-contenedor > h2 {
        font-size: 29px;
        margin-bottom: 30px;
    }

    .pregunta h3 {
        font-size: 18px;
    }

    .pregunta p {
        font-size: 15px;
    }

    .procedimiento-contacto {
        padding: 65px 20px;
    }

    .procedimiento-contacto h2 {
        font-size: 27px;
    }

    .btn-agendar {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================
   HERO RINOPLASTIA - IMAGEN IZQUIERDA
   TEXTO DERECHA
========================================= */

.rinoplastia-hero-fondo {
    position: relative;
    min-height: 650px;
    background-image: url("rinoplastia-hero.png");
    background-size: 80% auto;
    background-position: 25% center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Capa suave para que el texto de la derecha
   se lea bien SIN tapar la imagen */
.rinoplastia-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0.02) 38%,
        rgba(255, 255, 255, 0.45) 58%,
        rgba(255, 255, 255, 0.88) 78%,
        rgba(255, 255, 255, 0.96) 100%
    );
}

/* CONTENIDO */
.rinoplastia-hero-contenido {
    position: relative;
    z-index: 2;

    max-width: 1250px;
    min-height: 650px;

    margin: 0 auto;
    padding: 70px 30px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    box-sizing: border-box;
}

/* TEXTO A LA DERECHA */
.rinoplastia-hero-texto {
    width: 50%;
    max-width: 570px;
    transform: translateX(-70px);
    transform: translateX(-25px);
}

/* ETIQUETA */
.rinoplastia-hero-texto .procedimiento-etiqueta {
    display: block;
    margin-bottom: 18px;

    color: #2f7f8f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

/* TÍTULO */
.rinoplastia-hero-texto h1 {
    margin: 0 0 12px;

    color: #20213a;
    font-size: 50px;
    line-height: 1.05;
    font-weight: 700;
}

/* LA MOLINA */
.rinoplastia-hero-texto h1 span {
    display: block;
    margin-top: 8px;

    color: #2f7f8f;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* FRASE PRINCIPAL */
.rinoplastia-frase {
    max-width: 500px;

    margin: 25px 0 12px;

    color: #20213a;
    font-size: 21px;
    line-height: 1.45;
    font-weight: 600;
}

/* DESCRIPCIÓN */
.rinoplastia-descripcion {
    max-width: 520px;

    margin: 0 0 28px;

    color: #687780;
    font-size: 16px;
    line-height: 1.7;
}

/* BOTÓN */
.rinoplastia-hero-texto .btn-agendar {
    display: inline-block;
}

/* CARACTERÍSTICAS */
.rinoplastia-caracteristicas {
    display: flex;
    align-items: center;
    gap: 28px;

    margin-top: 30px;
}

.rinoplastia-caracteristicas > div {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #52636b;
    font-size: 13px;
    line-height: 1.35;
}

.rinoplastia-caracteristicas i {
    color: #2f7f8f;
    font-size: 19px;
}

.rinoplastia-caracteristicas > div + div {
    padding-left: 28px;
    border-left: 1px solid rgba(47, 127, 143, 0.35);
}


/* =========================================
   MÓVIL
========================================= */

@media (max-width: 768px) {

    .rinoplastia-hero-fondo {
        min-height: 720px;

        /* La imagen queda más visible */
        background-position: 28% center;
    }

    .rinoplastia-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.88) 0%,
            rgba(255, 255, 255, 0.78) 48%,
            rgba(255, 255, 255, 0.25) 100%
        );
    }

    .rinoplastia-hero-contenido {
        min-height: 720px;

        padding: 55px 25px;

        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .rinoplastia-hero-texto {
        width: 50%;
        max-width: 570px;
        text-align: center;
        transform: none;
    }

    .rinoplastia-hero-texto .procedimiento-etiqueta {
        font-size: 11px;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }

    .rinoplastia-hero-texto h1 {
        font-size: 40px;
    }

    .rinoplastia-hero-texto h1 span {
        font-size: 21px;
    }

    .rinoplastia-frase {
        max-width: 350px;
        margin: 22px auto 12px;
        font-size: 19px;
    }

    .rinoplastia-descripcion {
        max-width: 360px;
        margin: 0 auto 25px;
        font-size: 15px;
    }

    .rinoplastia-caracteristicas {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 25px;
    }

    .rinoplastia-caracteristicas > div {
        font-size: 12px;
    }

    .rinoplastia-caracteristicas > div + div {
        padding-left: 15px;
    }
}

/* PREGUNTAS - MÓVIL */

.preguntas-rinoplastia {
    padding: 55px 20px 65px;
}

.preguntas-encabezado {
    margin-bottom: 35px;
}

.preguntas-encabezado h2 {
    font-size: 29px;
}

.preguntas-encabezado > p {
    font-size: 15px;
}

.pregunta-boton {
    min-height: 70px;
    padding: 20px 0;
    font-size: 16px;
}

.pregunta-boton i {
    font-size: 13px;
}

.respuesta p {
    padding: 0 25px 22px 0;
    font-size: 15px;
}


/* PORTADA BLEFAROPLASTIA */

.blefaroplastia-ubicacion {
    color: #318797;
    font-size: 25px;
    letter-spacing: 2px;
    margin: -5px 0 22px;
    font-weight: 700;
}

.blefaroplastia-subtitulo {
    font-size: 22px;
    color: #20213c;
    margin-bottom: 16px;
    font-weight: 700;
}

.blefaroplastia-caracteristicas {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.blefaroplastia-caracteristica {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #52636d;
    font-size: 14px;
    line-height: 1.4;
}

.blefaroplastia-caracteristica i {
    color: #318797;
    font-size: 21px;
}

.blefaroplastia-caracteristica + .blefaroplastia-caracteristica {
    border-left: 1px solid #c9d9dc;
    padding-left: 25px;
}

@media (max-width: 768px) {
    .blefaroplastia-caracteristicas {
        gap: 15px;
    }

    .blefaroplastia-caracteristica + .blefaroplastia-caracteristica {
        border-left: none;
        padding-left: 0;
    }

    .blefaroplastia-subtitulo {
        font-size: 19px;
    }
}
 

.imagen-blefaroplastia {
    display: block;
    width: 100%;
    max-width: 650px;
    height: auto;
    margin: 25px auto 35px;
    border-radius: 12px;
}


/* PREGUNTAS FRECUENTES */

.preguntas-rinoplastia {
    padding: 65px 25px 80px;
    background-color: #f4f8fa;
}

.preguntas-contenedor {
    max-width: 900px;
    margin: 0 auto;
}

.preguntas-encabezado {
    text-align: center;
    margin-bottom: 35px;
}

.preguntas-encabezado h2 {
    font-size: 32px;
    color: #20213c;
    margin-bottom: 12px;
}

.preguntas-encabezado p {
    color: #687985;
    font-size: 16px;
}

.lista-preguntas {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pregunta {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.pregunta-boton {
    width: 100%;
    padding: 20px 24px;
    border: none;
    background: #ffffff;
    color: #20213c;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 15px;
}

.pregunta-boton span {
    color: #318797;
    font-size: 24px;
    flex-shrink: 0;
}

.respuesta {
    display: none;
    padding: 0 24px 22px;
    color: #687985;
    font-size: 15px;
    line-height: 1.8;
}

.respuesta.activa {
    display: block;
}

@media (max-width: 768px) {
    .preguntas-rinoplastia {
        padding: 45px 20px 55px;
    }

    .preguntas-encabezado h2 {
        font-size: 26px;
    }

    .pregunta-boton {
        padding: 17px;
        font-size: 15px;
    }
}


/* PREGUNTAS FRECUENTES - BLEFAROPLASTIA
   Mismo estilo que Rinoplastia */

.preguntas-blefaroplastia .respuesta {
    display: none;
    background: transparent;
    padding: 0 0 25px;
    color: #687985;
    font-size: 15px;
    line-height: 1.85;
    height: auto;
    max-height: none;
    overflow: visible;
}

.preguntas-blefaroplastia .pregunta.activa .respuesta {
    display: block;
}

/* PREGUNTAS FRECUENTES - BLEFAROPLASTIA */

.preguntas-blefaroplastia {
    background-color: #f4f8fa;
    padding: 65px 25px 80px;
}

.preguntas-blefaroplastia .pregunta {
    background: transparent;
    border: none;
    border-bottom: 1px solid #dce4e7;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.preguntas-blefaroplastia .lista-preguntas {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.preguntas-blefaroplastia .pregunta-boton {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 25px 0;
    color: #20213c;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.preguntas-blefaroplastia .pregunta-boton span {
    color: #318797;
    font-size: 20px;
}

.preguntas-blefaroplastia .respuesta {
    display: none;
    background: transparent;
    padding: 0 0 25px;
    color: #687985;
    font-size: 15px;
    line-height: 1.85;
}

.preguntas-blefaroplastia .pregunta.activa .respuesta {
    display: block;
}

.preguntas-blefaroplastia .pregunta-boton:focus {
    outline: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .preguntas-blefaroplastia {
        padding: 45px 22px 55px;
    }

    .preguntas-blefaroplastia .pregunta-boton {
        padding: 20px 0;
        font-size: 15px;
    }
}

/* LIBRO DE RECLAMACIONES */

.libro-reclamaciones {
    display: inline-block;
    margin-top: 12px;
}

.libro-reclamaciones img {
    width: 80px;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.libro-reclamaciones:hover img {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .libro-reclamaciones img {
        width: 145px;
    }
}

.lavado-oidos-hero {
    background-image: url('lavadooido.jpg');
    background-size: 48% 80%;
    background-position: left center;
    background-repeat: no-repeat;
    background-color: #f7f9fa;
    position: relative;
    min-height: 650px;
}

.lavado-oidos-hero .rinoplastia-hero-contenido {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 650px;
}

.lavado-oidos-hero .rinoplastia-hero-texto {
    width: 50%;
    padding: 40px 5%;
}

.imagen-evaluacion {
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagen-evaluacion img {
    width: 100%;
    max-width: 500px;
    height: 340px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
}

.video-lavado-oidos {
    max-width: 400px;
    margin: 35px auto;
    border-radius: 14px;
    overflow: hidden;
}

.video-lavado-oidos video {
    width: 100%;
    display: block;
    border-radius: 14px;
}

/* =====================================
   PREGUNTAS FRECUENTES - LAVADO DE OÍDOS
===================================== */

.preguntas-lavado {
    padding: 65px 25px 80px;
    background-color: #f4f8fa;
}

.preguntas-lavado .preguntas-contenedor {
    max-width: 900px;
    margin: 0 auto;
}

.preguntas-lavado .preguntas-encabezado {
    text-align: center;
    margin-bottom: 35px;
}

.preguntas-lavado .preguntas-encabezado h2 {
    font-size: 32px;
    color: #20213c;
    margin-bottom: 12px;
}

.preguntas-lavado .preguntas-encabezado h2 span {
    color: #318797;
}

.preguntas-lavado .preguntas-encabezado p {
    color: #687985;
    font-size: 16px;
}

.preguntas-lavado .lista-preguntas {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #dce4e7;
}

.preguntas-lavado .pregunta {
    background: transparent;
    border: none;
    border-bottom: 1px solid #dce4e7;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.preguntas-lavado .pregunta-boton {
    width: 100%;
    min-height: 70px;
    padding: 23px 0;
    background: transparent;
    border: none;
    color: #20213c;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 15px;
}

.preguntas-lavado .pregunta-boton span {
    color: #20213c;
    font-size: 18px;
}

.preguntas-lavado .pregunta-boton i {
    color: #318797;
    font-size: 16px;
    flex-shrink: 0;
}

.preguntas-lavado .respuesta {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    background: transparent;
    transition: max-height 0.35s ease;
}

.preguntas-lavado .respuesta p {
    margin: 0;
    padding: 0 35px 25px 0;
    color: #687985;
    font-size: 15px;
    line-height: 1.85;
}

.preguntas-lavado .pregunta.activa .pregunta-boton i {
    transform: rotate(45deg);
}

.preguntas-lavado .pregunta-boton i {
    transition: transform 0.3s ease;
}

/* MÓVIL */

@media (max-width: 768px) {

    .preguntas-lavado {
        padding: 45px 22px 55px;
    }

    .preguntas-lavado .preguntas-encabezado h2 {
        font-size: 26px;
    }

    .preguntas-lavado .pregunta-boton {
        padding: 20px 0;
        font-size: 16px;
    }

    .preguntas-lavado .pregunta-boton span {
        font-size: 16px;
    }

    .preguntas-lavado .respuesta p {
        font-size: 15px;
        padding-right: 10px;
    }
}

#especialidades li a {
    color: #2f7f8f;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

#especialidades li a:hover {
    color: #20213c;
    text-decoration: underline;
}

.procedimientos ul li a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.procedimientos ul li a:hover {
    color: #2f7f8f;
}