/* ============================================================
   FACTUskill Landing Page - Custom Styles
   Bootstrap 5 overrides y estilos propios
   ============================================================ */

:root {
    --fs-primary:     #1565c0;
    --fs-primary-dk:  #0d47a1;
    --fs-primary-lt:  #1976d2;
    --fs-accent:      #fca503;
    --fs-success:     #43a047;
    --fs-hero-bg:     linear-gradient(135deg, #0d47a1 0%, #1565c0 60%, #1976d2 100%);
    --fs-radius:      0.875rem;
    --fs-shadow-sm:   0 2px 12px rgba(0,0,0,.06);
    --fs-shadow:      0 4px 24px rgba(0,0,0,.10);
    --fs-shadow-lg:   0 8px 40px rgba(0,0,0,.14);
}

/* -----------------------------------------------------------
   Base
----------------------------------------------------------- */
html { scroll-behavior: smooth; }

body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }

/* -----------------------------------------------------------
   Navbar
----------------------------------------------------------- */
#mainNav {
    background-color: var(--fs-primary-dk) !important;
    transition: background-color .3s, box-shadow .3s;
}
#mainNav.scrolled {
    background-color: #022861 !important;
    box-shadow: 0 2px 20px rgba(0,0,0,.25) !important;
}
#mainNav .navbar-brand {
    font-size: 1.35rem;
    letter-spacing: -.3px;
}
#mainNav .nav-link {
    color: #ffffff;
    font-size: .9rem;
    font-weight: 500;
    padding: .5rem .85rem;
    opacity: .88;
    transition: opacity .2s;
    white-space: nowrap;
}
#mainNav .nav-link:hover { opacity: 1; }

/* En el rango justo antes de xl (donde ya se ve el menú horizontal), achicar
   un poco el espaciado para que los 7 links + 2 botones entren sin apretar */
@media (min-width: 1200px) and (max-width: 1320px) {
    #mainNav .nav-link { padding: .5rem .55rem; font-size: .85rem; }
}

/* -----------------------------------------------------------
   Hero
----------------------------------------------------------- */
.hero-section {
    background: var(--fs-hero-bg);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 650px;
    height: 650px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,.03);
    border-radius: 50%;
    pointer-events: none;
}
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}
.hero-stat {
    padding: .5rem 1rem;
    border-left: 1px solid rgba(255,255,255,.2);
}
.hero-stat:first-child { border-left: none; }

/* -----------------------------------------------------------
   Sección: Detalles principales
----------------------------------------------------------- */
.detail-card {
    background: #fff;
    border-radius: var(--fs-radius);
    box-shadow: var(--fs-shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease;
}
.detail-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fs-shadow-lg);
}
.detail-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -----------------------------------------------------------
   Sección: Características
----------------------------------------------------------- */
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: .6rem;
}
.features-highlight { border-radius: var(--fs-radius); }
.features-highlight .check-row {
    display: flex;
    align-items: center;
    padding: .55rem 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: .93rem;
}
.features-highlight .check-row:last-child { border-bottom: none; }

/* -----------------------------------------------------------
   Sección: MercadoPago Integration
----------------------------------------------------------- */
.mp-step-badge {
    width: 2.1rem;
    height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
    border-radius: 50%;
}
.mp-benefit-card {
    border-radius: var(--fs-radius);
    transition: transform .2s ease, box-shadow .2s ease;
}
.mp-benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--fs-shadow) !important;
}

