/*=================================
    Estilos propios del sitio
    (se cargan después de style.css de la plantilla)
==================================*/

/* --- Texto del Hero (lado derecho) --- */
.vs-hero-wrapper .hero-title {
    color: #27477d;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.9), 0 0 4px rgba(255, 255, 255, 0.9);
}
.vs-hero-wrapper .hero-title-accent {
    color: #923578;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.9), 0 0 4px rgba(255, 255, 255, 0.9);
}
.vs-hero-wrapper .hero-text {
    color: #1f3a5f;
    font-weight: 500 !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 3px rgba(255, 255, 255, 1);
}

/* --- Formulario de citas: no encimar sobre el slider --- */
.form-section {
    display: block;
    position: relative;
}
/* El slider escala con el ancho de la pantalla, así que el traslape también */
.form-section .form-box-two {
    margin-top: max(-7vw, -125px);
}
/* Tablet y móvil: el formulario va debajo del slider */
@media (max-width: 991px) {
    .form-section {
        padding: 30px 0 0;
    }
    .form-section .form-box-two {
        margin-top: 0;
        padding: 40px 30px 20px;
    }
}
@media (max-width: 416px) {
    .form-section .form-box-two {
        padding: 30px 20px 10px;
    }
}

/* --- Validación del formulario de citas --- */
.form-section .form-select.is-invalid,
.form-section .form-control.is-invalid {
    border: 2px solid #ff6b81 !important;
}
.form-section .cita-mensaje {
    margin: 0 0 20px;
    padding: 10px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #fff;
}
.form-section .cita-mensaje.error {
    background: rgba(255, 107, 129, 0.25);
    color: #fff;
}
.form-section .cita-mensaje.success {
    background: rgba(37, 211, 102, 0.25);
    color: #fff;
}

/* --- Paquetes: pestañas compactas que admiten nombres largos --- */
.paquetes-tabs {
    padding: 20px 20px 18px;
}
.paquetes-tabs .nav-tabs .nav-link {
    position: relative;
    height: auto;
    min-height: 52px;
    padding: 12px 20px 12px 46px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.35;
}
.paquetes-tabs .nav-tabs .nav-link i {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}
.paquetes-tabs .nav-tabs .nav-item:last-child .nav-link {
    margin-bottom: 0;
}
/* En pantallas grandes la imagen circular se monta sobre las pestañas:
   el texto se corta antes para no quedar debajo del círculo */
@media (min-width: 1200px) {
    .paquetes-tabs .nav-tabs .nav-link {
        padding-right: 180px;
    }
}

/* --- Servicios: título en blanco para que se lea sobre el fondo azul --- */
#servicios .title-area-three .sub-title7 {
    color: #fff;
}
#servicios .servicios-intro {
    max-width: 640px;
    margin: 0 auto 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

/* --- Servicios: filtros por categoría y tarjetas de igual altura --- */
.servicios-filtros {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 40px;
}
.servicios-filtros button {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #fff;
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.servicios-filtros button:hover,
.servicios-filtros button.active {
    background: #923578;
    border-color: #923578;
}
.specialist-slider .slick-track {
    display: flex;
}
.specialist-slider .slick-slide {
    height: auto;
}
.specialist-slider .specialist-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.specialist-slider .specialist-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 44px 26px 28px;
}
.specialist-slider .specialist-content .title {
    font-size: 19px;
    line-height: 1.3;
}
.specialist-slider .specialist-btn {
    margin-top: auto;
    align-self: flex-start;
}
.specialist-slider {
    position: relative;
}
.specialist-slider .servicios-flecha {
    position: absolute;
    top: 90px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #923578;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.specialist-slider .servicios-flecha.prev {
    left: 4px;
}
.specialist-slider .servicios-flecha.next {
    left: auto;
    right: 4px;
}
.specialist-slider .servicios-flecha.slick-disabled {
    opacity: 0.35;
}
.servicio-categoria {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #923578;
    margin-bottom: 6px;
}

/* --- Calendario de citas (el body de la plantilla hereda texto blanco) --- */
.xdsoft_datetimepicker,
.xdsoft_datetimepicker .xdsoft_calendar td,
.xdsoft_datetimepicker .xdsoft_calendar th,
.xdsoft_datetimepicker .xdsoft_label,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box > div > div {
    color: #27477d;
}
.xdsoft_datetimepicker .xdsoft_calendar th {
    font-weight: 700;
}
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month {
    color: #b5bccb;
}
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box > div > div.xdsoft_current {
    background-color: #923578;
    border-color: #923578;
    color: #fff;
    box-shadow: none;
}
.form-section .form-control[readonly] {
    background-color: #fff;
    cursor: pointer;
}
/* Texto capturado visible (--body-color de la plantilla es blanco) */
.form-section .form-box-two .form-group input,
.form-section .form-box-two .form-group .form-control,
.form-section .form-box-two .form-group .form-select {
    color: #27477d;
    -webkit-text-fill-color: #27477d;
}
.form-section .form-box-two .form-group .form-select:invalid {
    color: #923578;
    -webkit-text-fill-color: #923578;
}
.form-section .form-box-two .form-group .form-select option,
.form-section .form-box-two .form-group .form-select optgroup {
    color: #27477d;
}
.form-section .form-box-two .form-group input::placeholder {
    -webkit-text-fill-color: currentColor;
}

