/********** Template CSS **********/

.back-to-top {
    position: fixed;
    display: none;
    left: 18px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
    border-radius: 50px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: inherit;
}

.btn-primary {
    color: var(--bs-white);
}


/*** Navbar ***/
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 40px 0;
    color: var(--bs-white);
    font-size: 17px;
    text-transform: uppercase;
    outline: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #ab6388;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link,
    .navbar.bg-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 4px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid var(--bs-light);
    }
}

@media (min-width: 992px) {
    .navbar.bg-dark .navbar-nav .nav-link {
        padding: 20px 0;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 100px;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 900px;
    }

    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 200px;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-1.jpg) top center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--bs-white);
}


/*** Title ***/
.title {
    margin-bottom: 2rem;
}

.title .title-left,
.title .title-center,
.title .title-right {
    display: inline-block;
    text-transform: uppercase;
    overflow: hidden;
}

.title .title-center {
    text-align: center;
}

.title .title-right {
    text-align: right;
}

.title .title-left h5,
.title .title-center h5,
.title .title-right h5 {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 300;
}

.title .title-left h5::after,
.title .title-center h5::before,
.title .title-center h5::after,
.title .title-right h5::before {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    top: 9px;
    border-bottom: 1px solid var(--bs-white);
}

.title .title-left h5::after,
.title .title-center h5::after {
    left: calc(100% + 15px);
}

.title .title-right h5::before,
.title .title-center h5::before {
    right: calc(100% + 15px);
}

.title .title-left h1,
.title .title-center h1,
.title .title-right h1 {
    border-bottom: 1px solid var(--bs-white);
}


/*** Service ***/
.service-item {
    position: relative;
    margin-top: 2.5rem;
    overflow: hidden;
}

.service-item .service-img {
    position: relative;
    display: inline-block;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: calc(100% - 12rem);
    height: calc(100% - 12rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3rem solid rgba(0, 0, 0, .5);
    border-radius: 300px;
    z-index: 1;
}

.service-item.service-item-left {
    border-radius: 500px 0 0 500px;
    background: linear-gradient(to right, var(--bs-secondary), var(--bs-dark));
}

.service-item.service-item-right {
    border-radius: 0 500px 500px 0;
    background: linear-gradient(to left, var(--bs-secondary), var(--bs-dark));
}

@media (max-width: 767.98px) {
    .service-item.service-item-left,
    .service-item.service-item-right {
        border-radius: 500px 500px 0 0;
        background: linear-gradient(to bottom, var(--bs-secondary), var(--bs-dark));
        text-align: center;
    }
}


/*** Team ***/
.team-item {
    position: relative;
}

.team-item .team-name {
    position: absolute;
    width: 100%;
    height: 60px;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .7);
}

.team-item .team-body {
    position: relative;
    overflow: hidden;
}

.team-item .team-body .team-before,
.team-item .team-body .team-after {
    position: absolute;
    content: "";
    width: 0;
    height: calc(100% - 60px);
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .5s;
}

.team-item .team-body .team-after {
    left: auto;
    right: 0;
}

.team-item .team-body .team-before {
    text-align: right;
}

.team-item:hover .team-body .team-before,
.team-item:hover .team-body .team-after {
    width: 100%;
}

.team-item .team-body .team-before span,
.team-item .team-body .team-after span {
    margin: 40px;
    color: var(--bs-white);
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-body .team-before span,
.team-item:hover .team-body .team-after span {
    opacity: 1;
    transition-delay: .2s;
}


/*** Testimonial ***/
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--bs-dark);
    border-radius: 100px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .1;
    transition: .5s;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
@keyframes footerAnimatedBg {
	0% {
        background-position: 0 0;
    }

	100% {
        background-position: -1000px 0;
    }
}

.footer {
	background-image: url(../img/footer-bg.png);
	background-position: 0px 0px;
    background-repeat: repeat-x;
	animation: footerAnimatedBg 50s linear infinite;
}


/* =====================================================
   ABOUT START - MÉDICO PEGADO A SERVICE START
   SOLO COMPUTADORA
===================================================== */

