/* --- style.css (VERSIÓN FINAL ESTILO WILDKO) --- */

/* --- 1. CONFIGURACIÓN BÁSICA --- */
html { 
    scroll-behavior: smooth; 
}

:root {
    --azul-oscuro: #061c3d;
    --azul-brillante: #007aff;
    --gris-claro: #f5f5f7;
    --blanco: #ffffff;
    --texto-oscuro: #1d1d1f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--blanco);
    color: var(--texto-oscuro);
    font-family: 'Inter', sans-serif; 
    line-height: 1.7; 
    overflow-x: hidden;
}

h1, h2, h3, h4, .btn, .nav-links a { 
    font-family: 'Montserrat', sans-serif; 
}

/* --- 2. CLASES UTILIDADES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 3. HEADER ESTILO WILDKO (Ancho Completo y Fondo Blanco) --- */
header {
    background-color: #ffffff; /* FONDO BLANCO para resaltar el logo */
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Sombra suave */
}

/* TRUCO: Sobrescribimos el contenedor SOLO para el header */
header .container {
    max-width: 100% !important; /* Usamos todo el ancho de la pantalla */
    padding: 0 40px; /* Margen desde los bordes */
    margin: 0; 
    width: 100%; 
}

nav {
    display: flex;
    justify-content: space-between; /* Logo a la izquierda, menú a la derecha */
    align-items: center;
    height: 90px; 
}

/* LOGO GRANDE */
.logo-img {
    max-height: 120px; /* Tamaño grande estilo WildKo */
    width: auto;
    display: block;  
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* ENLACES DEL MENÚ (Texto Azul Oscuro) */
.nav-links a {
    color: var(--azul-oscuro); /* Letras oscuras sobre fondo blanco */
    text-decoration: none;
    margin-left: 2.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--azul-brillante);
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

/* --- 4. BOTONES --- */
.btn {
    display: inline-block;
    background-color: var(--azul-brillante);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.btn:hover {
    background-color: #005ecb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.5);
}

/* Botones WhatsApp */
.btn-whatsapp {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; margin-bottom: 10px; background-color: #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover { background-color: #1ebc57; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }


/* --- 5. HERO (PORTADA) --- */
.hero {
    background: radial-gradient(circle at top right, #0d3a78 0%, var(--azul-oscuro) 60%);
    color: white;
    padding: 6rem 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h2 {
    font-size: 1rem; color: var(--azul-brillante);
    text-transform: uppercase; letter-spacing: 3px;
    margin-bottom: 15px; font-weight: 700;
}

.hero-text h1 {
    font-size: 3.8rem; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 800;
}

.hero-text p {
    font-size: 1.2rem; opacity: 0.9; margin-bottom: 2.5rem; font-weight: 300;
}

.hero-img img {
    width: 100%; border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg); transition: transform 0.5s ease;
}
.hero-img img:hover { transform: perspective(1000px) rotateY(0deg); }

/* --- 6. SECCIONES --- */
.origen { padding: 8rem 0; background-color: var(--gris-claro); }
.origen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.origen-text h2 { color: var(--azul-brillante); font-size: 2.5rem; margin-bottom: 1.5rem; }
.origen-img img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.productos {
    background-color: var(--azul-oscuro); color: white; padding: 8rem 0; text-align: center;
    background-image: linear-gradient(rgba(6, 28, 61, 0.95), rgba(6, 28, 61, 0.95)), url('https://www.transparenttextures.com/patterns/cubes.png');
}
.productos h2 { font-size: 3rem; margin-bottom: 4rem; }
.productos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem; justify-content: center; }

.producto-card {
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1); color: white;
    padding: 2rem; border-radius: 20px; transition: all 0.4s ease;
    display: flex; flex-direction: column; justify-content: space-between;
}
.producto-card:hover { transform: translateY(-15px); background: white; color: var(--azul-oscuro); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.producto-card img { width: 100%; height: 260px; object-fit: contain; margin-bottom: 1.5rem; filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3)); }
.producto-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; font-weight: 700; }

.despacho { padding: 8rem 0; background-color: #eef4f8; }
.despacho-header { text-align: center; margin-bottom: 4rem; }
.despacho-header h2 { color: var(--azul-oscuro); font-size: 2.8rem; }
.cards-container { display: flex; justify-content: center; }

.despacho-card {
    background: white; padding: 4rem; border-radius: 25px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05); border-left: 8px solid var(--azul-brillante);
    transition: transform 0.3s; max-width: 600px; width: 100%;
}
.despacho-card:hover { transform: translateY(-5px); }
.despacho-card h3 { color: var(--azul-oscuro); font-size: 2rem; margin-bottom: 2rem; display: flex; align-items: center; justify-content: center; gap: 15px; text-align: center; }

.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 1.5rem; }
.info-item span.material-icons { color: var(--azul-brillante); font-size: 1.8rem; background: rgba(0, 122, 255, 0.1); padding: 10px; border-radius: 50%; }

.clientes { background-color: white; padding: 5rem 0; text-align: center; border-top: 1px solid #eee; }
.clientes h3 { margin-bottom: 3rem; font-size: 1.8rem; color: var(--azul-oscuro); opacity: 0.7; }
.clientes-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 50px; }
.clientes img { max-height: 70px; width: auto; opacity: 0.6; transition: all 0.4s ease; filter: grayscale(100%); }
.clientes img:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.1); }

/* --- 7. FOOTER --- */
footer { background-color: var(--azul-brillante); color: white; padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { font-size: 1.3rem; margin-bottom: 1.5rem; border-bottom: 2px solid rgba(255,255,255,0.3); display: inline-block; padding-bottom: 5px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.btn-email { background-color: white; color: var(--azul-brillante); margin-top: 1rem; box-shadow: none; display: inline-block; text-align: center; }
.legal { text-align: center; font-size: 0.9rem; opacity: 0.7; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 2rem; }

/* --- 8. ANIMACIONES SCROLL --- */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- 9. RESPONSIVE (MÓVIL) --- */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.8rem; }
    .hero-grid, .origen-grid { grid-template-columns: 1fr; text-align: center; }
    .nav-links { display: none; } /* Ocultar menú en móvil */
    .clientes-grid { gap: 20px; }
    
    header .container { padding: 0 20px; } /* Menos margen lateral en móvil */
    .logo-img { max-height: 70px; } /* Logo más chico en móvil para que quepa */
}