/* ═══════════════════════════════════════════════════════════════
   COMPONENTS.CSS — Buttons, Cards, Modals, Notifications, etc.
═══════════════════════════════════════════════════════════════ */

/* ===== STAT CARD ===== */
.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-blue);
    border-color: rgba(0,61,165,0.2);
}

.stat-icon-box {
    width: 52px; height: 52px;
    background: var(--blue);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.stat-value {
    display: flex; align-items: baseline; gap: 0.1rem;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--yellow);
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

/* ===== UNIFORME CARD ===== */
.uniforme-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: var(--transition); display: flex; flex-direction: column;
}
.uniforme-card:hover { border-color: rgba(255,193,7,0.35); transform: translateY(-6px); box-shadow: var(--shadow-yellow); }

.uc-header {
    padding: 0.7rem 1rem; display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; font-weight: 600;
}
.uc-header.manyanet { background: linear-gradient(90deg, rgba(0,61,165,0.08), rgba(0,86,214,0.04)); border-bottom: 2px solid rgba(0,86,214,0.25); }
.uc-header.marillac { background: linear-gradient(90deg, rgba(120,0,180,0.08), rgba(160,0,220,0.04)); border-bottom: 2px solid rgba(140,0,200,0.25); }
.uc-header.especial  { background: linear-gradient(90deg, rgba(212,160,23,0.12), rgba(255,150,0,0.06)); border-bottom: 2px solid rgba(212,160,23,0.3); }

.uc-colegio { color: var(--text-body); font-weight: 600; }
.uc-badge {
    padding: 0.15rem 0.6rem; border-radius: 12px;
    font-size: 0.7rem; font-weight: 600;
}
.uc-badge.disponible { background: rgba(0,180,80,0.1); color: #16a34a; border: 1px solid rgba(0,180,80,0.25); }
.uc-badge.especial-badge { background: rgba(212,160,23,0.15); color: var(--yellow-dark); border: 1px solid rgba(212,160,23,0.3); }

.uc-icon {
    font-size: 2.8rem; color: var(--blue);
    text-align: center; padding: var(--space-md) var(--space-sm);
    transition: color 0.3s;
}
.uniforme-card:hover .uc-icon { color: var(--yellow-dark); }

.uniforme-card h3 {
    color: var(--text-dark); font-size: 1rem; font-weight: 700;
    padding: 0 var(--space-md); margin-bottom: var(--space-sm);
}

.uc-tallas {
    display: flex; gap: 0.4rem; flex-wrap: wrap;
    padding: 0 var(--space-md) var(--space-sm);
}
.talla {
    background: #eff6ff; border: 1px solid #bfdbfe;
    color: var(--blue); padding: 0.2rem 0.5rem;
    border-radius: 6px; font-size: 0.72rem; font-weight: 600;
}

.uc-precio {
    display: flex; align-items: baseline; gap: 0.4rem;
    padding: 0 var(--space-md) var(--space-sm);
}
.precio-label { color: var(--text-muted); font-size: 0.78rem; }
.precio-valor { color: var(--blue); font-size: 1.25rem; font-weight: 800; }

.btn-cotizar-item {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    margin: auto var(--space-md) var(--space-md);
    background: var(--blue); border: 1px solid var(--blue);
    color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 0.85rem; font-weight: 600;
    transition: var(--transition); width: calc(100% - 2*var(--space-md));
}
.btn-cotizar-item:hover { background: var(--yellow); color: var(--blue); border-color: var(--yellow); }

/* ===== QUIENES FEATURE ===== */
.quienes-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-section);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.quienes-feature:hover { border-color: rgba(0,61,165,0.2); box-shadow: var(--shadow-blue); }

.feature-icon-box {
    width: 40px; height: 40px;
    background: var(--blue);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.9rem;
    flex-shrink: 0;
}

