/* HERO VIDEO */
.hero {
    width: 100vw;
    height: 91vh;
    overflow: hidden;
    position: relative;
}

.hero video {
    margin-top: -110px;
    width: 100%;
    height: 120%;
    object-fit: cover;
}


/* Overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.6); /* 60% */
    z-index: 1;
}

/***************************************************************** TEXTO */


.hero-text-carousel {
    position: absolute;
    top: 50%;
    left: 6vw;
    transform: translateY(-50%);
    z-index: 5;
    width: 70%;
    max-width: 900px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* TIPOGRAFÍA */
.hero-slide h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #1c1c1c;
}

.hero-slide p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1.2rem;
}

/* ANIMACIONES */
.slide-left {
    animation: slideLeft 0.9s ease forwards;
}

.slide-up {
    animation: slideUp 0.9s ease forwards;
}

.slide-fade {
    animation: fadeIn 1s ease forwards;
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-20px) translateY(30px); }
    to { opacity: 1; transform: translateX(0) translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



/****************************************************************** FIN */
/* NAVBAR INICIAL (TRANSPARENTE) */
#mainNav {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    background-color: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

/* NAVBAR AL HACER SCROLL */
/* #mainNav.scrolled {
    background-color: rgba(0, 0, 0, 0.995);
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
} */
#mainNav.scrolled {
    /* Degradado horizontal: de tu azul ancla a un azul un poco más profundo/vibrante */
    background: linear-gradient(90deg, #0f4186 0%, #1e62bd 100%) !important;
    
    /* Ajustamos la sombra para que sea azulada y no negra, así se ve más premium */
    box-shadow: 0 4px 15px rgba(15, 65, 134, 0.4);
    
    transition: background 0.4s ease;
}

#mainNav.scrolled .nav-link {
    color: #e6f0ff; /* celeste muy claro / casi blanco */
}

#mainNav.scrolled .nav-link:hover {
    color: #6fa8ff; /* azul elegante, consistente con tu footer */
}

#mainNav.scrolled .nav-link.active {
    color: #ffffff;
}

#mainNav.scrolled .nav-link::after {
    background-color: #6fa8ff;
}

#mainNav.scrolled .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

#mainNav.scrolled .navbar-toggler-icon {
    filter: brightness(2);
}


/* LOGO */
.logo {
    height: 100px;
    width: auto;
    transition: height 0.35s ease; 
}


/* Asegura que el contenido no quede tapado */
.content {
    margin-top: 100px;
}

.navbar {
    font-family: 'Inter', sans-serif;
}

.navbar .nav-link {
    color: #1c1c1c;        /* negro elegante */
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
}

.navbar .nav-link:hover {
    color: #163aa3;
}

.navbar .nav-link {
    font-weight: 700;
}


.hero-slide h1,
.hero-slide p,
.hero-slide a {
    opacity: 0;
    transform: translateX(-40px);
}


.hero-slide.active h1 {
    animation: titleIn 0.8s ease-out forwards;
}

.hero-slide.active p {
    animation: textIn 0.8s ease-out forwards;
    animation-delay: 0.25s;
}

.hero-slide.active a {
    animation: buttonIn 0.8s ease-out forwards;
    animation-delay: 0.45s;
}


.hero-slide.leaving p {
    animation: textOut 0.5s ease-in forwards;
}

.hero-slide.leaving h1 {
    animation: titleOut 0.5s ease-in forwards;
    animation-delay: 0.2s;
}


@keyframes titleIn {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes textIn {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes buttonIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes textOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-20px); }
}

@keyframes titleOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-40px); }
}

.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Linea del Menu */
.navbar .nav-link {
    position: relative;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #163aa3; /* azul elegante */
    transition: width 0.3s ease, left 0.3s ease;
}

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

.navbar .nav-link.active::after {
    width: 100%;
    left: 0;
}

@media (max-width: 991px) {
    .navbar .nav-link::after {
        display: none;
    }
}


/****************************************************************** FOOTER */

.footer {
    background-color: #0f4186; /* azul corporativo */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.footer-top {
    padding: 40px 0;
    background: transparent;
}

.footer-bottom {
    padding: 20px 0 15px;
    background: #0f4186;
    color: #fff;
}

.footer-bottom h6 {
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-bottom ul {
    padding: 0;
    list-style: none;
}

.footer-bottom ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-copy {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
    letter-spacing: 0.03em;
}

.footer-copy a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-weight: 500;
}

.footer-copy a:hover {
    color: #6fa8ff;
    text-decoration: underline;
}

.footer::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;   /* clave: MUY BAJO */
    pointer-events: none;
}


.footer > * {
    position: relative;
    z-index: 1;
}

.footer p,
.footer li,
.footer a {
    color: rgba(255,255,255,0.85);
}

.footer h6 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.footer a:hover {
    color: #6fa8ff;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .footer::before {
        opacity: 0.08;
    }
}

/***************************************** LOGO EMPRESA */
.logo-empresa {
    height: 20px;
    width: auto;
    margin-bottom: 15px;
}

.footer .logo-empresa {
    height: 45px;
    width: auto;
}

.footer .logos-empresa ul {
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
    justify-content: flex-start;
}

.footer .logos-empresas li {
    margin: 0;
}


