/* VARIABLES CSS para un fácil cambio de color */
:root {
    --color-primary: #1F3349; /* Azul Marino/Gris Oscuro (Solidez - similar a Atsa) */
    --color-secondary: #E3B448; /* Naranja/Mostaza (Acento, Tierra) */
    --color-text-dark: #333;
    --color-text-light: #f4f4f4;
    --color-bg-light: #f9f9f9;
    --color-bg-dark: #1f1f1f;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Arial', sans-serif;
}

/* RESET y Tipografía General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    text-align: center;
}

/* -------------------- HEADER -------------------- */
.main-header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--color-primary);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--color-text-dark);
    padding: 10px 15px;
    transition: color 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
}

.menu-toggle {
    display: none; /* Oculto en escritorio */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* -------------------- BOTONES -------------------- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #003a6b;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

/* -------------------- SECCIONES -------------------- */
.content-section {
    padding: 80px 0;
    text-align: center;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.text-white h2, .text-white h3 {
    color: var(--color-secondary);
}

/* -------------------- HERO SECTION (Página de Inicio) -------------------- */
.hero-section {
    position: relative;
    height: 100vh; /* Altura de pantalla completa */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-image: url('placeholder-hero.jpg'); /* REEMPLAZAR con una imagen industrial/minera de Grupo Moran */
    background-size: cover;
    background-position: center;
    margin-top: 60px; /* Espacio para el header fijo */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Oscurecer la imagen */
}

.hero-content {
    position: relative;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

/* -------------------- FLEXIBLE LAYOUTS -------------------- */
.flex-cards {
    display: flex;
    gap: 20px;
    text-align: left;
    margin-top: 40px;
}

.flex-cards .card {
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s;
}

.flex-cards .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-item {
    text-align: left;
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* -------------------- FOOTER -------------------- */
.main-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 30px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    margin-left: 15px;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

/* -------------------- PÁGINAS INTERNAS (nosotros, contacto) -------------------- */
.page-hero {
    height: 40vh; /* Menos alto que el HERO principal */
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: 60px;
}

.page-hero-overlay {
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-hero-content {
    position: relative;
    z-index: 10;
}

.page-hero-content h1 {
    color: white;
    font-size: 3rem;
}

/* Diseño de contenido dividido */
.split-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    text-align: left;
}

.split-content .text-block {
    flex: 2;
    padding-right: 20px;
}

.split-content .image-block {
    flex: 1;
}

.split-content img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Formulario de Contacto */
.contact-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button[type="submit"] {
    margin-top: 20px;
    width: 100%;
}

.map-placeholder {
    height: 250px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #666;
    border-radius: 5px;
}

/* -------------------- MEDIA QUERIES (Responsividad) -------------------- */
@media (max-width: 992px) {
    .flex-cards {
        flex-direction: column;
    }
    .split-content {
        flex-direction: column;
    }
    .split-content .text-block {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.2rem; }

    /* Navegación Móvil */
    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: white;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .menu-toggle {
        display: block;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 10px;
    }
}