/* =========================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    /* Colores Principales */
    --primary: #0a192f;       /* Azul Navy Oscuro */
    --secondary: #ff6b35;     /* Naranja Vibrante */
    --accent: #64ffda;        /* Cian Detalles */
    
    /* Textos y Fondos */
    --text-dark: #1a1a1a;
    --text-light: #f4f4f4;
    --text-gray: #8892b0;
    --bg-light: #ffffff;
    --bg-gray: #f4f7f6;
    
    /* Tipografía */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
}

/* Reset Básico */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--bg-light); line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary); margin-bottom: 1rem; line-height: 1.2; }
a { text-decoration: none; transition: 0.3s; color: inherit; }
img { max-width: 100%; display: block; }

/* Utilidades */
.container { width: 90%; max-width: var(--container-width); margin: 0 auto; padding: 0 15px; }
.section-padding { padding: 120px 0 80px; min-height: 70vh;}
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; position: relative; display: inline-block; color: var(--primary); }
.section-title h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--secondary); margin: 10px auto 0; }

/* Botones */
.btn { display: inline-block; padding: 12px 30px; border-radius: 5px; font-weight: 600; border: 2px solid transparent; cursor: pointer; text-transform: uppercase; font-size: 0.9rem; }
.btn-primary { background: var(--secondary); color: white; }
.btn-primary:hover { background: #e55a2b; transform: translateY(-2px); }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* =========================================
   2. HEADER (MODERNIZADO + FIX MÓVIL)
   ========================================= */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    
    /* Glassmorphism: Fondo semitransparente con desenfoque */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    
    height: 100px; 
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* Efecto al hacer scroll */
header.scrolled {
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Compensar scroll por header fijo en enlaces con ancla */
section[id],
div[id] {
    scroll-margin-top: 120px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Logo */
.brand-wrapper { display: flex; align-items: center; text-decoration: none; gap: 15px; }
.logo-img { height: 70px; width: auto; object-fit: contain; }
.brand-text { display: flex; align-items: center; font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: var(--primary); line-height: 1; }
.brand-icon { height: 25px; width: auto; margin-right: 5px; }
.brand-text span { color: var(--secondary); margin-left: 2px; }

/* Navegación */
.nav-menu { display: flex; gap: 35px; list-style: none; align-items: center; }
.nav-link { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.5px; position: relative; padding: 5px 0; transition: color 0.3s; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--secondary); transition: width 0.3s ease; }
.nav-link:hover { color: var(--secondary); }
.nav-link:hover::after { width: 100%; }

/* Botón Cotizar en menú */
.nav-cta { background-color: var(--secondary); color: white !important; padding: 10px 25px; border-radius: 50px; transition: transform 0.3s, box-shadow 0.3s !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4); }
.nav-cta::after { display: none; }

/* Menú Móvil Toggle (BOTÓN HAMBURGUESA) */
/* IMPORTANTE: display: none por defecto para ocultarlo en Laptops */
.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero { 
    background: linear-gradient(rgba(10, 25, 47, 0.60), rgba(10, 25, 47, 0.85)), url('https://www.ozmerchandising.com/img/banner.jpg') center/cover; 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white; 
    padding-top: 100px; 
}
.hero h1 { font-size: 3rem; color: white; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; color: #ddd; }

/* =========================================
   4. CARDS & FEATURES
   ========================================= */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.card:hover { transform: translateY(-5px); }
.card-img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background-color: #f9f9f9; padding: 15px; height: auto; } /* Cuadrado y entero */
.card-body { padding: 25px; }
.tag { background: rgba(255, 107, 53, 0.1); color: var(--secondary); padding: 5px 10px; font-size: 0.8rem; font-weight: 700; border-radius: 20px; display: inline-block; margin-bottom: 10px; }

/* Por qué elegirnos */
.features { background-color: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; text-align: center; }
.feature-item { padding: 20px; }
.feature-icon { width: 70px; height: 70px; background-color: #fff7ed; color: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin: 0 auto 20px; }

/* =========================================
   SECCIÓN: CÓMO TRABAJAMOS (FIX DEFINITIVO)
   ========================================= */

/* Fondo oscuro general de la sección */
.section-proceso {
    background-color: var(--primary); /* Azul oscuro */
    color: white;
    position: relative;
    width: 100%;
}

/* Forzar títulos blanco dentro de esta sección */
.section-proceso h2 {
    color: white;
}
.section-proceso p {
    color: #a8b2d1; /* Gris azulado claro */
}

/* Contenedor de los pasos (Flexbox) */
.process-wrapper {
    display: flex;
    justify-content: space-between; /* Distribuye espacio entre pasos */
    align-items: flex-start;
    flex-wrap: wrap; /* Permite bajar líneas en móviles */
    gap: 30px;
    margin-top: 40px;
    padding: 0 10px; /* Padding extra para que no toquen los bordes */
}

/* Cada paso individual */
.process-step {
    flex: 1; /* Se estiran para llenar el espacio */
    min-width: 220px; /* Ancho mínimo para que no se aplasten */
    text-align: center;
    position: relative;
    padding: 20px 10px;
}

/* Número gigante de fondo */
.step-number {
    font-family: var(--font-heading);
    font-size: 5rem; /* Tamaño grande */
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05); /* Casi transparente */
    line-height: 1;
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    user-select: none;
}

/* Icono principal */
.step-icon {
    font-size: 2.2rem;
    color: var(--secondary); /* Naranja */
    position: relative;
    z-index: 1; /* Sobre el número */
    margin-bottom: 10px;
    display: block;
}

/* Título del paso */
.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

/* Descripción */
.step-desc {
    font-size: 0.95rem;
    color: #a8b2d1;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Flechas conectoras (Solo en pantallas grandes) */
@media (min-width: 992px) {
    .process-step:not(:last-child)::after {
        content: '\f061'; /* Flecha FontAwesome */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        top: 35px; /* Ajustado alineado con icono */
        right: -25px;
        font-size: 1.5rem;
        color: var(--secondary);
        z-index: 2;
    }
}

/* Ajustes Móvil */
@media (max-width: 991px) {
    /* En móvil quitamos flechas y centramos todo */
    .process-step::after { display: none; }
    .process-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .process-step {
        width: 100%;
        max-width: 350px;
        margin-bottom: 20px;
    }
}
/* =========================================
   ESTILOS PARA EL TÍTULO DEL CARRUSEL
   ========================================= */

/* Contenedor centrado para el título */
.oz-container-logo {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Importante: para que el texto esté sobre el fondo oscuro */
    text-align: center;
    padding-bottom: 20px;
}

/* Estilo del título */
.oz-section-title-logo h2 {
    color: white; /* Texto blanco para que contraste con el fondo negro */
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* =========================================
   6. CARRUSEL DE LOGOS
   ========================================= */
.logo-carousel-section {
    /* Fondo */
    background: url('https://ozmerchandising.com/img/banner-bg.jpg') center/cover no-repeat;
    
    /* Tamaño: Eliminamos max-height para que crezca, y ponemos min-height para asegurar altura */
    min-height: 500px; 
    width: 100%;
    
    /* Centrado y Layout */
    display: flex;
    flex-direction: column; /* Para que el título esté arriba y los logos abajo */
    justify-content: center; /* Centra todo el bloque verticalmente */
    align-items: center;
    
    /* Espaciado y Posicionamiento */
    padding-top: 80px;      /* Espacio superior */
    padding-bottom: 80px;   /* ESPACIO INFERIOR: Esto crea el margen con la siguiente sección */
    
    overflow: hidden;
    position: relative;
}
.logo-carousel-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); z-index: 1; }

.carousel-wrapper { position: relative; z-index: 2; width: 100%; overflow: hidden; white-space: nowrap;  margin-top: 40px;}


.carousel-track { display: inline-block; animation: scroll 25s linear infinite; }
.carousel-track:hover { animation-play-state: paused; }
.client-logo { width: 150px; margin: 0 40px; filter: grayscale(100%) brightness(200%); opacity: 0.7; transition: 0.3s; display: inline-block; }
.client-logo:hover { filter: grayscale(0%) brightness(100%); opacity: 1; transform: scale(1.1); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-150px * 7 - 80px * 7)); } }

