/* VARIABLES Y RESET */
:root {
    --brand: #FACC15; /* Amarillo Maquinaria */
    --brand-hover: #EAB308;
    --bg-main: #09090B; /* Negro profundo */
    --bg-card: #18181B; /* Gris oscuro */
    --text-main: #FAFAFA;
    --text-muted: #A1A1AA;
    --sidebar-w: 280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; }
body { background-color: var(--bg-main); color: var(--text-main); line-height: 1.7; display: flex; }
img { max-width: 100%; height: auto; display: block; }

/* SIDEBAR (NAVEGACIÓN LATERAL) */
.sidebar { width: var(--sidebar-w); background: var(--bg-card); height: 100vh; position: fixed; top: 0; left: 0; display: flex; flex-direction: column; padding: 40px 20px; border-right: 1px solid #27272A; z-index: 1000; overflow-y: auto; }
.logo { font-size: 1.8rem; font-weight: 900; color: var(--text-main); text-decoration: none; text-transform: uppercase; letter-spacing: 2px; text-align: center; margin-bottom: 40px; }
.logo span { color: var(--brand); }

nav { flex-grow: 1; }
.nav-links { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.nav-links a { display: block; padding: 12px 20px; color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-radius: 6px; transition: all 0.3s; }
.nav-links a:hover, .nav-links a.active { background: rgba(250, 204, 21, 0.1); color: var(--brand); border-left: 4px solid var(--brand); }

.lang-selector-container { margin-top: auto; padding-top: 30px; border-top: 1px solid #27272A; }
select { width: 100%; background: var(--bg-main); color: var(--brand); border: 1px solid var(--brand); padding: 10px; font-weight: bold; cursor: pointer; outline: none; border-radius: 4px; }

/* CONTENIDO PRINCIPAL */
.main-content { margin-left: var(--sidebar-w); width: calc(100% - var(--sidebar-w)); min-height: 100vh; display: flex; flex-direction: column; }

/* HERO CON VÍDEO LOCAL (INICIO) */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 0 5%; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); z-index: 0; object-fit: cover; opacity: 0.6; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(9,9,11,0.9), rgba(9,9,11,0.5)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-content h1 { font-size: 4rem; font-weight: 900; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 2px; }
.hero-content h1 span { color: var(--brand); }
.hero-content p { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 30px; }

/* SECCIONES DE TEXTO (HOME LONG SCROLL) */
.section-pad { padding: 80px 8%; }
.intro-section { background: var(--bg-card); }
.intro-section h2, .content-block h2 { font-size: 2.5rem; color: var(--brand); margin-bottom: 25px; text-transform: uppercase; }
.intro-section p, .content-block p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 20px; text-align: justify; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-box { background: var(--bg-main); padding: 40px 30px; border-top: 3px solid var(--brand); border-radius: 6px; text-align: center; }
.feature-box h4 { font-size: 1.3rem; margin-bottom: 15px; color: var(--text-main); }
.feature-box p { font-size: 1rem; color: var(--text-muted); text-align: center; }

.cta-banner { background: var(--brand); color: var(--bg-main); text-align: center; padding: 60px 5%; }
.cta-banner h2 { font-size: 2.5rem; margin-bottom: 15px; color: var(--bg-main); text-transform: uppercase; font-weight: 900; }

/* CABECERAS INTERNAS */
.page-header { padding: 80px 8% 40px; border-bottom: 1px solid #27272A; }
.page-header h1 { font-size: 3.5rem; color: var(--brand); text-transform: uppercase; font-weight: 900; }

/* CATÁLOGO (SERVICIOS - SOLO TÍTULOS) */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; padding: 60px 8%; }
.catalog-card { background: var(--bg-card); overflow: hidden; border-radius: 8px; position: relative; display: flex; align-items: flex-end; height: 350px; transition: transform 0.3s; }
.catalog-card:hover { transform: scale(1.03); }
.catalog-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: opacity 0.3s; }
.catalog-card:hover img { opacity: 0.8; }
.catalog-card h3 { position: relative; z-index: 2; width: 100%; background: rgba(9, 9, 11, 0.9); padding: 25px 20px; margin: 0; text-align: center; color: var(--brand); font-size: 1.5rem; text-transform: uppercase; border-top: 2px solid var(--brand); }

/* TESTIMONIOS (RESEÑAS ANÓNIMAS) */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; padding: 60px 8%; }
.review-box { background: var(--bg-card); padding: 50px; border-radius: 8px; position: relative; border: 1px solid #27272A; }
.review-box::before { content: '"'; font-size: 6rem; color: var(--brand); opacity: 0.2; position: absolute; top: -10px; left: 20px; font-family: serif; }
.review-box p { font-size: 1.2rem; color: var(--text-main); font-style: italic; position: relative; z-index: 2; }

/* SOPORTE (FAQ) */
.faq-container { padding: 60px 8%; }
.faq-item { background: var(--bg-card); padding: 40px; margin-bottom: 30px; border-left: 5px solid var(--brand); border-radius: 6px; }
.faq-item h3 { font-size: 1.6rem; color: var(--text-main); margin-bottom: 15px; }
.faq-item p { font-size: 1.15rem; color: var(--text-muted); }

/* CONTACTO */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 60px 8%; }
.contact-data { background: var(--bg-card); padding: 50px; border-radius: 8px; }
.contact-data h2 { color: var(--brand); font-size: 2rem; margin-bottom: 30px; }
.contact-data p { font-size: 1.15rem; margin-bottom: 20px; color: var(--text-muted); }
.contact-data strong { color: var(--text-main); display: block; margin-bottom: 5px; text-transform: uppercase; font-size: 0.9rem; }
.map-wrap { width: 100%; min-height: 500px; border-radius: 8px; overflow: hidden; border: 2px solid #27272A; }

/* FOOTER */
footer { background: #000; padding: 60px 8% 40px; text-align: center; border-top: 1px solid #27272A; margin-top: auto; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; text-transform: uppercase; transition: color 0.3s; }
.footer-links a:hover { color: var(--brand); }
.footer-logos { margin-bottom: 20px; display: flex; justify-content: center; }
.footer-logos img { height: 150px; background: #ffffff00; padding: 10px; border-radius: 4px; }

/* LEGAL TEXT */
.legal-text { padding: 60px 8%; }
.legal-text h1 { color: var(--brand); font-size: 2.5rem; margin-bottom: 30px; text-transform: uppercase; }
.legal-text h2 { color: var(--text-main); font-size: 1.5rem; margin: 30px 0 15px; }
.legal-text p, .legal-text li { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 15px; }
.legal-text ul { padding-left: 20px; margin-bottom: 20px; }

/* RESPONSIVE */
@media (max-width: 992px) {
    body { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; padding: 20px; border-right: none; border-bottom: 1px solid #27272A; display: block; text-align: center; }
    .logo { margin-bottom: 20px; }
    .nav-links { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
    .nav-links a { padding: 8px 15px; font-size: 0.8rem; border-left: none; border-bottom: 2px solid transparent; }
    .nav-links a:hover, .nav-links a.active { border-left: none; border-bottom: 2px solid var(--brand); }
    .lang-selector-container { padding-top: 15px; }
    .main-content { margin-left: 0; width: 100%; }
    .hero { height: auto; padding: 100px 5%; }
    .contact-container { grid-template-columns: 1fr; }
}