﻿/* ============================================================================
   HERRAMIENTAS — página índice alineada al sistema MAXIMA
   Reemplaza completamente el contenido del archivo.
   Archivo: Maxima.Web/Maxima.Web/wwwroot/css/tools.css
   ============================================================================ */


/* ─── Container ──────────────────────────────────────────────── */
.herr-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px;
}


/* ─── Header ─────────────────────────────────────────────────── */
.herr-header {
    margin-bottom: 32px;
}

.herr-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.herr-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}


/* ─── Sections ────────────────────────────────────────────────── */
.herr-section {
    margin-bottom: 32px;
}

.herr-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}

.herr-section-icon {
    font-size: 1.1rem;
    color: #7c3aed;
}

.herr-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}


/* ─── Grid de tarjetas ────────────────────────────────────────── */
.herr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}


/* ─── Card ────────────────────────────────────────────────────── */
.herr-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

    .herr-card:not(.herr-card-disabled):hover {
        border-color: #c4b5fd;
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
        transform: translateY(-2px);
    }

        .herr-card:not(.herr-card-disabled):hover .herr-card-arrow {
            transform: translateX(4px);
            color: #7c3aed;
        }

.herr-card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #fafafa;
}


/* ─── Icon wrap (cuadrito de color) ──────────────────────────── */
.herr-card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.herr-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.herr-icon-green {
    background: #d1fae5;
    color: #059669;
}

.herr-icon-red {
    background: #fee2e2;
    color: #dc2626;
}

.herr-icon-orange {
    background: #fed7aa;
    color: #ea580c;
}

.herr-icon-purple {
    background: #ede9fe;
    color: #7c3aed;
}


/* ─── Body ───────────────────────────────────────────────────── */
.herr-card-body {
    flex: 1;
    min-width: 0;
}

/* En cards disabled, deja espacio para el badge "Próximamente" */
.herr-card-disabled .herr-card-body {
    padding-right: 100px;
}

.herr-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 6px;
    line-height: 1.3;
}

.herr-card-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.45;
    margin: 0;
}


/* ─── Arrow indicator (solo en cards activos) ────────────────── */
.herr-card-arrow {
    color: #d1d5db;
    font-size: 1.1rem;
    align-self: center;
    transition: all 0.2s;
    flex-shrink: 0;
}


/* ─── Badge "Próximamente" ───────────────────────────────────── */
.herr-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    color: #9ca3af;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    z-index: 1;
}


/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .herr-page {
        padding: 16px 20px;
    }

    .herr-grid {
        grid-template-columns: 1fr;
    }

    .herr-title {
        font-size: 1.5rem;
    }

    .herr-card-disabled .herr-card-body {
        padding-right: 90px;
    }
}
