/* Estilos Generales - Estética Cyberpunk Industrial y Computación Avanzada */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Consolas', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #090d16; /* Negro silicio / Abismo tecnológico */
    color: #cbd5e1; /* Gris claro de datos */
    line-height: 1.6;
}

header {
    background-color: rgba(9, 13, 22, 0.9);
    border-bottom: 2px solid #06b6d4; /* Línea cian de transmisión cuántica */
    padding: 1.2rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Botón solicitado con el texto exacto */
.btn-sucursal {
    background-color: transparent;
    color: #06b6d4; /* Cian eléctrico */
    padding: 0.6rem 1.4rem;
    border-radius: 4px; /* Esquinas angulares estilo hardware militar */
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid #06b6d4;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-sucursal:hover {
    background-color: #06b6d4;
    color: #090d16;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
}

/* Sección Hero / Portada */
.hero {
    background: linear-gradient(rgba(9, 13, 22, 0.75), rgba(9, 13, 22, 0.95)), 
                url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 8rem 1.5rem;
    border-bottom: 1px solid #1e293b;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: #f43f5e; /* Rojo neón / Alerta térmica */
    max-width: 700px;
    margin: 0 auto;
}

/* Sección Historia */
.historia {
    max-width: 850px;
    margin: 5rem auto;
    padding: 2.5rem;
    background-color: #0f172a;
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 8px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.05);
}

.historia::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(#06b6d4, #f43f5e); /* Graduación de energía */
}

.historia h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.historia p {
    color: #94a3b8;
    font-size: 0.95rem;
    text-align: justify;
    line-height: 1.7;
}

/* Sección Catálogo */
.catalogo {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.catalogo h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 4rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.producto-card {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.producto-card:hover {
    transform: translateY(-4px);
    border-color: #f43f5e;
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.1);
}

.producto-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid #1e293b;
}

.producto-info {
    padding: 1.8rem;
}

.producto-titulo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.producto-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.8rem;
    height: 60px;
    overflow: hidden;
}

.producto-precio {
    font-size: 1.4rem;
    font-weight: 700;
    color: #06b6d4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Botón Bootear / Compra */
.btn-comprar {
    background-color: #1e293b;
    color: #ffffff;
    padding: 0.5rem 1.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-comprar:hover {
    background-color: #f43f5e;
    border-color: #f43f5e;
    color: #ffffff;
}

/* Footer */
footer {
    background-color: #05070c;
    color: #475569;
    text-align: center;
    padding: 3rem;
    margin-top: 8rem;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
}

/* ==========================================================================
   VENTANA MODAL MATRIZ / SERVIDORES TECH DE NEGOCIOS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 12, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #0f172a;
    border: 2px solid #06b6d4;
    padding: 3rem;
    border-radius: 8px;
    width: 100%;
    max-width: 520px;
    position: relative;
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.2);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.8rem;
    font-size: 1.8rem;
    color: #06b6d4;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #f43f5e;
}

.modal-header {
    text-align: left;
    margin-bottom: 2rem;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 1rem;
}

.modal-header h2 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.modal-header p {
    color: #94a3b8;
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #f43f5e;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #1e293b;
    background-color: #090d16;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #ffffff;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.btn-submit {
    width: 100%;
    background-color: transparent;
    color: #06b6d4;
    padding: 0.9rem;
    border: 2px solid #06b6d4;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background-color: #06b6d4;
    color: #090d16;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}