/*
 * COLORES UTILIZADOS:
 * Gris Claro: #eaeaea
 * Azul Apagado Oscuro 1 (Fondo Header/Footer/Borde): #151b23
 * Azul Apagado Oscuro 2 (Texto principal): #29313d
 * Naranja Apagado: #c49369
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #29313d; /* Azul Apagado Oscuro 2 */
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- 1. HEADER / NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 80px;
    background-color: #151b23; /* Azul Apagado Oscuro 1 */
    color: #eaeaea;
    font-size: 14px;
    font-weight: 700;
    position: sticky; /* NUEVO: Header Fijo (Sticky) */
    top: 0;
    z-index: 1000; /* Asegura que esté por encima de todo */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* NUEVO: Sombra sutil para el efecto sticky */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 65px; 
    width: auto;
}

.logo-icon, .logo-text {
    display: none;
}

.nav-links a, .language-links a {
    margin-left: 25px;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-links a:hover, .language-links a:hover, .active-link {
    color: #c49369; 
}

.language-links {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
}

.language-links a:first-child {
    font-weight: 700;
    color: #c49369;
}

/* --- 2. HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 0 80px;
    /* Usamos una imagen de fondo con un degradado oscuro */
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('fotoalmacen.jpeg'); 
    background-size: cover;
    background-position: center bottom; 
    background-attachment: fixed; /* NUEVO: Efecto Parallax */
    color: #ffffff;
}

.hero-content {
    max-width: 600px;
    z-index: 5;
    padding-bottom: 100px;
}

.hero-content h1 {
    font-size: 55px;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 700;
}

.naranja-sombra {
    color: #c49369; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); 
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #eaeaea;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #c49369;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    border: 2px solid #c49369;
    transition: background-color 0.3s, border-color 0.3s;
}

.cta-button:hover {
    background-color: transparent;
    border-color: #ffffff;
}

.hero-solid-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px; 
    background-color: #151b23; 
    z-index: 1;
}

/* --- 3. MAIN SERVICES SECTION & SHARED CONTENT STYLES --- */
.services-section {
    padding: 50px 80px 100px 80px;
    text-align: center;
    background-color: #ffffff;
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.content-page-section {
    margin-top: 0;
    padding-top: 80px;
}

.section-title {
    font-size: 18px;
    color: #000000; 
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
}

.section-title-spacing {
    margin-top: 60px;
}

.servicios-underline {
    position: relative;
    padding-bottom: 5px;
}

.servicios-underline::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px; 
    background-color: #c49369; 
    width: 80%; 
    margin: 0 auto; 
}

.subtitle-text {
    font-size: 16px;
    color: #29313d;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-weight: 400;
}

.services-container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.service-card {
    flex-basis: 30%;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    padding: 40px 20px 20px 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* NUEVO: Transición suave */
}

.service-card:hover {
    transform: translateY(-5px); /* NUEVO: Elevación al pasar el ratón */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* NUEVO: Sombra más marcada */
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: #eaeaea; 
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
}

.service-icon {
    font-size: 35px;
    color: #29313d; 
}

.service-card h3 {
    color: #29313d; 
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.service-card p {
    color: #29313d; 
    font-size: 14px;
    margin-bottom: 25px;
    min-height: 40px; 
    flex-grow: 1;
    text-align: center;
}

.details-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #c49369; 
    color: #ffffff; 
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #c49369; 
    border-radius: 3px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    margin-left: auto; 
}

.details-button:hover {
    background-color: #29313d; 
    color: #ffffff;
    border-color: #29313d;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px; 
    background: linear-gradient(to right, #151b23 50%, #c49369 50%); 
}

.cta-section {
    padding: 50px 80px;
    text-align: center;
    background-color: #151b23; 
    color: #eaeaea;
}

.cta-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 25px;
}


/* --- 4. FOOTER --- */
.main-footer {
    background: linear-gradient(rgba(21, 27, 35, 0.85), rgba(21, 27, 35, 0.85)), url('fotoalmacen.jpeg'); 
    background-size: cover;
    background-position: center; 
    color: #eaeaea;
    padding: 60px 80px 40px 80px; 
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px; 
    padding-bottom: 40px; 
    border-bottom: 1px solid rgba(234, 234, 234, 0.2); 
}

.footer-col {
    flex-basis: 30%; 
    text-align: left;
}

.footer-logo-col .footer-brand { 
    font-size: 20px; 
    font-weight: 700;
    margin-bottom: 10px;
    color: #c49369; 
}

