/* ============================================
   ESTILO MODERNO 2026 - Seguridad para el Hogar
   Glassmorphism + Gradientes + Diseño profesional
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fe 0%, #eef2fa 100%);
    color: #1a2a3a;
    line-height: 1.5;
}

/* ===== BARRA SUPERIOR ===== */
.top-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}
.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer { 100% { left: 100%; } }
.top-bar a { color: #ffd700; font-weight: 600; text-decoration: none; margin-left: 8px; }
.top-bar a:hover { text-decoration: underline; }

/* ===== HEADER ===== */
header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.logo-area { display: flex; align-items: center; gap: 15px; }
.logo-area img { height: 50px; transition: transform 0.3s; }
.logo-area img:hover { transform: scale(1.05); }
.logo-area h1 { font-size: 1.4rem; background: linear-gradient(135deg, #667eea, #764ba2); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* ===== NAVEGACIÓN ===== */
nav ul { display: flex; gap: 25px; list-style: none; flex-wrap: wrap; }
nav ul li a { color: #4a5568; text-decoration: none; font-weight: 500; transition: 0.3s; padding: 8px 0; position: relative; }
nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s;
}
nav ul li a:hover:after { width: 100%; }
nav ul li a:hover { color: #667eea; }
nav ul li a.active { color: #667eea; }
nav ul li a.active:after { width: 100%; }

/* ===== MENÚ MÓVIL ===== */
.menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #4a5568; }
.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    z-index: 1001;
    transition: 0.3s;
    padding-top: 80px;
    box-shadow: 5px 0 20px rgba(0,0,0,0.1);
}
.mobile-menu.show { left: 0; }
.mobile-menu ul li a {
    display: block;
    padding: 15px 25px;
    color: #4a5568;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 500;
}
.mobile-menu ul li a:hover { background: linear-gradient(90deg, #667eea15, transparent); color: #667eea; }
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
}
.overlay.show { display: block; }

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(102,126,234,0.4); }
.btn-outline { background: transparent; border: 2px solid #667eea; color: #667eea; box-shadow: none; }
.btn-outline:hover { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.btn-wa { background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 4px 15px rgba(37,211,102,0.3); }
.btn-phone { background: linear-gradient(135deg, #f093fb, #f5576c); box-shadow: 0 4px 15px rgba(245,87,108,0.3); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #667eea08, #764ba208);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    margin: 30px;
    padding: 60px 30px;
    text-align: center;
    border: 1px solid rgba(102,126,234,0.2);
}
.hero h1, .hero h2 { font-size: 2.5rem; background: linear-gradient(135deg, #1a2a3a, #667eea); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 20px; }
.hero p { font-size: 1.1rem; color: #4a5568; max-width: 600px; margin: 0 auto; }

/* ===== SECCIONES ===== */
.section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 50px 30px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.5);
}
.section h2, .section h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1a2a3a, #667eea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== GRIDS Y TARJETAS ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 30px 25px;
    border-radius: 28px;
    transition: all 0.3s;
    text-align: center;
    border: 1px solid rgba(102,126,234,0.15);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.card:hover { transform: translateY(-10px); background: white; box-shadow: 0 20px 40px rgba(102,126,234,0.15); border-color: rgba(102,126,234,0.3); }
.card h4 { font-size: 1.3rem; margin-bottom: 12px; color: #1a2a3a; }
.card-icon { font-size: 2.5rem; margin-bottom: 15px; }

/* ===== PRODUCTOS ===== */
.productos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.producto {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}
.producto:hover { transform: translateY(-8px); box-shadow: 0 25px 45px rgba(102,126,234,0.15); }
.producto img { width: 100%; height: 200px; object-fit: cover; transition: 0.3s; }
.producto:hover img { transform: scale(1.02); }
.producto-info { padding: 25px; }
.producto-info h4 { font-size: 1.2rem; margin-bottom: 10px; }
.precio { font-size: 1.4rem; font-weight: 700; background: linear-gradient(135deg, #667eea, #764ba2); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 12px 0; }
.btn-producto {
    display: block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 15px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-producto:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102,126,234,0.4); }

/* ===== TESTIMONIOS ===== */
.testimonios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.testimonio {
    background: rgba(255,255,255,0.9);
    padding: 28px;
    border-radius: 28px;
    position: relative;
    border: 1px solid rgba(102,126,234,0.1);
}
.testimonio:before { content: '"'; font-size: 4rem; color: rgba(102,126,234,0.2); position: absolute; top: 15px; left: 20px; font-family: serif; }
.estrellas { color: #ffc107; margin-bottom: 15px; letter-spacing: 2px; }

/* ===== CONTACTO ===== */
.contacto {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
    padding: 60px 30px;
    border-radius: 40px;
    margin: 40px;
}
.contacto h2, .contacto h3 { color: white; background: none; -webkit-background-clip: unset; background-clip: unset; }
.contacto a { color: #ffd700; text-decoration: none; }
.contacto a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #1a2a3a, #2d3a4a);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-fixed {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(37,211,102,0.4);
    z-index: 100;
    transition: 0.3s;
    text-decoration: none;
}
.whatsapp-fixed:hover { transform: scale(1.1) rotate(5deg); }

/* ===== UTILIDADES ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-btn { display: block; }
    nav ul { display: none; }
    .hero { margin: 15px; padding: 40px 20px; }
    .hero h1, .hero h2 { font-size: 1.8rem; }
    .section { margin: 20px 15px; padding: 35px 20px; }
    .section h2, .section h3 { font-size: 1.5rem; }
    .contacto { margin: 20px 15px; padding: 40px 20px; }
    .grid, .productos-grid, .testimonios-grid { gap: 15px; }
    .card, .producto, .testimonio { padding: 20px; }
}

@media (max-width: 480px) {
    .logo-area h1 { font-size: 1rem; }
    .hero h1, .hero h2 { font-size: 1.4rem; }
    .btn { padding: 10px 18px; font-size: 0.85rem; }
    .whatsapp-fixed { width: 48px; height: 48px; font-size: 1.4rem; bottom: 20px; right: 20px; }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.section, .hero, .contacto { animation: fadeInUp 0.6s ease-out; }