/* =========================================
   ESTILOS PARA PÁGINAS INTERNAS (DOCUMENTOS)
   Corregido para usar las variables de style.css
   ========================================= */

/* --- HERO SECTION (Banner Superior) --- */
.page-hero {
    height: 40vh; /* Altura controlada */
    /* Asegúrate que la ruta de la imagen sea correcta */
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img/mina.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax elegante */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white); 
    margin-bottom: 50px;
    padding: 0 20px;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-hero p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- CONTENEDOR DE DOCUMENTOS --- */
.docs-container {
    max-width: 900px;
    margin: 0 auto 80px auto; 
    padding: 0 20px;
}

.docs-intro {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

/* --- TARJETAS DE DOCUMENTOS (DOC ITEM) --- */
.doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    /* CORRECCIÓN: Usamos tu variable naranja --primary-color */
    border-left: 5px solid var(--primary-color); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Sombra suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doc-item:hover {
    transform: translateY(-5px); /* Se eleva un poco */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Info del documento (Icono + Texto) */
.doc-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.doc-icon {
    font-size: 2.2rem;
    color: #e74c3c; /* Rojo para PDF */
    min-width: 50px;
    text-align: center;
}

.doc-details h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    /* CORRECCIÓN: Usamos --secondary-color (Gris oscuro) */
    color: var(--secondary-color); 
    font-weight: 700;
}

.doc-details span {
    font-size: 0.85rem;
    color: #888;
    display: block;
}

/* --- BOTÓN DESCARGAR (Modernizado) --- */
.doc-btn {
    padding: 10px 25px;
    /* CORRECCIÓN: Usamos --secondary-color por defecto */
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50px; /* Redondo tipo píldora */
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.doc-btn:hover {
    /* CORRECCIÓN: Naranja al pasar el mouse */
    background-color: var(--primary-color); 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 81, 0, 0.3);
}

/* --- BOTÓN VOLVER --- */
.back-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    margin: 40px auto 0 auto;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid transparent;
}

.back-home-btn:hover {
    color: var(--primary-color);
    background: rgba(230, 81, 0, 0.05); /* Fondo naranja muy suave */
    border-color: rgba(230, 81, 0, 0.1);
}

/* --- RESPONSIVE PARA MÓVIL --- */
@media (max-width: 768px) {
    .doc-item {
        flex-direction: column; /* Apilar en vertical */
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }
    
    .doc-btn {
        width: 100%; /* Botón ancho completo en celular */
        justify-content: center;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
}