/* --- Preloader: equipo de ultrasonido (preloader-ultrasonido.js) --- */
.preloader-us {
    z-index: 100000;
    background: radial-gradient(circle at 50% 40%, #ffffff 0%, #fdf2f8 55%, #f3e3ef 100%);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader-us.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-us .preloaderCls {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    color: #923578;
    border: 1px solid rgba(146, 53, 120, 0.4);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 13px;
    z-index: 2;
}
.preloader-us .preloaderCls:hover {
    background: #923578;
    color: #fff;
}
.us-loader {
    width: min(340px, calc(100vw - 32px));
}
.us-monitor {
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(145deg, #2f3a52, #151b28);
    box-shadow: 0 18px 45px rgba(39, 71, 125, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.us-monitor canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #05070c;
}
.us-nombre {
    margin: 22px 0 2px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #923578;
}
.us-texto {
    margin: 0 0 14px;
    font-size: 14px;
    color: #27477d;
}
.us-puntos::after {
    content: '';
    display: inline-block;
    width: 1.2em;
    text-align: left;
    animation: us-puntos 1.2s steps(4) infinite;
}
@keyframes us-puntos {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}
.us-progreso {
    height: 4px;
    border-radius: 4px;
    background: rgba(39, 71, 125, 0.15);
    overflow: hidden;
}
.us-progreso span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #27477d, #923578);
    animation: us-progreso 2.5s cubic-bezier(0.1, 0.6, 0.3, 1) forwards;
}
.preloader-us.is-loaded .us-progreso span {
    width: 100%;
    animation: none;
    transition: width 0.3s ease;
}
@keyframes us-progreso {
    from { width: 0; }
    to { width: 85%; }
}
@media (prefers-reduced-motion: reduce) {
    .us-puntos::after,
    .us-progreso span {
        animation: none;
    }
}

/* --- Imágenes con medidas declaradas (width/height en el HTML) --- */
.specialist-img > img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.service-tab-content .ser-img-nine > img {
    width: 100%;
}

/* --- Formulario: campo trampa anti-spam (fuera de pantalla, no con display:none) --- */
.campo-trampa {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form-section .form-box-two .form-group button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Formulario: aceptación del Aviso de Privacidad --- */
.cita-acepto {
    text-transform: none; /* la plantilla capitaliza todos los <label> */
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 4px 6px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}
.cita-acepto input[type=checkbox] {
    /* La plantilla oculta los checkbox nativos: aquí se vuelve a mostrar */
    display: inline-block;
    visibility: visible;
    opacity: 1;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #923578;
    cursor: pointer;
}
.cita-acepto a {
    color: #fff;
    text-decoration: underline;
}
.cita-acepto a:hover {
    color: #f2c4e5;
}
.cita-acepto.is-invalid {
    outline: 2px solid #ff6b81;
}

/* --- Página: Aviso de Privacidad --- */
.pagina-aviso {
    background: #fdf2f8;
    color: #3a4560;
}
.aviso-header {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 14px rgba(39, 71, 125, 0.08);
}
.aviso-volver {
    color: #923578;
    font-weight: 500;
}
.aviso-volver:hover {
    color: #27477d;
}
.aviso-contenido {
    padding: 50px 0 60px;
}
.aviso-contenido .container {
    max-width: 860px;
    background: #fff;
    border-radius: 16px;
    padding: 45px 50px;
    box-shadow: 0 10px 35px rgba(39, 71, 125, 0.08);
}
.aviso-contenido h1 {
    color: #923578;
    font-size: 36px;
    margin-bottom: 6px;
}
.aviso-contenido h2 {
    color: #27477d;
    font-size: 21px;
    margin: 32px 0 12px;
}
.aviso-contenido p,
.aviso-contenido li {
    color: #3a4560;
    font-size: 16px;
    line-height: 1.75;
}
.aviso-contenido ul {
    padding-left: 22px;
    margin-bottom: 15px;
}
.aviso-contenido a {
    color: #923578;
    text-decoration: underline;
}
.aviso-fecha {
    font-size: 14px !important;
    color: #7a8299 !important;
}
.aviso-autoridad {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px !important;
}
.aviso-footer {
    background: #27477d;
    padding: 18px 0;
    text-align: center;
}
.aviso-footer p,
.aviso-footer a {
    color: #fff;
    font-size: 14px;
}
@media (max-width: 576px) {
    .aviso-contenido {
        padding: 20px 0 30px;
    }
    .aviso-contenido .container {
        border-radius: 0;
        padding: 28px 20px;
    }
    .aviso-contenido h1 {
        font-size: 28px;
    }
}

/* --- Formulario: mensaje de error debajo de cada campo --- */
.form-section .campo-error {
    display: block;
    margin: 6px 0 0 20px;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    color: #ffc2cd;
}
.form-section .campo-error:empty {
    display: none;
}
.form-section .cita-privacidad .campo-error {
    margin-left: 34px;
}

/* --- Formulario: ajustes visuales de la plantilla --- */
/* La plantilla pone Mayúscula En Cada Palabra a los textos de ayuda */
.form-section .form-control::placeholder {
    text-transform: none;
}
.form-section .form-control::-webkit-input-placeholder {
    text-transform: none;
}
/* Bootstrap agrega un ícono de error junto a la flecha del select: se deja solo la flecha */
.form-section .form-select.is-invalid {
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}
/* En tablet y celular, la aceptación del aviso va antes del botón de enviar */
@media (max-width: 1199px) {
    .form-section .cita-privacidad {
        order: 1;
    }
    .form-section .cita-boton {
        order: 2;
    }
}

/* --- Página 404 --- */
.pagina-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 35%, #ffffff 0%, #fdf2f8 55%, #f3e3ef 100%);
    padding: 30px 16px;
}
.error-404 {
    max-width: 560px;
    text-align: center;
}
.error-404__codigo {
    margin: 18px 0 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 96px;
    font-weight: 700;
    line-height: 1;
    color: #923578;
}
.error-404 h1 {
    margin: 10px 0 14px;
    font-size: 28px;
    color: #27477d;
}
.error-404__texto {
    color: #3a4560;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
}
.error-404__botones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.error-404__btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 50px;
    background: #923578;
    color: #fff;
    font-weight: 500;
    border: 2px solid #923578;
    transition: all 0.3s ease;
}
.error-404__btn:hover {
    background: #27477d;
    border-color: #27477d;
    color: #fff;
}
.error-404__btn--claro {
    background: transparent;
    color: #923578;
}
.error-404__enlaces {
    margin-top: 26px;
    font-size: 14px;
    color: #7a8299;
}
.error-404__enlaces a {
    color: #27477d;
    text-decoration: underline;
}
/* Página "Próximamente" (usa los mismos estilos de la 404) */
.proximamente__etiqueta {
    display: table;
    margin: 22px auto 0;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(146, 53, 120, 0.1);
    color: #923578;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
@media (max-width: 576px) {
    .error-404__codigo {
        font-size: 72px;
    }
    .error-404 h1 {
        font-size: 23px;
    }
}

/* --- Servicios: descripción de 3 líneas; el texto completo se ve en la ventana "Ver más" --- */
.specialist-slider .servicio-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    margin-bottom: 17px;
}
.specialist-slider .servicio-desc p {
    margin-bottom: 0;
}
.specialist-slider .servicio-nota {
    display: none; /* solo se muestra en la ventana */
}
.servicio-acciones {
    margin-top: auto;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.specialist-slider .servicio-acciones .specialist-btn {
    margin-top: 0;
}
.specialist-slider .servicio-acciones .specialist-btn,
.servicio-vermas {
    line-height: 22px;
}
.servicio-vermas {
    padding: 0;
    border: 0;
    background: none;
    color: #923578;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
}

/* --- Ventana con la información completa de un servicio --- */
.servicio-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
}
.servicio-modal .modal-header {
    align-items: flex-start;
    padding: 24px 26px 14px;
    border-bottom: 1px solid #f0e3ec;
}
.servicio-modal-x {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin: -6px -8px 0 auto;
    border: 0;
    border-radius: 50%;
    background: #f6eaf2;
    color: #923578;
    font-size: 18px;
    line-height: 36px;
    text-align: center;
    transition: all 0.3s ease;
}
.servicio-modal-x:hover {
    background: #923578;
    color: #fff;
}
.servicio-modal .modal-title {
    margin: 0;
    color: #27477d;
    font-size: 22px;
    line-height: 1.3;
}
.servicio-modal .modal-body {
    padding: 18px 26px;
}
.servicio-modal .modal-body p {
    color: #3a4560;
    font-size: 16px;
    line-height: 1.7;
}
.servicio-modal .modal-body .servicio-nota {
    display: block;
    font-size: 14px;
    font-style: italic;
    color: #6b7286;
}
.servicio-modal .modal-footer {
    padding: 14px 26px 22px;
    border-top: 0;
    gap: 10px;
}
.servicio-modal-cerrar {
    border: 0;
    background: none;
    color: #6b7286;
    font-weight: 500;
}
.servicio-modal-agendar {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 50px;
    background: #923578;
    color: #fff;
    font-weight: 500;
}
.servicio-modal-agendar:hover {
    background: #27477d;
    color: #fff;
}

/* --- Servicios: el ícono SVG ya trae su círculo morado y ocupa todo el círculo de la tarjeta --- */
.specialist-slider .specialist-img .icon-box {
    background-color: transparent;
}
.specialist-slider .specialist-img .icon-box img {
    display: block;
    width: 64px;
    height: 64px;
    transition: transform 0.3s ease;
}
.specialist-slider .specialist-card:hover .specialist-img .icon-box {
    background-color: transparent;
}
.specialist-slider .specialist-card:hover .specialist-img .icon-box img {
    transform: scale(1.08);
}

/* --- Paquetes: el ícono SVG ya trae su círculo morado y ocupa todo el círculo --- */
.service-tab-content .ser-img-nine .icon-box {
    background-color: transparent;
    line-height: 0;
}
.service-tab-content .ser-img-nine .icon-box img {
    display: block;
    width: 100%;
    height: 100%;
}
.service-tab-content .ser-img-nine .icon-box::before {
    color: #923578; /* el "+" decorativo, en el morado de la marca */
}

/* --- Paquetes: detalles de la plantilla en cian cambiados al morado de la marca --- */
#paquetes .title-area-four .sub-title8::before {
    background-image: url(../img/paquetes/plus.svg);
}
#paquetes .service-tabs .nav-tabs .nav-link:hover,
#paquetes .service-tabs .nav-link.active {
    background-color: #923578;
}
#paquetes .service-tab-content .ser-img-nine::before {
    border-color: #923578;
}
#paquetes .ser-list-nine li::before {
    background-color: #923578;
}
#paquetes .ser-btn-nine {
    border-bottom-color: #923578;
    transition: color 0.3s ease;
}
#paquetes .ser-btn-nine:hover {
    color: #923578;
}

