@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,700;0,800;0,900;1,900&family=Open+Sans:wght@400;500;600&display=swap');

/* VARIABLES */
:root {
    --primary-red: #D32F2F;
    --primary-blue: #0277BD;
    --dark: #212121;
    --text-color: #333;
    --whatsapp: #25D366;
    --bg-light: #f4f6f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background-color: white; 
    color: var(--text-color); 
    font-family: 'Open Sans', sans-serif;
}
a { text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, .logo-container span {
    font-family: 'Montserrat', sans-serif;
}

/* HEADER & NAVBAR (Menú Blanco) */
.navbar {
    background: #ffffff;
    padding: 0 5%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; top: 0; 
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid #f0f0f0;
}

.logo-container span[style*="color: white"] { color: var(--dark) !important; }
.logo-container span[style*="color: #bbb"] { color: #666 !important; font-weight: 600 !important; }

.nav-links { display: flex; gap: 20px; height: 100%; align-items: center; }
.nav-links a { 
    color: var(--text-color);
    font-weight: 600; 
    transition: all 0.3s ease; 
    font-size: 0.95rem; 
    font-family: 'Montserrat', sans-serif;
}
.nav-links a:hover { color: var(--primary-red); transform: translateY(-2px); }

/* --- MENÚ DESPLEGABLE --- */
.dropdown { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown-content {
    display: none; position: absolute; top: 80px; left: 0; background-color: white;
    min-width: 280px; box-shadow: 0px 15px 35px rgba(0,0,0,0.1); z-index: 10001;
    border-radius: 0 0 8px 8px; border-top: 4px solid var(--primary-red); overflow: hidden;
}
.dropdown-content a {
    color: var(--text-color) !important; padding: 15px 20px; text-decoration: none;
    display: block; border-bottom: 1px solid #f5f5f5; font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
}
.dropdown-content a:hover { 
    background-color: #fcfcfc; color: var(--primary-red) !important; padding-left: 25px;
}
.dropdown:hover .dropdown-content { display: block; }

/* HERO */
.hero-split { display: flex; min-height: 70vh; width: 100%; }
.split-side { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 40px 20px; }
.energy { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&q=80'); background-size: cover; border-right: 0; }
.services { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/insta_panel.jpg'); background-size: cover; background-position: center; /* Esto asegura que la foto quede bien centrada */ border-left: 0; }
.content { text-align: center; color: white; z-index: 2; }
.content h1 { font-size: 3rem; font-weight: 900; margin-bottom: 10px; }
.btn { padding: 12px 30px; border-radius: 4px; font-weight: bold; display: inline-block; cursor: pointer; border: none; margin-top: 15px; }
.btn-red { background: var(--primary-red); color: white; }
.btn-blue { background: var(--primary-blue); color: white; }

/* SECCIONES GENERALES */
.section-container { padding: 80px 5%; max-width: 1200px; margin: 0 auto; }
.bg-light { background-color: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; color: var(--dark); font-weight: 800; }

/* BUSCADOR */
.search-box { 
    background: white; padding: 40px; border-radius: 8px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); max-width: 500px; margin: 0 auto; border: 1px solid #eee;
    position: relative; z-index: 1; 
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: #555; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* GRID PRODUCTOS */
.filter-buttons { text-align: center; margin-bottom: 40px; }
.filter-btn { 
    padding: 10px 24px; margin: 5px; border: none; background: #f0f2f5; 
    border-radius: 50px; cursor: pointer; font-weight: 600; color: #555;
    transition: all 0.3s ease; font-family: 'Montserrat', sans-serif;
}
.filter-btn.active, .filter-btn:hover { background: var(--dark); color: white; box-shadow: 0 5px 15px rgba(33, 33, 33, 0.2); }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.card { 
    background: white; border-radius: 12px; overflow: hidden; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.02); 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease; 
}
.card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(211, 47, 47, 0.15); border-color: transparent; }
.card-img { height: 220px; padding: 20px; display: flex; align-items: center; justify-content: center; background-color: white; border-bottom: 1px solid #f9f9f9; cursor: zoom-in; }
.card-img img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform 0.3s ease;}
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 25px 20px; text-align: center; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--dark); font-weight: 700; }
.brand { font-size: 0.85rem; color: #888; display: block; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;}

/* ESTO OCULTA LOS BOTONES DE COTIZAR DEFINITIVAMENTE */
.btn-wa { display: none !important; }

/* BARRA DE ACCIÓN (FOOTER ROJO) */
.cta-banner { 
    background: linear-gradient(to right, #D32F2F, #B71C1C); color: white; 
    padding: 80px 20px; text-align: center; margin-top: 0px; clear: both;
    display: block; width: 100%; position: relative;
}
.cta-banner h2 { font-size: 2.5rem; text-transform: uppercase; font-weight: 900; margin-bottom: 20px; }
.cta-banner p { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; }
.btn-cta { 
    background: white; color: #D32F2F; padding: 18px 50px; border-radius: 50px; 
    font-weight: bold; font-size: 1.1rem; box-shadow: 0 5px 15px rgba(0,0,0,0.2); display: inline-block;
}
.btn-cta:hover { transform: scale(1.05); }

/* FOOTER FINAL Y MODAL */
footer { background: #111; color: #666; text-align: center; padding: 30px; font-size: 0.9rem; margin-top: 0; }
.modal { display: none; position: fixed; z-index: 100000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.modal-content { margin: auto; display: block; width: 80%; max-width: 800px; animation-name: zoom; animation-duration: 0.3s; }
.close { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 50px; font-weight: bold; cursor: pointer; }
@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }

/* BOTÓN FLOTANTE WHATSAPP */
.btn-wsp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: var(--whatsapp); color: #FFF; border-radius: 50px;
    text-align: center; font-size: 35px; box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 100000; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
}
.btn-wsp-float:hover { background-color: #128c7e; transform: scale(1.1); }

/* ESTILOS CONTACTO SIMPLE */
.contact-simple-wrapper { width: 100%; max-width: 1000px; margin: 0 auto; text-align: center; padding: 20px; }
.contact-title { font-size: 2.5rem; color: #003366; font-weight: 800; text-transform: uppercase; margin-bottom: 40px; }
.contact-cards-container { display: flex; justify-content: center; align-items: flex-start; gap: 0; }
.contact-card { flex: 1; padding: 20px; text-align: center; }
.contact-card h3 { font-size: 1.2rem; color: #333; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.icon-box { font-size: 3rem; color: var(--primary-blue); margin-bottom: 20px; }
.contact-link { font-size: 1.3rem; color: var(--primary-blue); text-decoration: none; font-weight: 500; transition: 0.3s; }
.contact-link:hover { color: var(--primary-red); text-decoration: underline; }
.vertical-line { width: 1px; height: 150px; background-color: #ccc; margin: 0 40px; }

/* MEDIA QUERIES (CELULAR) */
@media screen and (max-width: 768px) {
    .navbar { height: auto; flex-direction: column; padding: 15px 10px; position: relative; }
    .logo-container { margin-bottom: 15px; }
    .nav-links { display: flex; flex-direction: column; width: 100%; gap: 15px; text-align: center; padding: 0; }
    .nav-links li { width: 100%; border-bottom: 1px solid #444; padding-bottom: 5px; }
    .dropdown-content { position: relative; width: 100%; box-shadow: none; border: 1px solid #444; }
    .hero-split { flex-direction: column; height: auto; }
    .split-side { width: 100%; height: 350px; }
    .split-side h1 { font-size: 2.5rem; }
    .catalog-grid { grid-template-columns: 1fr; padding: 10px; gap: 30px; }
    .card { margin: 0 auto; width: 100%; max-width: 350px; }
    .card-img { height: 250px; }
    .search-box form { grid-template-columns: 1fr; }
    .filter-buttons { display: flex; flex-wrap: wrap; justify-content: center; }
    .filter-btn { width: 45%; margin-bottom: 5px; font-size: 0.8rem; }
    .contact-cards-container { flex-direction: column; gap: 40px; }
    .vertical-line { display: none; }
    .contact-card { margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
}