/* ==========================================
   ESTILOS DE LA LANDING PAGE Y REGISTRO
   ========================================== */
.landing-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 5px;
}

/* Sección Hero (Bienvenida) */
.hero-section {
    position: relative; /* Permitir posicionar el botón de login superior */
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.05) 0%, rgba(52, 199, 89, 0.05) 100%);
    border-radius: 24px;
    margin-bottom: 50px;
    border: 1px solid var(--border-card);
}

.hero-login-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
}

.btn-hero-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card-background, #ffffff);
    color: var(--accent-blue);
    border: 1px solid var(--border-card);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.btn-hero-login:hover {
    background: rgba(0, 113, 227, 0.05);
    border-color: var(--accent-blue);
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 20px 0 15px 0;
}

.hero-title span { color: var(--accent-blue); }

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 25px auto;
    line-height: 1.5;
}

.badge-free-trial {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(52, 199, 89, 0.15);
    color: var(--accent-green);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 35px 0;
}

/* Grid de Precios */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    align-items: stretch;
    margin-bottom: 50px;
}

.price-card {
    padding: 35px 25px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
}

.price-card:hover {
    transform: translateY(-3px);
}

.plan-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

.plan-price { margin-bottom: 20px; }
.plan-price .amount { font-size: 42px; font-weight: 800; color: var(--text-primary); }
.plan-price .period { font-size: 14px; color: var(--text-secondary); }

.plan-limits {
    background: rgba(0, 113, 227, 0.05);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--accent-blue);
    margin-bottom: 20px;
    border: 1px solid rgba(0, 113, 227, 0.1);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-features li {
    font-size: 13.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i { font-size: 14px; flex-shrink: 0; }

.btn-plan-action {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: var(--accent-blue);
    color: white;
}
.btn-plan-action:hover { opacity: 0.9; }

/* SECCIÓN DEL FORMULARIO DE REGISTRO */
.register-section {
    max-width: 600px;
    margin: 30px auto 60px auto;
    padding: 35px 25px;
    border-radius: 22px;
}

.form-group-ios {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group-ios label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-action-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-group-ios input {
    background: rgba(0,0,0,0.02) !important;
    border: 1px solid var(--border-card) !important;
    color: var(--text-primary) !important;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s;
}
[data-theme="dark"] .form-group-ios input { background: rgba(255,255,255,0.02) !important; }

.form-group-ios input:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.form-group-ios input:disabled {
    background: rgba(0,0,0,0.05) !important;
    color: var(--text-secondary) !important;
    cursor: not-allowed;
}

.btn-inline-ios {
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-card);
    background: var(--card-background, #ffffff);
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.btn-inline-ios:hover:not(:disabled) {
    background: rgba(0, 113, 227, 0.05);
    border-color: var(--accent-blue);
}
.btn-inline-ios:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Animación de entrada para el contenedor del código OTP */
.fade-in-ios {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Badge de Plan Seleccionado dentro del formulario */
.selected-plan-box {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.2);
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    color: var(--accent-green);
    font-size: 15px;
    margin-bottom: 25px;
}

.info-footer-banner {
    text-align: center;
    padding: 25px;
    background: rgba(0,0,0,0.01);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Enlace alternativo de login en el formulario */
.login-alt-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.login-alt-link a {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
}
.login-alt-link a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .hero-section { padding: 70px 15px 40px 15px; }
    .hero-login-wrapper { top: 15px; right: 15px; }
    .hero-title { font-size: 26px; }
    .price-card { padding: 25px 20px; }
    .input-action-group { flex-direction: column; align-items: stretch; gap: 8px; }
    .btn-inline-ios { width: 100%; text-align: center; }
}


/* Estilo base estructural para los botones */
.btn-ios {
    padding: 12px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

/* Botón de Confirmación / Aceptar (Azul Apple) */
.btn-primary {
    background: var(--accent-blue, #0071e3);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.3);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* Botón de Cancelación (Gris Translúcido) */
.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary, #1c1c1e) !important;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Adaptación del botón secundario si el sitio usa Modo Oscuro */
[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary, #f5f5f7) !important;
}

/* Separación horizontal para que los botones no se queden pegados */
.swal2-actions {
    gap: 12px;
    margin-top: 22px;
}