@media (max-width: 576px) {
    .footer .logos-empresas ul {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (min-width: 992px) {
    #mainNav.scrolled .logo {
        height: 55px; /* ajusta a gusto: 50–60px queda top */
    }
}

@media (max-width: 767px) {
    .footer-top .text-end {
        text-align: left !important;
    }

    .footer-top .text-end p,
    .footer-top .text-end a {
        display: block;
    }

    .footer-top .libro-reclam {
        margin-left: 0;
        margin-right: 8px;
    }

    .logo{
        height: 80px;
    }

    #mainNav.scrolled .logo {
    height: 50px;
}

    .hero-text-carousel {
        top: 35%;
        transform: translateY(-35%);
        width: 90%;
        left: 5vw;
    }    
}

/* Empresa */



.atenas-cargo-empresa{
    position: relative;
    background: url('/ejemplos/atenas/assets/img/atenas-cargo.png') center/cover no-repeat;
    padding: 80px 0;
    color: #ffffff;
}

.atenas-cargo-overlay{
    position: absolute;
    inset: 0;
    background: rgba(15,65,134,0.9);
    z-index: 1;
}

.atenas-cargo-contenedor{
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.atenas-cargo-texto{
    font-size: 1rem;
    line-height: 1.6;
    color: #f2f2f2;
}

.atenas-cargo-titulo{
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.atenas-cargo-video{
    width: 100%;
    min-height: 320px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 900px){
    .atenas-cargo-contenedor{
        grid-template-columns: 1fr;
    }
}


/* PREVIEW */
.atenas-cargo-video-preview{
    position: relative;
    width: 100%;
    height: 320px;
    background: url('/ejemplos/atenas/assets/img/atenas-cargo.png') center/cover no-repeat;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}


.atenas-cargo-video-preview::after{
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}
.atenas-cargo-play-circle{
    position: relative;
    z-index: 2;
}


/* PLAY BUTTON */
.atenas-cargo-play-circle{
    width: 90px;
    height: 90px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.atenas-cargo-video-preview:hover .atenas-cargo-play-circle{
    transform: scale(1.1);
    background: rgba(0,0,0,0.85);
}

.atenas-cargo-play-triangle{
    width: 0;
    height: 0;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

/* OVERLAY */
.atenas-cargo-video-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    z-index: 9999;

    /* BLINDAJE */
    display: none;
    align-items: center;
    justify-content: center;    
}

/* MODAL */
.atenas-cargo-video-modal{
    width: 80%;
    max-width: 900px;
    margin: auto;
}

.atenas-cargo-video-modal video{
    width: 100%;
    border-radius: 12px;
    outline: none;
}



/* SERVICIOS */



.atenas-cargo-servicios{
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.atenas-cargo-servicio-fila{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.atenas-cargo-servicio-reverse{
    direction: rtl;
}

.atenas-cargo-servicio-reverse > *{
    direction: ltr;
}

.atenas-cargo-servicio-imagen{
    height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
}

.atenas-cargo-servicio-texto h3{
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.atenas-cargo-servicio-texto p{
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #444;
}

/* Responsive */
@media (max-width: 900px){
    .atenas-cargo-servicio-fila{
        grid-template-columns: 1fr;
    }

    .atenas-cargo-servicio-reverse{
        direction: ltr;
    }
}


.atenas-cargo-servicio-tag{
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #007bff;
    margin-bottom: 8px;
}

.atenas-cargo-servicio-titulo{
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111;
}

.atenas-cargo-servicio-descripcion{
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    max-width: 520px;
}


/* DESCARGAS */




.atenas-descargas {
    position: relative;
    background: url('/ejemplos/atenas/assets/img/contactenos.jpg') center/cover no-repeat;
    padding: 80px 0;
}

.atenas-descargas .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 51, 102, 0.85);
}

.atenas-descargas-contenido {
    position: relative;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 30px;
    height: 500px;
}

/* COLUMNA IZQUIERDA */
.atenas-descargas-lista {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 20px;
    overflow-y: auto;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}

.doc-item:hover {
    background: #e6f0ff;
}

/* COLUMNA DERECHA */
.atenas-descargas-preview {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    color: #777;
    font-size: 16px;
    text-align: center;
}





.img-zoom {
    overflow: hidden;
    border-radius: 10px;
}

.img-zoom img {
    width: 100%;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.img-zoom img:hover {
    transform: scale(1.15);
}


.doc-item.activo {
    background: #dbe9ff;
    font-weight: 600;
}



/* CONTENEDOR LISTA */
.atenas-descargas-lista {
    background: #6b94d2;
    padding: 16px;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px #e4e8f0;
}

/* ITEM */
.doc-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s ease;
    border: 1px solid transparent;
}

.doc-item:hover {
    border-color: #cfd6e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,.05);
}

/* ICONO */
.doc-icon {
    font-size: 22px;
    line-height: 1;
    margin-top: 2px;
}

/* INFO */
.doc-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* FECHA */
.doc-fecha {
    font-size: 11px;
    color: #8a94a6;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* TITULO */
.doc-titulo {
    font-size: 14px;
    font-weight:800;
    color: #1f2937;
    /* font-weight: 500; */
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* VIÑETA */
.doc-bullet {
    width: 6px;
    height: 6px;
    background: #2563eb;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.doc-item.activo {
    border-color: #2563eb;
    background: #eef2ff;
}

.doc-icon {
    font-size: 22px;
}

.doc-icon.pdf {
    color: #d32f2f; /* rojo PDF clásico */
}

.doc-icon.img {
    color: #4caf50; /* verde limpio */
}

.doc-icon-wrap {
    width: 32px;
    display: flex;
    justify-content: center;
}

.doc-item.activo .doc-icon.pdf {
    color: #b71c1c;
}
