:root {
    --color-negro: #1a1a1a;
    --color-roble: #d4c4a8;
    --color-terracota: #a85a4e;
    --color-fondo: #f7f7f5;
    --font-tecnica: 'Inter', sans-serif;
    --font-marca: 'Syne', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--color-fondo);
    font-family: var(--font-tecnica);
    color: var(--color-negro);
    padding-top: 70px; /* Espacio para navbar */
}

/* --- NAVBAR --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; 
    background-color: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: 70px;
}

.nav-logo { cursor: pointer; display: flex; align-items: center; height: 100%; }
.nav-logo svg { height: 30px; width: auto; display: block; }

/* Enlaces Escritorio */
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; }
.nav-links a {
    text-decoration: none; color: var(--color-negro); font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--color-terracota); }
.nav-icons { display: flex; gap: 20px; font-size: 1.3rem; cursor: pointer; color: var(--color-negro); }

/* BOTÓN HAMBURGUESA (MÓVIL) */
.mobile-menu-btn { display: none; font-size: 1.8rem; cursor: pointer; color: var(--color-negro); }

/* MENÚ MÓVIL DESPLEGABLE */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--color-fondo); z-index: 2000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 30px;
    transform: translateY(-100%); /* Oculto arriba */
    transition: transform 0.3s ease-in-out;
}
.mobile-menu-overlay.open { transform: translateY(0); } /* Mostrar */

.mobile-menu-overlay a {
    font-family: var(--font-marca); font-size: 1.5rem; 
    text-decoration: none; color: var(--color-negro); font-weight: 700;
}
.close-menu-btn {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; font-size: 2rem; cursor: pointer;
}

/* --- INDEX & GRID --- */
.bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    min-height: calc(100vh - 70px); width: 100vw;
    gap: 12px; padding: 12px; grid-auto-flow: dense;
}

.grid-item {
    position: relative; background-size: cover; background-position: center;
    border-radius: 2px; cursor: pointer; overflow: hidden;
    transition: transform 0.5s; min-height: 300px; 
}
.grid-item:hover { background-size: 110%; z-index: 1; }

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 20px; background: rgba(0,0,0,0.2); opacity: 0; transition: all 0.3s ease;
}
.grid-item:hover .overlay { opacity: 1; background: rgba(26, 26, 26, 0.7); }

