/* ==========================================================================
   MASTER STYLESHEET: GM PRO INTERNATIONAL (Edición Corporate Blue 2026)
   Optimizada para: Diseño E-Commerce Limpio & Footer Corporativo
   ========================================================================== 
*/

/* --- 1. VARIABLES GLOBALES & FUENTES --- */
:root {
    /* Paleta Principal */
    --primary: #00AEEF;       /* Azul Cian Corporativo */
    --primary-dark: #008CBF;  /* Azul Oscuro Hover */
    --accent: #FF4136;        /* Rojo Alerta */
    
    /* Paleta Footer */
    --footer-bg: #0f1d41;     /* Azul Profundo "Navy" */
    --footer-text: #b0b8c8;   /* Gris azulado claro */
    --footer-title: #ffffff;  
    --scroll-btn: #f1c40f;    /* Amarillo botón subir */
    
    /* WhatsApp */
    --whatsapp-green: #25d366;
    
    /* Textos Generales */
    --text-dark: #2c3e50;     
    --text-body: #666666;     
    --border-color: #e1e1e1;  
    
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;      
    
    /* Configuración */
    --container-width: 1200px;
    --border-radius: 4px;
    --shadow-soft: 0 2px 10px rgba(0,0,0,0.03);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.08); 
    --transition: all 0.3s ease;
    
    /* Fuentes */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* --- 2. RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none !important; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Utilidades */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.bg-light { background-color: var(--bg-light); }
.mb-5 { margin-bottom: 3rem; }

/* Separadores */
.line-center { width: 60px; height: 3px; background: var(--primary); margin: 15px auto 30px; }
.line-left { width: 60px; height: 3px; background: var(--primary); margin: 15px 0 30px; }

/* --- 3. TOP BAR --- */
.top-bar {
    background: var(--primary);
    color: var(--bg-white);
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-contact span { margin-right: 25px; }
.top-contact i { margin-right: 8px; opacity: 0.8; }
.top-right a { color: var(--bg-white); margin-left: 20px; font-weight: 500; }

/* --- 4. HEADER PRINCIPAL --- */
.main-header {
    background: var(--bg-white);
    border-bottom: 1px solid #eee;
    position: sticky; 
    top: 0;
    z-index: 999;
}
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }

.logo a {
    font-size: 24px; font-weight: 800; color: var(--text-dark); text-transform: uppercase; display: flex; align-items: center;
}

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-dark);
    padding: 5px 0;
    position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-icons { display: flex; align-items: center; gap: 15px; }
.header-icons a { font-size: 18px; color: var(--text-dark); }
.header-icons a:hover { color: var(--primary); }

/* --- 5. HERO SECTION --- */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(10, 20, 30, 0.6), rgba(10, 20, 30, 0.5)), url('../img/banner-bg.jpg') center center/cover no-repeat;
    height: 600px;
    display: flex;
    align-items: center;
    color: var(--bg-white);
}

.hero-text { max-width: 750px; animation: slideUp 1s ease-out; }
.subtitle {
    display: inline-block; background: var(--primary); color: white; padding: 4px 12px; text-transform: uppercase; font-size: 11px; font-weight: 700; margin-bottom: 20px; border-radius: 2px;
}
.hero-text h1 {
    font-size: 50px; line-height: 1.1; margin-bottom: 20px; color: var(--bg-white);
}
.hero-text p { font-size: 17px; margin-bottom: 35px; color: rgba(255,255,255,0.9); }

.btn-primary {
    background: var(--primary); color: white; padding: 14px 35px; border-radius: 2px; font-weight: 700; text-transform: uppercase; display: inline-block; margin-right: 15px; border: none; letter-spacing: 0.5px;
}
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); }

.btn-outline {
    background: transparent; border: 2px solid white; color: white; padding: 12px 33px; border-radius: 2px; font-weight: 700; text-transform: uppercase; display: inline-block;
}
.btn-outline:hover { background: white; color: var(--text-dark); }

/* --- 6. GRID CARACTERÍSTICAS --- */
.grid-container { position: relative; width: 100%; }
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: -70px; 
    position: relative;
    z-index: 10;
}
.feature-box {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.feature-box:hover { transform: translateY(-5px); border-bottom-color: var(--primary); }
.feature-box i { font-size: 36px; color: var(--primary); margin-bottom: 15px; }
.feature-box h3 { font-size: 18px; margin-bottom: 8px; }

/* --- 7. SECCIÓN NOSOTROS --- */
.row-flex { display: flex; align-items: center; gap: 50px; }
.col-text { flex: 1; }
.col-img { flex: 1; }
.col-img img { border-radius: var(--border-radius); box-shadow: var(--shadow-soft); }

/* --- 8. CATÁLOGO & PRODUCTOS --- */
.products-section { background: var(--bg-white); padding-bottom: 100px; }

.product-tabs { 
    margin-bottom: 40px; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; border-bottom: 1px solid #eee; padding-bottom: 20px;
}
.tab-item {
    padding: 8px 20px; font-weight: 600; color: var(--text-body); cursor: pointer; transition: var(--transition); text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; border-radius: 20px; border: 1px solid transparent;
}
.tab-item:hover { color: var(--primary); background: rgba(0, 174, 239, 0.05); }
.tab-item.active { 
    color: white; background: var(--primary); border-color: var(--primary); box-shadow: 0 4px 10px rgba(0, 174, 239, 0.3);
}

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

.product-card {
    background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--border-radius); overflow: hidden; position: relative; transition: var(--transition);
}
.product-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: #d0d0d0; }

