/* ═══════════════════════════════════════════════════════════
   estilos-fact.css
   CSS exclusivo para facturacion-electronica.html
   Todas las clases usan prefijo fact- para no pisar estilos-dm.css
   ═══════════════════════════════════════════════════════════ */

/* ── Hero Facturación ───────────────────────────────────── */
.fact-hero {
    background: linear-gradient(135deg, #0a3d3b 0%, #114561 50%, #1a688c 100%);
    color: #fff;
    padding: 80px 0 72px;
    position: relative;
    overflow: hidden;
}

.fact-hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 85%, rgba(255, 255, 255, .05) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .07) 0%, transparent 40%);
    pointer-events: none;
}

.fact-hero .container {
    position: relative;
    z-index: 1;
}

.fact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .01em;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, .92);
}

.fact-badge-dot {
    width: 8px;
    height: 8px;
    background: #6ed9e7;
    border-radius: 50%;
    animation: fact-pulse 2s infinite;
}

@keyframes fact-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

.fact-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    max-width: 800px;
}

.fact-hero-accent {
    display: block;
    color: #6ecfe7;
    font-size: .74em;
    font-weight: 600;
}

.fact-hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .88);
    margin-bottom: 16px;
    max-width: 600px;
    line-height: 1.65;
}

.fact-hero-sub strong {
    color: #fde68a;
}

.fact-hero-desc {
    font-size: .95rem;
    color: rgba(255, 255, 255, .7);
    max-width: 680px;
    margin-bottom: 36px;
    line-height: 1.85;
}

.fact-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

/* Botón secundario verde oscuro */
.fact-btn-secondary {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s, border-color .18s, transform .12s;
    white-space: nowrap;
}

.fact-btn-secondary:hover {
    background: rgba(255, 255, 255, .25);
    border-color: rgba(255, 255, 255, .7);
    transform: translateY(-1px);
}

/* Stats del hero */
.fact-hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.fact-stat {
    text-align: center;
}

.fact-stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
}

.fact-stat-label {
    font-size: .78rem;
    color: rgba(255, 255, 255, .62);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fact-stat-div {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, .2);
}

/* ── Topbar adaptivo verde ──────────────────────────────── */
.topbar-dark-green {
    background: rgba(10, 61, 46, .78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.topbar-dark-green a {
    color: rgba(255, 255, 255, .85);
}

.topbar-dark-green a:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

/* ── Explainer: ¿Qué es CFDI? ───────────────────────────── */
.fact-explainer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.fact-explainer-text p {
    font-size: .97rem;
    color: var(--gray-600);
    line-height: 1.85;
    margin-bottom: 16px;
}

.fact-explainer-text p:last-of-type {
    margin-bottom: 20px;
}

.fact-explainer-text strong {
    color: var(--gray-900);
}

.fact-link-ext {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    font-weight: 600;
    color: #114e61;
    text-decoration: none;
    border-bottom: 1px solid #116149;
    padding-bottom: 2px;
    transition: color .15s, border-color .15s;
}

.fact-link-ext:hover {
    color: #0a3d2e;
    border-color: #0a3d2e;
}

/* Flujo del timbrado */
.fact-explainer-flow {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fact-flow-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
}

.fact-flow-num {
    width: 36px;
    height: 36px;
    background: #114a61;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.fact-flow-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fact-flow-text strong {
    font-size: .95rem;
    font-weight: 700;
    color: var(--gray-900);
}

.fact-flow-text span {
    font-size: .84rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.fact-flow-arrow {
    text-align: center;
    font-size: 1.3rem;
    color: #114261;
    padding: 0 0 0 10px;
    line-height: 1;
}

/* ── Grid de tipos de CFDI ──────────────────────────────── */
.fact-cfdi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.fact-cfdi-card {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    border: 1px solid var(--gray-200);
    transition: box-shadow .2s, transform .2s;
}

.fact-cfdi-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.fact-cfdi-primary {
    background: #f0faf6;
    border-color: #a7f3d0;
}

.fact-cfdi-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #115061;
    margin-bottom: 16px;
}

.fact-cfdi-primary .fact-cfdi-icon {
    background: #d1fae5;
    border-color: #6ee7b7;
}

.fact-cfdi-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.fact-cfdi-card p {
    font-size: .88rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ── CTAs ───────────────────────────────────────────────── */
.fact-cta {
    padding: 64px 0;
}

.fact-cta-teal {
    background: linear-gradient(135deg, #064e3b, #116149);
    color: #fff;
}

.fact-cta-dark {
    background: var(--gray-900);
    color: #fff;
}

.fact-cta-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 24px;
    flex-wrap: wrap;
}

.fact-cta-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.fact-cta-container p {
    font-size: .95rem;
    opacity: .85;
}

/* ── Grid de beneficios ─────────────────────────────────── */
.fact-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.fact-benefit-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    border: 1px solid var(--gray-200);
    transition: box-shadow .2s, transform .2s;
}

.fact-benefit-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.fact-benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.fact-icon-blue {
    background: var(--blue-light);
    color: var(--blue);
}

.fact-icon-green {
    background: #d1fae5;
    color: #06445f;
}

.fact-icon-orange {
    background: var(--yellow-light);
    color: var(--yellow);
}

.fact-benefit-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.fact-benefit-card p {
    font-size: .9rem;
    color: var(--gray-600);
    line-height: 1.75;
}

/* ── Pasos (cómo funciona) ──────────────────────────────── */
.fact-steps-grid {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.fact-step-card {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 28px;
    align-items: center;
}

.fact-step-reverse {
    direction: rtl;
}

.fact-step-reverse>* {
    direction: ltr;
}

.fact-step-num {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: #2fb6ff;
    line-height: 1;
    flex-shrink: 0;
}

.fact-step-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.fact-step-content p {
    font-size: .93rem;
    color: var(--gray-600);
    line-height: 1.8;
}

.fact-step-img {
    width: 340px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--gray-100);
}

.fact-step-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ── CTA Final ──────────────────────────────────────────── */
.fact-cta-final {
    background: linear-gradient(135deg, #02232c 0%, #06494e 55%, #115961 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.fact-cta-final-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

.fact-cta-final-icon {
    width: 88px;
    height: 88px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #6ec5e7;
}

.fact-cta-final h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.fact-cta-final p {
    font-size: 1rem;
    opacity: .83;
    margin-bottom: 36px;
    line-height: 1.7;
}

.fact-cta-final-links {
    margin-top: 24px;
    font-size: .85rem;
    opacity: .65;
}

.fact-cta-final-links a {
    color: rgba(255, 255, 255, .85);
}

.fact-cta-final-links a:hover {
    color: #fff;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
    .fact-explainer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .fact-step-card {
        grid-template-columns: 1fr;
    }

    .fact-step-reverse {
        direction: ltr;
    }

    .fact-step-num {
        display: none;
    }

    .fact-step-img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .fact-hero {
        padding: 52px 0 48px;
    }

    .fact-hero-stats {
        gap: 20px;
    }

    .fact-stat-div {
        display: none;
    }

    .fact-hero-actions {
        flex-direction: column;
    }

    .fact-cta-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .fact-cfdi-grid {
        grid-template-columns: 1fr;
    }

    .fact-benefits-grid {
        grid-template-columns: 1fr;
    }
}

.pac-lst {
    margin-top: 20px;
}

.pac-lst>strong {
    display: block;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.pac-lst ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.pac-lst li {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.pac-lst li strong {
    white-space: nowrap;
}