/* ===================================
   RESET Y CONFIGURACIÓN BASE
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   CONTENEDOR GLOBAL
   =================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* ===================================
   HEADER PRINCIPAL
   =================================== */
.header-main {
    text-align: center;
    background: linear-gradient(135deg, #6ba2ea, #94c9aa);
    color: white;
    padding: 1rem 1rem;
    border-bottom: solid 5px #7fb2f6;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-around;
}

.header-main__text{
  border-left: solid 1.5px rgba(255, 255, 255, 0.4); /* 0.4 = 40% de opacidad */
  padding-left: 5rem;
}

.header-main__title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.header-main__subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    display: inline-block;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Header */
@media (max-width: 992px) {
    .header-main {
        padding: 2rem 1.5rem;
    }

    .header-main__title {
        font-size: 2rem;
    }

    .header-main__subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .header-main {
        padding: 1.5rem 1rem;
    }

    .header-main__title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .header-main__subtitle {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .header-main{
        flex-direction: column;
        text-align: center;
    }

    .header-main__text{
        border: none;
        padding-left: 0;
        margin-top: 1rem;
    }

}

/* ===================================
   BANNER SLIDER (CARRUSEL)
   =================================== */
.banner-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 13/6;
    overflow: hidden;
    background-color: #f5f5f5;
}

.banner-slider__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.banner-slider__slide--active {
    opacity: 1;
}

.banner-fade::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
    pointer-events: none;
    z-index: 10;
}

/* Responsive Banner */
@media (max-width: 992px) {
    .banner-slider {
        aspect-ratio: 16/7;
    }

    .banner-fade::after {
        height: 80px;
    }
}