.quienes-feature h4 {
    font-size: 0.9rem; font-weight: 700; color: var(--text-dark);
    margin-bottom: 0.2rem;
}
.quienes-feature p { font-size: 0.8rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed; top: 20px; right: 20px;
    padding: 14px 20px; border-radius: var(--radius-sm);
    color: white; font-weight: 600; font-size: 0.9rem;
    z-index: 10000; box-shadow: var(--shadow-dark);
    animation: slideIn 0.3s ease-out; max-width: 340px;
}
.notification-success { background: #16a34a; border-left: 4px solid #15803d; }
.notification-error   { background: var(--red); border-left: 4px solid #b91c1c; }
.notification-info    { background: var(--blue); border-left: 4px solid #001d5a; }

@keyframes slideIn  { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(400px); opacity: 0; } }

/* ===== TOAST ===== */
.raloz-toast {
    position: fixed; bottom: 160px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333; color: #fff;
    padding: 11px 22px; border-radius: 6px;
    font-weight: 600; font-size: 0.88rem;
    z-index: 2000; opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none; white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.raloz-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== PAGOS CARD ===== */
.pagos-card {
    background: rgba(0,61,165,0.1); border: 1px solid rgba(0,61,165,0.2);
    border-radius: var(--radius-sm); padding: var(--space-md);
    margin-top: var(--space-sm);
}
.pagos-card h4 {
    color: var(--yellow); font-size: 0.95rem; margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.pago-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pago-item:last-child { border-bottom: none; }
.pago-item > i { font-size: 1.2rem; width: 20px; text-align: center; flex-shrink: 0; }
.pago-item strong { display: block; color: white; font-size: 0.85rem; }
.pago-item span { color: var(--text-muted); font-size: 0.78rem; font-family: monospace; }

/* ===== COTIZADOR ITEMS ===== */
.cot-item-empty {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.5rem; color: var(--text-muted); text-align: center; padding: var(--space-sm);
}
.cot-item-empty i { font-size: 2rem; opacity: 0.4; }
.cot-item-empty p { font-size: 0.85rem; margin: 0; }

.cot-item {
    display: grid; grid-template-columns: 1fr auto auto auto;
    align-items: center; gap: 0.75rem;
    padding: 0.6rem; background: rgba(0,61,165,0.15);
    border: 1px solid rgba(0,86,214,0.25);
    border-radius: var(--radius-sm); margin-bottom: 0.5rem;
}
.cot-item-name { color: var(--text-light); font-size: 0.9rem; font-weight: 500; }
.cot-item-talla {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px; padding: 0.2rem 0.6rem; color: var(--text-muted); font-size: 0.78rem;
}
.cot-item-qty {
    display: flex; align-items: center; gap: 0.3rem;
}
.qty-btn {
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(0,61,165,0.3); border: 1px solid rgba(0,86,214,0.4);
    color: var(--text-light); cursor: pointer; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.qty-btn:hover { background: var(--yellow); color: var(--blue); border-color: var(--yellow); }
.qty-val { min-width: 24px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.cot-item-remove {
    background: none; border: none; color: rgba(255,100,100,0.6);
    cursor: pointer; font-size: 0.9rem; padding: 0.2rem;
    transition: color 0.2s;
}
.cot-item-remove:hover { color: var(--red); }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: var(--space-md); }

.faq-item {
    background: rgba(0,61,165,0.1); border: 1px solid rgba(0,61,165,0.22);
    border-radius: var(--radius-sm); overflow: hidden;
}

.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; color: var(--text-light);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    text-align: left; gap: 1rem; transition: var(--transition);
}
.faq-question:hover { color: var(--yellow); background: rgba(255,193,7,0.05); }
.faq-icon { color: var(--yellow); flex-shrink: 0; transition: transform 0.3s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }

.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open {
    max-height: 500px;
    padding: 0 var(--space-lg) var(--space-md);
}
.faq-answer p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }

.tallas-table {
    width: 100%; border-collapse: collapse;
    margin-top: 0.75rem; font-size: 0.85rem;
}
.tallas-table th, .tallas-table td {
    padding: 0.4rem 0.75rem; text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tallas-table th { color: var(--yellow); font-weight: 600; }
.tallas-table td { color: var(--text-muted); }

/* ===== PORTAL RALOZ ===== */
.portal-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(0,61,165,0.3); border: 1px solid rgba(0,86,214,0.4);
    color: var(--blue-xlight); padding: 0.3rem 0.9rem;
    border-radius: 20px; font-size: 0.78rem; font-weight: 500;
    margin-bottom: 0.75rem;
}

.portal-features {
    list-style: none; margin-top: var(--space-md);
    display: flex; flex-direction: column; gap: 0.5rem;
}
.portal-features li {
    display: flex; align-items: center; gap: 0.6rem;
    color: var(--text-light); font-size: 0.9rem;
    padding: 0 !important; margin: 0 !important;
}
.portal-features li::before { display: none !important; }
.portal-features li i { color: var(--green); font-size: 0.8rem; width: 14px; }
.portal-soon { color: var(--text-muted) !important; font-size: 0.7rem !important; }
.portal-features li:has(.portal-soon) { color: var(--text-muted); }

/* Portal card widget */
.portal-card {
    background: rgba(0,0,0,0.4); border: 1px solid rgba(0,86,214,0.4);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-blue);
}
.portal-card-header {
    background: rgba(0,61,165,0.3); padding: 0.65rem 1rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.pc-dot { width: 10px; height: 10px; border-radius: 50%; }
.pc-dot.red { background: #f87171; }
.pc-dot.yellow { background: var(--yellow); }
.pc-dot.green { background: #4ade80; }
.pc-title { color: var(--text-muted); font-size: 0.8rem; font-weight: 500; margin-left: 0.3rem; }

.portal-card-body { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); }

.pc-stat {
    display: flex; align-items: center; gap: var(--space-sm);
    background: rgba(0,61,165,0.15); border: 1px solid rgba(0,61,165,0.25);
    border-radius: var(--radius-sm); padding: 0.75rem 1rem;
}
.pc-stat i { color: var(--yellow); font-size: 1.3rem; }
.pc-val { color: white; font-size: 1.5rem; font-weight: 800; display: block; }
.pc-lbl { color: var(--text-muted); font-size: 0.75rem; }

.pc-status {
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--text-muted); font-size: 0.78rem;
    padding-top: 0.25rem;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.online { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,0.5); }
.status-dot.offline { background: #6b7280; }
.status-dot.connecting { background: var(--yellow); animation: pulse-dot 1.5s infinite; }

@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

/* ===== Animación de entrada para modales ===== */
.talla-modal,
.checkout-modal-inner,
.carrito-panel {
    animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== API STATUS ===== */
.api-status {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #fff; border: 1px solid var(--border);
    border-radius: 20px; padding: 0.35rem 0.9rem;
    font-size: 0.78rem; color: var(--text-muted);
    margin-bottom: var(--space-md);
}
.api-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-muted); animation: pulse-dot 2s infinite;
}
.api-dot.online { background: #22c55e; }
.api-dot.offline { background: #f87171; animation: none; }

/* ===== TESTIMONIOS ===== */
.testimonio-card {
    background: rgba(0,61,165,0.1); border: 1px solid rgba(0,61,165,0.2);
    border-radius: var(--radius); padding: var(--space-lg);
    transition: var(--transition);
}
.testimonio-card:hover { border-color: rgba(255,193,7,0.3); transform: translateY(-4px); box-shadow: var(--shadow-yellow); }

.test-stars { color: var(--yellow); font-size: 1.1rem; margin-bottom: var(--space-sm); letter-spacing: 2px; }

.testimonio-card > p {
    color: var(--text-muted); font-size: 0.9rem; line-height: 1.7;
    font-style: italic; margin-bottom: var(--space-md);
}
.testimonio-card > p::before { content: '"'; color: var(--yellow); font-size: 1.5rem; font-style: normal; }

.test-autor { display: flex; align-items: center; gap: 0.75rem; }
.test-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.test-autor strong { color: white; font-size: 0.9rem; display: block; }
.test-autor span { color: var(--text-muted); font-size: 0.78rem; }
