/* ═══════════════════════════════════════════════════════
   ENCARGA — Estilos del flujo de Suscripción
   Cubre: suscripcion.php, pago-simulado.php, confirmacion-pago.php
   ═══════════════════════════════════════════════════════ */

:root {
    --sub-bg: #0a0e1a;
    --sub-card-bg: rgba(255, 255, 255, 0.06);
    --sub-border: rgba(255, 255, 255, 0.1);
    --sub-blue: #1976D2;
    --sub-green: #4CAF50;
    --sub-white: #ffffff;
    --sub-radius: 16px;
    --sub-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--sub-bg);
    color: var(--sub-white);
    min-height: 100vh;
}

/* ─── Wrapper ─── */
.suscripcion-wrapper {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ─── Partículas de fondo ─── */
.sub-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(25, 118, 210, 0.3);
    border-radius: 50%;
    animation: particleFloat 6s infinite ease-in-out;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-30px) scale(1.5);
        opacity: 0.7;
    }
}

/* ─── Header con pasos ─── */
.sub-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sub-border);
}

.sub-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--sub-white);
    font-weight: 700;
    font-size: 1.2rem;
}

.sub-brand img {
    height: 32px;
}

.sub-steps {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: var(--sub-transition);
}

.step.active,
.step.completed {
    opacity: 1;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--sub-transition);
}

.step.active .step-num {
    background: var(--sub-blue);
    border-color: var(--sub-blue);
    box-shadow: 0 0 20px rgba(25, 118, 210, 0.4);
}

.step.completed .step-num {
    background: var(--sub-green);
    border-color: var(--sub-green);
}

.step span {
    font-size: 0.85rem;
    font-weight: 500;
}

.step-line {
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    transition: var(--sub-transition);
}

.step-line.completed {
    background: var(--sub-green);
}

/* ─── Container ─── */
.sub-container {
    position: relative;
    z-index: 5;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ─── Cards ─── */
.sub-card {
    background: var(--sub-card-bg);
    border: 1px solid var(--sub-border);
    border-radius: var(--sub-radius);
    padding: 36px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sub-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.sub-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ─── Form sections ─── */
.form-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sub-blue);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(25, 118, 210, 0.2);
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.form-control,
.input-group-text {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--sub-white);
    font-size: 0.9rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--sub-blue);
    color: var(--sub-white);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-group-text {
    color: rgba(255, 255, 255, 0.5);
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: var(--sub-blue);
    border-color: var(--sub-blue);
}

.form-check-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

/* ─── Password strength ─── */
.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ─── Buttons ─── */
.btn-cta-glow {
    background: linear-gradient(135deg, var(--sub-blue), #1565C0);
    color: var(--sub-white) !important;
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    transition: var(--sub-transition);
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.3);
}

.btn-cta-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(25, 118, 210, 0.5);
    background: linear-gradient(135deg, #1E88E5, var(--sub-blue));
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: var(--sub-white) !important;
}

/* ─── Plan Summary Card ─── */
.sub-summary {
    background: rgba(25, 118, 210, 0.08);
    border-color: rgba(25, 118, 210, 0.2);
}

.sub-summary-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.plan-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.plan-badge-free {
    background: rgba(158, 158, 158, 0.2);
    color: #bbb;
}

.plan-badge-starter {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.plan-badge-professional {
    background: rgba(25, 118, 210, 0.2);
    color: #42A5F5;
}

.plan-badge-enterprise {
    background: rgba(156, 39, 176, 0.2);
    color: #CE93D8;
}

.plan-badge.small {
    padding: 3px 10px;
    font-size: 0.7rem;
}

.plan-price-display {
    margin: 8px 0 16px;
}

.plan-price-amount {
    font-size: 2.2rem;
    font-weight: 900;
}

.plan-price-cycle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
}

