/* ===== HERO ===== */

body {
  background-color: #f4ebf0 !important;

}

/* ======== HERO DESKTOP ======== */
.hero-doctora {
    width: 100%;
    background-image: url("images/banner contacto.webp");
    background-size: cover;
    background-position: center;
    padding: 10% 6%;
    box-sizing: border-box;
    border-radius: 0 0 100px 100px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-text {
    width: 45%;
    color: #7a2c66;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 20px;
    color: #3c3c3c;
    max-width: 90%;
}


/* ========================================================= */
/* =====================  RESPONSIVE  ====================== */
/* ========================================================= */

/* ======== TABLET (entre 768px y 1024px) ======== */
@media (max-width: 1024px) {

    .hero-doctora {
        padding: 12% 5%;
        background-image: url("images/banner-contacto-tablet.webp");
        background-size: auto;             /* ⬅ evita que la imagen se cambie */
        background-repeat: no-repeat;
        background-position: center top;   /* ⬅ ajusta enfoque sin deformar */
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        width: 85%;
        margin-top: 50px; /* mueve el texto sin tocar el fondo */
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .hero-text p {
        font-size: 18px;
    }
}

/* ======== MÓVIL (menor a 768px) ======== */
@media (max-width: 768px) {

    .hero-doctora {
        position: relative;        /* necesario para el overlay */
        padding: 20% 3%;
        background-image: url("images/banner-contacto-movil.webp");
        background-size: auto;
        background-repeat: no-repeat;
        background-position: center top;
        border-radius: 0 0 60px 60px;
        overflow: hidden;          /* para respetar bordes redondeados */
    }

    /* Transparencia blanca del 40% hacia arriba */
    .hero-doctora::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40%; /* cubre 40% */
        background: linear-gradient(
            to top,
            rgba(255, 255, 255, 0.85),  /* blanco fuerte abajo */
            rgba(255, 255, 255, 0)      /* transparente arriba */
        );
        pointer-events: none;
        z-index: 1; /* debajo del texto */
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        position: relative;
        z-index: 2; /* asegura que el texto quede SOBRE la transparencia */
    }

    .hero-text {
        width: 100%;
        margin-top: 70px;
    }

    .hero-text h1 {
        font-size: 19px;
    margin-top: -90px;
    text-align: left;
    margin-bottom: -30px;
    }

    .hero-text p {
        font-size: 13px;
        margin: 210px 0 -45px 79px;
    }
}



/* CONTENEDOR DE PESTAÑAS */
.tabs-container {
    width: 100%;
    max-width: 1200px;
    margin: 0px auto 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 3;
}

.tab-item {
    width: 400px;
    height: 100px;
    background: #c887a5;
    border-radius: 0 0 60px 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: 0.3s ease;
}

.tab-item.active {
    background: #7a2c66;
}

.tab-item img {
    width: 70px;
}

/* SUBTÍTULO */
.subtitulo-agenda {
    text-align: center;
    font-weight: 700;
    font-size: 22px;
    color: #7a7a7a;
    margin-bottom: 40px;
    line-height: 1.4;
	padding: 40px 0px 0px 0px;
}

.subtitulo-agenda span {
    font-weight: 400;
}

/* Botones */
.btns-agenda {
    display: flex;
    justify-content: center;
    gap: 30px;
	padding: 40px 0px 100px 0px;
}

.btn-whatsapp,
.btn-doctoralia {
    background: white;
    padding: 18px 100px;
    border-radius: 50px;
    font-weight: 700;
    border: 1px solid #e3e3e3;
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 18px;
    color: #7a2c66;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.btn-doctoralia {
    color: #00bfa5;
}

.btn-whatsapp:hover,
.btn-doctoralia:hover {
    transform: translateY(-4px);
}

.btn-whatsapp img,
.btn-doctoralia img {
    width: 80px;
}

/* ============================
   TABLET (max-width: 1024px)
============================= */
@media (max-width: 1024px) {

    .tabs-container {
        gap: 15px;
    }

    .tab-item {
        width: 280px;
        height: 80px;
        border-radius: 0 0 50px 50px;
    }

    .tab-item img {
        width: 55px;
    }

    .subtitulo-agenda {
        font-size: 20px;
        padding-top: 30px;
    }

    .btns-agenda {
        gap: 20px;
    }

    .btn-whatsapp,
    .btn-doctoralia {
        padding: 16px 70px;
        font-size: 16px;
    }

    .btn-whatsapp img,
    .btn-doctoralia img {
        width: 60px;
    }
}



/* ============================
   MÓVIL (max-width: 768px)
============================= */
@media (max-width: 768px) {

    .tabs-container {
        flex-direction: column; /* <<< APILADO VERTICAL */
        gap: 12px;
        align-items: center;
    }

    .tab-item {
        width: 90%;
        max-width: 330px;
        height: 75px;
        border-radius: 0 0 40px 40px;
    }

    .tab-item img {
        width: 50px;
    }

    .subtitulo-agenda {
        font-size: 18px;
        margin-bottom: 25px;
        padding-top: 20px;
    }

    .btns-agenda {
        flex-direction: column; /* <<< BOTONES APILADOS */
        gap: 15px;
        padding: 20px 0 60px 0;
    }

    .btn-whatsapp,
    .btn-doctoralia {
        width: 90%;
        max-width: 330px;
        padding: 14px 0;
        justify-content: center;
        font-size: 16px;
    }

    .btn-whatsapp img,
    .btn-doctoralia img {
        width: 55px;
    }
}



/* ===== UBICACIÓN ===== */

.titulo-ubicacion {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #5d5d5d;
    margin-bottom: 6px;
}

.subtitulo-ubicacion {
    text-align: center;
    font-size: 17px;
    color: #7a7a7a;
    margin-bottom: 40px;
}

/* ============================
   CARRUSEL
============================ */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* ============================
   MAP CARD
============================ */
.map-card {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

/* MAPA EN OVALO */
.map-frame {
    width: 100%;
    max-width: 800px;
    /* background: white; */
    border-radius: 240px; /* OVALADO */
    overflow: hidden;     /* RECORTA TODO EN FORMA DE OVALO */
    padding: 0;
    position: relative;
}

/* MAPA */
.map-frame iframe {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
}

/* BARRA DE INFORMACIÓN DENTRO DEL OVALO */
.map-info {
    width: 100%;
    background: #c887a5;
    color: white;
    text-align: center;
    padding: 26px 10px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 0 0 100px 100px; /* curva igual al frame */
}


/* FLECHAS */
.carousel-btn {
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    background: #c887a5;
    color: white;
    border: none;
    font-size: 28px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    opacity: .85;
    z-index: 20;
}

.carousel-btn:hover { opacity: 1; }

.prev { left: 2px; }
.next { right: 2px; }

/* DOTS */
.map-dots {
    text-align: center;
    margin-top: 25px;
}

.dot {
    width: 25px;
    height: 25px;
    background: #953478;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    opacity:0.2;
    cursor: pointer;
}

.dot.active {
    opacity: 1;
}


/* ============================================================
   TABLET (hasta 1024px)
============================================================ */
@media (max-width: 1024px) {

    .titulo-ubicacion {
        font-size: 28px;
    }

    .subtitulo-ubicacion {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .map-frame {
        max-width: 650px;
        border-radius: 180px;
    }

    .map-frame iframe {
        height: 260px;
    }

    .map-info {
        font-size: 18px;
        padding: 22px 10px;
        border-radius: 0 0 80px 80px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}


/* ============================================================
   MÓVIL (hasta 768px)
============================================================ */
@media (max-width: 768px) {

    .titulo-ubicacion {
        font-size: 24px;
    }

    .subtitulo-ubicacion {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .carousel-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .map-card {
        padding: 0 10px;
    }

    .map-frame {
        max-width: 100%;
        border-radius: 140px;
    }

    .map-frame iframe {
        height: 220px;
    }

    .map-info {
        font-size: 16px;
        padding: 20px 8px;
        border-radius: 0 0 70px 70px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 22px;
        top: 48%;
    }

    .prev { left: 6px; }
    .next { right: 6px; }

    .dot {
        width: 20px;
        height: 20px;
        margin: 0 4px;
    }
}


/* ============================================================
   MÓVIL PEQUEÑO (hasta 480px)
============================================================ */
@media (max-width: 480px) {

    .titulo-ubicacion {
        font-size: 20px;
    }

    .subtitulo-ubicacion {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .map-frame {
        border-radius: 70px;
    }

    .map-frame iframe {
        height: 190px;
    }

    .map-info {
        font-size: 15px;
        padding: 16px 12px;
        border-radius: 0 0 60px 60px;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .dot {
        width: 16px;
        height: 16px;
    }
}


/* ===== FAQ ===== */

.titulo-faq {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #6d6d6d;
    margin-bottom: 40px;
}

/* Contenedor con look suave */
.faq-item {
    width: 82%;
    max-width: 900px;
    margin: 0 auto 22px;
    background: #ffffff;
    border-radius: 45px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    cursor: pointer;
    transition: .3s;
}

/* Pregunta */
.faq-question {
    padding: 26px 35px;
    font-size: 20px;
    font-weight: 600;
    color: #7a2c66;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 45px;
    transition: .3s;
}

/* Pregunta activa igual que en la imagen: fondo rosado */
.faq-item.active .faq-question {
    background: #E6ACAE;
    color: white;
    border-radius: 45px 45px 0 0;
}

/* Flecha */
.arrow {
    width: 45px;
    height: 22px;
    background-image: url('images/triangulo blanco.svg');
    background-size: contain;
    filter: brightness(0) saturate(100%) invert(40%) sepia(15%) saturate(900%) hue-rotate(290deg);
    transition: .3s;
}

/* Flecha blanca cuando está activo */
.faq-item.active .arrow {
    transform: rotate(180deg);
    filter: brightness(100%) invert(100%);
}

/* Respuesta */
.faq-answer {
    padding: 22px 35px 28px;
    font-size: 17px;
    color: #585858;
    background: white;
    display: none;
    border-radius: 0 0 45px 45px;
    line-height: 1.45;
}

/* Mostrar respuesta */
.faq-item.active .faq-answer {
    display: block;
}

/* OCULTAR TODAS LAS PESTAÑAS */
.tab-content {
    display: none;
}

/* MOSTRAR SOLO LA ACTIVA */
.tab-content.active {
    display: block;
	padding: 80px;
	background-color: #f4ebf0;
}

/* ============================================================
   TABLET (hasta 1024px)
============================================================ */
@media (max-width: 1024px) {

    .titulo-faq {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .faq-item {
        width: 88%;
        border-radius: 40px;
    }

    .faq-question {
        padding: 22px 28px;
        font-size: 19px;
        border-radius: 40px;
    }

    .faq-item.active .faq-question {
        border-radius: 40px 40px 0 0;
    }

    .arrow {
        width: 38px;
        height: 20px;
    }

    .faq-answer {
        padding: 20px 28px 26px;
        font-size: 16px;
    }

    .tab-content.active {
        padding: 60px;
    }
}


/* ============================================================
   MÓVIL (hasta 768px)
============================================================ */
@media (max-width: 768px) {

    .titulo-faq {
        font-size: 24px;
        margin-bottom: 26px;
    }

    .faq-item {
        width: 92%;
        border-radius: 35px;
    }

    .faq-question {
        padding: 20px 22px;
        font-size: 17px;
        border-radius: 35px;
    }

    .faq-item.active .faq-question {
        border-radius: 35px 35px 0 0;
    }

    .arrow {
        width: 30px;
        height: 18px;
    }

    .faq-answer {
        padding: 18px 22px 22px;
        font-size: 15px;
    }

    .tab-content.active {
        padding: 40px 28px;
    }
}


/* ============================================================
   MÓVIL PEQUEÑO (hasta 480px)
============================================================ */
@media (max-width: 480px) {

    .titulo-faq {
        font-size: 20px;
        margin-bottom: 22px;
    }

    .faq-item {
        width: 94%;
        border-radius: 30px;
    }

    .faq-question {
        padding: 18px 20px;
        font-size: 12px;
        border-radius: 30px;
    }

    .faq-item.active .faq-question {
        border-radius: 30px 30px 0 0;
    }

    .arrow {
        width: 26px;
        height: 13px;
    }

    .faq-answer {
        padding: 16px 20px 20px;
        font-size: 14px;
        line-height: 1.4;
    }

    .tab-content.active {
        padding: 28px 20px;
		margin-bottom: 60px;
    }
}
