/* 
╭━━━╮╱╱╱╱╭╮╱╱╱╱╱╱╭╮╭━━━╮
┃╭━━╯╱╱╱╱┃┃╱╱╱╱╱╭╯┃┃╭━╮┃
┃╰━━┳━━┳━╯┣━━┳━━╋╮┃┃┃┃┃┃
┃╭━━┫┃━┫╭╮┃┃━┫━━┫┃┃┃┃┃┃┃
┃┃╱╱┃┃━┫╰╯┃┃━╋━━┣╯╰┫╰━╯┃
╰╯╱╱╰━━┻━━┻━━┻━━┻━━┻━━━╯
╭━━━╮╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╭╮╱╭╮
┃╭━╮┃╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱┃┃╭╯╰╮
┃┃╱╰╋━━┳━━┳╮╱╭┳━┳┳━━┫╰┻╮╭╯
┃┃╱╭┫╭╮┃╭╮┃┃╱┃┃╭╋┫╭╮┃╭╮┃┃
┃╰━╯┃╰╯┃╰╯┃╰━╯┃┃┃┃╰╯┃┃┃┃╰╮
╰━━━┻━━┫╭━┻━╮╭┻╯╰┻━╮┣╯╰┻━╯
╱╱╱╱╱╱╱┃┃╱╭━╯┃╱╱╱╭━╯┃
╱╱╱╱╱╱╱╰╯╱╰━━╯╱╱╱╰━━╯

© 2026 Fedes10
CleverFactu - Estilos del Sistema de Registro
Versión: 2.0
*/

/* ============================================================================
   VARIABLES CSS GLOBALES
   ============================================================================ */
:root {
    --color-primary-dark: #081838;
    --color-accent-blue: #0096C6;
    --color-accent-green: #2ED285;
    --color-success-green: #81EB52;
    --color-bg-light: #EFF1F4;
    --color-bg-secondary: #DCEFF4;
    --color-text-gray: #6B7280;
    --color-warning-yellow: #F1C40F;
    --color-error-red: #e53e3e;
    --color-border: #d1e3f8;
    --transition-speed: 0.3s;
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* =======================Gradientes Web - Config Planes=============================*/

.gradient-primary {
    background: linear-gradient(100deg, #0b7fa6 0%, #22b06f 100%);
}

.gradient-cta {
    background: linear-gradient(90deg, #1fb8bf 0%, #7fd872 100%);
}

.gradient-urgency {
    background: linear-gradient(135deg, #fff3cd 0%, #dceff4 100%);
}

.pricing-grid {
    gap: 2.25rem !important;
    align-items: start;
}

.pricing-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    align-self: start;
}


.pricing-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 50px rgba(8, 24, 56, 0.18);
    border-color: rgba(0, 150, 198, 0.25);
}

.pricing-card.is-open {
    border-color: rgba(0, 150, 198, 0.35);
    box-shadow: 0 28px 60px rgba(8, 24, 56, 0.2);
}

.pricing-card.is-selected {
    border-color: rgba(0, 150, 198, 0.5);
    box-shadow: 0 30px 70px rgba(0, 150, 198, 0.18), 0 0 18px rgba(31, 184, 191, 0.25);
}

.watermark {
    position: fixed;
    right: 20px;
    bottom: 16px;
    font-size: 12px;
    color: rgba(8, 24, 56, 0.25);
    letter-spacing: 0.6px;
    font-weight: 600;
    pointer-events: none;
    user-select: none;
    z-index: 50;
}

/* ---------- SECCIÓN DE PRECIOS Y PLANES -------- */

/* Contenedor de las tarjetas */
.plans-grid {
    display: flex;
    perspective: 1000px;
}

.plan-card {
    flex: 1;
    min-width: 200px;
    border: 2px solid transparent;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Efecto al pasar el ratón por la tarjeta */
.plan-card:hover {
    border-color: #0096C6; /* accent-blue */
    transform: translateY(-8px);
}

/* Estilos de la lista de características */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 1px;
    font-size: 1rem;
    color: #4b5563; /* text-gray */
    line-height: 2.1em;
}

/* El check verde para las incluidas */
.feature-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22b06f; /* accent-green */
    font-weight: bold;
    font-size: 1.2rem;
}

/* Estilo para las características NO incluidas (las de la X) */
.feature-item.feature-disabled {
    color: #9ca3af; /* gris claro */
    text-decoration: line-through;
}

.feature-item.feature-disabled::before {
    content: ""; /* Quitamos el check */
}

.feature-x {
    position: absolute;
    left: 0;
    color: #ef4444; /* rojo */
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

/* --- ESTILOS DEL SELECTOR (TOGGLE) --- */

/* Animación del switch */
#billingToggle + div::after {
    transition: all 0.3s ease;
}

#billingToggle:checked + div {
    background: linear-gradient(to right, #1CDDE6, #A3F584);
}

/* Cambio de color de las etiquetas de texto del toggle */
.text-primary-dark.active-billing {
    color: #002D40; /* primary-dark */
    font-weight: 700;
}

.text-text-gray.inactive-billing {
    color: #9ca3af;
    font-weight: 400;
}

/* Nota de facturación anual */
.annual-billing-note {
    transition: opacity 0.3s ease;
}

/* Ajuste responsive para móviles */
@media (max-width: 768px) {
    .plan-card {
        min-width: 100%;
    }
}

/* ============================================================================
   RESET Y ESTILOS BASE
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #DCEFF4 0%, #EFF1F4 100%);
    min-height: 100vh;
    color: var(--color-primary-dark);
    overflow-x: hidden;
}

/* ============================================================================
   CONTENEDOR PRINCIPAL DEL WIZARD
   ============================================================================ */
.main-wizard-responsive {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    padding: 40px 20px;
    margin-top: 80px;
}

.wizard-card {
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(8, 24, 56, 0.15);
    position: relative;
    overflow: hidden;
}

.wizard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-accent-blue) 0%, var(--color-accent-green) 100%);
}

