@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap");

body {
    font-family: "Montserrat", sans-serif;
    background-color: white !important;
    background: white !important;
}
.color-principal {
    background-color: #4a2342;
}
.mon-bol {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: #ffffff;
}
.logo {
    position: absolute;
    bottom: -20px;
    left: 0;
    height: 100px;
    z-index: 10;
    top: 0;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.5));
}
/* Espaciado entre items */
.navbar-nav {
    gap: 50px;
}
.navbar-nav .nav-item {
    margin: 0;
    position: relative; /* para posicionar la imagen */
    overflow: visible; /* permite que la imagen sobresalga sin recorte */
}

/* Imagen decorativa detrás del texto */
.nav-bg {
    position: absolute;
    top: 50%;
    left: 65%;
    height: 85px; /* alto del navbar */
    width: auto; /* ancho natural para no recortar */
    transform: translate(-50%, -50%);
    object-fit: contain;
    z-index: 0;
    pointer-events: none;
    opacity: 0; /* oculta por defecto */
    transition: opacity 0.25s ease, transform 0.3s ease;
}

/* Texto por encima */
.nav-link span {
    position: relative;
    z-index: 2; /* más alto que la imagen */
    transition: color 0.25s ease;
}

/* Mostrar imagen solo cuando está activo */
.nav-item.active .nav-bg {
    opacity: 1;
}

/* Color del texto cuando está activo */
.nav-item.active .nav-link span {
    color: #4a2342;
}

/* Hover en items NO activos → cambia solo el texto */
.nav-item:not(.active):hover .nav-link span {
    color: #701964;
}

/* Hover en item activo → zoom en la imagen */
.nav-item.active:hover .nav-bg {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Desactivar la imagen en hover si NO está activo */
.nav-item:not(.active):hover .nav-bg {
    opacity: 0;
}

:root {
    --nav-h: 70px;
} /* mismo alto que tu navbar inline */

.navbar-nav {
    gap: 60px;
}
.navbar-nav .nav-item {
    margin: 0;
    position: relative; /* contexto para bg e indicador */
    overflow: visible;
}

/* Runner (barra blanca animada detrás de todo) */
#navList {
    position: relative;
}
#navIndicator {
    position: absolute;
    top: 0;
    left: 0;
    height: var(--nav-h);
    width: 0;
    background: #fff;
    border-radius: 0;
    pointer-events: none;
    z-index: 1; /* 🔽 más al fondo que la imagen */
    transition: left 0.25s ease, width 0.25s ease;
}

/* Link + texto */
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    height: var(--nav-h);
    font-weight: 700;
    color: #fff !important;
    z-index: 1; /* texto encima de bg */
    overflow: visible;
}

/* Texto por encima siempre */
.nav-link span {
    position: relative;
    z-index: 2;
}

/* Solo la opción activa muestra imagen y texto oscuro */
.nav-item.active .nav-bg {
    opacity: 1;
}
.nav-item.active .nav-link span {
    color: #4a2342;
}

/* Hover en NO activos: solo cambia color de texto */
.nav-item:not(.active) .nav-link:hover span {
    color: #701964;
}

@media (max-width: 991.98px) {
    :root {
        --nav-h: 56px;
    } /* un poco más bajo en mobile */

    /* sin runner en móvil */
    #navIndicator {
        display: none;
    }

    /* panel del menú desplegado */
    .navbar {
        height: auto !important; /* ignora height inline = 70px */
        min-height: 70px;
        overflow: visible;
    }
    .navbar-collapse {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: inherit;
        padding-top: 40px !important; /* <-- pedido: padding arriba ~20px */
        padding-bottom: 0.5rem;
        text-align: center;
    }
    .navbar-collapse.show {
        max-height: 500px;
    }

    /* lista y links */
    .navbar-nav {
        gap: 4px;
        padding-top: 0.5rem;
        padding-bottom: 0.75rem;
    }
    .nav-link {
        height: auto;
        padding: 0.5rem 0.75rem;
        justify-content: flex-start;
    }
    /* pero en el ACTIVO, no mostrar la imagen y dejar solo texto blanco */
    .nav-item.active .nav-bg {
        display: none !important;
    }
    .nav-item.active .nav-link span {
        color: #1d091d !important;
    }
    /* Contenedor para posicionar */
    .lang-dropdown {
        position: relative;
    }

    /* menú de idiomas dentro del flow */
    .lang-dropdown .lang-menu {
        position: static !important;
        display: none; /* lo controla tu JS */
        margin-top: 0.25rem;
        background-color: #1d091d;
    }
}

