/* --- VARIABLES & RESET --- */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --primary: #f97316;
    --primary-hover: #ea580c;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand-font { font-family: 'Oswald', sans-serif; text-transform: uppercase; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- NAV --- */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
}
.nav-container {
    max-width: 1200px; display: flex; justify-content: space-between; align-items: center; margin: 0 auto;
}
.logo { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.logo span { color: var(--primary); }
.logo small { display: block; font-size: 0.6rem; letter-spacing: 0.2em; color: var(--text-muted); font-family: 'Roboto', sans-serif; margin-top: 5px;}

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.nav-links a:hover { color: var(--primary); }
.btn-contact-nav {
    border: 1px solid var(--primary); color: var(--primary); padding: 0.3rem 1rem; border-radius: 4px;
}
.btn-contact-nav:hover { background: var(--primary); color: white; }

.hamburger { display: none; background: none; border: none; color: var(--primary); font-size: 1.8rem; cursor: pointer; }

/* Menú Móvil */
.mobile-menu {
    position: fixed; top: 70px; left: 0; width: 100%; background-color: var(--bg-dark);
    border-bottom: 2px solid var(--primary);
    padding: 2rem; text-align: center;
    transform: translateY(-150%); transition: transform 0.3s ease-in-out;
    z-index: 999;
}
.mobile-menu.active { transform: translateY(0); }
.menu-link { display: block; padding: 1rem; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.menu-link.highlight { color: var(--primary); font-weight: bold; }

/* --- HERO --- */
header {
    position: relative; height: 85vh; display: flex; align-items: center; justify-content: center; text-align: center;
    background-color: #000; overflow: hidden; padding-top: 60px;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.3; z-index: 0;
}
.hero-content { position: relative; z-index: 10; padding: 2rem; max-width: 800px; }

.badge {
    display: inline-block; border: 1px solid rgba(249, 115, 22, 0.3); background: rgba(249, 115, 22, 0.1);
    color: var(--primary); padding: 5px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: bold; letter-spacing: 2px; margin-bottom: 1.5rem;
}

h1 { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.1; }
h1 .highlight { 
    background: linear-gradient(to right, #fb923c, #ea580c); 
    -webkit-background-clip: text; color: transparent; 
}

.hero-text { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; }

.btn-group { display: flex; gap: 1rem; justify-content: center; }
.btn {
    padding: 1rem 2rem; border-radius: 5px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; cursor: pointer; border: none;
}
.btn-primary { background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); color: white; box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4); }
.btn-secondary { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); color: white; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* --- SECCIONES --- */
section { padding: 5rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.section-subtitle { color: var(--primary); font-size: 0.8rem; letter-spacing: 3px; font-weight: bold; display: block; margin-bottom: 0.5rem; text-transform: uppercase;}
.text-body { color: var(--text-muted); margin-bottom: 1rem; font-size: 1.05rem; }

/* --- GRID PRODUCTOS --- */
.grid-products {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
}
.card {
    background-color: var(--bg-card); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 1.5rem;
    transition: 0.3s;
}
.card:hover { border-color: var(--primary); transform: translateY(-5px); }

/* --- CAMBIO EN LAS IMÁGENES DE PRODUCTO --- */

.card-img-container {
    height: 250px; 
    /* Quitamos el background white obligatorio, o lo dejamos gris suave por si la imagen no carga */
    background-color: #f1f5f9; 
    border-radius: 8px; 
    margin-bottom: 1.5rem;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    overflow: hidden;
}

.card-img-container img {
    width: 100%;      /* Ancho total */
    height: 100%;     /* Alto total */
    object-fit: cover; /* CLAVE: Esto hace que la imagen "llene" el espacio recortando lo que sobre */
    object-position: center; /* Centra la imagen */
    transition: transform 0.5s ease; /* Prepara una animación suave */
}

/* Efecto Zoom al pasar el mouse (Toque Pro) */
.card:hover .card-img-container img {
    transform: scale(1.1);
}
.card-tag {
    position: absolute; top: 10px; right: 10px; background: var(--primary); color: white;
    font-size: 0.7rem; font-weight: bold; padding: 4px 8px; border-radius: 4px; text-transform: uppercase;
}
.card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--text-muted); }

/* --- HISTORIA --- */
.history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.badges-row { display: flex; gap: 20px; margin-top: 20px; opacity: 0.8; }
.badge-item { font-weight: 500; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }

.img-frame {
    border: 1px solid rgba(255,255,255,0.1); padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.02);
}
.img-frame img { border-radius: 8px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* --- CONTACTO --- */
.contact-box {
    background: var(--bg-card); border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05);
    display: grid; grid-template-columns: 1fr 1fr;
}
.contact-info { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.contact-item { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.1rem; }

.icon-svg {
    width: 24px; height: 24px; fill: var(--primary); flex-shrink: 0;
}

.btn-whatsapp {
    background-color: #25D366; color: white; text-align: center; padding: 1rem; border-radius: 8px; font-weight: bold; margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-whatsapp:hover { background-color: #20bd5a; }

.map-container { min-height: 350px; background: #222; }
.map-container iframe { width: 100%; height: 100%; }

/* --- FOOTER --- */
footer { border-top: 1px solid rgba(255,255,255,0.05); text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.8rem; margin-top: 3rem; }
.credits { color: var(--primary); font-weight: 500; margin-top: 5px; opacity: 0.7; }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    
    .btn-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    
    .history-grid { grid-template-columns: 1fr; gap: 2rem; }
    .history-content { order: 2; text-align: center; }
    .badges-row { justify-content: center; }
    .img-frame { order: 1; }
    
    .contact-box { grid-template-columns: 1fr; }
    
    section { padding: 3rem 1.5rem; }
}