/**
 * ============================================================================
 * ARCHIVO: assets/css/herramientas.css
 * PROYECTO: AXV.es - Núcleo Digital
 * DESCRIPCIÓN: Estilos para el directorio de herramientas (B&W Minimalista)
 * ============================================================================
 */

/* =========================================
   SECCIÓN CABECERA (HERO)
   ========================================= */
.herramientas-hero {
    background-color: #000000; /* Negro puro corporativo */
    color: #ffffff;
    padding: 7rem 1.5rem 6rem;
    text-align: center;
    border-bottom: 1px solid #262626;
}

.etiqueta-superior {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background-color: #171717;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a3a3a3;
    margin-bottom: 1.2rem;
}

.herramientas-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    letter-spacing: -0.03em;
}

.herramientas-subtitulo {
    font-size: 1.2rem;
    color: #a3a3a3;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* =========================================
   SISTEMA DE CUADRÍCULA (GRID)
   ========================================= */
.cuadricula-herramientas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* =========================================
   TARJETAS EN ENLACE DE BLOQUE (100% CLICABLES)
   ========================================= */
.tarjeta-herramienta-link {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: #000000;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    text-align: left;
}

/* Efecto hover minimalista de alta gama */
.tarjeta-herramienta-link:hover {
    border-color: #000000;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.tarjeta-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.tarjeta-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: #f5f5f5;
    border-radius: 6px;
    color: #000000;
}

.tarjeta-etiqueta {
    font-size: 0.75rem;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f5f5f5;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.tarjeta-titulo {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    color: #000000;
}

.tarjeta-descripcion {
    color: #666666;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex-grow: 1; /* Empuja el contenedor inferior */
}

/* Indicador visual de acción */
.flecha-hover {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    color: #000000;
    opacity: 0.25;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.tarjeta-herramienta-link:hover .flecha-hover {
    opacity: 1;
    transform: translateX(6px);
}

/* =========================================
   BLOQUE COMERCIAL INFERIOR
   ========================================= */
.btn-primario-bw {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    transition:
        background-color 0.2s ease,
        opacity 0.2s ease;
}

.btn-primario-bw:hover {
    opacity: 0.8;
}

/* =========================================
   ADAPTACIÓN MÓVIL DIRECTA
   ========================================= */
@media (max-width: 850px) {
    .cuadricula-herramientas {
        grid-template-columns: 1fr;
    }
    .tarjeta-herramienta-link {
        padding: 2rem;
    }
}