/* -----------------------------------------------------------
   Sección: Precios
----------------------------------------------------------- */
.pricing-tabs {
    border: 1px solid #dee2e6;
    gap: .25rem;
}
.pricing-tabs .nav-link {
    color: #495057;
    font-weight: 600;
    font-size: .9rem;
    transition: all .2s;
    border: none;
}
.pricing-tabs .nav-link.active {
    background-color: var(--fs-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(21,101,192,.35);
}
.pricing-tabs .nav-link:not(.active):hover {
    background-color: #f0f4ff;
}

.pricing-card {
    border-radius: var(--fs-radius) !important;
    transition: transform .22s ease;
}
.pricing-card:hover { transform: translateY(-4px); }

/* Tarjeta destacada */
.pricing-featured {
    background: var(--fs-hero-bg) !important;
    color: #fff;
    position: relative;
}
.pricing-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--fs-radius);
    box-shadow: 0 12px 40px rgba(21,101,192,.4);
    pointer-events: none;
}
.pricing-featured .text-muted,
.pricing-featured .text-dark     { color: rgba(255,255,255,.8) !important; }
.pricing-featured .price-amount  { color: #fff; }
.pricing-featured .price-amount span { color: #fff !important; }
.pricing-featured .feature-check li { color: #fff; border-color: rgba(255,255,255,.15) !important; }

.price-amount { line-height: 1; }

.feature-check li {
    padding: .45rem 0;
    border-bottom: 1px solid #f2f4f6;
    font-size: .875rem;
    display: flex;
    align-items: flex-start;
    gap: .4rem;
}
.feature-check li:last-child { border-bottom: none; }
.feature-check li i { flex-shrink: 0; margin-top: 2px; }

.pricing-note {
    font-size: .8rem;
    color: #6c757d;
}

/* -----------------------------------------------------------
   Sección: FAQs
----------------------------------------------------------- */
.accordion-item {
    border-radius: var(--fs-radius) !important;
    overflow: hidden;
}
.accordion-button {
    font-weight: 600;
    font-size: .95rem;
    background-color: #fff;
}
.accordion-button:not(.collapsed) {
    background-color: #e8f0fe;
    color: var(--fs-primary);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: none; }
.accordion-button::after {
    /* mantener el chevron de Bootstrap */
}

/* -----------------------------------------------------------
   Sección: Contacto
----------------------------------------------------------- */
.contact-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: .65rem;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--fs-primary);
    box-shadow: 0 0 0 .2rem rgba(21,101,192,.18);
}

/* -----------------------------------------------------------
   Footer
----------------------------------------------------------- */
.footer-link { transition: color .2s; }
.footer-link:hover { color: #fff !important; }

/* -----------------------------------------------------------
   Botón volver arriba
----------------------------------------------------------- */
#btnBackToTop {
    position: fixed;
    bottom: 88px;
    right: 20px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1030;
    border-radius: 50%;
    background-color: var(--fs-primary);
    border-color: var(--fs-primary);
    opacity: .85;
    transition: opacity .2s;
}
#btnBackToTop:hover { opacity: 1; }

/* -----------------------------------------------------------
   WhatsApp flotante
----------------------------------------------------------- */
.wa-float {
    position: fixed;
    bottom: 22px;
    right: 20px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1030;
    border-radius: 50%;
    background-color: #25d366;
    border-color: #25d366;
    box-shadow: 0 4px 16px rgba(37,211,102,.45);
    transition: transform .2s, box-shadow .2s;
}
.wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37,211,102,.55);
}

/* -----------------------------------------------------------
   Utilitarios
----------------------------------------------------------- */
.py-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.section-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* -----------------------------------------------------------
   Responsive
----------------------------------------------------------- */
@media (max-width: 991.98px) {
    .hero-section .display-4 { font-size: 2.1rem; }
}
@media (max-width: 575.98px) {
    .hero-section .display-4 { font-size: 1.75rem; }
    .wa-float  { bottom: 16px; right: 16px; }
    #btnBackToTop { bottom: 80px; right: 16px; }
    .pricing-tabs .nav-link { font-size: .82rem; padding: .45rem .75rem; }
}

/* ============================================================
   FASE 2 — Nuevas secciones (agregado, no reemplaza lo anterior)
   ============================================================ */

/* --- Diagrama del Hero: MercadoPago → FACTUskill → ARCA --- */
.hero-flow-diagram {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.hero-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 130px;
}
.hero-flow-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: .6rem;
    box-shadow: var(--fs-shadow);
}
.hero-flow-arrow { opacity: .6; }

@media (max-width: 991.98px) {
    .hero-section .display-5 { font-size: 2rem; }
}
@media (max-width: 575.98px) {
    .hero-section .display-5 { font-size: 1.65rem; }
}

/* --- Sección "El problema" --- */
.problem-step {
    background: #fff;
    border-radius: var(--fs-radius);
    padding: 1.25rem .75rem;
    box-shadow: var(--fs-shadow-sm);
    height: 100%;
}

/* --- Diagrama MercadoPago → FACTUskill → ARCA (sección MP) --- */
.mp-flow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.mp-flow-box {
    background: var(--fs-primary-dk);
    color: #fff;
    border-radius: var(--fs-radius);
    padding: 1.5rem 1.25rem;
    text-align: center;
    min-width: 190px;
    flex: 1 1 190px;
    box-shadow: var(--fs-shadow);
}
.mp-flow-box-featured {
    background: linear-gradient(135deg, var(--fs-primary-lt) 0%, #009ee3 100%);
}
.mp-flow-arrow {
    color: #adb5bd;
    flex-shrink: 0;
}
@media (max-width: 767.98px) {
    .mp-flow-row { flex-direction: column; }
    .mp-flow-arrow { transform: rotate(90deg); }
}

/* --- Placeholder de capturas / prueba social --- */
.screenshot-placeholder {
    border: 2px dashed #adb5bd;
    border-radius: var(--fs-radius);
    background: #f8f9fa;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #6c757d;
}
.screenshot-placeholder strong {
    color: #495057;
}

/* --- CTA final --- */
.cta-final-section {
    background: var(--fs-hero-bg);
}