/* =========================================
   7. CONTACTO
   ========================================= */
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 40px; background: white; padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.info-col, .form-col { flex: 1; min-width: 300px; }
.info-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: center; }
.info-item i { color: var(--secondary); font-size: 1.2rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; }
.form-control:focus { border-color: var(--secondary); outline: none; }

/* =========================================
   8. FOOTER
   ========================================= */
footer { background: var(--primary); color: white; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: white; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #aaa; }
.footer-col ul li a:hover { color: var(--secondary); }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: #777; font-size: 0.9rem; }

/* =========================================
   9. RESPONSIVE (MEDIA QUERIES)
   ========================================= */

/* Tablet y Celular (Menor a 1024px) */
@media (max-width: 1024px) {
    
    /* Muestra el botón hamburguesa */
    .mobile-toggle { display: block; }
    
    /* Oculta el menú normal y conviértelo en menú lateral */
    .nav-menu {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 100px);
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active { left: 0; }
    
    /* Ajuste de header al hacer scroll en tablet */
    header.scrolled { height: 80px; }
    
    /* Ocultar flechas del proceso en tablet */
    .process-step::after { display: none; }
}

/* Celular Pequeño (Menor a 768px) */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    
    /* Proceso en móvil: pasos uno debajo del otro */
    .process-wrapper { flex-direction: column; align-items: center; }
    .process-step { width: 100%; max-width: 300px; margin-bottom: 30px; }
}