@media (max-width: 768px) {
    .banner-slider {
        aspect-ratio: 16/9;
    }

    .banner-fade::after {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .banner-slider {
        aspect-ratio: 4/3;
    }
}

/* ===================================
   SECCIONES GENERALES
   =================================== */
.section {
    padding: 3.5rem 0;
}

.section+.section {
    border-top: 1px solid #e9ecef;
}

.section__title {
    color: #6ba2ea;
    border-left: 6px solid #94c9aa;
    padding-left: 14px;
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section__text {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;

}

/* Responsive Secciones */
@media (max-width: 768px) {
    .section {
        padding: 2.5rem 0;
    }

    .section__title {
        font-size: 1.4rem;
        border-left: 4px solid #94c9aa;
        padding-left: 10px;
        margin-bottom: 1.2rem;
    }

    .section__text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 0;
    }

    .section__title {
        font-size: 1.3rem;
    }

    .section__text {
        font-size: 0.95rem;
    }
}

/* ===================================
   LISTAS DE BENEFICIOS Y SERVICIOS
   =================================== */
.benefits-list,
.services-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.container-benefits-list {
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    position: relative;
    padding-left: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #6ba2ea;
}

.benefits-list__item,
.services-list__item {
    margin: 0.8rem 0;
    padding-left: 1.8rem;
    position: relative;
    font-size: 1.05rem;
}

.benefits-list__item::before,
.services-list__item::before {
    content: "✔";
    color: #6ba2ea;
    position: absolute;
    left: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive Listas */
@media (max-width: 768px) {

    .benefits-list__item,
    .services-list__item {
        font-size: 1rem;
        padding-left: 1.5rem;
        margin: 0.7rem 0;
    }
}

@media (max-width: 480px) {

    .benefits-list__item,
    .services-list__item {
        font-size: 0.95rem;
        padding-left: 1.4rem;
    }
}

/* ===================================
   STAFF DE ESPECIALISTAS
   =================================== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.doctor-card {
    background: #f9fafb;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 1.5rem 1rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.doctor-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.doctor-card__img-wrapper {
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 1rem;
}

.doctor-card__img {
    width: 100%;
    border-radius: 14px;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.5);
    display: block;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
}

.doctor-card__name {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.doctor-card__specialty {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.doctor-card__extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    text-align: left;
    padding: 0 0.5rem;
    margin-bottom: 0;
}

.doctor-card__extra p {
    margin: 0.6rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.doctor-card__extra strong {
    color: #6ba2ea;
    font-weight: 600;
}

.doctor-card.expanded .doctor-card__extra {
    max-height: 300px;
    opacity: 1;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.doctor-card__btn {
    background: linear-gradient(135deg, #6ba2ea, #94c9aa);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.doctor-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 162, 234, 0.3);
}

.doctor-card__btn-icon {
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.doctor-card.expanded .doctor-card__btn-icon {
    transform: rotate(45deg);
}

.doctor-card.expanded .doctor-card__btn-text::after {
    content: " menos";
}

.doctor-card:not(.expanded) .doctor-card__btn-text::after {
    content: " más";
}

.doctor-card__btn-text::before {
    content: "Ver";
}

/* Responsive Staff Grid */
@media (max-width: 992px) {
    .staff-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 450px;
        margin: 2rem auto 0;
    }

    .doctor-card__name {
        font-size: 1.15rem;
    }

    .doctor-card__specialty {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .staff-grid {
        max-width: 100%;
    }

    .doctor-card {
        padding: 1.2rem 0.8rem 1.5rem;
    }

    .doctor-card__name {
        font-size: 1.1rem;
    }
}

/* ===================================
    SERVICIOS - LAYOUT EN DOS COLUMNAS
    =================================== */
.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.services-content__text {
    position: relative;
    padding-left: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #6ba2ea;
}

.services-content__image {
    position: relative;
}

/* Efecto de difuminado en la imagen */
.services-content__image::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 45%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.services-image__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .services-content {
        gap: 2rem;
    }

    .services-content__image::before {
        left: -20px;
        width: 60px;
    }
}

@media (max-width: 768px) {
    .services-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-content__image::before {
        display: none;
    }

    .services-image__img {
        max-width: 100%;
    }
}

/* ===================================
   CAMPAÑAS QUIRÚRGICAS
   =================================== */
.campaign-info {
    background: #f9fafb;
    border-left: 4px solid #6ba2ea;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.campaign-info__detail {
    margin: 0.8rem 0;
    font-size: 1.05rem;
}

.campaign-info__detail strong {
    color: #6ba2ea;
    font-weight: 600;
}

.campaign-info__text {
    margin-top: 1.2rem;
    font-size: 1.05rem;
    color: #555;
}

/* Responsive Campañas */
@media (max-width: 768px) {
    .campaign-info {
        padding: 1.2rem;
    }

    .campaign-info__detail,
    .campaign-info__text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .campaign-info {
        padding: 1rem;
    }

    .campaign-info__detail,
    .campaign-info__text {
        font-size: 0.95rem;
    }
}

/* ===================================
   SECCIÓN DE CONTACTO
   =================================== */
.section--contact {
    padding: 0;
}

.section--contact .container {
    padding: 0;
    max-width: 100%;
}

.contact-box {
    text-align: center;
    background: linear-gradient(135deg, #94c9aa, #6ba2ea);
    color: white;
    padding: 3rem 1.5rem;
    border-top: 5px solid #6ba2ea;
}

.contact-box__phone {
    font-size: 1.2rem;
    padding-bottom: 1rem;
    opacity: 0.95;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-box__phone strong {
    font-weight: 700;
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25d366;
    padding: 14px 32px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.btn-whatsapp:hover {
    background-color: #1ebe5a;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.contact-box__message {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    opacity: 0.95;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Contacto */
@media (max-width: 768px) {
    .contact-box {
        padding: 2.5rem 1.5rem;
    }

    .contact-box__phone {
        font-size: 1.2rem;
    }

    .btn-whatsapp {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .contact-box__message {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-box {
        padding: 2rem 1rem;
    }

    .contact-box__phone {
        font-size: 1.1rem;
    }

    .btn-whatsapp {
        padding: 11px 24px;
        font-size: 0.95rem;
        display: block;
        max-width: 280px;
        margin: 1rem auto;
    }

    .contact-box__message {
        font-size: 0.95rem;
    }
}

/* ===================================
   BOTÓN FLOTANTE DE WHATSAPP
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    border-radius: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-float__icon {
    width: 30px;
    height: 30px;
}

/* Responsive WhatsApp Float */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float__icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float__icon {
        width: 26px;
        height: 26px;
    }
}

/* ===================================
   FOOTER
   =================================== */
.footer-main {
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: #f3f3f3;
    color: #555;
}

.footer-main__text {
    font-size: 0.9rem;
    margin: 0;
    display: inline-block;
    max-width: 800px;

}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-main {
        padding: 1.2rem 1rem;
    }

    .footer-main__text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-main__text {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

/* ===================================
   UTILIDADES Y AJUSTES FINALES
   =================================== */

/* Mejorar legibilidad en textos largos */
p,
li {
    max-width: 75ch;
}

@media (max-width: 768px) {

    p,
    li {
        max-width: 100%;
    }
}

/* Animaciones suaves para hover en dispositivos táctiles */
@media (hover: none) {
    .doctor-card:hover {
        transform: none;
    }

    .whatsapp-float:hover {
        transform: scale(1.05);
    }
}