:root {
    --primary-color: #0f0f0f;
    --secondary-color: #f4f4f4;
    --accent-color: #d4af37; /* Dorado arquitect贸nico */
    --text-color: #333333;
    --text-light: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--secondary-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Tipograf铆a */
h1, h2, h3 { font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
p { font-size: 1.1rem; line-height: 1.8; font-weight: 300; }

/* Navegaci贸n Glassmorphism */
nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(15, 15, 15, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
nav.scrolled {
    background: rgba(15, 15, 15, 0.95);
    padding: 15px 5%;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 4px;
}
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li { margin-left: 30px; }
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%; height: 2px;
    bottom: -5px; left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.menu-toggle { display: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Evita que el video sobresalga del contenedor */
}
/* Propiedades del video de fondo */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que el video cubra toda la pantalla sin deformarse */
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    z-index: 1; /* Se asegura de estar por encima del video */
}

.hero-content {
    position: relative;
    z-index: 2; /* Por encima de la capa oscura */
    color: var(--text-light);
}
.hero h1 {
    font-size: 5rem;
    margin-bottom: 10px;
    text-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.hero .subtitle {
    font-size: 1.2rem;
    font-weight: 200;
    margin-bottom: 30px;
    letter-spacing: 2px;
}
.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
}
.btn-primary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}
.scroll-indicator {
    position: absolute; bottom: 40px;
    left: 50%; transform: translateX(-50%);
    color: white; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
    display: flex; flex-direction: column; align-items: center; z-index: 2;
}
.scroll-indicator .line {
    width: 2px; height: 50px; background: white; margin-top: 10px;
    animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
    0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Sections Base */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
section { padding: 120px 0; }
.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
}
.section-title::before {
    content: ''; position: absolute;
    top: -15px; left: 0;
    width: 50px; height: 4px;
    background: var(--accent-color);
}

/* Sobre Nosotros */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.quote {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 600;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin: 30px 0;
}
.about-visual { position: relative; }
.about-visual img { width: 100%; height: auto; box-shadow: -20px 20px 0px rgba(0,0,0,0.05); }

/* Proyectos */
.projects-section { background: var(--primary-color); color: var(--text-light); }
.projects-section .section-title { color: var(--text-light); }
.projects-intro { color: #aaa; margin-bottom: 50px; font-size: 1.2rem; }
.project-showcase {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px;
}
.swiper { width: 100%; height: 500px; border-radius: 5px; overflow: hidden; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.swiper-button-next, .swiper-button-prev { color: var(--accent-color) !important; }

/* Visor 3D */
.model-3d-container {
    width: 100%; height: 500px;
    background: #1a1a1a;
    border-radius: 5px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}
model-viewer { width: 100%; height: 100%; outline: none; }
.model-overlay-text {
    position: absolute; top: 20px; left: 20px;
    background: rgba(0,0,0,0.5); padding: 5px 15px;
    border-radius: 20px; font-size: 0.8rem; letter-spacing: 1px; pointer-events: none;
}

/* Contacto */
.contact-card {
    background: #fff; padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-radius: 10px; text-align: center;
    border-top: 5px solid var(--accent-color);
}
.contact-info h3 { font-size: 1.8rem; margin-bottom: 20px; }
.contact-info p { font-size: 1.2rem; margin-bottom: 10px; }
.social-links { margin-top: 30px; display: flex; justify-content: center; gap: 20px; }
.social-icon {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--secondary-color); color: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; text-decoration: none; transition: var(--transition);
}
.social-icon:hover { background: var(--primary-color); color: var(--text-light); transform: translateY(-5px); }
.social-icon.whatsapp:hover { background: #25d366; color: white; }

/* Footer */
footer { background: #0a0a0a; color: #555; text-align: center; padding: 20px; font-size: 0.9rem; }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background: #25d366; color: #fff;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000; transition: var(--transition);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsividad */
/* Responsividad */@media (max-width: 900px) {
    .project-showcase { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; } /* <-- Nueva línea agregada */
    .hero h1 { font-size: 3rem; }
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .contact-map { min-height: 300px; } /* <-- Nueva línea agregada */
}

/* Sección Frase Parallax */
.quote-parallax {
    height: 50vh;
    background: url('https://images.unsplash.com/photo-1513694203232-719a280e022f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--text-light);
}
.parallax-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 15, 15, 0.75); /* Oscurece la imagen para que resalte la letra */
}
.frozen-music {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    font-weight: 300;
    font-style: italic;
    max-width: 900px;
    padding: 0 20px;
    line-height: 1.4;
}
.quote-author {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
}

/* Ajuste móvil para la frase */
@media (max-width: 768px) {
    .frozen-music { font-size: 2rem; }
}

/* --- Sistema de Pestañas (Tabs) de Proyectos --- */
.project-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.2rem;
    font-family: var(--font-main);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    padding-bottom: 10px;
    position: relative;
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    color: var(--text-light);
}

.tab-btn.active::after {
    width: 100%;
}

/* Contenido de las pestañas */
.tab-content {
    display: none;
    animation: fadeInTab 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Grid de Contacto y Mapa --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch; /* Permite que el mapa y la tarjeta tengan la misma altura */
}

/* Contenedor del Mapa */
.contact-map {
    width: 100%;
    min-height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent-color);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(80%) contrast(1.1); /* Mapa en tonos grises para mantener la elegancia */
    transition: var(--transition);
}

.contact-map iframe:hover {
    filter: grayscale(0%); /* El mapa recupera sus colores al pasar el mouse */
}