/* =========================================
   DSP INDUSTRIAL - HOJA DE ESTILOS PRINCIPAL
   Diseño UI/UX: Industrial Tech & Glassmorphism
   Versión CRO (Conversión Optimizada)
   ========================================= */

/* -----------------------------------------
   1. VARIABLES & TOKENS DE DISEÑO
   ----------------------------------------- */
:root {
    /* Paleta de Colores Corporativa */
    --color-primary: #003366;      /* Azul Oscuro: Confianza */
    --color-secondary: #005a9c;    /* Azul Medio */
    --color-accent: #00bfff;       /* Cian Eléctrico: Acción / Conversión */
    
    /* Fondos y Textos */
    --color-bg-light: #f4f7f6;
    --color-text-main: #333333;
    --color-text-light: #f9f9f9;
    
    /* Efectos */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --backdrop-blur: blur(12px);
    
    /* UI */
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* -----------------------------------------
   2. RESET & BASE
   ----------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .btn { font-family: 'Montserrat', sans-serif; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Visually Hidden para SEO */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* -----------------------------------------
   3. HEADER & NAVEGACIÓN
   ----------------------------------------- */
.header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 15px 0; transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.02);
}

.header.scrolled {
    background: rgba(0, 51, 102, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 10px 0;
}

.header-container { display: flex; justify-content: space-between; align-items: center; }

.logo a {
    display: block; background: rgba(255,255,255,0.9);
    padding: 8px 12px; border-radius: 8px;
    transition: var(--transition-smooth);
}
.logo img { height: 45px; width: auto; display: block; }

.nav-links { display: flex; gap: 30px; align-items: center; list-style: none; }

.nav-links a {
    text-decoration: none; color: var(--color-text-light);
    font-weight: 500; font-size: 0.95rem; position: relative;
    padding: 5px 0; text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.header.scrolled .nav-links a { text-shadow: none; }

/* Underline Hover Effect */
.nav-links a:not(.btn-cotizar)::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background-color: var(--color-accent); transition: var(--transition-smooth);
}
.nav-links a:not(.btn-cotizar):hover::after { width: 100%; }

/* CTA Header: Botón Cotizar */
.btn-cotizar {
    background-color: var(--color-accent);
    color: var(--color-primary) !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    font-weight: 800 !important; /* Más peso para urgencia */
    text-shadow: none !important;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
    transition: var(--transition-smooth);
}
.btn-cotizar:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.7);
    background-color: #fff;
}

/* Mobile Nav */
.mobile-nav-toggle { display: none; background: transparent; border: none; cursor: pointer; width: 44px; height: 44px; padding: 10px; z-index: 2000; }
.line { display: block; width: 100%; height: 3px; background-color: #fff; margin: 5px 0; border-radius: 2px; transition: var(--transition-smooth); }

/* -----------------------------------------
   4. HERO SECTION
   ----------------------------------------- */
.hero {
    position: relative; height: 100vh; min-height: 700px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden; margin-bottom: -50px;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
}

.hero-background {
    position: absolute; inset: 0; background-size: cover;
    background-position: center; background-attachment: fixed; z-index: -1;
}
.hero-background::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,20,40,0.5) 0%, rgba(0,30,60,0.85) 100%);
}

.hero-content { z-index: 2; color: #fff; max-width: 900px; padding-top: 60px; }

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800; line-height: 1.1; margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4); letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem; opacity: 0.95; font-weight: 300;
    margin-bottom: 40px; max-width: 700px;
    margin-left: auto; margin-right: auto;
}

.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* Botones Globales CRO */
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 36px; border-radius: 6px; font-weight: 700;
    text-decoration: none; text-transform: uppercase; letter-spacing: 1px;
    font-size: 0.9rem; min-height: 48px; /* Touch target optimizado */
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.4); /* Sombra de acción */
    border: 2px solid var(--color-accent);
}
.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.6);
    background-color: #fff; border-color: #fff;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    border-color: #fff; background: #fff; color: var(--color-primary);
}

/* -----------------------------------------
   5. SECCIONES
   ----------------------------------------- */
.section-light { padding: 100px 0 80px; background: #fff; }

.authority-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px;
}

.authority-item {
    text-align: center; padding: 30px; transition: var(--transition-smooth); border-radius: var(--border-radius);
}
.authority-item:hover { background: var(--color-bg-light); transform: translateY(-5px); }

.icon-wrapper {
    width: 80px; height: 80px; background: #eef4fb; color: var(--color-secondary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 2rem;
}

.authority-item h3 { color: var(--color-primary); margin-bottom: 15px; font-weight: 700; }

/* Glassmorphism Section */
.section-dark-blueprint {
    background: linear-gradient(rgba(0, 30, 60, 0.92), rgba(0, 30, 60, 0.92)), url('../multimedia/Blueprint.735Z.png');
    background-size: cover; background-attachment: fixed; padding: 120px 0; color: #fff;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; color: #fff; }
.section-header .subtitle { color: #a0b4cc; font-size: 1.1rem; }

.productos-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px;
}

/* Tarjeta Producto */
.producto-card {
    background: var(--glass-bg); backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: var(--glass-border); border-radius: 16px;
    overflow: hidden; display: flex; flex-direction: column;
    transition: var(--transition-smooth); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.producto-card:hover {
    transform: translateY(-10px); border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.15);
}

.producto-card figure {
    height: 220px; padding: 20px; background: rgba(255,255,255,0.02);
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.producto-imagen {
    max-width: 100%; max-height: 100%; object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3)); transition: transform 0.5s ease;
}
.producto-card:hover .producto-imagen { transform: scale(1.08); }

