/* ==========================================================================
   1. PALETA DE COLORES CORPORATIVA Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
    --navy: #002147;          /* Azul Naval - Profesionalismo */
    --silver: #e2e8f0;        /* Gris/Plata - Modernidad */
    --orange-distro: #f97316; /* Naranja - Energía y Logística */
    --text-main: #1e293b;     /* Gris oscuro para legibilidad profunda */
    --light: #f8fafc;         /* Fondo claro para la zona operativa clara */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    background-color: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Ayuda a que el footer se mantenga al fondo */
}

/* ==========================================================================
   2. BARRA DE NAVEGACIÓN (HEADER)
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between; /* Logo (izq), Menú (centro), Idioma (der) */
    align-items: center;
    background-color: var(--navy);
    padding: 15px 40px;
    box-sizing: border-box;
}

/* Contenedor del Logo y Texto */
.logo-container a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px; /* Espacio exacto entre la imagen y el texto */
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.03);
}

/* Estilo del Nombre de la Empresa */
.logo-texto {
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: color 0.2s ease;
}

/* Resalte para la palabra GLOBAL */
.logo-texto .texto-resaltado {
    color: var(--orange-distro); /* Usa tu naranja oficial */
}

/* Efecto hover sutil al pasar el mouse por todo el bloque */
.logo-container a:hover .logo-img {
    transform: scale(1.03);
}

.logo-container a:hover .logo-texto {
    color: #cbd5e1; /* Gris claro al pasar el cursor */
}

/* Menú de navegación principal */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: white;
}

/* Selector dinámico de Idiomas */
.lang-switcher {
    font-size: 0.9rem;
    font-weight: 700;
}

.lang-switcher a {
    color: #94a3b8;
    text-decoration: none;
    padding: 2px 4px;
    transition: color 0.2s ease;
}

.lang-switcher .active-lang, 
.lang-switcher a:hover {
    color: var(--orange-distro);
}

.divisor-lang {
    color: #475569;
    margin: 0 4px;
}

/* ==========================================================================
   3. ESTRUCTURA BASE Y BANNERS (Alto del 30%)
   ========================================================================== */
.hero-banner {
    background-image: url('../imagen/cuerpo1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 30vh;
    width: 100%;
}

/* Forzar a que las páginas hijas utilicen la misma configuración sin filtros oscuros */
.nosotros-banner, .contacto-banner {
    background-image: url('../imagen/cuerpo1.jpg');
}

/* ÁREA OPERATIVA CLARA */
.area-operativa {
    background-color: var(--light);
    padding: 40px 20px;
    padding-bottom: 60px; 
    flex-grow: 1; /* Empuja el contenido para llenar la pantalla */
}

.container-operativo {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   4. SECCIÓN: INICIO (CATÁLOGO ESTILO AMAZON)
   ========================================================================== */
.seccion-titulo {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.producto-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.producto-imagen {
    background-color: #fff;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.producto-imagen img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.producto-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.producto-info .categoria {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--orange-distro); /* Sincronizado con tu paleta */
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.producto-info h3 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    color: var(--navy);
}

.producto-info p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #64748b;
    margin: 0 0 20px 0;
}

.precio-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.precio-fila .precio {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
}

.btn-amazon {
    background-color: #f3a847;
    border: 1px solid #a88734;
    color: #111;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-amazon:hover {
    background-color: #e49526;
}

/* ==========================================================================
   5. SECCIÓN: NOSOTROS (DISEÑO EDITORIAL ALINEADO A LA IZQUIERDA)
   ========================================================================== */
.nosotros-cabecera {
    text-align: left; /* Alineado formal a la izquierda */
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

.pagina-titulo {
    font-size: 2.5rem;
    color: var(--navy);
    margin: 0 0 5px 0;
    font-weight: 800;
}

.subtitulo {
    color: var(--orange-distro);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.nosotros-segmento {
    padding: 20px 0;
    text-align: left;
}

.nosotros-segmento h2 {
    color: var(--navy);
    font-size: 1.8rem;
    margin: 0 0 15px 0;
}

.texto-presentacion p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 100%;
    margin: 0 0 20px 0;
    color: var(--text-main);
}

/* Misión y Visión Cards */
.mision-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.mv-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    border-left: 5px solid var(--orange-distro);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.03);
}

.mv-card h3 {
    color: var(--navy);
    font-size: 1.4rem;
    margin: 15px 0 10px 0;
}

.icon-accent {
    color: var(--orange-distro);
    font-size: 1.8rem;
}

/* Bloque de Valores */
.titulo-centrado {
    text-align: center;
    color: var(--navy);
    margin: 50px 0 30px 0;
    font-size: 1.8rem;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.valor-item {
    background: var(--navy);
    color: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.valor-item:hover {
    background: var(--orange-distro);
    transform: translateY(-5px);
}

.valor-item h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.valor-item p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

/* ==========================================================================
   6. SECCIÓN: CONTACTO
   ========================================================================== */
.contacto-cabecera {
    text-align: left;
    margin-bottom: 40px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

.contacto-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contacto-info-col h2 {
    color: var(--navy);
    font-size: 1.8rem;
    margin: 0 0 15px 0;
}

.contacto-info-col p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
}

.info-bloque {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-icono {
    font-size: 1.3rem;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 8px;
    line-height: 1;
}

.info-texto h4 {
    margin: 0 0 5px 0;
    color: var(--navy);
    font-size: 1.1rem;
}

.info-texto p, .info-texto a {
    margin: 0;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.5;
}

.info-texto a:hover {
    color: var(--orange-distro);
}

/* Tarjeta Formulario */
.card-formulario {
    background: white;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
}

.card-formulario h3 {
    margin: 0 0 20px 0;
    color: var(--navy);
    font-size: 1.3rem;
}

.form-grupo {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-grupo label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}

.form-grupo input, .form-grupo textarea {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: #f8fafc;
    transition: border-color 0.2s, background-color 0.2s;
}

.form-grupo input:focus, .form-grupo textarea:focus {
    outline: none;
    border-color: var(--navy);
    background-color: white;
}

.btn-enviar {
    background-color: var(--orange-distro);
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-enviar:hover {
    background-color: #ea580c;
}

.btn-enviar:active {
    transform: scale(0.98);
}

/* ==========================================================================
   7. PIE DE PÁGINA (FOOTER COMPACTO)
   ========================================================================== */
footer {
    background-color: var(--navy);
    color: #94a3b8;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto; /* Empuja el footer siempre hacia abajo */
}

.footer-copy {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.6;
}

.footer-copy strong {
    color: white;
}

.footer-separador {
    color: #475569;
    margin: 0 8px;
}

.footer-link-politicas {
    color: #94a3b8;
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-link-politicas:hover {
    color: var(--orange-distro);
}

/* ==========================================================================
   8. RESPONSIVO / ADAPTACIÓN MÓVIL (IPHONE)
   ========================================================================== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
        text-align: center;
    }
    
    .nav-menu {
        gap: 20px;
    }

    .mision-vision-grid, .contacto-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card-formulario {
        padding: 20px;
    }
    
    .hero-banner {
        height: 25vh; /* Se encoge sutilmente para dar espacio a la lectura en celular */
    }
}