﻿/* ==========================================
   PORTAL ECOSOLAR - UX/UI PREMIUM STYLES
   ========================================== */
.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.fw-extrabold {
    font-weight: 800;
}

.uppercase {
    text-transform: uppercase;
}

.max-w-xl {
    max-width: 1140px;
}

.xs-text {
    font-size: 0.75rem;
}

.text-slate-900 {
    color: #0f172a;
}

.text-slate-800 {
    color: #1e293b;
}

.text-slate-500 {
    color: #64748b;
}

/* 🌟 CORREGIDO: Efecto Degradado Seguro en CSS Puro */
.text-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    font-weight: 800;
    /* 🌟 Truco definitivo: Engañamos al editor usando variables CSS */
    --clip-text: text;
    background-clip: var(--clip-text);
    -webkit-background-clip: var(--clip-text);
    color: transparent;
    -webkit-text-fill-color: transparent;
}


.logo-hero {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    border-radius: 14px;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(37, 99, 213, 0.08);
}

.card-premium {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .card-premium:hover {
        transform: translateY(-6px);
        border-color: #cbd5e1;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    }

.card-premium-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.card-premium-text {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.icon-shape {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.bg-soft-blue {
    background-color: #eff6ff;
}

.text-blue {
    color: #2563eb;
}

.bg-soft-emerald {
    background-color: #ecfdf5;
}

.text-emerald {
    color: #059669;
}

.bg-soft-amber {
    background-color: #fffbeb;
}

.text-amber {
    color: #d97706;
}

.btn-premium {
    padding: 11px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-blue {
    background-color: #2563eb;
    color: #ffffff;
}

    .btn-blue:hover {
        background-color: #1d4ed8;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(37, 99, 213, 0.25);
    }

.btn-emerald {
    background-color: #10b981;
    color: #ffffff;
}

    .btn-emerald:hover {
        background-color: #059669;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    }

.search-input-group {
    display: flex;
    align-items: center;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 4px 6px 4px 12px;
    transition: all 0.2s ease;
}

    .search-input-group:focus-within {
        background-color: #ffffff;
        border-color: #d97706;
        box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
    }

.search-addon {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-right: 8px;
}

.search-field {
    border: none;
    background: transparent;
    font-size: 0.88rem;
    color: #0f172a;
    width: 100%;
    outline: none;
}

.btn-search-go {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background-color: #d97706;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: background 0.15s ease;
}

    .btn-search-go:hover {
        background-color: #b45309;
    }

.alert-custom-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 10px;
    padding: 8px 12px;
}

.admin-wrapper {
    border-color: #e2e8f0 !important;
}

.bg-danger-soft {
    background-color: #fef2f2;
}

.admin-quick-link {
    display: block;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .admin-quick-link:hover {
        background-color: #f8fafc;
        border-color: #cbd5e1;
        transform: scale(1.01);
    }

.admin-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background-color: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Animaciones */
.content-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-slide-down {
    animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-slide-up {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🌟 CORREGIDO: Se agregaron las propiedades estándar para el texto degradado */
.navbar-brand-custom {
    font-weight: 800;
    font-size: 1.5rem !important;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: uppercase;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    background-clip: text; /* Agregado */
    -webkit-background-clip: text;
    color: transparent; /* Agregado */
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}


    .navbar-brand-custom:hover {
        transform: scale(1.02);
    }