/* Ajustes para laptops 1280x800 */
@media (max-width: 1280px) and (min-width: 1024px) {
    .navbar-nav {
        gap: 25px; /* reduce el espacio entre items */
    }

    .nav-link {
        padding: 0 20px; /* menos padding horizontal */
        font-size: 0.9rem; /* texto un poquito más compacto */
    }

    .nav-bg {
        height: 80px; /* más pequeño que los 85px por defecto */
        left: 60%; /* corrección de posición */
    }
}

/* Desktop: dropdown flotante correctamente posicionado por encima del navbar */
@media (min-width: 992px) {
    .lang-dropdown {
        position: relative;
    }
    .lang-dropdown .lang-menu {
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
        display: none; /* se controla con .show */
        min-width: 180px;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        padding: 0.25rem 0;
        z-index: 10; /* por encima del runner (z-index:1) */
    }
    .lang-dropdown .lang-menu.show {
        display: block;
    }

    .lang-menu .dropdown-item {
        display: flex;
        align-items: center;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
    }
}

/* Mobile: menú de idiomas dentro del flujo del colapso */
@media (max-width: 991.98px) {
    .lang-dropdown .lang-menu {
        position: static !important;
        display: none; /* se controla con .show */
        margin-top: 0.25rem;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    .lang-dropdown .lang-menu.show {
        display: block;
    }
}
/* Estilo tipo "pill" compartido con el botón de idioma */
.lang-btn,
.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    line-height: 1;
    transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease,
        transform 0.15s ease;
}

/* El login hereda el alto de nav-link; lo ajustamos para que sea pill */
.login-btn {
    height: auto; /* override del height de .nav-link */
    align-self: center; /* centrado vertical dentro del navbar */
}

/* Hover/focus como el de idioma */
.lang-btn:hover,
.lang-btn:focus-visible,
.login-btn:hover,
.login-btn:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    color: #fff !important;
    text-decoration: none;
}

/* Feedback al icono */
.login-btn i {
    transition: color 0.2s ease, transform 0.15s ease;
}
.login-btn:hover i,
.login-btn:focus-visible i {
    color: #fff;
    transform: translateY(-1px);
}

/* Estado activo (click) */
.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

/* Mobile: se comporta igual sin romper layout vertical */
@media (max-width: 991.98px) {
    .login-btn {
        width: auto;
        padding: 0.4rem 0.75rem;
    }
}

/* Mantén tus reglas previas (altura, centrado, etc.) */

/*-----carrusel css-----*/
.carousel-item img {
    display: block;
    width: 100%;
    height: 75vh;
    object-fit: cover;
}
.carousel-item {
    background-color: transparent !important;
}

.custom-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}
.custom-track {
    display: flex;
    width: 100%;
    transform: translateX(0);
    transition: transform 600ms ease-in-out;
    will-change: transform;
}
.custom-slide {
    flex: 0 0 100%;
    position: relative;
}
.custom-slide img {
    display: block;
    width: 100%;
    height: 75vh;
    object-fit: cover;
    background: transparent;
}

/* Controles */
.custom-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #4a2342;
    font-size: 48px;
    cursor: pointer;
    z-index: 5;
    padding: 0;
    line-height: 1;
    user-select: none;
}
.custom-control.prev {
    left: 12px;
}
.custom-control.next {
    right: 12px;
}

/* Bolitas (dots) */
.custom-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}
.custom-dots button {
    width: 10px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}
.custom-dots button.active {
    background: #4a2342;
}

/* Texto en la derecha (por defecto) */
.custom-caption {
    position: absolute;
    top: 55%;
    left: 52%;
    transform: translateY(-50%);
    text-align: left;
    z-index: 3;
    padding: 20px;
    max-width: 40%;
}
/* Texto en la izquierda */
.custom-caption.left-caption {
    left: 10%;
    text-align: left;
}
.caption-title-left {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    color: #701964;
    text-align: left;
}
.custom-slide::before {
    content: none;
}

/* Título */
.caption-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    color: #701964;
    text-align: right;
}

/* Línea decorativa */
.caption-line {
    width: 100%;
    height: 2px;
    background: #701964;
    margin: 12px 0;
    border-radius: 2px;
}

/* Texto descriptivo */
.caption-text {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #634c64;
    text-align: right;
    line-height: 1;
}

.caption-text-left {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #634c64;
    text-align: left;
    line-height: 1;
}