.product-img-wrap {
    background: #fdfdfd; height: 240px; display: flex; align-items: center; justify-content: center; position: relative; padding: 20px; border-bottom: 1px solid #f0f0f0;
}
.product-img-wrap img { max-height: 100%; transition: transform 0.4s ease; mix-blend-mode: multiply; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.badge-circle {
    position: absolute; top: 15px; right: 15px; width: 42px; height: 42px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; text-transform: uppercase; z-index: 2; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.badge-circle.eco { background: #2ecc71; }
.badge-circle.hot { background: #FF4136; }

.product-details { padding: 15px 20px; text-align: left; }
.product-cat-small { font-size: 10px; color: #999; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.product-title { font-size: 15px; font-weight: 500; color: var(--text-dark); margin-bottom: 8px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-title a:hover { color: var(--primary); }

.price-box { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); }
.old-price { font-size: 13px; color: #aaa; text-decoration: line-through; }
.current-price { font-size: 16px; font-weight: 700; color: var(--primary); }

/* --- 9. EQUIPO & FORMULARIO --- */
.team-info { background: #fff; padding: 20px; box-shadow: var(--shadow-soft); margin-bottom: 20px; border-radius: var(--border-radius); transition: var(--transition); }
.team-info img { width: 100%; border-radius: var(--border-radius); margin-bottom: 15px; }

.cta2 { background: var(--primary); padding: 50px 0; color: white; margin-bottom: 50px; }
.cta2 h3 { color: white; margin-bottom: 20px; font-size: 24px; }
.cta2 .btn { border: 2px solid white; color: white; padding: 10px 30px; text-transform: uppercase; font-weight: bold; background: transparent; }
.cta2 .btn:hover { background: white; color: var(--primary); }

#form_container { background: var(--bg-light); padding: 40px; border-radius: var(--border-radius); border: 1px solid #eee; }
.form-control { border-radius: 2px; padding: 10px; border: 1px solid #ddd; height: auto; box-shadow: none; }
.form-control:focus { border-color: var(--primary); }

/* --- 10. FOOTER (DISEÑO AZUL PROFUNDO) --- */
.main-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 80px;
    font-size: 14px;
    position: relative;
    background-image: linear-gradient(to right, rgba(15,29,65,0.98), rgba(15,29,65,0.95));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-about .footer-logo {
    display: inline-block; color: white; font-size: 24px; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; display: flex; align-items: center;
}
.footer-about p { line-height: 1.8; margin-bottom: 25px; opacity: 0.8; }
.footer-social-label { color: white; font-weight: 700; margin-bottom: 15px; display: block; }
.footer-social-icons { display: flex; gap: 10px; }
.footer-social-icons a {
    width: 35px; height: 35px; border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: white; transition: var(--transition);
}
.footer-social-icons a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }

.widget-title { color: var(--footer-title); font-size: 18px; margin-bottom: 30px; font-weight: 700; }

.footer-links li { margin-bottom: 12px; }
.footer-links a { position: relative; padding-left: 15px; transition: 0.3s; display: inline-block; }
.footer-links a::before {
    content: '\f105'; font-family: 'FontAwesome'; position: absolute; left: 0; top: 1px; color: var(--primary);
}
.footer-links a:hover { color: white; padding-left: 20px; }

.contact-info-list li { display: flex; margin-bottom: 20px; align-items: flex-start; }
.contact-info-list i { color: var(--primary); font-size: 18px; margin-right: 15px; margin-top: 3px; width: 20px; text-align: center; }
.contact-info-list span { display: block; font-weight: 600; color: white; margin-bottom: 2px; }

.footer-bottom { background: rgba(0,0,0,0.2); padding: 25px 0; border-top: 1px solid rgba(255,255,255,0.05); font-size: 13px; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-legal-links a { color: var(--footer-text); margin-left: 20px; transition: 0.3s; }
.footer-legal-links a:hover { color: var(--primary); }

.scroll-top-btn {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--scroll-btn); color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); z-index: 1000; cursor: pointer; transition: var(--transition); opacity: 0.9;
}
.scroll-top-btn:hover { transform: translateY(-5px); opacity: 1; color: #000; }

/* --- 11. RESPONSIVE --- */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-text h1 { font-size: 40px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
    .main-nav { display: none; } 
    .grid-3 { grid-template-columns: 1fr; margin-top: 40px; } 
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .row-flex { flex-direction: column; }
    .col-img { margin-top: 30px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; gap: 15px; text-align: center; }
    .hero-section { height: auto; padding: 120px 0; text-align: center; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .top-bar-inner { flex-direction: column; gap: 5px; }
}

/* Animaciones */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 12. WHATSAPP FLOTANTE CON ANIMACIÓN --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px; /* A la izquierda para no chocar con el scroll-top */
    background: var(--whatsapp-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    /* Animación */
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
}

/* Definición de la animación de pulso */
@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}