.plan-savings {
    background: rgba(76, 175, 80, 0.12);
    color: #81C784;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features-list li {
    padding: 8px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-features-list li i {
    width: 24px;
    color: var(--sub-blue);
    margin-right: 8px;
}

.plan-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-weight: 600;
}

.plan-total-amount {
    font-size: 1.3rem;
    color: var(--sub-green);
    font-weight: 800;
}

.plan-guarantee {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    background: rgba(76, 175, 80, 0.08);
    border-radius: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.plan-guarantee i {
    color: var(--sub-green);
    margin-top: 2px;
}

.plan-secure {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 12px;
}

/* ─── Order details (pago page) ─── */
.order-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-detail:last-of-type {
    border-bottom: none;
}

/* ─── Simulación badge ─── */
.sim-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 152, 0, 0.12);
    color: #FFB74D;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

/* ─── Credit card display ─── */
.credit-card-display {
    perspective: 1000px;
    margin: 0 auto 20px;
    max-width: 400px;
}

.cc-front {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #1565c0 100%);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.cc-front::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.cc-chip {
    margin-bottom: 20px;
}

.cc-brand {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 2rem;
    opacity: 0.8;
}

.cc-number {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cc-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.cc-bottom small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.payment-methods i {
    color: rgba(255, 255, 255, 0.4);
}

/* ─── Confirmación: Animación de éxito ─── */
.success-animation {
    text-align: center;
    margin-top: 30px;
}

.success-circle {
    display: inline-block;
    width: 120px;
    height: 120px;
}

.success-svg {
    width: 100%;
    height: 100%;
}

.success-circle-bg {
    fill: none;
    stroke: rgba(76, 175, 80, 0.15);
    stroke-width: 4;
}

.success-circle-fill {
    fill: none;
    stroke: #4CAF50;
    stroke-width: 4;
    stroke-dasharray: 340;
    stroke-dashoffset: 340;
    stroke-linecap: round;
    animation: circleIn 1s ease forwards 0.2s;
}

.success-check {
    fill: none;
    stroke: #4CAF50;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkIn 0.5s ease forwards 0.8s;
}

@keyframes circleIn {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkIn {
    to {
        stroke-dashoffset: 0;
    }
}

/* ─── Recibo ─── */
.receipt-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sub-border);
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.receipt-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.receipt-header img {
    height: 24px;
}

.receipt-title {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.receipt-row span:first-child {
    color: rgba(255, 255, 255, 0.5);
}

.receipt-mono {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--sub-blue);
}

.receipt-total {
    font-weight: 700;
    font-size: 1rem !important;
    border-bottom: none;
    padding-top: 12px;
}

.receipt-total span:last-child {
    color: var(--sub-green);
    font-size: 1.1rem;
}

.receipt-badge {
    text-align: center;
    margin-top: 16px;
    padding: 8px 16px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 50px;
    color: #81C784;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ─── Access card ─── */
.access-card {
    background: rgba(25, 118, 210, 0.08);
    border: 1px solid rgba(25, 118, 210, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.access-card h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--sub-blue);
}

.access-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.85rem;
}

.access-row code {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #81D4FA;
}

/* ─── Confetti ─── */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    top: -10px;
    border-radius: 2px;
    animation: confettiFall 4s ease-in forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(600px) rotate(720deg);
        opacity: 0;
    }
}

/* ─── Alert ─── */
.alert {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.3);
    color: #f8d7da;
    border-radius: 12px;
}

.alert ul {
    padding-left: 16px;
}

.alert .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
    .sub-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
    }

    .sub-steps {
        flex-wrap: wrap;
        justify-content: center;
    }

    .step span {
        display: none;
    }

    .step-line {
        width: 30px;
    }

    .sub-card {
        padding: 24px;
    }

    .cc-front {
        min-height: 170px;
        padding: 20px;
    }

    .cc-number {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .sub-container {
        padding: 20px 12px;
    }

    .sub-card {
        padding: 20px 16px;
    }

    .credit-card-display {
        max-width: 100%;
    }

    .cc-number {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }
}