.cotas-tecnicas {
    color: var(--color-roble); font-family: monospace; font-size: 0.75rem;
    border: 1px solid var(--color-roble); padding: 5px 10px; align-self: flex-start;
    background: rgba(0,0,0,0.5);
}
.info-box { text-align: center; color: white; }
.info-box h3 { font-family: var(--font-marca); font-weight: 700; font-size: 1.6rem; margin-bottom: 5px; }
.price { font-weight: 300; font-size: 1.1rem; margin-bottom: 20px; color: #eee; }

.btn-edit {
    background: transparent; border: 1px solid white; color: white;
    padding: 10px 25px; cursor: pointer; text-transform: uppercase;
    font-size: 0.7rem; letter-spacing: 2px; transition: all 0.3s;
}
.btn-edit:hover { background: white; color: var(--color-negro); }

/* CENTER CTA */
.center-cta {
    grid-column: 2 / span 2; grid-row: 2 / span 2;
    background-color: white; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    border: 1px solid rgba(0,0,0,0.05); position: relative; z-index: 10;
    padding: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.cta-content { width: 100%; transform: translateY(-15px); }
.brand-logo-big svg { width: 100%; max-width: 280px; height: auto; margin-bottom: 15px; display: block; margin-left: auto; margin-right: auto;}
.brand-promise { font-size: 1rem; color: #444; margin-bottom: 30px; }

.btn-primary {
    background-color: var(--color-negro); color: white; border: none;
    padding: 18px 40px; font-size: 0.9rem; letter-spacing: 1.5px;
    font-weight: 600; cursor: pointer; text-transform: uppercase; border-radius: 2px;
}
.btn-primary:hover { background-color: var(--color-terracota); }

/* ICONOS CONFIANZA */
.trust-badges {
    display: flex; justify-content: center; gap: 40px; margin-top: 35px; 
    padding-top: 20px; border-top: 1px solid #f0f0f0; width: 100%;
}
.badge { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #888; font-size: 0.65rem; text-transform: uppercase; font-weight: 600; }
.badge i { font-size: 1.4rem; color: var(--color-terracota); }

/* ANIMACIÓN CUBO */
.cube-animation { width: 60px; height: 60px; margin: 0 auto 25px; position: relative; display: flex; align-items: center; justify-content: center; }
.cube { border: 2px solid var(--color-negro); position: relative; animation: configurator-cycle 8s infinite ease-in-out; overflow: hidden; }
.drawer { top: 33%; left: 0; width: 100%; height: 2px; background: var(--color-negro); position: absolute; animation: show-drawer 8s infinite ease-in-out; }
.door { top: 0; left: 50%; width: 2px; height: 100%; background: var(--color-negro); position: absolute; animation: show-door 8s infinite ease-in-out; }
.cube::after { content: ''; position: absolute; top: -5px; right: -5px; width: 10px; height: 10px; background: var(--color-terracota); }
@keyframes configurator-cycle { 0%, 15% { width: 40px; height: 40px; } 25%, 40% { width: 70px; height: 40px; } 50%, 65% { width: 30px; height: 60px; } 75%, 90% { width: 50px; height: 50px; } 100% { width: 40px; height: 40px; } }
@keyframes show-door { 0%, 20%, 45%, 100% { opacity: 0; } 25%, 40% { opacity: 1; } }
@keyframes show-drawer { 0%, 45%, 70%, 100% { opacity: 0; } 50%, 65% { opacity: 1; } }

/* --- PÁGINAS DE CONTENIDO --- */
.product-layout { display: flex; min-height: calc(100vh - 70px); }
.product-visual { flex: 1.2; background-color: #e0e0e0; background-size: cover; background-position: center; }
.product-details { flex: 0.8; background: white; padding: 60px 80px; display: flex; flex-direction: column; justify-content: center; }
.p-title { font-family: var(--font-marca); font-size: 3.5rem; line-height: 1; margin-bottom: 15px; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 50px; border-top: 1px solid #eee; padding-top: 30px; }
.spec-box h4 { font-size: 0.7rem; text-transform: uppercase; color: #999; margin-bottom: 5px; }
.spec-box p { font-size: 1.1rem; font-weight: 600; }

/* PROYECTOS */
.projects-hero { padding: 80px 20px 40px; text-align: center; background: white; border-bottom: 1px solid #f5f5f5; }
.projects-hero h1 { font-family: var(--font-marca); font-size: 3rem; margin-bottom: 15px; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; padding: 60px 40px; max-width: 1400px; margin: 0 auto; }
.project-card { background: white; border-radius: 4px; overflow: hidden; border: 1px solid #f0f0f0; }
.project-img { height: 250px; background-color: #ddd; background-size: cover; position: relative; }
.project-location { position: absolute; bottom: 15px; left: 15px; background: rgba(255,255,255,0.9); padding: 5px 10px; font-size: 0.6rem; font-weight: 600; border-radius: 2px; text-transform: uppercase; }
.project-info { padding: 25px; }
.btn-project { width: 100%; padding: 12px; background: var(--color-negro); color: white; border: none; font-size: 0.75rem; text-transform: uppercase; cursor: pointer; font-weight: 600; letter-spacing: 1px; }

/* SISTEMA */
.system-hero { height: 60vh; background-color: var(--color-negro); color: white; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; }
.system-hero h1 { font-family: var(--font-marca); font-size: 4.5rem; margin-bottom: 20px; }
.feature-section { padding: 100px 40px; display: flex; align-items: center; gap: 80px; max-width: 1200px; margin: 0 auto; }
.feature-section.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; } .feature-visual { flex: 1.2; height: 500px; background-color: #e0e0e0; border-radius: 8px; background-size: cover; background-position: center; }
.tech-badge { display: inline-block; padding: 6px 12px; background: var(--color-terracota); color: white; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; border-radius: 4px; margin-bottom: 20px; }

/* FOOTER */
.footer-global { background-color: var(--color-negro); color: white; padding: 60px 40px 20px; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; max-width: 1400px; margin: 0 auto; }
.footer-col h4 { font-family: var(--font-marca); font-size: 1.1rem; margin-bottom: 25px; color: white; letter-spacing: 1px; }
.footer-col ul { list-style: none; padding: 0; } .footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #999; text-decoration: none; font-size: 0.85rem; transition: color 0.3s; } .footer-col ul li a:hover { color: white; }
.social-icons { display: flex; gap: 20px; } .social-icons i { font-size: 1.5rem; color: white; cursor: pointer; }
.footer-bottom { border-top: 1px solid #333; padding-top: 30px; text-align: center; font-size: 0.75rem; color: #666; }

/* --- ADAPTACIÓN MÓVIL (MEDIA QUERIES) --- */
@media (max-width: 768px) {
    /* Navbar Móvil */
    .navbar { padding: 0 20px; }
    .desktop-only { display: none !important; }
    .nav-links, .nav-icons.desktop-only { display: none; }
    .mobile-menu-btn { display: block !important; }

    /* Grid Móvil: Una columna */
    .bento-container { grid-template-columns: 1fr; height: auto; display: flex; flex-direction: column; }
    .center-cta { order: -1; min-height: 60vh; margin-bottom: 20px; padding: 30px 20px; position: relative; top: 0; }
    .grid-item { min-height: 300px; margin-bottom: 10px; }
    
    /* Info siempre visible en móvil */
    .overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); justify-content: flex-end; }
    .cotas-tecnicas { display: none; }
    .btn-edit { background: white; color: black; display: inline-block; margin-top: 10px; }
    .info-box h3 { text-align: left; font-size: 1.5rem; }
    .price { text-align: left; color: #ddd; }

    /* Páginas de Contenido Móvil */
    .product-layout { flex-direction: column; }
    .product-visual { height: 40vh; }
    .product-details { padding: 30px 20px; }
    .p-title { font-size: 2.5rem; }
    .specs-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    
    .projects-grid { grid-template-columns: 1fr; padding: 20px; }
    
    .system-hero h1 { font-size: 2.8rem; }
    .feature-section { flex-direction: column; padding: 40px 20px; }
    .feature-section.reverse { flex-direction: column; }
    .feature-visual { width: 100%; height: 250px; }

    /* Footer Móvil */
    .footer-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .social-icons { justify-content: center; }
}

/* Resaltado de mueble seleccionado en la lista */
.selected-row {
    background-color: #e3f2fd; /* Azul muy suave */
    font-weight: 700;
    border-left: 4px solid var(--color-negro);
    padding-left: 8px;
}

/* Ajuste para los botones de captura juntos */
.action-group {
    display: flex;
    gap: 5px;
}