/* ============================================================================
   HEADER DEL WIZARD
   ============================================================================ */
.wizard-header {
    text-align: center;
    margin-bottom: 32px;
}

.wizard-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.wizard-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-gray);
    font-weight: 400;
}

/* ============================================================================
   BARRA DE PASOS
   ============================================================================ */
.wizard-steps-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 8px;
}

.wizard-step-bar-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f5f8fb;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-gray);
    transition: all var(--transition-speed) ease;
    cursor: default;
}

.wizard-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #e5e9ef;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-gray);
    transition: all var(--transition-speed) ease;
}

.wizard-step-bar-item.active {
    background: linear-gradient(135deg, rgba(0, 150, 198, 0.1) 0%, rgba(46, 210, 133, 0.1) 100%);
    border-color: var(--color-accent-blue);
    color: var(--color-accent-blue);
}

.wizard-step-bar-item.active .wizard-step-number {
    background: var(--color-accent-blue);
    color: white;
}

.wizard-step-bar-item.completed {
    background: linear-gradient(135deg, rgba(46, 210, 133, 0.15) 0%, rgba(129, 235, 82, 0.15) 100%);
    border-color: var(--color-accent-green);
    color: var(--color-accent-green);
}

.wizard-step-bar-item.completed .wizard-step-number {
    background: var(--color-accent-green);
    color: white;
}

.wizard-step-bar-item.blocked {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================================
   BARRA DE PROGRESO
   ============================================================================ */
.wizard-progress-bar {
    position: relative;
    width: 100%;
    height: 12px;
    background: #e5e9ef;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
}

.wizard-progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-blue) 0%, var(--color-accent-green) 100%);
    border-radius: 20px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.wizard-progress-bar-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.wizard-progress-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* ============================================================================
   PANELES DEL WIZARD
   ============================================================================ */