.footer-logo-col .footer-small-text {
    font-size: 13px;
    color: #6e7176; 
    margin-top: -5px; 
}

.footer-heading {
    font-size: 18px; 
    font-weight: 700;
    margin-bottom: 15px;
    color: #c49369; 
}

.footer-text {
    font-size: 14px;
    color: #eaeaea; 
    margin-bottom: 15px;
}

.footer-links-col a { 
    font-size: 14px;
    font-weight: 400; 
    color: #eaeaea; 
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
}

.footer-links-col a:hover {
    color: #c49369; 
}

/* --- 5. STYLES FOR CONTENT PAGES (EMPRESA, PRODUCTOS, CONTACTO) --- */

/* 5.1 ESTILO ESPECÍFICO DE LA PÁGINA EMPRESA (Asymmetrical Layout) */

.company-history-layout {
    display: flex;
    gap: 70px; /* Separación aumentada */
    align-items: flex-start; /* Alineación arriba */
    text-align: left;
    max-width: 1200px;
    margin: 40px auto 60px auto;
}

.history-text {
    flex: 3; /* Más espacio para texto */
}

.history-text h3 {
    font-size: 26px;
    color: #29313d;
    margin-bottom: 20px;
    border-left: 3px solid #c49369;
    padding-left: 15px;
}

.history-text p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #29313d;
}

.history-image-container {
    flex: 2; /* Más espacio para imagen */
    min-width: 300px;
    position: relative;
    padding-top: 20px;
    padding-left: 20px; /* NUEVO: Padding para efecto asimétrico */
}

.history-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* Sombra más profunda */
    display: block;
    position: relative;
    z-index: 2;
}

/* NUEVO: Toque Asimétrico con color en la imagen */
.history-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #c49369; /* Naranja Apagado */
    opacity: 0.1;
    border-radius: 8px;
    z-index: 1;
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 80px auto;
}

