/* =========================================
   RESET & ESTILOS GENERALES
   ========================================= */
* {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

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;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

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

.navbar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(83, 86, 93);
    color: white;
    z-index: 1000;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    color: white;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-links li {
    cursor: pointer;
    position: relative;
    font-size: 0.95rem;
    transition: color 0.2s;
    font-weight: 500;
    color: white;
    justify-content: center;
}

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

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

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

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

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

/* =========================================
   NAVBAR MÓVIL
   ========================================= */
.ulHorizontal {
    top: 0;
    left: 0;
    list-style: none;
    margin: 0;
    display: none;
    align-items: center;
    height: 50px;
    background-color: rgba(83, 86, 93);
    width: 100%;
    padding: 0 20px;
    z-index: 1000;
    box-sizing: border-box;
}

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

/* Animación Logo Móvil */
.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));
}

.liHorizontal1 .img-hover {
    opacity: 0;
}

.liHorizontal1:hover .img-hover {
    opacity: 1;
}

.liHorizontal1:hover .img-normal {
    opacity: 0;
}

.aHorizontal {
    font-size: 20px;
    text-decoration: none;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    margin-right: 30px;
    margin-left: 20px;
}

.aHorizontal:hover {
    color: rgb(255, 195, 0);
}

/* =========================================
   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 Y UNIFICADO)
   ========================================= */
.menu-overlay {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100vh - 50px);
    background-color: #1a1a1a;
    background-image: url("/static/assets/images/fondoPiedrasoscuro.png");
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Alinear arriba para consistencia */
    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;
    /* Alineación profesional a la izquierda */
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    /* Espaciado uniforme entre bloques */
    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;
    /* Amarillo L78 */
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.menu-list li {
    margin-bottom: 12px;
    /* Espaciado uniforme entre líneas */
}

.menu-list a {
    text-decoration: none;
    color: white;
    font-size: 1.15rem;
    /* Tamaño unificado (aprox 18px) */
    font-weight: 400;
    transition: color 0.3s ease, transform 0.2s ease;
    display: block;
}

.menu-list a:hover {
    color: #f5c32b;
    transform: translateX(5px);
    font-weight: 500;
}

/* =========================================
   SECCIÓN PRESENTACIÓN (HERO)
   ========================================= */
.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 {
    text-align: center;
    margin-top: 24px;
}

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

.scroll-indicator a:hover {
    transform: translateY(4px);
    background-color: rgba(195, 207, 17, 0.06);
    box-shadow: 0 8px 20px rgba(202, 199, 20, 0.308);
    color: yellow;
}

/* =========================================
   ESTILO BOTÓN "VOLVER" (.btn-cotizar)
   ========================================= */
.btn-cotizar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f5c32b;
    border: 2px solid #f5c32b;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background-color: transparent;
    text-decoration: none;
    margin-top: 10px;
    cursor: pointer;
}

.btn-cotizar:hover {
    background-color: #f5c32b;
    color: #111;
    box-shadow: 0 0 15px rgba(245, 195, 43, 0.4);
    transform: translateY(-2px);
}

.btn-cotizar i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.btn-cotizar:hover i {
    transform: translateX(-4px);
}

/* =========================================
   SECCIÓN INTRO & MATRICERÍA
   ========================================= */
.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;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: #f5c32b;
    font-weight: 900;
    line-height: 1.2;
}

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

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

.matriceria-section {
    padding: 60px 8%;
    background-color: #1a1a1a;
    color: white;
}

.matriceria-nav {
    padding: 11px 8%;
    background-color: #1a1a1a;
    border-bottom: 1px solid #2b2b2b;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.matriceria-nav .nav-link:hover {
    background-color: #333;
    color: #f5c32b;
}

/* =========================================
   SECCIÓN FLEX (Proyectos y Contenido)
   ========================================= */
.seccion-flex {
    width: 100%;
    background: #111;
    color: #fff;
    padding: 80px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    scroll-margin-top: 80px;
    min-height: calc(100vh - 60px);
}

.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: 0 0 16px 0;
    line-height: 1.12;
}

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

.seccion-bullets {
    padding-left: 0;
    list-style: none;
    max-width: 520px;
}

.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%);
}

.seccion-innerImage {
    width: clamp(350px, 40vw, 500px);
}

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

.main-image:hover {
    transform: scale(1.05);
    filter: brightness(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* =========================================
   LIGHTBOX / CARRUSEL
   ========================================= */
.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;
    color: white;
    cursor: pointer;
    user-select: none;
    z-index: 99999;
}

.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;
    font-family: "Poppins", sans-serif;
}

.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 {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

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

.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;
}

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

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

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

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@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;
        padding-top: 20px;
         height: calc(100vh - 50px);
    }

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

    .seccion-texto {
        text-align: center;
        width: 100%;
        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;
    }
}