/* VARIABLES GLOBALES */
:root {
    --primary: #0b4d29;
    --primary-light: #0d6636;
    --accent: #22c55e;
    --bg-dark: #0a0a0a;
    --text-main: #111827;
    --text-muted: #4b5563;
    --white: #ffffff;
    --light-bg: #f3f4f6;
    --border: #d1d5db;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--text-main); line-height: 1.6; background: var(--white); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }
.img-fluid { width: 100%; height: auto; object-fit: cover; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* BOTONES - Estrictamente cuadrados */
.btn {
    padding: 16px 32px; font-weight: 800; font-size: 0.95rem; border-radius: 0;
    display: inline-block; cursor: pointer; transition: var(--transition); border: none; text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); }
.btn-outline { border: 2px solid var(--white); color: var(--white); margin-left: 15px; background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--bg-dark); }
.btn-submit { background: var(--primary); color: var(--white); }
.btn-submit:hover { background: var(--primary-light); }
.full-width { width: 100%; margin-bottom: 15px; }

/* NAVEGACIÓN */
.navbar {
    position: fixed; top: 0; width: 100%; height: 80px;
    background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid var(--border); z-index: 1000;
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.brand { display: flex; align-items: center; gap: 15px; }
.nav-logo { height: 45px; }
.brand-name { font-weight: 900; font-size: 1.25rem; color: var(--primary); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; transition: var(--transition); }
.nav-links a:hover { color: var(--primary-light); }
.nav-cta { background: var(--primary); color: var(--white) !important; padding: 12px 24px; border-radius: 0; }
.nav-cta:hover { background: var(--primary-light); }

/* Menú Móvil */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1001; }
.hamburger span { display: block; width: 30px; height: 3px; background-color: var(--primary); transition: var(--transition); }

/* HERO SECTION - Ahora con video */
.hero {
    position: relative; padding: 220px 0 140px; color: var(--white); overflow: hidden;
    min-height: 100vh; display: flex; align-items: center;
}
.hero-video {
    position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%;
    width: auto; height: auto; transform: translateX(-50%) translateY(-50%); z-index: 0; object-fit: cover;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 0%, rgba(11, 77, 41, 0.75) 100%); z-index: 1;
}
.hero-container { position: relative; z-index: 2; max-width: 850px; }
.hero-title { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 25px; letter-spacing: -1px; }
.text-accent { color: var(--accent); }
.hero-lead { font-size: 1.2rem; color: #e5e7eb; margin-bottom: 40px; font-weight: 400; max-width: 700px; }

/* ANIMACIONES */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* STATS BAR */
.stats-bar { background: var(--white); padding: 60px 0; border-bottom: 1px solid var(--border); position: relative; z-index: 10; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.stat-number { font-size: 4rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-plus { font-size: 4rem; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-label-large { display: block; font-size: 1.5rem; font-weight: 900; color: var(--primary); margin-bottom: 8px; text-transform: uppercase; }
.stat-label { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* SECCIONES GLOBALES */
.section { padding: 120px 0; }
.bg-light { background: var(--light-bg); }
.section-header { margin-bottom: 60px; max-width: 700px; }
.section-title { font-size: 2.5rem; font-weight: 900; color: var(--text-main); margin-bottom: 15px; letter-spacing: -0.5px; }
.section-subtitle { font-size: 1.15rem; color: var(--text-muted); }

/* MAQUINARIA CARDS */
.machine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.machine-card { background: var(--white); border: 1px solid var(--border); border-radius: 0; transition: var(--transition); }
.machine-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--primary); }
.machine-img-wrapper { height: 250px; overflow: hidden; background: #e5e7eb; border-bottom: 4px solid var(--primary); }
.machine-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.machine-card:hover .machine-img-wrapper img { transform: scale(1.05); }
.machine-info { padding: 35px; }
.machine-info h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 15px; text-transform: uppercase; }

/* GALERÍA GRID DINÁMICO */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 280px;
    gap: 20px;
}
.gallery-item {
    position: relative; overflow: hidden; background: var(--bg-dark); cursor: pointer;
}
.gallery-item.video-item { grid-column: span 2; grid-row: span 2; } /* Hace el video más grande */
.gallery-item img, .gallery-item video {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: var(--transition);
}
.gallery-item:hover img, .gallery-item:hover video { opacity: 1; transform: scale(1.03); }
.gallery-caption {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: var(--white);
    font-weight: 700; text-transform: uppercase; font-size: 0.85rem;
    transform: translateY(100%); transition: var(--transition);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* LOGÍSTICA / SPLIT LAYOUT */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-box { margin-top: 40px; padding-left: 25px; border-left: 4px solid var(--primary); }
.feature-box h4 { font-size: 1.3rem; font-weight: 900; margin-bottom: 12px; text-transform: uppercase; }
.highlight-box { background: #e6f4ea; border-left-color: var(--accent); padding: 30px; margin-left: -25px; }
.img-wrapper { border: 1px solid var(--border); }
.h-full { height: 100%; min-height: 450px; }

/* COBERTURA */
.coverage-section { background: var(--primary); color: var(--white); padding: 100px 0; text-align: center; }
.coverage-content { max-width: 900px; margin: 0 auto; }
.coverage-content h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 30px; letter-spacing: -0.5px; }
.coverage-content p { font-size: 1.2rem; margin-bottom: 20px; opacity: 0.9; }
.coverage-content strong { color: var(--accent); }

/* CONTACTO */
.contact-section { padding: 120px 0; background: var(--bg-dark); color: var(--white); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
.contact-info h2 { font-size: 2.8rem; font-weight: 900; margin-bottom: 25px; }
.contact-info p { color: #9ca3af; margin-bottom: 50px; font-size: 1.1rem; }
.info-item { margin-bottom: 30px; border-left: 3px solid var(--primary-light); padding-left: 20px; }
.info-item strong { display: block; color: var(--white); font-size: 1.1rem; margin-bottom: 5px; text-transform: uppercase; }
.info-item span { color: #9ca3af; }
.contact-form-bg { background: #111; padding: 50px; border: 1px solid #333; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.pro-form input, .pro-form select, .pro-form textarea {
    padding: 18px; border: 1px solid #333; border-radius: 0; font-family: inherit;
    font-size: 1rem; color: var(--white); background: #0a0a0a; width: 100%; transition: var(--transition);
}
.pro-form input:focus, .pro-form select:focus, .pro-form textarea:focus { outline: none; border-color: var(--primary-light); background: #1a1a1a; }
.pro-form select { appearance: none; }

/* FOOTER */
.footer { background: #050505; padding: 40px 0; color: #4b5563; text-align: center; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; border-top: 1px solid #1a1a1a; }

/* RESPONSIVE MÓVIL */
@media (max-width: 992px) {
    .stats-grid, .machine-grid, .split-layout, .contact-wrapper { grid-template-columns: 1fr; gap: 50px; }
    .hero-title { font-size: 3rem; }
    .btn-outline { margin-left: 0; margin-top: 15px; display: block; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .gallery-item.video-item { grid-column: auto; grid-row: auto; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px);
        background: var(--white); flex-direction: column; justify-content: flex-start; padding-top: 40px;
        transition: left 0.3s ease; border-top: 1px solid var(--border);
    }
    .nav-links.active { left: 0; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    .stat-number { font-size: 3.5rem; }
    .contact-form-bg { padding: 30px; }
}