/* --------------------------------*/
/* Estilo base del ícono */
.icono-flecha {
    transition: transform 0.3s ease;
}

/* Estilos del custom dropdown */

.custom-dropdown-menu {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    border: none;
    padding: 0.5rem 0.5rem;
}

.custom-dropdown-menu .dropdown-item {
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    color: #222;
    border-radius: 0.7rem;
    margin-bottom: 2px;
}

.custom-dropdown-menu .dropdown-item:hover,
.custom-dropdown-menu .dropdown-item:focus {
    /*background: linear-gradient(90deg, #e0f7fa 0%, #b2ebf2 100%);*/
    color: #0097a7;
    box-shadow: 0 2px 8px 0 rgba(0, 151, 167, 0.08);
}

.custom-dropdown-menu {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    font-size: 18px;
}

.custom-dropdown-menu .dropdown-item {
    padding: 0.5rem 1rem;
    color: #333;
}

.custom-dropdown-menu .dropdown-item:hover {
    background-color: #0b93a2;
    color: whitesmoke;
}

/* Oculta el caret que pone Bootstrap automáticamente */
.custom-dropdown-icon::after {
    display: none !important;
}

.nav-item.dropdown:hover .icono_abajo {
    display: none !important;
}

.nav-item.dropdown:hover .icono_arriba {
    display: inline !important;
}

/* Al hacer hover en el ítem del menú */
.nav-item.dropdown:hover .icono-flecha {
    transform: rotate(180deg);
}


@media (min-width: 992px) {
    .nav-item.dropdown .dropdown-menu {
        display: block;
        margin-top: 0px;
        max-height: 0px;
        overflow: hidden;
        opacity: 0;
        transition: margin-top 0.3s ease, max-height 0.3s ease, opacity 0.3s ease;
    }

    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0px;
        max-height: 500px;
        opacity: 1;

    }
}

@media (max-width: 991px) {
    .nav-item.dropdown .dropdown-menu {
        display: block;
        margin-top: 0px;
        max-height: 0px;
        overflow: hidden;
        padding: 0 !important;
        opacity: 0;
        transition: margin-top 0.3s ease, max-height 0.3s ease, opacity 0.3s ease;
    }

    .nav-item.dropdown .dropdown-menu.show {
        display: block;
        margin-top: 0px;
        max-height: 500px;
        opacity: 1;

    }

    .nav-item.dropdown .show .icono-flecha {
        transform: rotate(180deg);
    }
}


/* ----------------------------------------*/
/* reglas para el footer */
.footer-modern {
    font-size: 1.08rem;
    letter-spacing: 0.01em;
    background: linear-gradient(120deg, #f8fafc 0%, #e6ecf7 100%);
    /*box-shadow: 0 -2px 24px 0 rgba(0, 0, 0, 0.06);*/
    color: #222;
}

.footer-modern .footer-link {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-modern .footer-link:hover {
    color: #0097a7;
    text-decoration: underline;
}

.footer-modern .social-icons {
    display: flex;
    gap: 18px;
}

.footer-light-modern .footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 151, 167, 0.08);
    color: #0097a7;
    font-size: 1.3rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-light-modern .footer-social:hover {
    background: #0097a7;
    color: #fff;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 2px 8px 0 rgba(0, 151, 167, 0.13);
}

.footer-modern .footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 151, 167, 0.08);
    color: #0097a7;
    font-size: 1.3rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-modern .footer-social:hover {
    background: #0097a7;
    color: #fff;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 2px 8px 0 rgba(0, 151, 167, 0.13);
}

.footer-modern .footer-newsletter input[type="email"] {
    background: rgba(0, 0, 0, 0.03);
    color: #222;
}

.footer-modern .footer-newsletter input[type="email"]::placeholder {
    color: #6c757d;
    opacity: 1;
}

.footer-modern .footer-newsletter .btn-cian {
    background: #0097a7;
    color: #fff;
}

.footer-modern .footer-newsletter .btn-cian:hover {
    background: #007b8a;
}

@media (max-width: 767px) {
    .footer-modern .row>div {
        margin-bottom: 2rem;
    }

    .footer-modern .footer-newsletter .input-group {
        flex-direction: column;
    }

    .footer-modern .footer-newsletter input[type="email"],
    .footer-modern .footer-newsletter .btn-cian {
        border-radius: 20px !important;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ----------------------------------------*/
/* reglas para el boton de whatsapp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 28px;
    transition: transform 0.5s ease, background-color 0.5s ease;
    z-index: 3;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(0deg);
    background-color: rgb(10, 239, 94);
}


/* ----------------------------------------*/
/* reglas para el uso de vinculo servicios */

.vinculo-servicios {
    text-decoration: none;  /* sin subrayado */
    position: relative; /* Necesario para posicionar el pseudo-elemento */
    display: flex; /* el enlace es tratado como un bloque */
}
.vinculo-servicios h6 {
    margin: 0; /* sin margenes */
    color: #0b93a2;
    transition: color 0.3s ease-in-out;
}
.vinculo-servicios::after {
    content: ""; /* Crea el pseudo-elemento */
    position: absolute;
    bottom: 0; /* Coloca el borde en la parte inferior */
    /*left: 0; /* Comienza desde la derecha */
    width: 0; /* Inicialmente, el borde tiene un ancho de 0 */
    height: 2px; /* Altura del borde */
    background-color: #0b93a2;
    transition: width 0.5s ease-in-out;
    transform-origin: right; /* El origen de la transición es desde la derecha */
}
.tarjeta .vinculo-servicios::after {
    background: linear-gradient(135deg, #1fc0c7 0%, #4a5568 100%);
}
.vinculo-servicios:hover::after {
    width: 25%; /* Expande el borde hasta cubrir todo el ancho */
    transform-origin: left;
}
.card-footer .vinculo-servicios:hover::after {
    width: 40%;
    transform-origin: left;
}
.vinculo-servicios:hover h6 {
    /*color: #00bcd4;*/
}


