/* --- 1. RESET Y BASE --- */
body, html { 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', sans-serif; 
    color: #2c2c2c; 
    overflow-x: hidden; 
    width: 100%;
    background-color: #065f80; 
}

.background-fixed {
    background-color: #000000;
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
}

/* --- 2. NAVEGACIÓN (LOGO Y MENÚ) --- */
nav {
    background: rgba(255, 255, 255, 0.98);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #00AEEF; 
    position: sticky; 
    top: 0; 
    z-index: 9999; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 80px; 
}

.logo-contenedor { width: 150px; display: flex; align-items: center; }
.logo-contenedor img { max-height: 50px; width: auto; object-fit: contain; display: block; }
.enlaces-nav { display: flex; align-items: center; }

nav a { 
    text-decoration: none; 
    color: #8d6e63; 
    font-weight: 600; 
    margin-left: 25px; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 2px; 
    transition: 0.3s; 
}

nav a:hover { color: #00AEEF; }

/* --- 3. ESTRUCTURA GENERAL --- */
header { background: rgba(255, 255, 255, 0.95); padding: 60px 20px; text-align: center; }
h1 { font-weight: 300; letter-spacing: 5px; margin: 0; text-transform: uppercase; }

.container { 
    max-width: 1000px; 
    margin: 40px auto; 
    padding: 40px; 
    background: rgba(255, 255, 255, 0.96); 
    border-radius: 8px; 
    backdrop-filter: blur(10px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- 4. BOTONES UNIFICADOS --- */
.btn-consulta, .btn-wa, .btn-ws, .btn-hero-principal, .btn-hero-secundario, button { 
    display: inline-block; 
    background: #2c2c2c; 
    color: white !important;
    text-decoration: none; 
    padding: 12px 25px; 
    font-size: 0.8rem; 
    text-align: center;
    text-transform: uppercase; 
    font-weight: bold;
    letter-spacing: 1px;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.btn-consulta:hover, .btn-wa:hover, .btn-ws:hover, button:hover { 
    background: #00AEEF; 
}

/* --- 5. SLIDER DE INICIO --- */
.slider-wrapper { position: relative; overflow: hidden; margin: 40px 0; }
.slider-track { display: flex; transition: transform 0.6s ease; gap: 20px; }
.producto-card {
    min-width: calc(33.333% - 14px); 
    max-width: calc(33.333% - 14px);
    background: white; border-radius: 4px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column;
}
.producto-card img { width: 100%; height: 280px; object-fit: cover; }
.info { padding: 20px; text-align: center; flex-grow: 1; }
.precio { font-size: 1.2rem; font-weight: bold; margin: 10px 0; color: #00AEEF; }

/* --- 6. SECCIÓN HERO (TALLER) --- */
.hero-fabricantes { position: relative; height: 75vh; display: flex; align-items: center; justify-content: center; text-align: center; color: white; overflow: hidden; background: black; }
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.slide.active { opacity: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0,0,0,0.85), rgba(0, 174, 239, 0.4)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; }
.hero-badge { background: #00AEEF; padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; margin-bottom: 10px; display: inline-block; }
.hero-content h1 { font-size: 4rem; font-weight: 800; letter-spacing: 5px; margin: 15px 0; line-height: 1.1; color: white; }

.hero-btns { display: flex; gap: 20px; justify-content: center; margin-top: 25px; }
.btn-hero-principal { background: #00AEEF !important; border: 2px solid #00AEEF !important; }
.btn-hero-secundario { background: transparent !important; border: 2px solid white !important; }
.btn-hero-principal:hover, .btn-hero-secundario:hover { background: white !important; color: #2c2c2c !important; border-color: white !important; }

/* --- 7. CATÁLOGO Y FILTROS --- */
.filtros-bar { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; justify-content: center; }
.filtros-bar select { padding: 12px 20px; border: 1px solid #ddd; border-radius: 4px; background: white; font-family: inherit; cursor: pointer; }

.item-hilera { display: flex; background: white; margin-bottom: 20px; border-radius: 4px; overflow: hidden; border-left: 4px solid #00AEEF; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.item-hilera img { width: 220px; height: 220px; object-fit: cover; }
.item-info { padding: 25px; flex: 1; }
.precio-cat { font-size: 1.4rem; font-weight: bold; margin: 10px 0; color: #00AEEF; }

/* --- 8. FORMULARIO DE CONTACTO --- */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.formulario-contacto form { display: flex; flex-direction: column; gap: 15px; }
.formulario-contacto input, .formulario-contacto textarea { 
    width: 100%; 
    padding: 12px 15px; 
    border: 1px solid #ddd !important; 
    border-radius: 4px; 
    font-family: inherit; 
    box-sizing: border-box;
}

/* --- 9. FOOTER (MANTENER ESTILO) --- */
.main-footer { background: white; padding: 60px 0 20px; border-top: 4px solid #00AEEF; margin-top: 50px; }
.footer-container { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 0 20px; }
.footer-logo { max-width: 180px; margin-bottom: 15px; display: block; }

.footer-column h3 { color: #00AEEF; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; font-size: 1rem; }
.footer-column a { 
    display: block; 
    text-decoration: none !important; 
    color: #8d6e63 !important; /* Marrón como el menú superior */
    margin-bottom: 10px; 
    font-size: 0.9rem; 
    font-weight: 600;
    text-transform: uppercase;
}
.footer-column a:hover { color: #00AEEF !important; }

.footer-bottom { text-align: center; margin-top: 40px; padding: 20px 10px; border-top: 1px solid #eee; color: #999; font-size: 0.85rem; width: 100%; box-sizing: border-box; }

/* --- 10. RESPONSIVE (MÓVIL) --- */
@media (max-width: 768px) {
    nav { flex-direction: column !important; height: auto !important; padding: 20px 0 !important; gap: 15px !important; }
    .logo-contenedor { width: 100% !important; justify-content: center !important; margin: 0 !important; }
    .enlaces-nav { width: 100% !important; justify-content: center !important; gap: 15px !important; }
    nav a { margin: 0 !important; font-size: 0.75rem !important; }

    .hero-content h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; padding: 0 20px; gap: 10px; }
    
    .contacto-grid { grid-template-columns: 1fr; } 
    .producto-card { min-width: 100%; max-width: 100%; }
    .item-hilera { flex-direction: column; text-align: center; }
    .item-hilera img { width: 100%; height: 250px; }
    
    .footer-container { grid-template-columns: 1fr; text-align: center; }
}
















