/* =========================================
   RESET & ESTILOS GENERALES
   ========================================= */
* {
    scroll-behavior: smooth;
    box-sizing: border-box;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
    scrollbar-width: none;
    background-color: #0f0f0f;
    color: #dcdcdc;
    scrollbar-width: none;
}

.desktop {
    box-sizing: border-box;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;
}

/* CORREGIDO: Color sólido para evitar transparencia */
.navbar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #53565d;
    color: white;
    z-index: 1000;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-links li {
    cursor: pointer;
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
}

.navbar li:nth-child(1) {
    border-right: 2px solid rgb(255, 195, 0);
    padding-right: 20px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight: 500;
}

.navbar .nav-links a:hover {
    color: rgb(255, 195, 0);
}

.nav-links li:first-child a {
    font-size: 22px;
}

.nav-links li:first-child img {
    margin-top: 5px;
    width: 55px;
    height: auto;
    transform: rotate(180deg);
}

/* =========================================
   BARRA MÓVIL (.ulHorizontal)
   ========================================= */
/* CORREGIDO: Color sólido para evitar transparencia */
.ulHorizontal {
    top: 0;
    left: 0;
    list-style: none;
    margin: 0;
    display: none;
    /* Se activa con media query */
    align-items: center;
    height: 50px;
    background-color: #53565d;
    width: 100%;
    padding: 0 20px;
    z-index: 1000;
    box-sizing: border-box;
    position: fixed;
    /* Asegura que se quede fija arriba */
}

.liHorizontal1 {
    display: flex;
    align-items: center;
    border-left: solid 2px rgb(255, 195, 0);
}

.liHorizontal1 img {
    position: absolute;
    top: 11px;
    right: 20px;
    width: 33px;
    filter: drop-shadow(0 0 10px rgba(211, 211, 200, 0.9)) drop-shadow(0 0 25px rgb(215, 238, 86));
}

/* =========================================
   BOTÓN HAMBURGUESA
   ========================================= */
.hamburger {
    position: relative;
    width: 25px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger .barra {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
    margin: 1px 0;
    transition: all 0.3s ease;
}

.hamburger .cruz {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
    color: white;
    display: none;
    pointer-events: none;
}

.hamburger.active .barra {
    display: none;
}

.hamburger.active .cruz {
    display: block;
}

/* =========================================
   MENÚ DESPLEGABLE (CORREGIDO)
   ========================================= */
.menu-overlay {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100vh - 50px);

    /* FONDO SÓLIDO + IMAGEN */
    background-color: #1a1a1a;
    background-image: url("/static/assets/images/fondoPiedrasoscuro.png");
    background-size: cover;

    display: flex;
    justify-content: center;
    align-items: flex-start;
    transform: translateY(-2000px);
    transition: transform 0.6s ease;
    z-index: 999;
    padding-top: 20px;
    overflow-y: auto;
}

.menu-overlay.active {
    transform: translateY(0);
}

