/* Variables */
:root {
    --primary-color: #1a3e72;
    --secondary-color: #2a5298;
    --accent-color: #4a89dc;
    --light-color: #f5f7fa;
    --dark-color: #333333;
    --white-color: #ffffff;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-outline1 {
    background-color: transparent;
    border-color: var(--white-color);
    color: var(--white-color);
}

.btn-outline1:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(-40px);
    transition: all 0.8s ease;
}

/* Cuando se activa en scroll */
.section-title.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-title p {
    color: var(--gray-color);
    font-size: 18px;
}

.text-center {
    text-align: center;
}

/* Header con clip-path diagonal - AL FRENTE */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002; /* Más alto que el slider */
    background-color: #012D5A;
    color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 130px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}

/* Contenedor principal del header */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 120px;
    width: 100%;
    position: relative;
}

.header-diagonal-recta2 {
    position: relative;
    width: 100%;
    height: 30px; /* Altura de la franja */
    background-color: #4EBDEB;
    z-index: 1;
    margin-top: -29px;
    clip-path: polygon(0 100%, 100% 30%, 100% 100%, 0 100%);
}

.header-diagonal-recta2.gradiente {
    background: linear-gradient(to right, #4EBDEB, #3a9fd9);
}

.header-diagonal-recta2.con-borde::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #012D5A;
    opacity: 0.7;
}

.header-alt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background-color: transparent;
    color: var(--white-color);
    box-shadow: none;
    transition: var(--transition);
    height: 130px;
}

.header-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #012D5A;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
    z-index: -1;
}

/* Para móviles */
@media (max-width: 768px) {
    .header-alt {
        height: 150px;
    }
    
    .header-alt::before {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
    }
    
    .main-nav {
        position: relative;
        z-index: 1000;
        margin-top: 20px;
    }
}

.logo-img {
    height: auto;
    width: 200px;
    max-width: 100%;
    padding: 15px;
    z-index: 3;
    position: relative;
}

/* Efecto al pasar el mouse (hover) */
.logo:hover .logo-img {
    transform: scale(1.1);
}

/* Efecto cuando se hace clic */
.logo:active .logo-img {
    transform: scale(0.95);
}

/* Animación de pulso más notoria cuando está en reposo */
@keyframes subtleZoom {
    0% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.05);
    }
    100% { 
        transform: scale(1);
    }
}

.logo-img {
    animation: subtleZoom 5s ease-in-out infinite;
}

/* Main Nav - INTEGRADO EN EL HEADER */
.main-nav {
    height: 100%;
    z-index: 1003; /* Más alto que el header */
    position: relative;
}

.nav-list {
    display: flex;
    height: 100%;
    align-items: center;
}

.nav-list li {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-list a {
    font-weight: 600;
    font-size: 24px;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--white-color);
    position: relative;
    z-index: 3;
   
}

.nav-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #ffffff, #f5f7fa);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                transform 0.5s ease;
    border-radius: 2px;
    
}

.nav-list a:hover::before,
.nav-list a.active::before {
    opacity: 1;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}



.nav-list li:last-child a::before {
    z-index:-1;
}

/* Asegurar que otros elementos no se vean afectados */
.logo,
.social-icons,
.mobile-menu-btn {
    position: relative;
    color: var(--white-color);
    z-index: 3;
}

.social-icons {
    display: flex;
    z-index: 3;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    margin-left: 10px;
    transition: var(--transition);
    z-index: 3;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.mobile-menu-btn {
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    display: none;
    z-index: 3;
}

/* Main Slider - DETRÁS DE TODO */
.main-slider {
    position: relative;
    margin-top: 90px; 
    width: 100%;
    overflow: hidden;
    margin-bottom: -15px; /* Para que la diagonal se superponga */
    z-index: 999; /* Más bajo que header y nav */
}

.slider-item {
    height: auto;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.slider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-content {
    position: relative;
    z-index: 1;
    color: var(--white-color);
    max-width: 400px;
    background-color: rgba(78, 189, 235, 0.7);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 10px 35px 25px;
    margin: 0 auto;
    margin-right: -50px;
    border-top-left-radius: 40px;
}

.slider-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.2;
}

.slider-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--white-color);
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent-color);
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--white-color);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

/* Featured Projects */
.featured-projects {
    padding: 30px 0;
    width: 100%;
    display: flex;
    overflow: hidden;
}