/* Ajustes para laptops 1280x800 */
@media (max-width: 1280px) and (min-width: 1024px) {
    .custom-caption {
        top: 55%; /* baja un poco el bloque */
        left: 50%; /* centrado relativo */
        max-width: 45%; /* un poco más ancho para aprovechar espacio */
        padding: 15px; /* menos padding */
    }

    /* Texto título */
    .caption-title,
    .caption-title-left {
        font-size: 2.4rem; /* más compacto que 3rem */
    }

    /* Texto descriptivo */
    .caption-text,
    .caption-text-left {
        font-size: 1.1rem; /* más compacto que 1.4rem */
        line-height: 1.2;
    }

    /* Línea decorativa más proporcionada */
    .caption-line {
        margin: 8px 0;
    }
}

/* ===== Estilos móviles ===== */
@media (max-width: 768px) {
    .custom-caption,
    .custom-caption.left-caption {
        position: absolute;
        top: 70%;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        text-align: center !important;
        width: 100% !important; /* 🔥 ancho total */
        max-width: 80% !important; /* 🔥 forzar sin límite */
        padding: 0 8px !important; /* 🔥 solo 8px a los costados */
        box-sizing: border-box; /* asegura que padding no rompa */
    }

    .caption-title,
    .caption-text,
    .caption-title-left,
    .caption-text-left {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .caption-title,
    .caption-title-left {
        font-size: 1rem;
        font-weight: 900;
        margin-bottom: 8px;
        text-align: center;
    }

    .caption-text,
    .caption-text-left {
        font-size: 0.55rem;
        font-weight: 500;
        line-height: 1.3;
        margin-bottom: 10px;
        text-align: center;
    }

    .btn-pri {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .custom-control {
        font-size: 28px;
        color: #fff;
    }

    .custom-dots button {
        background: rgba(255, 255, 255, 0.5);
    }
    .custom-dots button.active {
        background: #4a2342;
    }
}

/*----fin del css del carrusel----*/

/* Botón principal (también usado en el carrusel) */
.btn-pri {
    display: inline-block;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px; /* más redondeado */
    min-width: 150px; /* ancho mínimo */
    text-align: center;
    background-color: #701964;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-pri:hover {
    background-color: #fff;
    color: #701964;
    border: 1px;
    border-color: #fff;
}
.btn-pri:focus,
.btn-pri:active {
    background-color: #fff;
    color: #701964;
    border-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(88, 42, 81, 0.5);
}

/* Botón secundario invertido */
.btn-pri-sec {
    display: inline-block;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px; /* más redondeado */
    min-width: 150px; /* ancho mínimo */
    text-align: center;
    background-color: #fff;
    color: #701964;
    border: 1px solid #701964;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-pri-sec:hover {
    background-color: #3e1f3b;
    color: #fff;
    border-color: #3e1f3b;
}

.btn-pri-sec:focus,
.btn-pri-sec:active {
    background-color: #3e1f3b;
    color: #fff;
    border-color: #3e1f3b;
    box-shadow: 0 0 0 0.2rem rgba(218, 200, 215, 0.5);
}

/* Responsive general */
@media (max-width: 768px) {
    .custom-slide img {
        height: 60vh;
    }
}
@media (max-width: 768px) {
    .cont-mov {
        padding-left: 40px;
        padding-right: 40px !important;
        padding-bottom: 10px !important;
        padding-top: 10px !important;
    }
}
/* fin responsivo general */

/*======colores====*/
.color-deg-ver {
    background: linear-gradient(
        to bottom,
        #4a2342 0%,
        #55254c 15%,
        #701964 30%,
        #6a3e6a 45%,
        #634c64 55%,
        #5d3a60 70%,
        #603156 80%,
        #4a193e 90%,
        #360936 95%,
        #1d091d 100%
    );
}
.color-deg-hor {
    background: linear-gradient(to right, #603156, #360936);
}
/*======colores======*/

/**/
/*contenido reutilizable*/

.card-titulo {
    background-color: #fff; /* fondo blanco */
    color: #701964; /* color de texto */
    font-weight: 800; /* bold 800 */
    font-size: 2.1rem;
    border-bottom-right-radius: 60px; /* borde redondeado inferior derecho */
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.55); /* sombra derecha y abajo */
    padding: 16px; /* espacio interno */
    min-width: 100px; /* mínimo ancho */
    width: 100%;
    max-width: 600px;
}

.card-contenido {
    position: relative;
    background-color: #4a2342;
    color: #fff;
    border-bottom-right-radius: 80px;
    padding: 40px;
    min-width: 100px;
    min-height: 100px;
    width: 100%;
    max-width: 570px;
}

.card-contenido::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 25px;
    min-width: 100px;
    width: 100%;
    max-width: 700px;
    min-height: 100px;
    height: 100%;
    background-color: #fff;
    border-bottom-right-radius: 80px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.55);
    z-index: -1; /* queda debajo dentro del mismo contexto */
}

