.navbar-brand .logo-empresa-blanco {
    height: 50px !important;
    width: auto !important;
    display: block;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

.navbar-nav .nav-link {
    position: relative;
    padding-bottom: 6px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}


/* Picture Banner */


/* picture banner */
/* Banner base */
.banner {
    width: 100%;
    height: 40vh; /* más elegante que 100vh en internas */
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 60%;
}

/* Parallax */
.banner-parallax {
    /* background-attachment: fixed; */
    background-position: center;
    will-change: background-position;    
}

/* Overlay */
.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(58, 49, 49, 0.86);
    z-index: 1;
}

/* Contenido centrado */
.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #f1e9e9;
}

/* Título */
.banner-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 5px;
    margin-top:10vh;
}

/* Breadcrumb */
.banner .breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
}

.banner .breadcrumb-item,
.banner .breadcrumb-item a {
    color: #f1e9e9;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.banner .breadcrumb-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .banner-parallax {
        background-attachment: scroll;
    }
}

/* Misión y Visión */
.seccion-prenosotros {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.seccion-misionvision {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}   

/* Mision y Vision  */

.duo-cards {
    position: relative;
    padding: 0 40px;
}

/* Línea vertical */
.divider {
    width: 2px;
    background: #ddd;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* Wrapper */
.card-flip-wrapper {
    height: 420px;
    perspective: 1200px;
    padding: 0 20px;
}

/* Card */
.card-flip {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    max-width: 520px;
    margin: 0 auto;    
}

/* Hover */
.card-flip-wrapper:hover .card-flip {
    transform: rotateY(180deg);
}

/* Caras */
.card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* 👈 clave */    
}

/* Frente */
.card-front {
    background-size: cover;
    background-position: center;
}

/* Reverso */
.card-back {
    background: #0f4186;
    color: #fff;
    transform: rotateY(180deg);

    display: flex;
    flex-direction: row;

    align-items: center;     /* 🔥 centra verticalmente TODO */
    justify-content: center;

    text-align: justify;
    gap: 30px;
}

.card-back p {
    max-width: 85%;
    margin: 0;

    display: flex;
    align-items: center;     /* 🔥 texto centrado verticalmente */
}


.card-back h3 {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);

    font-weight: 600;
    margin: 0;

    display: flex;
    align-items: center;     /* 🎯 centro vertical del propio texto */
    justify-content: center;

    letter-spacing: 2px;
    /* opacity: 0.9; */
    opacity: 1;

    color:#ffffff;
}

@media (max-width: 768px) {
    .card-back h3 {
        writing-mode: horizontal-tb;
        transform: none;
        margin-bottom: 10px;
    }

    .card-back {
        flex-direction: column;
    }
}

.imagen-nosotros img {
    width: 100%;
    height: 65vh;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}



/* Pestaña redes sociales */

/* SOLO PC */

@media (min-width: 992px) {

    .social-tab {
        position: fixed;
        left: 0px;     /* SIEMPRE desde el borde izquierdo */
        bottom: 40px;   /* SIEMPRE desde abajo */
        z-index: 99999;

        display: flex;
        align-items: center;

        background: #0f4186;
        color: #fff;

        border-radius: 0 10px 10px 0;
        overflow: hidden;
        border-right: 2px solid #1e62bd;
    }

    .social-label {
        writing-mode: vertical-rl;
        transform: rotate(180deg);

        padding: 14px 10px;
        font-size: 13px;
        letter-spacing: 1px;
        text-transform: uppercase;

        background: #0a2d5e;
        white-space: nowrap;
    }

    .social-icons {
        display: flex;
        flex-direction: column;
        gap: 14px;

        padding: 14px 18px;
        background: #0f4186;
    }

    .social-icons a {
        color: #fff;
        font-size: 18px;
    }

    .social-icons a:hover {
        transform: scale(1.15);
    }
}


/* Seccion Servicios */

.servicios-arbol {
    position: relative;
}

.servicios-arbol::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("../../assets/img/wm.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    opacity: 0.25;
    z-index: 0;
}

.servicios-arbol::after {
    content: "";
    position: absolute;
    inset: 0;

    /* background: rgba(0, 0, 0, 0.35);  */

    background: linear-gradient(
        rgba(255, 255, 255, 0.171),
        rgba(255, 255, 255, 0.164)
    );

    z-index: 1;
}


.servicios-arbol > * {
    position: relative;
    z-index: 2;
}



@media (max-width: 768px) {
    .card-back h3 {
        writing-mode: horizontal-tb;
        transform: none;
        margin-bottom: 10px;
    }

    .card-back {
        flex-direction: column;
    }

    .card-back p{
        flex-direction: column;
        font-size: 12px;
    }

    .card-back h3{
        margin-bottom: 5px;
    }

    .card-flip {
        height: 400px; /* móvil */
        width: 350px;
        margin-left: -25px;;
    }

    .card-flip-wrapper{
        margin-bottom: 20px;
    }

    .social-tab {
        display: none;
    }    

}

#mainNav {
    background: linear-gradient(90deg, #0a2f66 0%, #0f4186 40%, #1f7ae0 100%) !important;
    position: relative;
    opacity: 1 !important;
    transition: background 0.4s ease;
}

.bg-dark {
    background: linear-gradient(90deg, #0a2f66 0%, #0f4186 40%, #1f7ae0 100%) !important;
}

#mainNav:hover {
    background: linear-gradient(90deg, #0a2f66 0%, #0f4186 50%, #1f7ae0 100%) !important;
}