.wizard-content {
    min-height: 300px;
    position: relative;
}


.wizard-panel {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-panel.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================================
   GRID DE CAMPOS (3 COLUMNAS)
   ============================================================================ */
.wizard-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wizard-field {
    position: relative;
}

.wizard-field label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.wizard-field label.required::after {
    content: '*';
    color: var(--color-error-red);
    margin-left: 4px;
}

/* ============================================================================
   INPUTS Y SELECTS
   ============================================================================ */
.wizard-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--color-primary-dark);
    background: white;
    transition: all var(--transition-speed) ease;
    outline: none;
    font-family: inherit;
}

.wizard-input:focus {
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 150, 198, 0.1);
}

.wizard-input.error {
    border-color: var(--color-error-red);
    background: #fff5f5;
}

.wizard-input::placeholder {
    color: #9ca3af;
}

/* Selects personalizados */
select.wizard-input {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%230096C6" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    padding-right: 40px;
    cursor: pointer;
}

/* ============================================================================
   CAMPO DE ARCHIVO (LOGO)
   ============================================================================ */
.wizard-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.wizard-file-upload {
    position: relative;
    width: 100%;
}

.wizard-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: 2px dashed var(--color-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 15px;
    color: var(--color-accent-blue);
    font-weight: 500;
    min-height: 48px;
}

.wizard-file-label svg {
    flex-shrink: 0;
    color: var(--color-accent-blue);
}

.wizard-file-text {
    flex-shrink: 0;
    font-weight: 500;
    color: var(--color-accent-blue);
}

.wizard-file-name {
    flex: 1;
    text-align: left;
    color: var(--color-text-gray);
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 4px;
}

.wizard-file-label.has-file {
    border-style: solid;
    border-color: var(--color-accent-green);
    background: #f0fdf7;
}

.wizard-file-label.has-file .wizard-file-text {
    color: var(--color-accent-green);
}

.wizard-file-label.has-file svg {
    color: var(--color-accent-green);
}

.wizard-file-input:focus + .wizard-file-label {
    outline: 2px solid var(--color-accent-blue);
    outline-offset: 2px;
}

/* ============================================================================
   TARJETAS DE TIPO DE USUARIO
   ============================================================================ */
.wizard-user-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.user-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.user-type-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 150, 198, 0.1) 0%, rgba(46, 210, 133, 0.1) 100%);
    border-radius: 16px;
    margin-bottom: 8px;
}

.user-type-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-accent-blue);
}

.user-type-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.user-type-desc {
    font-size: 0.95rem;
    color: var(--color-text-gray);
    line-height: 1.4;
}

.user-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 150, 198, 0.15);
    border-color: var(--color-accent-blue);
}

.user-type-card.selected {
    border-color: var(--color-accent-green);
    background: linear-gradient(135deg, rgba(0, 150, 198, 0.05) 0%, rgba(46, 210, 133, 0.05) 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(46, 210, 133, 0.2);
}

.user-type-card.selected .user-type-icon {
    background: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--color-accent-green) 100%);
}

.user-type-card.selected .user-type-icon svg {
    color: white;
}

/* ============================================================================
   CAMPO DE ACTIVIDAD CON ICONO
   ============================================================================ */
.actividad-select-wrapper {
    position: relative;
}

.actividad-select {
    padding-left: 44px !important;
}

.actividad-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================================
   CONTRASEÑAS Y SEGURIDAD
   ============================================================================ */
.wizard-password-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wizard-password-eye {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 8px;
    display: flex;
    align-items: center;
    transition: opacity var(--transition-speed) ease;
}

.wizard-password-eye:hover {
    opacity: 0.7;
}

.wizard-password-strength {
    height: 7px;
    border-radius: 6px;
    margin-top: 7px;
    transition: all var(--transition-speed) ease;
}