/* Ajustes para laptops 1280x800 */
@media (max-width: 1280px) and (min-width: 1024px) {
    .card-titulo {
        font-size: 1.8rem; /* más compacto que 2.1rem */
        padding: 12px; /* menos padding */
        max-width: 500px; /* reduce ancho máximo */
        border-bottom-right-radius: 50px;
    }

    .card-contenido {
        padding: 28px; /* menos padding interno */
        max-width: 480px; /* más compacto */
        border-bottom-right-radius: 65px;
    }

    .card-contenido::before {
        top: 15px;
        left: 18px;
        max-width: 600px;
        border-bottom-right-radius: 65px;
    }
}

/* ===== Estilos móviles ===== */
@media (max-width: 768px) {
    .card-titulo {
        font-size: 1rem; /* 🔥 más pequeño en móviles */
        text-align: center; /* centrado */
        margin-bottom: -10px;
    }

    .card-contenido {
        padding: 20px; /* 🔥 menos padding */
        font-size: 0.9rem; /* 🔥 texto más chico */
        min-height: auto; /* que se ajuste al contenido */
    }

    .card-contenido::before {
        top: 5px;
        left: 5px;
    }
}
/*====== contenido reutilizable de card de texto=======*/

/*===== texto banner ======*/
.text-overlay {
    width: 64%; /* Solo la mitad izquierda */
    padding-left: 150px; /* Espacio extra a la izquierda */
}

.text-overlay h3 {
    line-height: 1.4; /* aumenta el espaciado vertical */
    font-size: 2.2rem;
}

.text-overlay-right {
    width: 64%; /* Solo la mitad izquierda */
    padding-right: 150px; /* Espacio extra a la izquierda */
    text-align: right;
}

.text-overlay-right h3 {
    line-height: 1.4; /* aumenta el espaciado vertical */
    font-size: 2.2rem;
}

/* Ajustes para laptops 1280x800 */
@media (max-width: 1280px) and (min-width: 1024px) {
    .text-overlay{
        padding-left: 100px;
    }
    .text-overlay-right {
        width: 60%; /* un poco más ancho para equilibrar */
        padding-left: 80px; /* reduce padding lateral */
        padding-right: 80px;
    }

    .text-overlay h3,
    .text-overlay-right h3 {
        font-size: 1.8rem; /* más compacto que 2.2rem */
        line-height: 1.3; /* menos espacio vertical */
        width: 85%;
    }
}

/* ===== Estilos móviles ===== */
@media (max-width: 768px) {
    .text-overlay {
        margin-top: 80px;
        width: 100%; /* ocupa todo el ancho */
        top: 50%; /* centrado vertical */
        left: 50%; /* 🔥 centrado horizontal */
        transform: translate(-50%, -50%); /* centra bien */
        text-align: center; /* centrar el texto */
        padding: 0 10px; /* espacio a los lados */
    }

    .text-overlay h3 {
        font-size: 1rem; /* texto más pequeño */
        line-height: 1.4; /* ajusta el espaciado */
    }

    .text-overlay-right {
        margin-top: 80px;
        width: 100%; /* ocupa todo el ancho */
        top: 50%; /* centrado vertical */
        right: 50%; /* 🔥 centrado horizontal */
        transform: translate(-50%, -50%); /* centra bien */
        text-align: center !important; /* centrar el texto */
        padding: 0 10px; /* espacio a los lados */
    }

    .text-overlay-right h3 {
        font-size: 1rem; /* texto más pequeño */
        line-height: 1.4; /* ajusta el espaciado */
    }
}
/*======= fin texto banner =======*/

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #fff;
    color: #701964;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.icon-circle:hover {
    background-color: #701964;
    color: #fff;
}

/*=====foooterr ====*/

@media (max-width: 768px) {
    footer {
        font-size: 0.8rem; /* texto más pequeño */
    }

    /* Ocultar texto de redes sociales en móviles */
    footer .social-text {
        display: none !important;
    }

    /* Hacer que los contenedores de iconos estén en fila */
    footer .col-md-8 .d-flex.flex-column {
        flex-direction: row !important;
        justify-content: center;
        gap: 12px;
    }

    /* Ajustamos los iconos */
    footer .icon-circle {
        font-size: 1rem;
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 50%;
    }

    /* Centrar iconos en fila */
    footer .col-md-8 .d-flex {
        justify-content: center;
        gap: 12px;
    }

    /* Imagen ocupa toda la columna izquierda */
    footer .col-md-4 img {
        width: 100% !important;
        height: auto;
        display: block;
    }

    /* Ocultar el menú en móviles */
    footer .col-md-8 ul {
        display: none !important;
    }

    /* Quitar línea divisoria entre columnas */
    footer .border-end {
        border: none !important;
    }

    /* Mantener 2 columnas (imagen + redes) */
    footer .col-md-4,
    footer .col-md-8 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Texto de derechos más pequeño */
    footer p {
        font-size: 0.7rem;
        margin-top: 10px;
        text-align: center;
    }
}

