
 
        :root {
            --azul-deep: #0F172A; /* Azul más oscuro y premium */
            --azul-medium: #1E293B;
            --dorado: #C29D78; /* Dorado más vibrante */
            --bronce: #A98467;
            --plata: #E2E8F0;
            --blanco: #FFFFFF;
            --sombra-premium: 0 20px 40px rgba(0,0,0,0.1);
        }

        html { scroll-behavior: smooth; } /* Scroll suave nativo */

        body { 
            font-family: 'Poppins', 'Segoe UI', sans-serif; /* Fuente más moderna */
            margin: 0; 
            background-color: #F1F5F9; 
            color: #1E293B;
            overflow-x: hidden; /* Evitar scroll horizontal por animaciones */
        }

        /* NAVEGACIÓN GLASSMORPHISM */
      /* Ajuste del contenedor del logo */
.logo-container {
    transition: transform 0.3s ease;
}
/* Estilo para links en el texto */
#nosotros a {
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
}
#nosotros a:hover {
    letter-spacing: 0.5px;
}

.logo-container:hover {
    transform: scale(1.02); /* Un pequeño efecto al pasar el mouse */
}

/* Asegurar que el nav sea Glassmorphism y no tape el contenido */
nav { 
    background: rgba(15, 23, 42, 0.9); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    position: fixed; 
    top: 0; left: 0; right: 0; /* Aseguramos que cubra todo el ancho */
    z-index: 1000;
    border-bottom: 1px solid rgba(194, 157, 120, 0.2); /* Borde sutil dorado */
}
/* Estilos para el Menú de Navegación */
.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
    opacity: 0.8;
    position: relative;
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--dorado);
}

/* Línea decorativa al pasar el mouse */
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--dorado);
    transition: 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* OCULTAR MENÚ EN MÓVIL (Para evitar desorden) */
@media (max-width: 992px) {
    .nav-menu {
        display: none; /* En móvil se prioriza el botón de Sucursal Virtual */
    }
}

