/* ============================================================
   🎨 opciones.css - Páginas de selección de opciones
   (Ventas, Compras, Clientes, Inventarios)
   Diseño responsive: se adapta al 100% del espacio disponible
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans, inherit);
}

body {
    background: var(--color-bg, #f8fafc);
    color: var(--color-text, #0f172a);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.options-card {
    background-color: var(--color-surface, #ffffff);
    border-radius: 0;
    padding: 0.8rem 1rem 1.5rem;
    box-shadow: none;
    width: 100%;
    max-width: none;
    margin: 0;
    flex: 1;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text, #0f172a);
    text-align: center;
    padding-top: 0.5rem;
}

/* ===== MÓVIL: Una columna ===== */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 1.2rem 1rem;
    border-radius: 14px;
    background-color: var(--color-bg, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-left: 6px solid var(--color-primary, #680d03);
    transition: all 0.25s ease;
    cursor: pointer;
}

.option-item:hover {
    background-color: var(--color-surface, #ffffff);
    border-color: var(--color-primary, #680d03);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-primary, #680d03);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    font-size: 1.1rem;
    color: #ffffff;
    flex-shrink: 0;
}

.option-content { flex: 1; }

.option-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--color-text, #0f172a);
}

.option-description {
    font-size: 0.82rem;
    color: var(--color-text-muted, #64748b);
    line-height: 1.4;
}

.option-arrow {
    color: var(--color-primary, #680d03);
    font-size: 1.1rem;
    margin-left: 0.6rem;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.option-item:hover .option-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ============================================================
   💻 ESCRITORIO (≥768px): Sin max-width, ocupa el espacio disponible
   ============================================================ */
@media (min-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    .options-card {
        max-width: none;
        padding: 0.8rem 1rem 1rem;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-top: 0.3rem;
        flex-shrink: 0;
    }
    
    .options-grid {
        display: grid;
        gap: 1rem;
        flex: 1;
        align-content: center;
        width: 100%;
        max-width: none;
    }
    
    /* 3 tarjetas (Ventas): Tamaño fluido */
    .options-grid:has(.option-item:nth-child(3)) {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
        margin: 0 auto;
        width: 100%;
    }
    
    /* 2 tarjetas (Compras, Clientes, Inventarios) */
    .options-grid:has(.option-item:nth-child(2)) {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
        margin: 0 auto;
        width: 100%;
    }
    
    .option-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
        border: 1px solid var(--color-border, #e2e8f0);
        border-top: 5px solid var(--color-primary, #680d03);
        border-radius: 14px;
        min-height: 180px;
        justify-content: center;
    }

    .option-item:hover {
        border-top-color: var(--color-primary-hover, #831608);
    }
    
    .option-icon {
        margin-right: 0;
        margin-bottom: 0.8rem;
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
        border-radius: 14px;
    }
    
    .option-title {
        font-size: 1.05rem;
        margin-bottom: 4px;
    }
    
    .option-description {
        font-size: 0.8rem;
        max-width: 260px;
        margin: 0 auto;
    }
    
    .option-arrow {
        display: none;
    }
}

/* ============================================================
   📱 MÓVIL PEQUEÑO (<480px)
   ============================================================ */
@media (max-width: 479px) {
    .container { padding: 0; }
    .options-card { padding: 0.5rem 0.6rem 1rem; }
    .section-title { font-size: 1rem; margin-bottom: 0.8rem; padding-top: 0.3rem; }
    .option-item { padding: 0.8rem 0.7rem; }
    .option-icon { width: 38px; height: 38px; font-size: 0.95rem; margin-right: 0.6rem; }
    .option-title { font-size: 0.95rem; }
    .option-description { font-size: 0.78rem; }
}