:root {
    --primary-color: #006eff;
    --hover-color: #f14501;
    --text-color: #fff;
    --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);
    }
}


/* -----------sub encavezado ---------*/

.services {
    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;
}

.services-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;
}

.nosotros::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.nosotros-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 230%;
    object-fit: cover;
    z-index: -2;
}

@media (max-width: 768px) {
    .nosotros-video {
        height: 100%;
        position: absolute;
    }
    .services {
        height: auto;
        min-height: 6vh;
    }
}


/*proyecto ejecutivo */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
.nuestros-servicios {
    padding: 4rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 100%);
}

.contenedor-servicios {
    position: relative;
    top: 45px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.titulo-especializacion {
    font-size: 2rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.descripcion-especializacion {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}


/* Media queries para responsividad */

@media (min-width: 768px) {
    .titulo-especializacion {
        font-size: 2.5rem;
    }
    .descripcion-especializacion {
        font-size: 1.2rem;
    }
}

@media (min-width: 1024px) {
    .nuestros-servicios {
        padding: 3rem 2rem;
    }
    .titulo-especializacion {
        font-size: 3rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

.our-projects {
    padding: 0px 20px;
    text-align: center;
    background-color: #fffcfc;
}

.section-title {
    position: relative;
    top: 20px;
    font-size: 36px;
    font-weight: 600;
    color: #FF5733;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--hover-color), transparent);
    bottom: -10px;
    left: 30%;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: minmax(300px, auto);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.5s ease-in-out;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-caption {
    position: absolute;
    bottom: 0;
    top: 0px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.749);
    padding: 10px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.project-caption p {
    position: relative;
    top: 35%;
    color: #FFFFFF;
    font-size: 21px;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.project-icon {
    position: relative;
    top: 35px;
    font-size: 50px;
    color: #f4f4f4;
    margin-bottom: 10px;
}


/* Estilos para el panel deslizable */

.slide-panel-btn {
    position: absolute;
    top: 74%;
    left: 22%;
    display: block;
    margin: 20px auto 40px;
    padding: 12px 25px;
    background-color: #FF5733;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slide-panel-btn:hover {
    background-color: #e04a2d;
    transform: translateY(-2px);
}


/* nuestras obras y supervisiones */

.our-obra {
    padding: 0px 20px;
    text-align: center;
    background: linear-gradient(135deg, #eee3e3 0%, #f9efef 100%);
}

.our-supervisiones {
    padding: 0px 20px;
    text-align: center;
    background: linear-gradient(135deg, #eee3e3 0%, #f9efef 100%);
}


/* Media Queries para ajustes específicos */

@media (min-width: 768px) {
    .our-projects {
        padding: 30px 20px;
    }
    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
        letter-spacing: 2px;
    }
    .project-grid {
        grid-auto-rows: minmax(300px, auto);
        gap: 20px;
        padding: 20px;
    }
    .project-item {
        border-radius: 15px;
    }
    .project-item img {
        border-radius: 15px;
    }
    .project-caption {
        padding: 10px;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }
    .project-caption p {
        font-size: 21px;
    }
    .project-icon {
        top: 35px;
        font-size: 50px;
        margin-bottom: 10px;
    }
    .slide-panel-btn {
        margin: 20px auto 40px;
        padding: 12px 25px;
        font-size: 16px;
        left: 22%;
        transform: none;
    }
    .slide-panel-btn:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    .project-caption p {
        font-size: 16px;
    }
    .project-icon {
        font-size: 35px;
    }
    .slide-panel-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}


/* Panel mejorado */

.slide-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: #191c22;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: left 2.1s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow-y: auto;
    padding: 30px;
    color: white;
}

.slide-panel.active {
    left: 0;
}

.close-panel {
    position: absolute;
    top: 6px;
    right: 15px;
    background: none;
    border: none;
    font-size: 45px;
    cursor: pointer;
    color: #FF5733;
}


/* Formulario profesional */

.panel-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.panel-form input,
.panel-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2d323d;
    border-radius: 6px;
    background: #1f232b;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.panel-form input:focus,
.panel-form textarea:focus {
    outline: none;
    border-color: #FF5733;
    box-shadow: 0 0 0 2px rgba(255, 87, 51, 0.2);
}

.panel-form textarea {
    height: 120px;
    resize: vertical;
    min-height: 100px;
}

.form-submit-btn {
    background-color: #FF5733;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.form-submit-btn:hover {
    background-color: #e04a2d;
    transform: translateY(-2px);
}


/* Overlay mejorado */

.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.panel-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Responsive */

@media (max-width: 500px) {
    .slide-panel {
        width: 90%;
        padding: 25px 15px;
    }
    .panel-form input,
    .panel-form textarea {
        padding: 10px 12px;
    }
}


/* Retraso en la animación para cada proyecto */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-grid {
    animation: fadeIn 0.6s 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;
    }
}