.logo-text { 
    color: var(--blanco); 
    font-size: 1.4rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    line-height: 1;
}

        .btn-header { 
            background: linear-gradient(135deg, var(--dorado), var(--bronce));
            color: var(--azul-deep); 
            padding: 12px 24px; 
            text-decoration: none; 
            border-radius: 50px; /* Bordes totalmente redondeados */
            font-weight: bold;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(194, 157, 120, 0.3);
        }

        .btn-header:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(194, 157, 120, 0.5); }

        /* HERO SECTION CON VIDEO FULLSCREEN */
        .hero { 
            position: relative;
            width: 100%;
            height: 100vh; /* Altura completa de la pantalla */
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-align: center;
            overflow: hidden;
        }

        .hero-video {
            position: absolute;
            top: 50%; left: 50%;
            min-width: 100%; min-height: 100%;
            width: auto; height: auto;
            transform: translate(-50%, -50%);
            z-index: -1; /* Detrás del contenido */
            object-fit: cover;
        }

        .hero-overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(to bottom, rgba(15,23,42,0.8), rgba(15,23,42,0.5));
            z-index: 0;
        }

        .hero-content { z-index: 1; padding: 0 20px; }
        .hero h1 { font-size: 3.5rem; margin-bottom: 15px; text-transform: uppercase; font-weight: 900; letter-spacing: -2px; line-height: 1; }
        .hero p { font-size: 1.4rem; max-width: 700px; margin: 0 auto; opacity: 0.9; font-weight: 300; }

        /* Contenedor de Proyectos */
        .main-container { max-width: 1200px; margin: -80px auto 50px; padding: 0 20px; z-index: 2; position: relative; }
        
        .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }

        /* TARJETAS INTERACTIVAS CON EFECTO TILT */
        .card { 
            background: var(--blanco); 
            border-radius: 20px; 
            overflow: hidden; 
            box-shadow: var(--sombra-premium);
            transition: box-shadow 0.3s ease;
            transform-style: preserve-3d; /* Requerido para Tilt */
            will-change: transform;
        }

        .card:hover { box-shadow: 0 30px 60px rgba(0,0,0,0.15); }
        
        .card-img-wrapper { position: relative; overflow: hidden; height: 250px; }
        .card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
        .card:hover img { transform: scale(1.1); } /* Zoom al hover */
        
        .card-body { padding: 30px; transform: translateZ(20px); /* Levantar contenido en 3D */ }
        .card-body h2 { color: var(--azul-deep); margin-top: 0; font-weight: 700; }
        .card-body p { color: #64748B; font-size: 0.95rem; margin-bottom: 25px; }
        
        .btn-ver { 
            display: inline-block; 
            background: var(--azul-deep); 
            color: white; 
            padding: 15px 25px; 
            text-decoration: none; 
            border-radius: 10px;
            width: 100%; text-align: center;
            box-sizing: border-box; border: none; cursor: pointer;
            font-size: 1rem; font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-ver:hover { background: var(--dorado); color: var(--azul-deep); }

        /* Modal con Animación */
        .modal { 
            display: none; position: fixed; 
            top:0; left:0; width:100%; height:100%; 
            background: rgba(15,23,42,0.9); 
            z-index: 2000; justify-content: center; align-items: center; 
            backdrop-filter: blur(10px);
            opacity: 0; transition: opacity 0.3s ease;
        }
        
        .modal.open { opacity: 1; display: flex; }

        .modal-content { 
            background: white; padding: 50px; border-radius: 20px; 
            width: 90%; max-width: 450px; position: relative;
            transform: scale(0.8); transition: transform 0.3s ease;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
        }
        
        .modal.open .modal-content { transform: scale(1); }

        .modal-content h3 { color: var(--azul-deep); font-size: 1.5rem; margin-top: 0; }
        
        .modal-content input { 
            width: 100%; padding: 15px; margin: 12px 0; 
            border: 1px solid #E2E8F0; border-radius: 10px; box-sizing: border-box;
            background: #F8FAFC;
            transition: 0.3s;
        }
        
        .modal-content input:focus { border-color: var(--dorado); outline: none; background: white; }

        .info-delicada {
            background: #FDF2E9; padding: 20px; border-radius: 10px;
            border-left: 5px solid var(--dorado); display: none; margin-top: 20px;
            color: #78350F;
        }
        /* Alerta Premium Personalizada */
#customAlert {
    display: none;
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--azul-deep);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    border-left: 5px solid var(--dorado);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 3000;
    font-weight: 500;
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

        footer { text-align: center; padding: 60px; color: #64748B; font-size: 0.9rem; background: #E2E8F0; margin-top: 50px; }
        /* --- RESPONSIVE MOBILE VERSION --- */
@media (max-width: 768px) {
    /* Ajuste de Navegación */
    nav {
        padding: 10px 3%;
    }

    .logo-text {
        font-size: 1.1rem; /* Nombre más pequeño para que quepa con el botón */
    }

    .btn-header {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    /* Ajuste del Hero (Texto que no tape toda la pantalla) */
    .hero h1 {
        font-size: 2.2rem; /* Tamaño manejable en celular */
        line-height: 1.1;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Contenedor de Proyectos (Menos margen negativo para que no flote tanto) */
    .main-container {
        margin-top: -40px; 
        padding: 0 15px;
    }

    .grid {
        gap: 25px; /* Menos espacio entre tarjetas */
    }

    /* Ajuste de Tarjetas */
    .card-img-wrapper {
        height: 200px; /* Imagen menos alta en móvil */
    }

    .card-body {
        padding: 20px;
    }

    .card-body h2 {
        font-size: 1.4rem;
    }

    /* Modal (Que ocupe más ancho en pantalla pequeña) */
    .modal-content {
        width: 85%;
        padding: 30px 20px;
    }

    .modal-content h3 {
        font-size: 1.2rem;
    }

    /* Alerta personalizada (Centrada en móvil) */
    #customAlert {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
        text-align: center;
    }

    /* Botón de sonido (Más pequeño y accesible) */
    #btnSonido {
        bottom: 20px;
        right: 20px;
        padding: 8px;
    }
}

/* Ajuste extra para celulares muy pequeños */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .logo-container img {
        height: 35px; /* Icono más pequeño */
    }
}
