:root {
    --primary-color: #006eff;
    --hover-color: #f14501;
    --text-color: #ffffff;
    --header-bg: rgb(0 110 255 / 40%);
    --header-bg-scrolled: rgb(0 110 255 / 80%);
    --inicio-color: #f14501;
    --nav-height: 85px;
    --logo-height: 75px;
    --logo-height-scrolled: 65px;
    --logo-height-mobile: 55px;
    --logo-height-mobile-scrolled: 45px;
    --font-family: Arial, sans-serif;
    --text-size-base: 1.1rem;
    --text-size-mobile: 0.9rem;
    --transition: all 0.3s ease-in-out;
    --blur-intensity: 5px;
    --blur-intensity-mobile: 10px;
}


/* Reset y estilos base */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
}


/* Header principal */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--header-bg);
    backdrop-filter: blur(var(--blur-intensity));
    transition: var(--transition);
}

.header.scrolled {
    background: var(--header-bg-scrolled);
    box-shadow: 0 2px 10px transparent;
}


/* Logo */

.header__logo img {
    height: var(--logo-height);
    width: auto;
    transition: var(--transition);
}

.header.scrolled .header__logo img {
    height: var(--logo-height-scrolled);
}


/* Navegación */

.header__nav {
    transition: var(--transition);
}

.nav__list {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.nav__link {
    font-family: var(--font-family);
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-size: var(--text-size-base);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}


/* Estados de navegación */

.nav__link:hover,
.nav__link:focus,
.nav__link.active {
    color: var(--hover-color);
}

.nav__link.inicio.active,
.nav__link.inicio:hover {
    color: var(--inicio-color);
}


/* Efecto subrayado */

.nav__link::after {
    content: "";
    display: block;
    height: 3px;
    width: 0;
    background-color: var(--hover-color);
    transition: var(--transition);
    position: absolute;
    bottom: 0;
    left: 0;
}

.nav__link.inicio::after {
    background-color: var(--inicio-color);
}

.nav__link:hover::after,
.nav__link:focus::after,
.nav__link.active::after {
    width: 100%;
}


/* Menú hamburguesa */

.header__menu-btn {
    position: relative;
    left: 0%;
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}


/* Responsive */

@media (max-width: 992px) {
    .header__menu-btn {
        display: block;
    }
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 50%;
        max-width: 300px;
        height: 100vh;
        background: var(--header-bg-scrolled);
        backdrop-filter: blur(var(--blur-intensity-mobile));
        padding: 80px 20px 20px;
        transition: right 0.4s ease-in-out;
    }
    .header__nav.active {
        right: 0;
    }
    .nav__list {
        flex-direction: column;
        gap: 20px;
    }
    .nav__link {
        font-size: var(--text-size-mobile);
        padding: 10px;
    }
    .header__logo img {
        height: var(--logo-height-mobile);
    }
    .header.scrolled .header__logo img {
        height: var(--logo-height-mobile-scrolled);
    }
}


/*----------Seccion de nuestros proyectos-------------*/

.proyectos {
    color: #f14501;
}

.projects {
    position: relative;
    top: 85px;
    color: white;
    text-align: -webkit-center;
    padding: 50px;
    clip-path: polygon( 0% 0%, 100% 0%, 100% 90%, 50% 75%, 0% 90%);
    overflow: hidden;
    background: #333;
}

.nosotros::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.386);
    z-index: -1;
}

.nosotros-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 230%;
    object-fit: cover;
    z-index: -2;
}

.projects-contenido {
    position: relative;
    top: -20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    font-size: 2.0rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .nosotros-video {
        height: 100%;
        position: absolute;
    }
    .projects {
        height: auto;
        min-height: 6vh;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Estilos generales */

.portafolio {
    padding: 80px 15px;
    text-align: center;
    background-color: #ffffff;
}

.portafolio-titulo {
    position: relative;
    top: 0px;
    font-size: 28px;
    font-weight: 600;
    color: #FF5733;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portafolio-titulo::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--hover-color), transparent);
    bottom: -10px;
    left: 30%;
}

.portafolio-contenedor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}


/* Flip 3D - Responsivo */

.proyecto {
    width: 100%;
    height: 300px;
    max-width: 350px;
    perspective: 1000px;
    margin: 0 auto 20px;
}

.proyecto-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    border-radius: 15px;
}

.proyecto:hover .proyecto-inner {
    transform: rotateY(180deg);
}

.proyecto-front,
.proyecto-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.proyecto-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proyecto-back {
    background-color: #222222;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
}

.proyecto-info {
    color: #f0f0f0;
    font-family: 'Arial', sans-serif;
    line-height: 1.0;
}

.proyecto-info p {
    margin: 10px 0;
}

.proyecto-info strong {
    color: #ff2200;
    font-weight: bold;
}

.ver-mas {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #FF5733 0%, #FF8C42 100%);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Segoe UI', sans-serif;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 87, 51, 0.3);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.ver-mas:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 87, 51, 0.4);
    background: linear-gradient(135deg, #FF8C42 0%, #FF5733 100%);
}

.ver-mas:active {
    transform: translateY(1px);
}


/* Efecto de overlay */

.ver-mas::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50px;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.ver-mas:hover::after {
    left: 120%;
}


/* Animación de pulso (opcional) */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 87, 51, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 87, 51, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 87, 51, 0);
    }
}

.ver-mas:focus {
    animation: pulse 1s;
    outline: none;
}

.ver-mas .icon {
    margin-left: 8px;
    transition: transform 0.3s;
}

.ver-mas:hover .icon {
    transform: translateX(4px);
}


