/*
 * AppsYSoftware - Sistema de Componentes Reutilizables
 * Version: 1.0 — 2026-03-26
 * Uso: Clases utilitarias + componentes para paginas de servicio
 * Requiere: Bootstrap 5.3, AOS, /styles.css (base)
 */

/* ===================================================
   1. CHAT DEMO (WhatsApp conversation mockup)
   =================================================== */
.chat-demo {
    background: var(--dark-surface);
    border: 1px solid rgba(15, 224, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    max-width: 380px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.chat-demo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 16px 16px 0 0;
}
.chat-demo-header {
    position: relative;
    z-index: 2;
    color: #fff;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding-top: 12px;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-demo-header .avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.chat-demo-header .status {
    font-size: 0.7rem; font-weight: 400; opacity: 0.8;
}
.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 85%;
    position: relative;
}
.chat-bubble.bot {
    background: rgba(15, 224, 255, 0.08);
    border: 1px solid rgba(15, 224, 255, 0.15);
    color: var(--text-secondary);
    margin-right: auto;
}
.chat-bubble.user {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
    color: #e2e8f0;
    margin-left: auto;
}
.chat-bubble .time {
    font-size: 0.65rem;
    color: rgba(160, 174, 192, 0.5);
    text-align: right;
    margin-top: 4px;
}

@media (max-width: 576px) {
    .chat-demo { padding: 18px; max-width: 100%; }
    .chat-bubble { font-size: 0.8rem; max-width: 90%; }
}

/* ===================================================
   2. STAT BOXES (metrics counters)
   =================================================== */
.stat-box {
    text-align: center;
    padding: 24px 16px;
    background: var(--dark-surface);
    border: 1px solid rgba(15, 224, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.stat-box:hover {
    border-color: var(--neon-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 224, 255, 0.1);
}
.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 4px;
}

@media (max-width: 576px) {
    .stat-number { font-size: 1.6rem; }
    .stat-box { padding: 16px 10px; }
}

/* ===================================================
   3. FLOW STEPS (numbered process timeline)
   =================================================== */
.step-number {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700; font-size: 1.2rem;
    flex-shrink: 0;
}
.flow-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}
.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px; top: 56px;
    width: 2px;
    height: calc(100% - 16px);
    background: linear-gradient(to bottom, var(--neon-primary), transparent);
}
.flow-content h4 {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}
.flow-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 576px) {
    .step-number { width: 40px; height: 40px; font-size: 1rem; }
    .flow-step { gap: 14px; margin-bottom: 1.5rem; }
    .flow-step:not(:last-child)::after { left: 19px; }
    .flow-content h4 { font-size: 0.95rem; }
    .flow-content p { font-size: 0.82rem; }
}

/* ===================================================
   4. PRICING CARDS (plan comparison)
   =================================================== */
.pricing-card {
    background: var(--dark-surface);
    border: 1px solid rgba(15, 224, 255, 0.1);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    border-color: var(--neon-primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(15, 224, 255, 0.12);
}
.pricing-card.featured {
    border-color: var(--neon-secondary);
    position: relative;
}
.pricing-card.featured::before {
    content: 'MAS POPULAR';
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--neon-secondary), #b429ff);
    color: #fff;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.7rem; font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
    white-space: nowrap;
}
.pricing-name {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700; font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.pricing-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.pricing-features {
    list-style: none; padding: 0;
    text-align: left;
    flex-grow: 1;
}
.pricing-features li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex; align-items: center; gap: 8px;
}
.pricing-features li::before {
    content: '\2713';
    color: var(--neon-tertiary);
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .pricing-card { padding: 24px 18px; }
    .pricing-name { font-size: 1.15rem; }
    .pricing-features li { font-size: 0.8rem; }
}

/* ===================================================
   5. FAQ ACCORDION
   =================================================== */
.faq-item {
    background: var(--dark-surface);
    border: 1px solid rgba(15, 224, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.faq-item:hover { border-color: rgba(15, 224, 255, 0.2); }
.faq-question {
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    min-height: 44px;
}
.faq-question .arrow {
    transition: transform 0.3s ease;
    color: var(--neon-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-left: 12px;
}
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 20px 18px;
}
.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 576px) {
    .faq-question { padding: 14px 16px; font-size: 0.88rem; }
    .faq-item.open .faq-answer { padding: 0 16px 14px; }
    .faq-answer p { font-size: 0.85rem; }
}

/* ===================================================
   6. NEGOCIO TAGS (pill badges)
   =================================================== */
.negocio-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Chakra Petch', sans-serif;
    border: 1px solid;
    transition: all 0.3s ease;
}
.negocio-tag:hover { transform: translateY(-2px); }

.negocio-tag--primary  { color: var(--neon-primary);  border-color: rgba(15, 224, 255, 0.3); }
.negocio-tag--secondary{ color: var(--neon-secondary); border-color: rgba(255, 19, 203, 0.3); }
.negocio-tag--tertiary { color: var(--neon-tertiary);  border-color: rgba(108, 249, 45, 0.3); }
.negocio-tag--amber    { color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }

/* ===================================================
   7. ROLE CARDS (user type cards)
   =================================================== */
.role-card {
    background: var(--dark-surface);
    border: 1px solid rgba(15, 224, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    height: 100%;
}
.role-card:hover {
    border-color: var(--neon-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 224, 255, 0.1);
}
.role-icon { font-size: 2rem; margin-bottom: 8px; }
.role-name {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 8px;
}
.role-actions {
    list-style: none; padding: 0; margin: 0;
}
.role-actions li {
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 3px 0;
    display: flex; align-items: center; gap: 6px;
}
.role-actions li::before {
    content: '\203A';
    color: var(--neon-primary);
    font-weight: 700;
}

/* ===================================================
   8. UTILITY CLASSES
   =================================================== */

/* --- Spacing shortcuts --- */
.section-sm  { padding: 40px 0; }
.section-md  { padding: 60px 0; }
.section-lg  { padding: 80px 0; }
.section-xl  { padding: 100px 0; }
.pt-section  { padding-top: 40px; }

/* --- Neon button variants --- */
.btn-whatsapp {
    background: linear-gradient(45deg, #25d366, #128c7e) !important;
    border-color: #25d366 !important;
    color: #fff !important;
}
.btn-purple {
    background: linear-gradient(45deg, #ff13cb, #b429ff) !important;
    border-color: #ff13cb !important;
    color: #fff !important;
}
.btn-green {
    background: linear-gradient(45deg, #6cf92d, #22c55e) !important;
    border-color: #6cf92d !important;
    color: #030a10 !important;
}
.btn-full { width: 100%; }

/* --- Text utilities --- */
.text-neon    { color: var(--neon-primary); }
.text-pink    { color: var(--neon-secondary); }
.text-green   { color: var(--neon-tertiary); }
.text-muted2  { color: var(--text-secondary); }
.font-orbitron{ font-family: 'Orbitron', monospace; }
.font-chakra  { font-family: 'Chakra Petch', sans-serif; }

/* --- Image placeholder badges --- */
.img-badge {
    background: rgba(15, 224, 255, 0.1);
    border: 1px solid rgba(15, 224, 255, 0.3);
    color: var(--neon-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}
.img-badge--pink {
    background: rgba(255, 19, 203, 0.1);
    border-color: rgba(255, 19, 203, 0.3);
    color: var(--neon-secondary);
}
.img-badge--green {
    background: rgba(108, 249, 45, 0.1);
    border-color: rgba(108, 249, 45, 0.3);
    color: var(--neon-tertiary);
}
.img-badge--wa {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}