.menu-content {
    display: flex;
    flex-direction: column;
    width: 85%;
    max-width: 400px;
    text-align: left;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.menu-list:last-child {
    border-bottom: none;
    margin-bottom: 50px;
}

.menu-list h2 {
    color: #f5c32b;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 700;
}

.menu-list li {
    margin-bottom: 12px;
}

.menu-list a {
    text-decoration: none;
    color: white;
    font-size: 1.15rem;
    font-weight: 400;
    transition: color 0.3s ease;
    display: block;
}

.menu-list a:hover {
    color: #f5c32b;
    font-weight: 500;
}

.menu-list p {
    color: white;
    font-size: 1rem;
}

/* =========================================
   SECCIONES Y CONTENIDO
   ========================================= */
.seccion-presentacion {
    width: 100%;
    background: #0f0f0f;
    color: #fff;
    box-sizing: border-box;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.presentacion-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.seccion-presentacion img {
    width: clamp(250px, 25vw, 270px);
    height: auto;
}

.presentacion-title {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 25px;
    color: #f5c32b;
    max-width: 700px;
}

/* Animaciones */
.presentacion-wrapper img {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.presentacion-title,
.presentacion-subtitle {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.presentacion-wrapper.animate img {
    opacity: 1;
    transform: scale(1);
}

.presentacion-wrapper.animate .presentacion-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.presentacion-wrapper.animate .presentacion-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.55s;
}

/* Scroll Indicator */
.scroll-indicator a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.scroll-indicator a:hover {
    background-color: rgba(195, 207, 17, 0.06);
    color: yellow;
    transform: translateY(4px);
}

/* Intro */
.seccion-intro {
    width: 100%;
    background: #111;
    padding: 80px 6% 20px 6%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
}

.intro-container {
    max-width: 800px;
}

.intro-subtitle {
    color: #f5c32b;
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
}

.intro-divider {
    width: 60px;
    height: 3px;
    background-color: #f5c32b;
    margin: 20px auto;
}

.intro-text {
    font-size: 1.1rem;
    color: #dcdcdc;
    line-height: 1.6;
}



/* =========================================
   BOTÓN VOLVER A PROYECTOS
   ========================================= */

.seccion-cierre-navegacion {
    width: 100%;
    background-color: #111;
    /* Mismo fondo que tus secciones de proyectos */
    padding: 60px 0 80px 0;
    /* Buen espacio arriba y abajo */
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Una línea sutil para separar */
}

.btn-volver-pie {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 40px;

    /* Estética L78 */
    border: 2px solid #f5c32b;
    color: #f5c32b;
    background: transparent;

    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1.5px;
    border-radius: 4px;

    transition: all 0.3s ease;
}

/* Efecto Hover */
.btn-volver-pie:hover {
    background-color: #f5c32b;
    color: #000;
    /* Texto negro para contraste */
    box-shadow: 0 0 20px rgba(245, 195, 43, 0.4);
    /* Un brillo dorado más intenso */
    transform: translateY(-5px);
}








.btn-volver-container {
    margin-top: 40px;
    /* Espacio respecto al texto de arriba */
    display: flex;
    justify-content: center;
    /* Centrado, ya que tu intro-container está centrado */
    width: 100%;
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    /* Espacio entre la flecha y el texto */
    padding: 12px 35px;

    /* Estilos de borde y color basados en tu identidad L78 */
    border: 2px solid #f5c32b;
    color: #f5c32b;

    /* Tipografía */
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-decoration: none;

    border-radius: 4px;
    /* Un radio sutil, igual que tus imágenes */
    transition: all 0.3s ease;
    background-color: transparent;
}

/* Efecto Hover: Relleno amarillo y texto oscuro */
.btn-volver:hover {
    background-color: #f5c32b;
    color: #0f0f0f;
    /* Tu color de fondo oscuro para buen contraste */
    transform: translateY(-3px);
    /* Pequeña elevación */
    box-shadow: 0 5px 15px rgba(245, 195, 43, 0.3);
    /* Resplandor sutil */
}

/* Ajuste para móviles */
@media (max-width: 600px) {
    .btn-volver {
        width: 100%;
        /* Botón ancho completo en celular para dedo fácil */
        justify-content: center;
    }
}















/* Flex Section */
.seccion-flex {
    width: 100%;
    background: #111;
    color: #fff;
    padding: 80px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.seccion-inner {
    width: 100%;
    max-width: 1400px;
    padding: 0 6%;
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.seccion-texto {
    width: 600px;
}

.seccion-texto h2 {
    font-size: clamp(1.5rem, 3.6vw, 2.4rem);
    color: #fff;
    font-weight: 900;
    margin-bottom: 16px;
}

.seccion-texto p {
    margin-bottom: 18px;
    font-size: 1.03rem;
    color: #d8d8d8;
    line-height: 1.6;
    text-align: left;
}

.seccion-bullets {
    padding-left: 0;
    list-style: none;
}

.seccion-bullets li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: #e7e7e7;
    font-size: 1rem;
    text-align: left;
}

.seccion-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 7px;
    height: 7px;
    background: #f5c32b;
    border-radius: 50%;
    transform: translateY(-50%);
}

.main-image {
    max-width: 370px;
    height: auto;
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.main-image:hover {
    transform: scale(1.05);
    filter: brightness(1.08);
}

/* Galería Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox.show {
    display: flex;
}

.carousel {
    position: relative;
    width: 820px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-img {
    width: 700px;
    height: 450px;
    object-fit: contain;
    background: white;
    border-radius: 12px;
}

.prev,
.next,
.close {
    position: absolute;
    cursor: pointer;
    user-select: none;
    z-index: 99999;
    background: none;
    border: none;
    color: white;
}

.prev {
    left: -10px;
    font-size: 45px;
    top: 50%;
    transform: translateY(-50%);
}

.next {
    right: -10px;
    font-size: 45px;
    top: 50%;
    transform: translateY(-50%);
}

.close {
    top: 20px;
    right: 40px;
    font-size: 45px;
}

/* Footer */
.footer {
    background: #0d0d0d;
    color: #fff;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer-col h4 {
    color: #f1c40f;
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #f1c40f;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.brand-row img {
    width: 40px;
    height: auto;
    transition: 0.5s;
}

.brand-row img:hover {
    transform: rotate(116deg);
}

.footer-map iframe {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    border: 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 900px) {
    .carousel {
        width: 90vw;
        height: 60vh;
    }

    #lightbox-img {
        width: 85%;
        max-height: 60vh;
    }
}

@media (max-width: 810px) {
    .desktop {
        display: none;
    }

    .ulHorizontal {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .ulHorizontal li:nth-child(1),
    .ulHorizontal li:nth-child(2) {
        margin-right: 8px;
    }

    .ulHorizontal li:nth-child(3) {
        margin-right: 20px;
        margin-left: auto;
        border: none;
    }

    .no-scroll {
        position: fixed;
        overflow: hidden;
        width: 100%;
        height: 100%;
    }

    .seccion-flex {
        padding: 30px 0 20px;
    }

    .seccion-inner {
        flex-direction: column;
        align-items: center;
        padding: 0 5%;
        gap: 50px;
    }

    .seccion-texto {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .seccion-texto p {
        text-align: center;
        max-width: 100%;
    }

    .seccion-presentacion {
        padding: 0 20px;
        height: calc(100vh - 50px);
    }

    .footer-col {
        min-width: 100%;
    }

    .footer-map iframe {
        height: 250px;
    }

    .brand-row {
        justify-content: flex-start;
    }

    .footer-container {
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .carousel {
        width: 100vw;
        padding: 0 10px;
    }

    #lightbox-img {
        width: 100%;
        height: auto;
    }

    .prev,
    .next {
        font-size: 30px;
    }

    .close {
        font-size: 35px;
        top: 12px;
        right: 20px;
    }
}