/*===================================*/
/*=========nosotros================*/

.titulo-sub {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: #701964;
    text-align: center;
    display: inline-block; /* centra el subrayado solo al texto */
}

.titulo-sub::after {
    content: "";
    display: block;
    width: 100%; /* ancho de la línea (ajustable) */
    height: 4px; /* grosor de la línea */
    background-color: #701964; /* mismo color del texto */
    margin: 8px auto 0; /* centrado debajo del texto */
    border-radius: 2px; /* bordes redondeados opcionales */
}

.titulo-sub-sec {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: white;
    text-align: center;
    display: inline-block; /* centra el subrayado solo al texto */
}

.titulo-sub-sec::after {
    content: "";
    display: block;
    width: 100%; /* ancho de la línea (ajustable) */
    height: 4px; /* grosor de la línea */
    background-color: white; /* mismo color del texto */
    margin: 8px auto 0; /* centrado debajo del texto */
    border-radius: 2px; /* bordes redondeados opcionales */
}
.caption-text-just {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: #634c64;
    text-align: justify;
    line-height: 1.2;
    padding-left: 3rem; /* equivale a px-5 */
    padding-right: 3rem;
}

/* 🔥 En dispositivos pequeños (menor a 768px) quitamos el padding */
@media (max-width: 768px) {
    .caption-text-just {
        padding-left: 1.4rem !important;
        padding-right: 1.4rem !important;
        font-size: 1rem;
    }

    .titulo-sub {
        font-size: 1.5rem;
        font-weight: 800;
    }
}

.w-85 {
    width: 85% !important;
}

.border-start,
.border-end {
    border-color: #701964 !important; /* tu color */
    border-width: 3px !important; /* grosor */
}

/*============================================*/
/*============= servicio =====================*/
/*============================================*/

.fondo-servicio {
    min-height: 100vh; /* toda la altura de la pantalla */
    width: 100%;
    background: linear-gradient(
        to bottom,
        #603156 0%,
        #360936 35%,
        #603156 60%,
        #360936 85%,
        #603156 100%
    );
    color: #fff; /* para que el texto sea legible */
    top: 0;
}

/**/
/*contenido reutilizable servicios*/

.card-titulo-ser {
    background-color: #fff; /* fondo blanco */
    color: #701964; /* color de texto */
    font-weight: 800; /* bold 800 */
    font-size: 2.1rem;
    border-bottom-right-radius: 60px; /* borde redondeado inferior derecho */
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.55); /* sombra derecha y abajo */
    padding: 16px; /* espacio interno */
    min-width: 100px; /* mínimo ancho */
    width: 100%;
    max-width: 600px;
}

.card-contenido-ser {
    position: relative;
    background-color: #1d091d;
    color: #fff;
    border-bottom-right-radius: 80px;
    padding: 40px;
    min-width: 100px;
    min-height: 100px;
    width: 100%;
    max-width: 500px !important;
}
.card-contenido-ser::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 25px;
    min-width: 100px;
    width: 100%;
    max-width: 600px !important;
    min-height: 100px;
    height: 100%;

    border-bottom-right-radius: 80px;
    z-index: -1;

    /* 🔥 borde degradado simulando plateado */
    background: linear-gradient(to right, #555, #eee, #aaa);

    /* hacemos que solo se vea como borde */
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    padding: 3px; /* grosor del borde */
    background-clip: border-box;
    box-sizing: border-box;
}

/* Ajustes para laptops 1280x800 */
@media (max-width: 1280px) and (min-width: 1024px) {
    .card-titulo-ser {
        font-size: 1.8rem; /* más compacto que 2.1rem */
        padding: 12px; /* menos padding */
        max-width: 440px; /* reduce ancho máximo */
        border-bottom-right-radius: 50px;
    }

    .card-contenido-ser {
        padding: 28px; /* reduce espacio interno */
        max-width: 420px !important; /* más angosto que 500px */
        border-bottom-right-radius: 65px;
    }

    .card-contenido-ser::before {
        top: 15px;
        left: 18px;
        max-width: 520px !important;
        border-bottom-right-radius: 65px;
        padding: 2px; /* borde degradado más fino */
    }
}