@media (min-width: 992px) {

    /* Sección About */
    #about,
    .about-section {
        position: relative !important;
        overflow: hidden !important;
    }

    /* Columna donde está la imagen del médico */
    #about .about-img,
    #about .about-image,
    #about .doctor-image,
    .about-section .about-img,
    .about-section .about-image,
    .about-section .doctor-image {
        position: absolute !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        margin-bottom: 0 !important;
        height: 100% !important;
        display: flex !important;
        align-items: flex-end !important;
    }

    /* Imagen del médico */
    #about .about-img img,
    #about .about-image img,
    #about .doctor-image img,
    .about-section .about-img img,
    .about-section .about-image img,
    .about-section .doctor-image img {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        max-height: 100% !important;
        width: auto !important;
        object-fit: contain !important;
        object-position: bottom center !important;
    }
}




/* =========================================
   BOTÓN WHATSAPP FLOTANTE
========================================= */

.whatsapp-flotante {
    position: fixed;
    right: 25px;
    bottom: 100px;

    width: 58px;
    height: 58px;

    background: #25D366;
    color: #ffffff;

    border-radius: 50%;

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

    text-decoration: none;

    z-index: 9999;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);

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

.whatsapp-flotante svg {
    width: 30px;
    height: 30px;
}

.whatsapp-flotante:hover {
    background: #1ebe5d;
    color: #ffffff;

    transform: scale(1.1);

    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.45);
}


/* MÓVIL */
@media (max-width: 767px) {

    .whatsapp-flotante {
        width: 52px;
        height: 52px;

        right: 15px;
        bottom: 80px;
    }

    .whatsapp-flotante svg {
        width: 30px;
        height: 30px;
    }
}

/* =========================================
   WHATSAPP FLOTANTE - AJUSTE DEFINITIVO
========================================= */

a.whatsapp-flotante {
    position: fixed !important;

    right: 20px !important;
    bottom: 45px !important;

    top: auto !important;
    left: auto !important;

    width: 58px !important;
    height: 58px !important;

    background-color: #ef654f !important;
    background: #ef654f !important;

    color: #ffffff !important;

    border-radius: 50% !important;

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

    margin: 0 !important;
    padding: 0 !important;

    z-index: 99999 !important;

    box-shadow: 0 5px 18px rgba(0,0,0,0.30) !important;

    transform: none !important;
}


/* ICONO */
a.whatsapp-flotante svg {
    width: 34px !important;
    height: 34px !important;

    fill: #ffffff !important;
    color: #ffffff !important;
}


/* HOVER */
a.whatsapp-flotante:hover {
    background-color: #d9533f !important;
    background: #d9533f !important;

    color: #ffffff !important;

    transform: scale(1.08) !important;
}


/* MÓVIL */
@media (max-width: 767px) {

    a.whatsapp-flotante {
        right: 15px !important;
        bottom: 45px !important;

        width: 52px !important;
        height: 52px !important;
    }

    a.whatsapp-flotante svg {
        width: 30px !important;
        height: 30px !important;
    }
}


/* WHATSAPP FLOTANTE MÁS PEQUEÑO */
a.whatsapp-flotante {
    width: 42px !important;
    height: 42px !important;

    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 42px !important;
    max-height: 42px !important;

    padding: 0 !important;
    margin: 0 !important;

    border-radius: 50% !important;

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

    box-sizing: border-box !important;

    font-size: 20px !important;
    line-height: 1 !important;
}

/* TAMAÑO DEL ICONO */
a.whatsapp-flotante svg {
    width: 30px !important;
    height: 30px !important;

    min-width: 22px !important;
    min-height: 22px !important;
}


.navbar-toggler {
    padding: .10rem .20rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 10px;
    transition: box-shadow .15s ease-in-out;
}

.back-to-top i {
    font-size: 22px !important;
    font-weight: 900 !important;
    -webkit-text-stroke: 1px currentColor;
}