.torre{
visibility: hidden;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.projects-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.project-card2 {
    position: relative;
    overflow: hidden;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: auto;
    
}

.project-card {
    position: relative;
    overflow: hidden;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: auto;
    min-height: 600px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    animation: smoothFastShineForward 0.8s ease-out forwards;
}

.project-card:not(:hover)::before {
    animation: smoothFastShineBackward 0.8s ease-out forwards;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    animation: smoothFastShineForward 0.8s ease-out forwards;
}

.project-card:not(:hover)::before {
    animation: smoothFastShineBackward 0.8s ease-out forwards;
}

.project-card2::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-card2:hover::before {
    animation: smoothFastShineForward 0.8s ease-out forwards;
}

.project-card2:not(:hover)::before {
    animation: smoothFastShineBackward 0.8s ease-out forwards;
}

.textojustificado {
    text-align: justify;
}

.torre1{
    font-family: 'Poppins', sans-serif;
}

.torre2{
    font-family: 'Nunito', sans-serif;
}

@keyframes smoothFastShineForward {
    0% {
        opacity: 0;
        top: -150%;
        left: -150%;
    }
    40% {
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        top: 150%;
        left: 150%;
    }
}

@keyframes smoothFastShineBackward {
    0% {
        opacity: 0;
        top: 150%;
        left: 150%;
    }
    40% {
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        top: -150%;
        left: -150%;
    }
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 450px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.project-info {
    padding: 20px;
    background: #4EBCEC;
    color: var(--white-color);
}

.project-info2 {
    padding: 20px;
    
    color: #4EBCEC;
}

.project-info .project-info1 h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.project-info .project-info1 .location {
    color: var(--gray-color);
    margin-bottom: 15px;
    display: block;
}

.project-info .project-info1 .features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.project-info .project-info1 .features span {
    color: var(--gray-color);
    font-size: 14px;
}

.project-info1 {
    padding: 20px;
    background: #012D5A;
    color: var(--white-color);
}

/* About Us */
.about-us {
    padding: 100px 0;
    background-color: var(--light-color);
    width: 100%;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.about-features li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.about-features li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--accent-color);
    font-size: 18px;
}

.about-features {
    margin: 25px 0;
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.9s ease;
}

.about-features.active {
    opacity: 1;
    transform: translateX(0);
}

/* --- Animación H2 (izquierda a derecha) --- */
h2 {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.9s ease;
}

h2.active {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    width: 100%;
    overflow: hidden;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(74, 137, 220, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.info-item {
    display: flex;
    margin-bottom: 25px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-details h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.info-details p {
    color: var(--gray-color);
    font-size: 15px;
}

/* Footer */
.footer {
    background-color: #012D5A;
    color: var(--white-color);
    padding-top: 80px;
    width: 100%;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-logo img {
    height: 100px;
    transition: transform 0.4s ease;
    max-height: 150px;
    margin-bottom: 20px;
}

.footer-logo img:hover {
    transform: scale(1.2);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.social-icons.footer-social a {
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icons.footer-social a:hover {
    background-color: var(--accent-color);
}

.newsletter-form {
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 16px;
}

.btn-send {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50px;
    background-color: var(--accent-color);
    color: var(--white-color);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.btn-send:hover {
    background-color: var(--secondary-color);
}

.copyright {
    background-color: #012D5A;
    padding: 20px 0;
}

.copyright-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
}

.footer-bottom-links li {
    margin-left: 15px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-bottom-links a:hover {
    color: var(--white-color);
}

/* --- Animaciones para Proyectos Destacados --- */
.projects-grid {
    position: relative;
}

/* --- Animaciones para Proyectos Destacados --- */
.projects-grid2 {
    position: relative;
}

/* Esquinero superior izquierdo */
.projects-grid::before,
.projects-grid::after {
    content: '';
    position: absolute;
    background-color: var(--accent-color);
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

/* Línea horizontal arriba */
.projects-grid::before {
    top: -20px;
    left: -20px;
    width: 40px;
    height: 8px;
}

/* Línea vertical izquierda */
.projects-grid::after {
    top: -20px;
    left: -20px;
    width: 8px;
    height: 40px;
}

/* Esquinero inferior derecho */
.projects-grid .corner {
    position: absolute;
    background-color: var(--accent-color);
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

/* Línea horizontal abajo */
.projects-grid .corner.bottom {
    bottom: -20px;
    right: -20px;
    width: 40px;
    height: 8px;
}

/* Línea vertical derecha */
.projects-grid .corner.right {
    bottom: -20px;
    right: -20px;
    width: 8px;
    height: 40px;
}

/* Activación con scroll */
.projects-grid.active::before,
.projects-grid.active::after,
.projects-grid.active .corner {
    opacity: 1;
    transform: translateX(0);
}

.timeline {
    position: relative;
    height: 100px;
    margin: 50px 0;
}

.line {
    position: absolute;
    top: 15%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #3498db, #9b59b6, #e74c3c);
    transform: translateY(-50%);
    
}

.years {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 0 100px;
}

.year-point {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.point {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 4px solid #3498db;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 0 0 6px rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
}

.point:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(52, 152, 219, 0.3);
    cursor: pointer;
}

.year-label {
    font-weight: bold;
    color: #2c3e50;
    font-size: 18px;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .slider-content h1 {
        font-size: 40px;
    }
    
    .slider-content p {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    /* Header responsive */
    .header {
        height: 130px;
    }
    
    .header-content {
        height: 80px;
    }
    
    .header-diagonal {
        height: 15px;
    }
    
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        height: auto;
        margin: 10px 0;
        width: 100%;
        justify-content: center;
    }

    .nav-list a {
        height: auto;
        padding: 20px 30px;
        font-size: 20px;
        width: 100%;
        text-align: center;
        color: var(--white-color);
        display: block;
        position: relative;
        transition: all 0.3s ease;
        color: #007aff;
        /* Eliminamos clip-path en móvil */
        clip-path: none;
    }
    
    .nav-list a::before {
        /* Eliminamos clip-path en móvil */
        clip-path: none;
    }
    
    /* Estilo para enlace activo en móvil */
    .nav-list a.active {
        background-color: var(--primary-color);
       
    }
    
    .nav-list a.active::after {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 2px;
        background-color: var(--white-color);
    }
    
    .nav-list a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--primary-color);
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1000;
        font-size: 28px;
    }
    
    /* Oscurecer el fondo cuando el menú esté abierto */
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .slider-content h1 {
        font-size: 36px;
    }

    .slider-content p {
        font-size: 18px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .projects-grid2 {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 30px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projects-grid2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .torre {
        visibility: visible;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .slider-content h1 {
        font-size: 28px;
    }

    .slider-content p {
        font-size: 16px;
    }
    
    .slider-content {
        padding: 20px;
        margin: 0 15px;
        border-top-left-radius: 20px;
        max-width: 200px;
        margin-left: 50px;
        margin-right: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .copyright-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom-links li {
        margin: 5px 10px;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .logo-img {
        width: 150px;
        transition: transform 0.5s ease-in-out;
        display: block;
        max-width: 100%;
        height: auto;
    }
    
    .social-icons a {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .project-card {
        min-height: auto;
        height: auto;
    }
    
    .project-image {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .slider-item {
        min-height: 400px;
    }
    
    .slider-content h1 {
        font-size: 24px;
    }
    
    .slider-content p {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .about-us {
        padding: 60px 0;
    }
    
    .contact-section {
        padding: 120px 0;
    }
    
    .featured-projects {
        padding: 20px 0;
    }
    
    .project-info .features {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-info .features span {
        display: block;
        margin-bottom: 5px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .footer-logo img {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .slider-content {
        padding: 5px;
        margin: 0 10px;
        border-top-left-radius: 20px;
        margin-right: 20px;
        margin-left: 150px;
    }
    
    .project-card {
        margin: 0 10px;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .section-title p {
        font-size: 16px;
    }
    
    .about-text h2 {
        font-size: 28px;
    }
    
    .contact-form,
    .contact-info {
        padding: 20px;
    }
    
    .footer {
        padding-top: 60px;
    }
    
    .footer-col h3 {
        font-size: 18px;
    }
    
    /* Estilos para el botón de menú hamburguesa */
    .hamburger-menu {
        display: inline-block;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        background: transparent;
        border: none;
        padding: 0;
    }

    .hamburger-menu span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: white;
        border-radius: 3px;
        transition: all 0.3s ease;
        margin: 4px 0; /* Espaciado entre líneas */
    }

    /* Efecto al pasar el mouse */
    .hamburger-menu:hover span {
        background-color: #f8f8f8;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }

    /* Efecto al hacer clic */
    .hamburger-menu:active span {
        transform: scale(0.95);
    }

    /* Animación cuando está activo */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Prevenir desbordamiento en elementos pequeños */
@media (max-width: 360px) {
    .logo-img {
        width: 120px;
    }
    
    .slider-content h1 {
        font-size: 20px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .project-info h3 {
        font-size: 18px;
    }
    
    .footer-logo img {
        height: 60px;
    }
}

/* Ajustes específicos para prevenir desbordamiento horizontal */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Mejoras de rendimiento para móviles */
@media (max-width: 768px) {
    .project-card::before {
        display: none;
    }
    
    .project-card:hover .project-image img {
        transform: none;
    }
}

.puntitos {
    width: 200px;
    animation: moverY 4s ease-in-out infinite alternate;
    height: fit-content;
}

@keyframes moverY {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(50px);
    }
}

/* Ocultar en móviles */
@media (max-width: 768px) {
    .puntitos {
        display: none;
    }
}

.puntitos2 {
    margin-top: 300px;
    width: 200px;
    animation: moverY 4s ease-in-out infinite alternate;
    height: fit-content;
}

@keyframes moverY {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(50px);
    }
}

/* Ocultar en móviles */
@media (max-width: 768px) {
    .puntitos2 {
        display: none;
    }
}








.video-fullscreen-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fullscreen-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Asegura que no se muestren controles en ningún navegador */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
}

/* Ocultar completamente cualquier control de video */
.fullscreen-video::-webkit-media-controls {
    display: none !important;
}

.fullscreen-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.fullscreen-video::-webkit-media-controls-panel {
    display: none !important;
}

.fullscreen-video::-webkit-media-controls-play-button {
    display: none !important;
}

.fullscreen-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}