.card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.card-content h3 { color: var(--color-accent); font-size: 1.4rem; margin-bottom: 12px; }
.card-content p { color: #d1dce5; font-size: 0.95rem; margin-bottom: 25px; flex-grow: 1; }

.btn-text {
    color: #fff; font-weight: 700; text-transform: uppercase; font-size: 0.85rem;
    letter-spacing: 1px; display: flex; align-items: center; gap: 8px; text-decoration: none;
    transition: color 0.3s;
}
.btn-text:hover { color: var(--color-accent); }

.ver-todos-container { text-align: center; margin-top: 60px; }

/* -----------------------------------------
   6. CONTACTO RÁPIDO (CTA)
   ----------------------------------------- */
.cta-seccion {
    padding: 80px 0; background: var(--color-bg-light);
    margin-top: -60px; position: relative; z-index: 10;
}

.quick-contact-wrapper {
    background: #fff; border-radius: 20px; padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border-top: 6px solid var(--color-secondary);
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px;
    align-items: center; max-width: 1000px; margin: 0 auto;
}

.quick-contact-text h2 {
    font-size: 2rem; color: var(--color-primary); margin-bottom: 15px; line-height: 1.2; text-align: left;
}
.quick-contact-text p { text-align: left; color: #666; font-size: 1.1rem; }

.simple-form { display: flex; flex-direction: column; gap: 15px; }
.form-row { display: flex; gap: 15px; }

.simple-form input {
    flex: 1; padding: 16px 20px; border: 2px solid #e0e0e0;
    border-radius: 8px; font-family: 'Roboto', sans-serif; font-size: 1rem;
    transition: var(--transition-smooth); min-height: 50px;
}
.simple-form input:focus { outline: none; border-color: var(--color-secondary); background: #fdfdfd; }

.simple-form .btn-primary {
    width: auto; border: none; background: var(--color-secondary); color: #fff; white-space: nowrap;
}
.simple-form .btn-primary:hover { background: var(--color-primary); transform: translateY(-2px); }

.form-note { font-size: 0.85rem; color: #666; margin-top: 10px; text-align: left; }
.form-note a { color: var(--color-primary); text-decoration: none; transition: color 0.3s; }
.form-note a:hover { color: var(--color-accent); text-decoration: underline; }

/* -----------------------------------------
   7. FOOTER
   ----------------------------------------- */
.footer {
    background-color: var(--color-primary); color: #fff; padding: 80px 0 30px; position: relative; text-align: left;
}
.footer-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 60px; alignItems: start;
}

.footer-logo {
    background: #fff; padding: 15px 25px; border-radius: 8px; display: inline-block;
    margin-bottom: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); max-width: 220px;
}
.footer-logo img { max-width: 180px; height: auto; display: block; }

.footer-col p { opacity: 0.8; font-size: 0.95rem; max-width: 300px; }
.footer-col h4 {
    font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 25px; position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; background: var(--color-accent);
}

.footer-links, .footer-contact-list { list-style: none; }
.footer-links li, .footer-contact-list li { margin-bottom: 12px; }

.footer-links a, .footer-contact-list a {
    color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s;
}
.footer-links a:hover, .footer-contact-list a:hover { color: var(--color-accent); padding-left: 5px; }

.footer-contact-list li { display: flex; align-items: center; gap: 15px; color: rgba(255,255,255,0.7); }
.footer-contact-list svg { color: var(--color-accent); flex-shrink: 0; }

.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a {
    width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff; transition: var(--transition-smooth);
}
.social-links a:hover {
    background: var(--color-accent); border-color: var(--color-accent); color: var(--color-primary); transform: translateY(-3px);
}

.footer-bottom {
    text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; opacity: 0.6;
}

/* -----------------------------------------
   8. RESPONSIVE MEDIA QUERIES
   ----------------------------------------- */
@media (max-width: 900px) {
    .quick-contact-wrapper { grid-template-columns: 1fr; text-align: center; padding: 30px; }
    .quick-contact-text h2, .quick-contact-text p, .form-note { text-align: center; }
    .simple-form .btn-primary { width: 100%; }
}

@media (max-width: 768px) {
    .header-container { padding: 0 15px; }
    .mobile-nav-toggle { display: block; }
    
    .nav-links {
        position: fixed; top: 0; right: 0; bottom: 0; width: 75%;
        background: rgba(0, 30, 60, 0.98); backdrop-filter: blur(15px);
        flex-direction: column; justify-content: center; transform: translateX(100%);
        transition: transform 0.4s ease-in-out; z-index: 1500;
        box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links[data-visible="true"] { transform: translateX(0); }
    .nav-links a { font-size: 1.5rem; padding: 15px; }

    .productos-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 2.5rem; }
    .form-row { flex-direction: column; }
    
    .footer-col { text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .footer-contact-list li { justify-content: center; }
    .social-links { justify-content: center; }
}