/* ============================================================================
   NOTAS Y AVISOS
   ============================================================================ */
.wizard-note {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-gray);
    margin-top: 6px;
    font-style: italic;
}

.wizard-warning {
    color: var(--color-error-red);
    font-size: 0.9rem;
    margin-top: 6px;
    display: block;
}

/* ============================================================================
   SPINNER DE VERIFICACIÓN
   ============================================================================ */
.wizard-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #eaf6fa;
    border-top: 4px solid var(--color-accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================================
   BOTONES DE ACCIÓN
   ============================================================================ */
.wizard-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e9ef;
}

.wizard-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-family: inherit;
}

.wizard-btn-prev {
    background: #f5f8fb;
    color: var(--color-primary-dark);
    border: 2px solid var(--color-border);
}

.wizard-btn-prev:hover:not(:disabled) {
    background: #e5e9ef;
    transform: translateY(-2px);
}

.wizard-btn-next,
.wizard-btn-submit {
    background: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--color-accent-green) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 150, 198, 0.3);
}

.wizard-btn-next:hover:not(:disabled),
.wizard-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 150, 198, 0.4);
}

.wizard-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#btnNextVerificacion {
    margin: 0 auto;
    display: block;
}

/* ============================================================================
   RESPONSIVE - TABLETS
   ============================================================================ */
@media (max-width: 768px) {
    .main-wizard-responsive {
        padding: 20px 16px;
        margin-top: 70px;
        min-height: calc(100vh - 120px);
    }
    
    .wizard-card {
        padding: 28px 20px;
        border-radius: 20px;
    }
    
    .wizard-title {
        font-size: 1.6rem;
    }
    
    .wizard-subtitle {
        font-size: 0.95rem;
    }
    
    .wizard-steps-bar {
        gap: 6px;
    }
    
    .wizard-step-bar-item {
        padding: 10px 12px;
        font-size: 0.85rem;
        flex-direction: column;
        gap: 4px;
    }
    
    .wizard-step-number {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .wizard-grid-3x3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .wizard-user-type-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .user-type-card {
        padding: 28px 20px;
    }
    
    .wizard-actions {
        gap: 10px;
    }
    
    .wizard-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* ============================================================================
   RESPONSIVE - MÓVILES
   ============================================================================ */
@media (max-width: 480px) {
    .main-wizard-responsive {
        padding: 16px 12px;
        margin-top: 70px;
    }
    
    .wizard-card {
        padding: 24px 16px;
        border-radius: 16px;
    }
    
    .wizard-title {
        font-size: 1.4rem;
    }
    
    .wizard-subtitle {
        font-size: 0.9rem;
    }
    
    .wizard-steps-bar {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .wizard-step-bar-item {
        flex: 1 1 calc(50% - 4px);
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .wizard-grid-3x3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .wizard-user-type-grid {
        padding: 10px 0;
    }
    
    .user-type-card {
        padding: 24px 16px;
    }
    
    .user-type-icon {
        width: 56px;
        height: 56px;
    }
    
    .user-type-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .user-type-title {
        font-size: 1.05rem;
    }
    
    .user-type-desc {
        font-size: 0.9rem;
    }
    
    .wizard-password-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .wizard-password-wrapper input {
        width: 100%;
    }
    
    .wizard-password-eye {
        align-self: flex-end;
        padding: 8px;
    }
    
    .wizard-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .wizard-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .wizard-file-label {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ============================================================================
   FIX PARA FONDO EN PASOS LARGOS
   ============================================================================ */
body {
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Asegurar que el fondo cubra toda la página */
html {
    height: 100%;
    background: linear-gradient(135deg, #DCEFF4 0%, #EFF1F4 100%);
    background-attachment: fixed;
}

/* ============================================================================
   ANIMACIONES ADICIONALES
   ============================================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ============================================================================
   FIN DE LOS ESTILOS
   ============================================================================ */