/* ===== Estilos móviles ===== */
@media (max-width: 768px) {
    .card-titulo-ser {
        font-size: 1rem; /* 🔥 más pequeño en móviles */
        text-align: center; /* centrado */
        margin-bottom: -10px;
    }

    .card-contenido-ser {
        padding: 20px; /* 🔥 menos padding */
        font-size: 0.9rem; /* 🔥 texto más chico */
        min-height: auto; /* que se ajuste al contenido */
    }

    .card-contenido-ser::before {
        top: 5px;
        left: 5px;
    }
}

/*==========================================*/
/*========== acordeon ======================*/
/*==========================================*/
.accordion {
    border: 1px solid white;
    border-radius: 6px;
    overflow: hidden;
    width: 100%; /* ocupa todo el ancho */
    margin: 40px auto;
    border-bottom-right-radius: 80px;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    color: white;
    font-weight: bold;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
}

.accordion-content.open {
    padding: 20px;
}

/*==================================*/
/*=========== card personalizado====*/
/*==================================*/

.card-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* 🔹 Borde plateado detrás */
.card-borde {
    position: absolute;
    top: 20px; /* desplazamiento hacia abajo */
    left: 25px; /* desplazamiento a la derecha */
    width: 100%;
    max-width: 900px; /* mismo ancho que la card */
    min-width: 300px;
    height: 100%;
    min-height: 100px;

    border-radius: 80px 0 80px 0;
    border: 3px solid transparent;

    background: linear-gradient(to right, #555, #eee, #aaa) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    z-index: 0; /* detrás */
}

/* 🔹 Card principal */
.card-per {
    position: relative;
    background: #1d091d;
    border-radius: 80px 0 80px 0;
    color: white;
    padding: 20px;
    min-width: 300px;
    min-height: 100px;
    width: 100%;
    max-width: 900px;
    z-index: 1; /* encima */
    margin: 0 auto; /* centrado */
}

/* 🔹 Header de la card */
.card-header-per {
    margin-bottom: 20px;
    text-align: left;
}

.card-titulo-con {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 70px 0 70px 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: #701964;
    background-color: white;
    min-width: 100px;
    max-width: 420px;
}

/* 🔹 Labels */
.text-form {
    text-align: left;
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 🔹 Inputs */
.card-per .form-control {
    border: 2px solid #701964;
    border-radius: 30px;
    font-size: 0.95rem;
    padding: 6px 15px;
    color: #1d091d;
}

/* Placeholder */
.card-per .form-control::placeholder {
    color: #999;
}

/* Efecto focus */
.card-per .form-control:focus {
    border-color: #701964;
    box-shadow: 0 0 5px rgba(112, 25, 100, 0.5);
}

/* 🔹 Responsive */
@media (max-width: 992px) {
    .card-per,
    .card-borde {
        max-width: 700px; /* tablets */
    }
}

@media (max-width: 768px) {
    .card-per {
        max-width: 100%; /* ocupa casi todo el ancho */
        min-width: auto;
        border-radius: 50px 0 50px 0; /* esquinas más suaves */
        padding: 15px;
    }
    .card-borde {
        top: 10px; /* desplazamiento hacia abajo */
        left: 15px; /* desplazamiento a la derecha */
        width: 90%;
    }

    .card-titulo-con {
        font-size: 1.2rem !important;
        min-width: auto;
        padding: 8px 15px;
        text-align: center;
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .card-per,
    .card-borde {
        max-width: 100%;
        border-radius: 30px 0 30px 0;
        padding: 12px;
    }

    .card-titulo-con {
        font-size: 1rem !important;
        padding: 6px 12px;
    }
}

.img-con {
    background-image: url("/recursos/fondoderecha.png"); /* tu PNG */
    background-repeat: no-repeat; /* no repetir la imagen */
    background-position: right; /* ubicarla a la derecha centrada */
    background-size: auto 100%; /* ajusta el tamaño, alto relativo al contenedor */
}

.img-fondo-derecha {
    position: absolute; /* lo sacamos del flujo */
    top: 35%;
    bottom: 0;
    right: 0;
    height: 40%; /* que ocupe toda la altura disponible */
    width: 70%;
    background: url("/recursos/fondoderecha.png") no-repeat center right;
    background-size: contain; /* ajusta proporción sin deformar */
    pointer-events: none; /* no bloquea clics */
    z-index: 0; /* detrás del contenido */
}

/*==================*/
/*==select==========*/

/* 🔹 Select personalizado para idiomas */
/* Botón principal */
/* Botón idioma */
.lang-btn {
    display: inline-block;
    color: white !important;
    font-weight: 600;
    border-radius: 30px;
    background: #4a2342;
    padding: 6px 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}
.lang-btn:hover {
    background: #701964;
    color: #fff !important;
}

/* Menú oculto */
.lang-menu {
    display: none; /* 👈 oculto por defecto */
    position: absolute;
    margin-top: 8px;
    background: #1d091d;
    border: 2px solid #701964;
    border-radius: 15px;
    padding: 8px 0;
    list-style: none;
    min-width: 160px;
    z-index: 2000;
}

/* Items del menú */
.lang-menu .dropdown-item {
    display: block;
    padding: 8px 15px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
}
.lang-menu .dropdown-item:hover {
    background: #701964;
    color: #fff;
}

/*======================*/
/*======texto encima======*/

/* Estilo base de todos los textos */
.overlay-text-ser {
    position: absolute;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    line-height: 1;
    white-space: nowrap;
}

/* Contenedor con variables (valores por defecto) */
.ser-hero {
    --left-top-top: 40%;
    --left-top-left: 45px;

    --top-right-top: 10%;
    --top-right-right: 80px;

    --bottom-right-bottom: 38%;
    --bottom-right-right: 60px;
}

/* Posiciones usando variables */
.overlay-left {
    top: var(--left-top-top);
    left: var(--left-top-left);
}

.overlay-top-right {
    top: var(--top-right-top);
    right: var(--top-right-right);
}

.overlay-bottom-right {
    bottom: var(--bottom-right-bottom);
    right: var(--bottom-right-right);
}

/* Ajustes personalizados por bloque */
.ser-1 {
    --left-top-top: 40%;
    --left-top-left: 45px;

    --top-right-top: 10%;
    --top-right-right: 80px;

    --bottom-right-bottom: 38%;
    --bottom-right-right: 60px;
}

.ser-2 {
    --left-top-top: 34%;
    --left-top-left: 55px;

    --top-right-top: 13%;
    --top-right-right: 75px;

    --bottom-right-bottom: 35%;
    --bottom-right-right: 80px;
}

.ser-3 {
    --left-top-top: 36%;
    --left-top-left: 75px;

    --top-right-top: 15%;
    --top-right-right: 100px;

    --bottom-right-bottom: 33%;
    --bottom-right-right: 58px;
}

.ser-4 {
    --left-top-top: 38%;
    --left-top-left: 60px;

    --top-right-top: 19%;
    --top-right-right: 85px;

    --bottom-right-bottom: 37%;
    --bottom-right-right: 65px;
}

.ser-5 {
    --left-top-top: 29%;
    --left-top-left: 8%;

    --top-right-top: 23%;
    --top-right-right: 70px;

    --bottom-right-bottom: 25%;
    --bottom-right-right: 62px;
}

/*@media (max-width: 577px) {
    .overlay-text-ser {
        font-size: 0.50rem;
        position: absolute;
    }
    .ser-hero {
        --left-top-left: 6vw;
        --top-right-right: 2vw;
        --bottom-right-right: 8vw;
    }

    .ser-1 {
        --left-top-top: 32%;
        --left-top-left: 6vw;

        --top-right-top: 8%;
        --top-right-right: 7vw;

        --bottom-right-bottom: 74%;
        --bottom-right-right: 7vw;
    }

    .ser-2 {
        --left-top-top: 42%;
        --left-top-left: 8vw;

        --top-right-top: -2%;
        --top-right-right: 6vw;

        --bottom-right-bottom: 80%;
        --bottom-right-right: 8vw;
    }

    .ser-3 {
        --left-top-top: 40%;
        --left-top-left: 10vw;

        --top-right-top: 12%;
        --top-right-right: 10vw;

        --bottom-right-bottom: 28%;
        --bottom-right-right: 7vw;
    }

    .ser-4 {
        --left-top-top: 44%;
        --left-top-left: 11vw;

        --top-right-top: 14%;
        --top-right-right: 8vw;

        --bottom-right-bottom: 30%;
        --bottom-right-right: 8vw;
    }

    .ser-5 {
        --left-top-top: 36%;
        --left-top-left: 9vw;

        --top-right-top: 16%;
        --top-right-right: 9vw;

        --bottom-right-bottom: 24%;
        --bottom-right-right: 8vw;
    }
}*/

/* MOBILE a tablet: <= 768px */
@media (max-width: 769px) {
    .overlay-text-ser {
        /* más pequeño en móvil, pero legible */
        font-size: 0.8rem;
        max-width: 70%; /* para que no desborde */
        position: absolute;
    }

    /* Defaults móviles (si no pones override por bloque, usarán estos) */
    .ser-hero {
        --left-top-left: 6vw;
        --top-right-right: 2vw;
        --bottom-right-right: 8vw;
    }

    /* Overrides finos POR BLOQUE (ajústalos mirando el resultado real) */
    .ser-1 {
        --left-top-top: 38%;
        --left-top-left: 6vw;

        --top-right-top: 8%;
        --top-right-right: 7vw;

        --bottom-right-bottom: 38%;
        --bottom-right-right: 6vw;
    }

    .ser-2 {
        --left-top-top: 32%;
        --left-top-left: 8vw;

        --top-right-top: 11%;
        --top-right-right: 6vw;

        --bottom-right-bottom: 35%;
        --bottom-right-right: 8vw;
    }

    .ser-3 {
        --left-top-top: 34%;
        --left-top-left: 8vw;

        --top-right-top: 12%;
        --top-right-right: 12vw;

        --bottom-right-bottom: 34%;
        --bottom-right-right: 5vw;
    }

    .ser-4 {
        --left-top-top: 36%;
        --left-top-left: 8vw;

        --top-right-top: 17%;
        --top-right-right: 8vw;

        --bottom-right-bottom: 36%;
        --bottom-right-right: 5vw;
    }

    .ser-5 {
        --left-top-top: 28%;
        --left-top-left: 4vw;

        --top-right-top: 20%;
        --top-right-right: 6vw;

        --bottom-right-bottom: 24%;
        --bottom-right-right: 8vw;
    }
}

/*=================================*/
/*=========ayuda===================*/

.fondo-botones {
    background: linear-gradient(to right, #4a2342, #701964, #b5a6b1, #ffffff);
    min-height: 10%;
    max-height: 30%;
    width: 100%;
    position: relative;
    overflow-x: hidden; /* 🔹 evita el desbordamiento horizontal */
    overflow-y: auto; /* 🔹 permite scroll vertical si hace falta */
    margin: 0;
}

@media (max-width: 768px) {
    .fondo-botones {
        background: linear-gradient(
            to bottom,
            #4a2342,
            #701964,
            #b5a6b1,
            #ffffff
        );
    }
}

/*==========================*/
/*=========modal cliente=====*/

.custom-modal {
    border-radius: 60px 0 60px 0;
    background-color: #1d091d;
}

.custom-modal .modal-body,
.custom-modal .modal-footer {
    background-color: #1d091d;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2); /* líneas suaves */
    border-radius: 60px 0 60px 0;
}

.custom-modal .modal-header {
    border-radius: 60px 0 60px 0;
    background-color: white;
    color: #701964 !important;
}

.custom-modal .modal-header .modal-title {
    color: #701964 !important;
    font-weight: bold;
    padding-left: 10px;
}

.custom-modal .modal-title {
    color: #fff;
}

.custom-modal p {
    color: #fff;
}

/* 🔹 Inputs */
.custom-modal .form-control {
    border: 2px solid #701964;
    border-radius: 30px;
    font-size: 0.95rem;
    padding: 6px 15px;
    color: #1d091d;
}

/* Placeholder */
.custom-modal .form-control::placeholder {
    color: #999;
}

/* Efecto focus */
.custom-modal .form-control:focus {
    border-color: #701964;
    box-shadow: 0 0 5px rgba(112, 25, 100, 0.5);
}

/* Ocultar banner/iframe superior de Google */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}
body {
    top: 0 !important;
}
body > .skiptranslate {
    display: none !important;
}
body > iframe.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

/* Limpieza del gadget dentro del dropdown */
#google_translate_element .goog-te-gadget {
    font-size: 0 !important;
}
#google_translate_element .goog-te-gadget .goog-te-combo {
    font-size: 14px !important;
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
}
#google_translate_element img.goog-te-gadget-icon {
    display: none !important;
}

/*=============================================*/
/*================mapa========================*/

.map-container {
    width: 100%;
    height: 110px;
    border-radius: 40px 0 40px 0; /* arriba izq y abajo der */
    overflow: hidden;
}
/* Pantallas medianas (tablets) */
@media (max-width: 992px) {
    .map-container {
        height: 80px;
        border-radius: 35px;
    }
}

/* Pantallas pequeñas (celulares) */
@media (max-width: 576px) {
    .map-container {
        height: 50px;
        border-radius: 25px;
    }
}

/*=========================================*/
/*==========subtitulos=====================*/

/* Texto normal */
.nav-tabs .nav-link {
    color: #333; /* o el color que quieras por defecto */
}

/* Texto cuando está activa */
.nav-tabs .nav-link.active {
    color: #701964 !important;
    font-weight: bold; /* opcional, para resaltar más */
}

#vert-tabs-tab .nav-link {
    border-top-left-radius: 50px;
    border-bottom-right-radius: 50px;
}
