/* ═══════════════════════════════════════════════════════════════
   ILE ASHE - ESTILO YORUBA (ORUNMILA)
   Colores: Verde #00a651, Amarillo #f5a623, Negro #1a1a1a
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: #1a1a1a;
    color: #e8e8e8;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

main { flex: 1; }
.footer { margin-top: auto; }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00a651, #f5a623);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f5a623, #00a651);
}

/* ── NAVBAR YORUBA ───────────────────────────────────────────── */
.navbar-yoruba {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
    border-bottom: 3px solid #f5a623;
    box-shadow: 0 4px 20px rgba(0, 166, 81, 0.15);
}

.navbar-yoruba .navbar-brand {
    color: #f5a623 !important;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(245, 166, 35, 0.3);
}

.navbar-yoruba .navbar-brand:hover {
    color: #00a651 !important;
}

.navbar-yoruba .nav-link {
    color: #cccccc !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.navbar-yoruba .nav-link:hover {
    color: #f5a623 !important;
    transform: translateY(-1px);
}

.navbar-yoruba .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #f5a623;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-yoruba .nav-link:hover::after {
    width: 60%;
}

.navbar-yoruba .navbar-toggler {
    border-color: rgba(245, 166, 35, 0.3);
}
.navbar-yoruba .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(245, 166, 35, 0.2));
}

/* ── BOTONES ────────────────────────────────────────────────── */
.btn-yoruba {
    background: linear-gradient(135deg, #00a651, #008a44);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}
.btn-yoruba:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 166, 81, 0.5);
    color: white;
}

.btn-yoruba-outline {
    background: transparent;
    border: 2px solid #f5a623;
    color: #f5a623;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-yoruba-outline:hover {
    background: #f5a623;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 166, 35, 0.3);
}

.btn-yoruba-gold {
    background: linear-gradient(135deg, #f5a623, #d4891a);
    border: none;
    color: #1a1a1a;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}
.btn-yoruba-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 166, 35, 0.5);
    color: #1a1a1a;
}