/* Estilos para Obras Ejecutadas (similares a proyectos pero con clases distintas) */

.portafolio-obras {
    padding: 40px 15px;
    text-align: center;
    background-color: #f9f9f9;
}

.portafolio-titulo-obras {
    position: relative;
    top: 0px;
    font-size: 28px;
    font-weight: 600;
    color: #FF5733;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portafolio-titulo-obras::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--hover-color), transparent);
    bottom: -10px;
    left: 30%;
}

.portafolio-contenedor-obras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}


/* Flip 3D para Obras - Versión Responsiva */

.obra {
    width: 300px;
    height: 300px;
    max-width: 350px;
    perspective: 1000px;
    margin: 0 auto 20px;
}

.obra-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    border-radius: 15px;
}

.obra:hover .obra-inner {
    transform: rotateY(180deg);
}

.obra-front,
.obra-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.obra-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.obra-back {
    background-color: #222222;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
}

.obra-info {
    color: #f0f0f0;
    font-family: 'Arial', sans-serif;
    line-height: 1.0;
}

.obra-info p {
    margin: 10px 0;
}

.obra-info strong {
    color: #ff2200;
    font-weight: bold;
}


/* Media Queries Específicos para Obras */

@media (max-width: 768px) {
    .portafolio-titulo-obras {
        /* Corregido el selector */
        font-size: 24px;
        top: 10px;
        margin-bottom: 25px;
    }
    .portafolio-contenedor-obras {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    .obra {
        height: 250px;
    }
    .obra-back {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .portafolio-obras {
        padding: 30px 10px;
        /* Corregido el padding excesivo (70px) */
    }
    .portafolio-titulo-obras {
        /* Corregido el selector */
        font-size: 20px;
        letter-spacing: 0.5px;
    }
    .portafolio-contenedor-obras {
        grid-template-columns: 1fr;
    }
    .obra {
        height: 220px;
        max-width: 280px;
    }
    .obra-back p {
        /* Selector más específico */
        font-size: 14px;
        margin: 8px 0;
    }
}


/*----------------------Lightbox---------------------*/

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.mostrar {
    display: flex;
}

.lightbox-img {
    max-width: 60%;
    max-height: 70%;
    border-radius: 10px;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    text-decoration: none;
}


/* Botones de navegación */

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    z-index: 1001;
}

.anterior {
    left: 20px;
}

.siguiente {
    right: 20px;
}

.carrusel-contenedor {
    text-align: center;
}

@media (max-width: 768px) {
    .portafolio-titulo {
        font-size: 24px;
        top: 10px;
        margin-bottom: 25px;
    }
    .portafolio-contenedor {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    .proyecto {
        height: 250px;
    }
    .proyecto-back {
        padding: 15px;
    }
    .ver-mas {
        padding: 10px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .portafolio {
        padding: 70px 10px;
    }
    .portafolio-titulo {
        font-size: 20px;
        letter-spacing: 0.5px;
    }
    .portafolio-contenedor {
        grid-template-columns: 1fr;
    }
    .proyecto {
        height: 220px;
        max-width: 280px;
    }
    .proyecto-info p {
        font-size: 14px;
        margin: 8px 0;
    }
    .lightbox-img {
        max-width: 90%;
        max-height: 60%;
    }
}


/* Ajustes para el lightbox en móviles */

@media (max-width: 768px) {
    .lightbox-img {
        max-width: 80%;
        max-height: 60%;
    }
    .cerrar {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    .nav-btn {
        font-size: 20px;
        padding: 8px 12px;
    }
}


/* Asegurar que las imágenes sean responsivas */

img {
    max-width: 100%;
    height: auto;
}


/* Retraso en la animación para cada proyecto */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.proyecto {
    animation: fadeIn 0.5s ease-in-out;
    animation-fill-mode: both;
}

.proyecto:nth-child(1) {
    animation-delay: 0.1s;
}

.proyecto:nth-child(2) {
    animation-delay: 0.2s;
}

.proyecto:nth-child(3) {
    animation-delay: 0.3s;
}

.proyecto:nth-child(4) {
    animation-delay: 0.4s;
}

.proyecto:nth-child(5) {
    animation-delay: 0.5s;
}

.proyecto:nth-child(6) {
    animation-delay: 0.6s;
}


/* ====== PIE DE PÁGINA ====== */

:root {
    --footer-bg: #1a1a1a;
    --footer-text: #e0e0e0;
    --footer-accent: #ff6200;
    --footer-border: #333;
    --footer-hover: #00ccff;
}


/* Estructura principal */

.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 0;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* Secciones del footer */

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand img {
    width: 180px;
    height: auto;
}

.footer-description {
    line-height: 1.6;
    opacity: 0.8;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--footer-accent);
}


/* Enlaces */

.footer-links ul,
.footer-contact address {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0;
    margin: 0;
    list-style: none;
    font-style: normal;
}

.footer-links a,
.footer-contact a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::after,
.footer-contact a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background: var(--footer-hover);
    bottom: -2px;
    left: 0;
    transition: width 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--footer-hover);
}

.footer-links a:hover::after,
.footer-contact a:hover::after {
    width: 100%;
}


/* Iconos de contacto */

.footer-contact i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
    color: var(--footer-accent);
}


/* Footer inferior */

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    margin-top: 3rem;
    padding: 1.5rem;
}

.footer-legal {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}


/* Responsive */

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-brand {
        align-items: center;
        text-align: center;
    }
    .footer-title {
        text-align: center;
    }
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-legal {
        flex-direction: column;
    }
}