/* MENSAJE CON FOTO DEL MÉDICO */
.wa-mensaje-medico {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.wa-foto-medico {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center top !important;
    border: 2px solid #ef654f !important;
    display: block !important;
}

.wa-texto-mensaje {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #333333 !important;
}

.wa-texto-mensaje strong {
    color: #ef654f !important;
    font-size: 15px !important;
}

/* FOTO DEL MÉDICO EN WHATSAPP */

.wa-mensaje-medico {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.wa-foto-medico {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;

    border-radius: 50% !important;
    border: 2px solid #ef654f !important;

    background-color: #ffffff !important;

    object-fit: contain !important;
    object-position: center center !important;

    /* espacio para que la cabeza no toque el borde */
    padding: 2px 3px 0 3px !important;

    box-sizing: border-box !important;
    display: block !important;
}































.bg-dark {
    background-color: #000000 !important;
}   

.navbar .navbar-nav .nav-link:hover, .navbar .navbar-nav .nav-link.active {
    color: #ab6388;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 950px;
    }
}


.btn-outline-primary {
    color: #aa6388;
    border-color: #aa6388;
}

.text-primary {
    color: #ea6751 !important;
}

.btn-primary {
    color: #000;
    background-color: #e96751;
    border-color: #ea6751;
}

.btn-outline-primary {
    color: #e96751;
    border-color: #ea6751;
}

a {
    color: #aa6388;
    text-decoration: none;
}

.fs-5 {
    font-size: 1.0rem !important;
}


.mb-5 {
    margin-bottom: 0.5rem !important;
}

.title {
    margin-bottom: 0rem;
}

.px-5 {
    padding-right: 0rem !important;
    padding-left: 0rem !important;
}

.navbar-dark .navbar-toggler {
    color: hsla(0, 0%, 100%, .55);
    border-color: hsla(0, 0%, 100%, .1);
}

.navbar-dark .navbar-toggler {
    color: hsl(8.63deg 78.46% 61.76%);
    border-color: hsl(8.68deg 78.35% 61.96%);
    background-color: hsl(8.68deg 78.35% 61.96%);
}


.btn-check:focus+.btn-outline-primary, .btn-outline-primary:focus {
    box-shadow: 0 0 0 .25rem rgb(234 103 81 / 58%);
}



.btn-check:focus + .btn-primary, .btn-primary:focus {
    color: rgb(0, 0, 0);
    background-color: #e9675169;
    box-shadow: rgba(194, 20, 103, 0.5) 0px 0px 0px 0.25rem;
    border-color: #e9675169;
}

.btn-primary {
    color: #fff;
    background-color: #e96751;
    border-color: #ea6751;
}

element.style {
}
.btn-primary:hover {
    color: #fff;
    background-color: #e9675169;
    border-color: #e9675169;
}

.btn-check:checked+.btn-outline-primary, .btn-check:active+.btn-outline-primary, .btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary.dropdown-toggle.show {
    color: #000;
    background-color: #e96751;
    border-color: #e96751;
}
.btn-outline-primary:hover {
    color: #fff;
    background-color: #e9675169;
    border-color: #e9675169;
}

.bg-secondary {
    background-color: #3f3f3f !important;
}

.bg-dark {
    background-color: #000000c7 !important;
}


.me-1 {
    margin-right: .20rem !important;
}


.service-item .service-img::before {
    position: absolute;
    content: "";
    width: calc(100% - 12rem);
    height: calc(100% - 12rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3rem solid rgb(0 0 0 / 0%);
    border-radius: 300px;
    z-index: 1;
}  

h1, .h1 {
    font-size: calc(1.375rem + 0.7vw);
}

.border-bottom {
    border-bottom: 0px solid #a0a0a0 !important;
}






/* =====================================================
   SECCIÓN AGENDAR CITA
===================================================== */





/* Contenedor general */

.contenedor-cita {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 90px;
    align-items: center;

    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}

/* =====================================================
   TEXTO IZQUIERDO
===================================================== */

.subtitulo-cita {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 23px;

    color: var(--color-acento);

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
}

.subtitulo-cita span {
    display: block;
    width: 43px;
    height: 1px;
    background-color: var(--color-acento);
}

.encabezado-cita h2 {
    margin: 0 0 25px;

    color: var(--color-blanco);

    font-family: inherit;
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -2px;
}

.encabezado-cita p {
    max-width: 470px;
    margin: 0;

    color: var(--color-texto-suave);

    font-size: 17px;
    line-height: 1.8;
}

/* =====================================================
   CONTENEDOR DEL FORMULARIO
===================================================== */

.formulario-cita {
    position: relative;

    padding: 45px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;

    background-color: rgba(255, 255, 255, 0.045);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Organización de los campos */

.grupo-campos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 30px;
}

.campo-cita {
    position: relative;
}

/* Etiquetas */

.campo-cita label {
    display: block;

    margin-bottom: 10px;

    color: #aa6389;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

/* =====================================================
   CAMPOS DE TEXTO MÁS CLAROS
===================================================== */

.campo-cita input,
.campo-cita select,
.campo-cita textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 15px 18px;

    border: 1px solid #ab638978;
    border-radius: 8px;
    outline: none;

    /*
    Fondo más claro para que los recuadros sean visibles.
    Puedes aumentar 0.14 a 0.18 para hacerlos todavía más claros.
    */
    background-color: rgba(255, 255, 255, 0.14);

    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;

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

/* Campos al pasar el cursor */

.campo-cita input:hover,
.campo-cita select:hover,
.campo-cita textarea:hover {
    background-color: #ab638978;
    border-color: #ab638978;
}

/* Campos al escribir */

.campo-cita input:focus,
.campo-cita select:focus,
.campo-cita textarea:focus {
    background-color: #ab638978;
    border-color: #aa6389;

    box-shadow:
        0 0 0 3px #aa6389,
        0 12px 25px rgba(0, 0, 0, 0.12);

    transform: translateY(-1px);
}

/* Texto de ejemplo dentro de los campos */

.campo-cita input::placeholder,
.campo-cita textarea::placeholder {
    color: rgba(255, 255, 255, 0.67);
    opacity: 1;
}

/* Corrige el autocompletado de Chrome */

.campo-cita input:-webkit-autofill,
.campo-cita input:-webkit-autofill:hover,
.campo-cita input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;

    box-shadow:
        0 0 0 1000px #383838 inset;

    transition:
        background-color 9999s ease-in-out 0s;
}

/* =====================================================
   CAMPO SELECT
===================================================== */

.campo-cita select {
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    padding-right: 48px;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            #fff 50%
        ),
        linear-gradient(
            135deg,
            #fff 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 14px) 50%;

    background-size:
        6px 6px,
        6px 6px;

    background-repeat: no-repeat;
}

.campo-cita select option {
    background-color: #2b2b2b;
    color: #ffffff;
}

/* =====================================================
   CAMPO MENSAJE
===================================================== */

.campo-completo {
    margin-top: 28px;
}

.campo-cita textarea {
    min-height: 125px;
    resize: vertical;
}

/* =====================================================
   BOTÓN DE ENVÍO
===================================================== */

.contenedor-envio {
    display: flex;
    align-items: center;
    gap: 25px;

    margin-top: 38px;
}

./* BOTÓN LIMPIO TIPO CÁPSULA */

.boton-enviar-cita {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;

    min-width: 205px;
    padding: 11px 19px;

    border: 2px solid #ff654f;
    border-radius: 50px;

    background-color: transparent;
    color: #ff654f;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;

    cursor: pointer;

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

.texto-boton {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.simbolo-boton {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.flecha-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
    font-weight: 400;
    line-height: 1;

    transition: transform 0.3s ease;
}

/* Efecto al pasar el cursor */

.boton-enviar-cita:hover {
    transform: translateY(-2px);

    background-color: #ff654f;
    color: #ffffff;

    box-shadow: 0 8px 22px rgba(255, 101, 79, 0.24);
}

.boton-enviar-cita:hover .flecha-boton {
    transform: translateX(4px);
}

/* Mientras se envía */

.boton-enviar-cita:disabled {
    cursor: wait;
    opacity: 0.60;
    transform: none;
    box-shadow: none;
}

/* Adaptación para celular */

@media screen and (max-width: 650px) {
    .boton-enviar-cita {
        width: auto;
        min-width: 200px;
        align-self: flex-start;
    }
}

/* =====================================================
   MENSAJES DEL FORMULARIO
===================================================== */

.estado-formulario {
    min-height: 23px;
    margin: 0;

    color: var(--color-texto-suave);

    font-size: 14px;
    line-height: 1.5;
}

.estado-formulario.exito {
    color: var(--color-exito);
}

.estado-formulario.error {
    color: var(--color-error);
}

/* =====================================================
   CAMPO ANTISPAM
===================================================== */

.campo-antispam {
    position: absolute !important;
    left: -9999px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
    opacity: 0 !important;
}

/* =====================================================
   DISEÑO RESPONSIVE
===================================================== */

@media screen and (max-width: 950px) {

    .seccion-cita {
        padding: 85px 22px;
    }

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

    .encabezado-cita p {
        max-width: 650px;
    }

}

@media screen and (max-width: 650px) {

    .seccion-cita {
        padding: 65px 18px;
    }

    .encabezado-cita h2 {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .encabezado-cita p {
        font-size: 16px;
        line-height: 1.7;
    }

    .formulario-cita {
        padding: 30px 22px;
        border-radius: 10px;
    }

    .grupo-campos {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .campo-completo {
        margin-top: 24px;
    }

    .contenedor-envio {
        align-items: stretch;
        flex-direction: column;
    }

    .boton-enviar-cita {
        width: 100%;
        min-width: 0;
        font-size: 45px;
    }



    .estado-formulario {
        text-align: center;
    }

}

@media screen and (max-width: 400px) {

    .seccion-cita {
        padding-right: 14px;
        padding-left: 14px;
    }

    .formulario-cita {
        padding: 26px 18px;
    }

    .encabezado-cita h2 {
        font-size: 35px;
    }

    .campo-cita input,
    .campo-cita select,
    .campo-cita textarea {
        padding: 14px 15px;
        font-size: 14px;
    }

}



/* =====================================================
   BOTÓN ENVIAR — DISEÑO TIPO CÁPSULA
===================================================== */

.boton-enviar-cita {
    appearance: none;
    -webkit-appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    width: auto;
    min-width: 150px;
    height: 35px;

    margin: 0;
    padding: 0 18px;

    border: 2px solid #ff654f;
    border-radius: 999px;

    background-color: transparent;
    color: #ff654f;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;

    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    box-shadow: none;
    outline: none;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Texto del botón */

.boton-enviar-cita .texto-boton {
    display: inline-flex;
    align-items: center;

    margin: 0;
    padding: 0;

    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
}

/* Flecha */

.boton-enviar-cita .flecha-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    color: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;

    transform: translateY(-1px);

    transition: transform 0.25s ease;
}

/* Efecto al pasar el cursor */

.boton-enviar-cita:hover {
    background-color: #ff654f;
    color: #fff;

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(255, 101, 79, 0.20);
}

.boton-enviar-cita:hover .flecha-boton {
    transform: translate(4px, -1px);
}

/* Efecto al presionar */

.boton-enviar-cita:active {
    transform: translateY(0);

    box-shadow: 0 4px 10px rgba(255, 101, 79, 0.15);
}

/* Enfoque con teclado */

.boton-enviar-cita:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 4px rgba(255, 101, 79, 0.22);
}

/* Mientras se envía */

.boton-enviar-cita:disabled,
.boton-enviar-cita[aria-busy="true"] {
    cursor: wait;

    opacity: 0.60;
    transform: none;
    box-shadow: none;
}

/* Celular */

@media screen and (max-width: 650px) {
    .boton-enviar-cita {
        width: auto;
        min-width: 150px;
        height: 35px;
        padding: 0 18px;
    }
}


a {
    color: #ea6751;
    text-decoration: none;
}


a:hover{
    color: #fff;
}


@media (min-width: 992px) {
    .pb-lg-5 {
        padding-bottom: 0rem !important;
    }
}

.py-5 {
    padding-top: 0rem !important;
    padding-bottom: 3rem !important;
}
@media (max-width: 991.98px) {

    #navbarCollapse .dropdown-menu {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    #navbarCollapse .dropdown-item {
        background: transparent !important;
    }

    #navbarCollapse .dropdown-item:hover,
    #navbarCollapse .dropdown-item:focus,
    #navbarCollapse .dropdown-item:active {
        background: rgba(255, 255, 255, 0.08) !important;
    }

}
.navbar .dropdown-menu .dropdown-item {
    color: #ffffff !important;
}







/* ================================================
   BACK TO TOP A LA IZQUIERDA
================================================ */
.back-to-top {
    left: 20px !important;
    right: auto !important;
    bottom: 15px !important;
}

/* ================================================
   WHATSAPP FLOTANTE
================================================ */
.wa-toggle {
    position: fixed !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* BOTÓN WHATSAPP FLOTANTE */
.wa-boton {
    position: fixed !important;

    right: 20px !important;
    bottom: 15px !important; /* SUBE EL BOTÓN */

    width: 50px !important;
    height: 50px !important; /* MÁS GRANDE */

    min-width: 50px !important;
    min-height: 50px !important;

    background: #ef654f !important;
    color: #ffffff !important;

    border-radius: 50% !important;

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

    cursor: pointer !important;

    z-index: 9999999 !important;

    box-shadow: 0 4px 15px rgba(0,0,0,.25) !important;

    transition: 
        background-color .3s ease,
        transform .3s ease,
        box-shadow .3s ease !important;
}


/* ICONO */
.wa-boton svg {
    width: 28px !important;
    height: 28px !important;
}


/* HOVER */
.wa-boton:hover {
    background: rgba(239, 101, 79, 0.35) !important;

    border: 2px solid #ef654f !important;

    transform: scale(1.08);

    box-shadow: 0 6px 18px rgba(0,0,0,.30) !important;
}

/* ================================================
   VENTANA
================================================ */
.wa-ventana {
    position: fixed !important;
    right: 20px !important;
    bottom: 70px !important;

    width: 330px !important;
    max-width: calc(100% - 30px) !important;

    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;

    box-shadow: 0 10px 35px rgba(0,0,0,.30) !important;
    z-index: 999998 !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(15px) !important;

    transition: opacity .25s ease, visibility .25s ease, transform .25s ease !important;
}

.wa-toggle:checked ~ .wa-ventana {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.wa-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    padding: 16px 18px !important;

    background: #e96751 !important;
    color: #ffffff !important;
}

.wa-header strong {
    display: block !important;
    color: #ffffff !important;
    font-size: 16px !important;
}

.wa-header span {
    display: block !important;
    margin-top: 2px !important;
    color: rgba(255,255,255,.88) !important;
    font-size: 12px !important;
}

.wa-cerrar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 32px !important;
    height: 32px !important;

    color: #ffffff !important;
    font-size: 28px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.wa-body {
    padding: 18px !important;
    background: #f5f5f5 !important;
}

.wa-mensaje {
    margin-bottom: 14px !important;
    padding: 12px 14px !important;

    background: #ffffff !important;
    color: #333333 !important;

    border-radius: 5px 12px 12px 12px !important;
    box-shadow: 0 2px 7px rgba(0,0,0,.08) !important;

    font-size: 14px !important;
    line-height: 1.5 !important;
}

.wa-body form {
    margin: 0 !important;
}

.wa-body textarea {
    display: block !important;
    width: 100% !important;
    height: 90px !important;

    margin: 0 !important;
    padding: 12px !important;

    box-sizing: border-box !important;

    border: 1px solid #dddddd !important;
    border-radius: 7px !important;
    outline: none !important;

    background: #ffffff !important;
    color: #333333 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    resize: none !important;
}

.wa-body textarea:focus {
    border-color: #e96751 !important;
    box-shadow: 0 0 0 2px rgba(233,103,81,.14) !important;
}

.wa-body button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    width: 100% !important;

    margin-top: 12px !important;
    padding: 11px 14px !important;

    border: 0 !important;
    border-radius: 7px !important;

    background: #e96751 !important;
    color: #ffffff !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;

    cursor: pointer !important;
}

.wa-body button:hover {
    background: #aa6388 !important;
}

@media (max-width: 767px) {
    .back-to-top {
        left: 15px !important;
        bottom: 15px !important;
    }

    .wa-boton {
        right: 15px !important;
        bottom: 15px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 22px !important;
    }

    .wa-ventana {
        right: 15px !important;
        bottom: 65px !important;
        width: 320px !important;
        max-width: calc(100% - 30px) !important;
    }
}

/* =========================================
   MENÚ MÓVIL CON FONDO
========================================= */

@media (max-width: 991.98px) {

    /* BARRA SUPERIOR SIEMPRE VISIBLE */
    .navbar,
    .navbar.bg-dark {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;

        /* FONDO DE LA BARRA */
        background: #000000 !important;

        z-index: 99999 !important;
    }

    /* MENÚ DESPLEGABLE */
    #navbarCollapse {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }

    /* MISMO FONDO AL ABRIR EL MENÚ */
    #navbarCollapse.show,
    #navbarCollapse.collapsing {
        background: #000000db!important;
        box-shadow: 0 8px 20px rgba(0,0,0,.25) !important;
    }

    /* CONTENIDO */
    #navbarCollapse .navbar-nav {
        margin: 0 !important;
        padding: 18px 25px !important;
        border-top: 1px solid rgba(255,255,255,.45) !important;
    }

    /* OPCIONES PRINCIPALES */
    #navbarCollapse .nav-link {
        color: #ffffff !important;
        background: transparent !important;
        padding: 7px 0 !important;
    }

    /* SUBMENÚS */
    #navbarCollapse .dropdown-menu,
    #navbarCollapse .dropdown-menu.show {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    #navbarCollapse .dropdown-item {
        color: #ffffff !important;
        background: transparent !important;
    }

    #navbarCollapse .dropdown-item:hover,
    #navbarCollapse .dropdown-item:focus,
    #navbarCollapse .dropdown-item:active {
        color: #ffffff !important;
        background: transparent !important;
    }

    html {
        scroll-padding-top: 90px !important;
    }
}