.btn-yoruba-danger {
    background: linear-gradient(135deg, #dc3545, #b02a37);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-yoruba-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 53, 69, 0.4);
    color: white;
}

.btn-yoruba-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* ── CARDS Y CONTENEDORES ────────────────────────────────────── */
.card-yoruba {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(245, 166, 35, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.card-yoruba:hover {
    border-color: #f5a623;
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.1);
    transform: translateY(-3px);
}

.card-yoruba .card-header {
    background: linear-gradient(135deg, #00a651, #008a44);
    border-bottom: 2px solid #f5a623;
    color: white;
    font-weight: 600;
}
.card-yoruba .card-header.bg-gold {
    background: linear-gradient(135deg, #f5a623, #d4891a);
    border-bottom: 2px solid #00a651;
    color: #1a1a1a;
}

.card-yoruba-dark {
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid rgba(0, 166, 81, 0.15);
    border-radius: 12px;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero-yoruba {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 40%, #0d0d0d 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem 1rem;
    border-bottom: 3px solid #f5a623;
}
.hero-yoruba::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0, 166, 81, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(245, 166, 35, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-yoruba h1 {
    color: #f5a623;
    text-shadow: 0 0 40px rgba(245, 166, 35, 0.2);
    font-weight: 700;
}
.hero-yoruba .highlight-green {
    color: #00a651;
}

/* ── ANIMACIONES ────────────────────────────────────────────── */
@keyframes glow-pulse {
    0%, 100% { text-shadow: 0 0 20px rgba(245, 166, 35, 0.3); }
    50% { text-shadow: 0 0 40px rgba(245, 166, 35, 0.6), 0 0 80px rgba(245, 166, 35, 0.2); }
}
.glow-gold {
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes float-yoruba {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.float-yoruba {
    animation: float-yoruba 4s ease-in-out infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ── SÍMBOLOS DECORATIVOS ───────────────────────────────────── */
.yoruba-symbol {
    color: #f5a623;
    font-size: 1.2rem;
    opacity: 0.3;
    margin: 0 0.3rem;
}
.yoruba-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}
.yoruba-divider::before,
.yoruba-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f5a623, transparent);
}
.yoruba-divider .symbol {
    color: #f5a623;
    opacity: 0.5;
    font-size: 1.2rem;
}

/* ── TABLAS ──────────────────────────────────────────────────── */
.table-yoruba {
    background: rgba(26, 26, 26, 0.95);
    border-color: rgba(245, 166, 35, 0.15);
    color: #e8e8e8;
}
.table-yoruba thead th {
    background: linear-gradient(135deg, #00a651, #008a44);
    color: white;
    border-color: rgba(245, 166, 35, 0.2);
    font-weight: 600;
    padding: 0.75rem 0.5rem;
}
.table-yoruba tbody td {
    border-color: rgba(245, 166, 35, 0.08);
    color: #e8e8e8;
    vertical-align: middle;
    padding: 0.6rem 0.5rem;
}
.table-yoruba tbody tr:hover {
    background: rgba(0, 166, 81, 0.06);
}
.table-yoruba tbody tr.table-warning {
    background: rgba(245, 166, 35, 0.1);
}
.table-yoruba tbody tr.table-danger {
    background: rgba(220, 53, 69, 0.1);
}

/* ── BADGES ──────────────────────────────────────────────────── */
.badge-yoruba {
    background: linear-gradient(135deg, #f5a623, #d4891a);
    color: #1a1a1a;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
}
.badge-yoruba-green {
    background: linear-gradient(135deg, #00a651, #008a44);
    color: white;
    font-weight: 600;
}
.badge-yoruba-dark {
    background: rgba(255, 255, 255, 0.05);
    color: #aaaaaa;
    border: 1px solid rgba(245, 166, 35, 0.15);
}
.badge-stock {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    min-width: 45px;
    display: inline-block;
    font-weight: 600;
}

/* ── FORMULARIOS ────────────────────────────────────────────── */
.form-yoruba {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(245, 166, 35, 0.15);
    border-radius: 10px;
    padding: 1.5rem;
}
.form-yoruba .form-control,
.form-yoruba .form-select {
    background: rgba(13, 13, 13, 0.9);
    border: 1px solid rgba(245, 166, 35, 0.15);
    color: #e8e8e8;
}
.form-yoruba .form-control:focus,
.form-yoruba .form-select:focus {
    border-color: #f5a623;
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.08);
    background: rgba(13, 13, 13, 0.95);
}
.form-yoruba .form-label {
    color: #f5a623;
    font-weight: 600;
}
.form-yoruba .form-text {
    color: #666;
}
.form-yoruba .input-group-text {
    background: rgba(0, 166, 81, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.15);
    color: #f5a623;
}

/* ── MODALES ────────────────────────────────────────────────── */
.modal-yoruba .modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 12px;
}
.modal-yoruba .modal-header {
    background: linear-gradient(135deg, #00a651, #008a44);
    border-bottom: 2px solid #f5a623;
    color: white;
    border-radius: 12px 12px 0 0;
}
.modal-yoruba .modal-header .btn-close {
    filter: brightness(0) invert(1);
}
.modal-yoruba .modal-body {
    color: #e8e8e8;
}
.modal-yoruba .modal-footer {
    border-top: 1px solid rgba(245, 166, 35, 0.1);
}

/* ── PAGINACIÓN ─────────────────────────────────────────────── */
.pagination-yoruba .page-item .page-link {
    background: rgba(26, 26, 26, 0.95);
    border-color: rgba(245, 166, 35, 0.15);
    color: #e8e8e8;
}
.pagination-yoruba .page-item .page-link:hover {
    background: rgba(0, 166, 81, 0.2);
    border-color: #f5a623;
    color: #f5a623;
}
.pagination-yoruba .page-item.active .page-link {
    background: linear-gradient(135deg, #00a651, #008a44);
    border-color: #f5a623;
    color: white;
}
.pagination-yoruba .page-item.disabled .page-link {
    background: rgba(26, 26, 26, 0.5);
    border-color: rgba(245, 166, 35, 0.05);
    color: #444;
}

/* ── ALERTAS ────────────────────────────────────────────────── */
.alert-yoruba {
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-left: 4px solid #f5a623;
    color: #e8e8e8;
}
.alert-yoruba-success {
    background: rgba(0, 166, 81, 0.08);
    border: 1px solid rgba(0, 166, 81, 0.2);
    border-left: 4px solid #00a651;
    color: #e8e8e8;
}
.alert-yoruba-danger {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-left: 4px solid #dc3545;
    color: #e8e8e8;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer-yoruba {
    background: #0d0d0d;
    border-top: 2px solid rgba(245, 166, 35, 0.1);
    padding: 1.5rem 0;
}
.footer-yoruba .text-gold {
    color: #f5a623;
}
.footer-yoruba .text-green {
    color: #00a651;
}

/* ── CARDS DE PRODUCTOS ────────────────────────────────────── */
.product-card {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(245, 166, 35, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}
.product-card:hover {
    border-color: #f5a623;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 166, 35, 0.1);
}
.product-card .product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 13, 13, 0.8);
    padding: 1rem;
}
.product-card .product-image img {
    max-height: 170px;
    object-fit: contain;
}
.product-card .product-body {
    padding: 1rem;
}
.product-card .product-body .product-name {
    color: #f5a623;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.product-card .product-body .product-price {
    color: #00a651;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ── STATS CARDS ────────────────────────────────────────────── */
.stat-card {
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    color: white;
}
.stat-card .number {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
}
.stat-card .icon {
    font-size: 1.8rem;
    opacity: 0.65;
}
.stat-card-green {
    background: linear-gradient(135deg, #00a651, #008a44);
}
.stat-card-gold {
    background: linear-gradient(135deg, #f5a623, #d4891a);
}
.stat-card-purple {
    background: linear-gradient(135deg, #667eea, #764ba2);
}
.stat-card-red {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}
.stat-card-blue {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}
.stat-card-dark {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border: 1px solid rgba(245, 166, 35, 0.1);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    h1 { font-size: 1.4rem; }
    .table { font-size: 0.8rem; }
    .hero-yoruba h1 { font-size: 1.8rem; }
    .logo-img { height: 30px; max-width: 80px; }
    .stat-card .number { font-size: 1.3rem; }
    .product-card .product-image { height: 150px; }
    .product-card .product-image img { max-height: 130px; }
}

@media (max-width: 576px) {
    .navbar-yoruba .navbar-brand span { display: none; }
    .btn-lg { font-size: 0.95rem; padding: 0.5rem 1rem; }
}

/* ── MISC ───────────────────────────────────────────────────── */
.text-yoruba-gold { color: #f5a623; }
.text-yoruba-green { color: #00a651; }
.bg-yoruba-dark { background: #1a1a1a; }
.border-yoruba { border-color: #f5a623 !important; }
.border-yoruba-green { border-color: #00a651 !important; }

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.shadow-glow {
    box-shadow: 0 0 30px rgba(245, 166, 35, 0.05);
}