/* =========================================
   10. GALERÍA CON FILTROS
   ========================================= */

/* Contenedor de los botones */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

/* Estilo de los botones */
.filter-btn {
    padding: 10px 24px;
    background: var(--bg-gray);
    border: 1px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    transform: translateY(-2px);
}

/* Contenedor de las imágenes (mejora del grid) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Cada item de la galería */
.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Imagen dentro del item */
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Efecto Zoom al pasar el mouse */
.gallery-item:hover img {
    transform: scale(1.08);
}

/* Clase para OCULTAR las imágenes cuando se filtra */
.gallery-item.hide {
    display: none; /* Las oculta y el grid se reordena automáticamente */
}

/* =========================================
   11. CONTACTO MODERNO Y ANIMADO
   ========================================= */

/* Contenedor principal con más profundidad */
.contact-wrapper {
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
}

/* Títulos dentro del contacto */
.info-col h3, .info-col h4 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Estilo de las tarjetas de información */
.info-item {
    background: #fffbf8; /* Un naranja casi imperceptible */
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
    transition: transform 0.3s, box-shadow 0.3s;
}
.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.1);
}
.info-item i {
    color: var(--secondary);
    font-size: 1.3rem;
    width: 20px;
    text-align: center;
}
.info-item span, .info-item {
    color: var(--text-dark);
    font-weight: 500;
}

/* --- MEJORA DE INPUTS Y TEXTAREAS --- */
.form-group {
    position: relative;
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8ecf1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: #fafbfc;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

/* Efecto al hacer clic (Focus) */
.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15); /* Resplandor naranja */
}

/* Animación en la etiqueta cuando el input está activo */
.form-group:focus-within label {
    color: var(--secondary);
}

/* Select (Lista desplegable) */
select.form-control {
    appearance: none; /* Quita la flecha por defecto del navegador */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238892b0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 40px;
}

/* --- BOTÓN ENVIAR --- */
.btn-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    background: var(--secondary);
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-submit::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn-submit:hover::before {
    left: 100%; /* Efecto de brillo que pasa al hacer hover */
}
.btn-submit:hover {
    background: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.35);
}

/* --- CAPTCHA --- */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f4f7f6;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e8ecf1;
}
.captcha-box label {
    margin: 0;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}
.captcha-box .form-control {
    margin: 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
}

/* --- ALERTAS ANIMADAS --- */
.alert-msg {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.4s ease-out forwards;
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}