/* Estilos Generales - Estética Cyber-Minimalista e Iluminación Técnica */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0f172a; /* Fondo azul noche oscuro tecnológico */
    color: #cbd5e1; /* Texto gris claro de alta legibilidad */
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    line-height: 1.5;
}

header {
    background-color: rgba(15, 23, 42, 0.9);
    border-bottom: 2px solid #06b6d4; /* Línea de acento cian brillante */
    padding: 1.2rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* Botón solicitado con el texto exacto */
.btn-sucursal {
    background-color: #06b6d4; /* Cian/Neón de alta eficiencia */
    color: #0f172a; /* Fondo oscuro para máximo contraste */
    padding: 0.65rem 1.4rem;
    border-radius: 4px; /* Esquinas de perfil técnico rígido */
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
    transition: all 0.2s ease-in-out;
}

.btn-sucursal:hover {
    background-color: #22d3ee;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
    transform: translateY(-1px);
}

/* Sección Hero / Portada */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.98)), 
                url('https://images.unsplash.com/photo-1513506003901-1e6a229e2d15?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 8.5rem 1.5rem;
    border-bottom: 1px solid #1e293b;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 750px;
    margin: 0 auto;
    font-weight: 400;
}

/* Sección Historia */
.historia {
    max-width: 800px;
    margin: 5rem auto;
    padding: 3rem;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.historia h2 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.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: 800;
    margin-bottom: 4rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.producto-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-4px);
    border-color: #06b6d4;
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.1);
}

.producto-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: brightness(0.9);
    border-bottom: 1px solid #334155;
}

.producto-info {
    padding: 1.8rem;
}

.producto-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.producto-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    height: 60px;
    overflow: hidden;
}

.producto-precio {
    font-size: 1.35rem;
    font-weight: 700;
    color: #06b6d4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #334155;
    padding-top: 1rem;
}

/* Botón Energizar */
.btn-comprar {
    background-color: #334155;
    color: #ffffff;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-comprar:hover {
    background-color: #06b6d4;
    color: #0f172a;
}

/* Footer */
footer {
    background-color: #090d16;
    color: #475569;
    text-align: center;
    padding: 3rem;
    margin-top: 7rem;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
}

/* ==========================================================================
   VENTANA MODAL DE RED DE NEGOCIOS OPTICOS / MAYORISTA
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #1e293b;
    border: 2px solid #06b6d4;
    border-radius: 6px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.8rem;
    font-size: 1.6rem;
    color: #94a3b8;
    cursor: pointer;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-header {
    text-align: left;
    margin-bottom: 2rem;
}

.modal-header h2 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.modal-header p {
    color: #94a3b8;
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #06b6d4;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #334155;
    background-color: #0f172a;
    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 0 2px rgba(6, 182, 212, 0.2);
}

.btn-submit {
    width: 100%;
    background-color: #06b6d4;
    color: #0f172a;
    padding: 0.9rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #22d3ee;
}