/**
 * components.css - Clases UI reutilizables para Mint Hub
 * Componentes compartidos entre multiples modulos.
 */

/* ══════════════════════════════════════════
   HUB CARDS (index.html)
   ══════════════════════════════════════════ */
.hub-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    background: var(--neu-card);
}

.hub-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 20px 20px 40px var(--neu-flat-shadow1),
               -20px -20px 40px var(--neu-flat-shadow2);
}

/* ══════════════════════════════════════════
   BUSINESS CARDS (negocios.html)
   ══════════════════════════════════════════ */
.business-card {
    transition: all 0.3s ease;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 15px 15px 30px var(--neu-flat-shadow1),
               -15px -15px 30px var(--neu-flat-shadow2);
}

/* ══════════════════════════════════════════
   FINCA CHIPS (ceba dashboard)
   ══════════════════════════════════════════ */
.finca-chip {
    padding: 8px 18px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.4);
    color: #475569;
    border: 1px solid rgba(16, 185, 129, 0.1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.finca-chip:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
    color: #1a4d2e;
}

.finca-chip.active {
    background: #2ecc71;
    color: #1a4d2e;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    border-color: #2ecc71;
    transform: scale(1.02);
}

/* ══════════════════════════════════════════
   PROGRESS BAR
   ══════════════════════════════════════════ */
.progress-bar {
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════
   TAB NAVIGATION
   ══════════════════════════════════════════ */
.tab-link.active {
    color: var(--mint-primary);
    border-bottom: 2px solid var(--mint-primary);
    font-weight: 700;
}

/* ══════════════════════════════════════════
   GLOW EFFECTS (hub)
   ══════════════════════════════════════════ */
.glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(100px);
    animation: glowMove 15s infinite alternate;
}

@keyframes glowMove {
    from { transform: translate(-20%, -20%); }
    to   { transform: translate(20%, 20%); }
}

/* ══════════════════════════════════════════
   PREMIUM INPUT (propiedades)
   ══════════════════════════════════════════ */
.premium-input-container {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.premium-input-container:focus-within {
    border-color: var(--mint-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1);
}

.premium-input {
    width: 100%;
    background: transparent;
    font-weight: 700;
    color: #1E293B;
    outline: none;
    font-size: 1.125rem;
}

/* ══════════════════════════════════════════
   PREMIUM CARDS (construccion)
   ══════════════════════════════════════════ */
.premium-card {
    background: #ffffff;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

/* ══════════════════════════════════════════
   GLASS PANEL (construccion)
   ══════════════════════════════════════════ */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* ══════════════════════════════════════════
   CARD SHADOW (propiedades)
   ══════════════════════════════════════════ */
.card-shadow {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

/* ══════════════════════════════════════════
   POPOVER (turo)
   ══════════════════════════════════════════ */
.popover {
    position: absolute;
    z-index: 50;
    min-width: 160px;
}