/* --- Formulario: varios estudios ("+ Agregar otro estudio") --- */
.form-section .form-box-two .form-group .cita-agregar {
    /* la plantilla convierte todo botón del formulario en botón azul de ancho completo */
    width: auto;
    height: auto;
    line-height: 1.4;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    margin: 10px 0 0 18px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.form-section .form-box-two .form-group .cita-agregar:hover:not(:disabled) {
    color: #f2c4e5;
}
.form-section .form-box-two .form-group .cita-agregar:disabled {
    opacity: 0.6;
    text-decoration: none;
    cursor: not-allowed;
}
.form-section .cita-extras > .row {
    row-gap: 0;
}
.form-section .cita-extra-campo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-section .cita-extra-campo .form-select {
    flex: 1;
    min-width: 0;
}
.form-section .form-box-two .form-group .cita-quitar {
    padding: 0;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 16px;
    line-height: 38px;
    text-align: center;
    transition: all 0.3s ease;
}
.form-section .form-box-two .form-group .cita-quitar:hover {
    background: #923578;
    border-color: #923578;
}

/* --- Quién soy: etiqueta y teléfonos del recuadro de contacto --- */
.vs-about-wrapper .media-style1 .media-title {
    color: #923578;
}
.vs-about-wrapper .media-style1 .media-text {
    line-height: 1.35;
}
/* Un teléfono por renglón (la plantilla oculta los <br> en celular) */
.vs-about-wrapper .media-style1 .media-text a {
    display: block;
}

/* --- Paquetes en tablet y celular: la plantilla oculta la foto circular;
       aquí se muestra más pequeña, centrada y arriba del texto --- */
@media (max-width: 1199px) {
    #paquetes .service-tab-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    #paquetes .service-tab-content .ser-img-nine {
        display: block;
        order: -1;
        align-self: center;
        position: relative;
        top: auto;
        left: auto;
        width: 220px;
        height: 220px;
        margin: 12px auto 34px;
    }
    #paquetes .service-tab-content .ser-img-nine::before {
        top: -12px;
        left: -12px;
        width: 244px;
        height: 244px;
        border-width: 4px;
    }
    #paquetes .service-tab-content .ser-img-nine .icon-box {
        top: 4px;
        right: -22px;
        width: 72px;
        height: 72px;
    }
    #paquetes .service-tab-content .ser-img-nine .icon-box::before {
        top: -30px;
        right: -6px;
    }
}

/* --- Pie de página: la plantilla oculta todos los <br> en celular (< 768px) y se
       pegaban "Simancas" + "Diagnóstico" y los dos teléfonos; aquí se respetan --- */
@media (max-width: 767px) {
    .footer-wrapper br {
        display: inline;
    }
}