.mvv-card {
    text-align: left;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background-color: #f7f7f7; 
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mvv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.mvv-card h3 {
    font-size: 20px;
    color: #c49369; 
    margin-bottom: 15px;
}

.mvv-card p, .mvv-card ul {
    font-size: 14px;
    color: #29313d;
    line-height: 1.8;
}

.mvv-card ul {
    list-style-type: disc;
    padding-left: 20px;
}

.mvv-icon {
    font-size: 40px;
    color: #29313d; 
    margin-bottom: 15px;
    display: block;
}

.cta-empresa-style {
    background-color: #eaeaea; 
    color: #29313d; 
}

.cta-empresa-style .cta-button {
    background-color: #29313d; 
    border-color: #29313d;
}

.cta-empresa-style .cta-button:hover {
    background-color: transparent;
    border-color: #29313d;
    color: #29313d;
}

/* 5.2 ESTILO ESPECÍFICO DE LA PÁGINA PRODUCTOS */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

.product-card {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transición */
    text-align: left;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* Sombra mejorada */
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 18px;
    color: #c49369; 
    margin-bottom: 10px;
}

.product-info p {
    font-size: 14px;
    color: #29313d;
}

/* 5.3 ESTILO ESPECÍFICO DE LA PÁGINA CONTACTO */

.contact-layout {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 40px auto;
    text-align: left;
}

.contact-form-container {
    flex: 2;
    padding: 30px;
    background-color: #f7f7f7; 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-details {
    flex: 1;
    padding: 30px 0;
}

.contact-form-container h3, .contact-details h3 {
    font-size: 20px;
    color: #29313d;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    color: #29313d;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #c49369;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.detail-group {
    margin-bottom: 30px;
}

.detail-group h3 {
    border-bottom: 2px solid #c49369;
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 10px;
    font-size: 18px;
}

.detail-group p {
    font-size: 15px;
    color: #29313d;
    margin: 5px 0;
}

.contact-icon-style {
    font-size: 28px;
    color: #c49369;
    margin-right: 10px;
    float: left;
}

.map-container {
    margin-top: 30px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
}

/* Media Queries para Responsive */
@media (max-width: 1024px) {
    .navbar, .services-section, .main-footer {
        padding-left: 40px;
        padding-right: 40px;
    }
    .company-history-layout {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    /* Restablecer el efecto asimétrico en móvil */
    .history-image-container {
        padding-top: 0;
        padding-left: 0;
    }
    .history-image-container::before {
        content: none; 
    }
    .history-text h3 {
        text-align: center;
        border-left: none;
        padding-left: 0;
        border-bottom: 3px solid #c49369;
        padding-bottom: 10px;
    }
    .history-text, .mvv-card {
        text-align: left; 
    }
    .contact-layout {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .navbar, .main-footer {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    .hero-section {
        min-height: 500px;
        text-align: center;
    }
    .hero-content {
        padding-bottom: 50px;
    }
    .services-container {
        flex-direction: column;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
/* ... (Estilos previos) ... */

/* --- 2. HERO SECTION (Parallax + VIDEO) --- */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 0 80px;
    /* Los estilos de fondo se moverán al video/overlay en index.html */
    background: transparent;
    color: #ffffff;
    overflow: hidden; /* Asegura que el vídeo no se desborde */
}

/* Nuevo: Estilo para el vídeo de fondo */
#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Nuevo: Oscurecimiento para que el texto se lea */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Oscurecimiento del 70% */
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    z-index: 5; /* Asegura que el contenido esté sobre el overlay */
    padding-bottom: 100px;
}
/* ... (Resto de estilos) ... */

/* 5.1 ESTILO ESPECÍFICO DE LA PÁGINA EMPRESA (Ajuste de Imagen) */

.history-image-container {
    /* ... (Estilos previos) ... */
    overflow: hidden; /* NUEVO: Oculta la parte superior */
    height: 350px; /* NUEVO: Altura fija */
}

.history-image-container img {
    /* ... (Estilos previos) ... */
    width: 100%;
    height: 150%; /* NUEVO: La imagen es más alta para que solo se vea la parte inferior */
    object-fit: cover;
    object-position: center bottom; /* NUEVO: Enfoca la parte inferior de la imagen */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); 
}

/* 5.2 ESTILO ESPECÍFICO DE LA PÁGINA PRODUCTOS (Diseño 3+1) */

.product-grid {
    display: grid;
    /* Ajustado para 3 columnas */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

/* Estilo para la última tarjeta (Materia Prima) para que ocupe las 3 columnas y se centre */
.product-grid .product-card:last-child {
    grid-column: 1 / -1; /* Ocupa todas las columnas */
    max-width: 600px; /* Limita el ancho */
    margin: 0 auto; /* Centra el bloque */
    text-align: center;
}

.product-grid .product-card:last-child .product-info p,
.product-grid .product-card:last-child .product-info h3 {
    text-align: center; /* Centra el texto */
}
/* --- 6. MEDIA QUERIES (ADAPTACIÓN A MÓVILES) --- */

@media (max-width: 768px) {
    
    /* 6.1 CABECERA / NAVBAR: Apilar los elementos */
    .navbar {
        flex-direction: column;
        align-items: center; /* Centra logo y enlaces */
        padding: 10px 20px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }

    .nav-links a {
        padding: 5px 0;
    }

    .language-links {
        margin-top: 10px;
        position: static;
    }

    /* 6.2 SECCIONES Y TÍTULOS */
    .section-title, .summary-title, .delivery-content h2 {
        font-size: 22px;
        text-align: center;
    }

    /* 6.3 DISEÑO DE 3 COLUMNAS: Cambiar a una sola columna */
    .three-col-layout, .product-grid {
        grid-template-columns: 1fr; /* Una sola columna para móviles */
        padding: 0 15px;
    }

    /* 6.4 SECCIÓN DE IMAGEN/TEXTO (About Us) */
    .about-us-summary {
        flex-direction: column;
    }

    .summary-image-container, .summary-text-content {
        width: 100%;
    }

    .summary-image-container {
        height: auto;
    }

    /* 6.5 PIE DE PÁGINA: Apilar las columnas */
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .footer-col {
        margin-bottom: 20px;
        width: 100%;
    }
}
/* --- NUEVO: Ajustes para la Sección Heroe en Móviles (Menos de 768px) --- */
@media (max-width: 768px) {
    /* ... otros estilos de 768px ... */

    .hero-section {
        /* Desactiva el centrado vertical en móviles */
        align-items: flex-start; 
        /* Reduce el padding lateral */
        padding: 40px 20px 0 20px; 
        /* Permite que la altura sea más flexible si el contenido es grande */
        min-height: 450px; 
        text-align: center; /* Centra el texto en la nueva alineación */
    }

    .hero-content {
        /* Reduce el padding inferior para que el texto no se empuje tanto hacia arriba */
        padding-bottom: 50px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-content h1 {
        font-size: 40px; /* Opcional: Reduce el tamaño del título para que quepa mejor */
    }
    
    .hero-solid-divider {
        height: 20px; /* Opcional: Reduce la altura del divisor */
    }
}