/* assets/style.css */
.mp-subscription-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.mp-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

/* Header del plan */
.mp-plan-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f5f5f5;
}

.mp-plan-header h2 {
    margin: 0 0 20px 0;
    color: #6568eb;
    font-size: 32px;
    font-weight: 700;
}

.mp-plan-info {
    margin-top: 15px;
}

.mp-plan-price {
    font-size: 48px;
    font-weight: 700;
    color: #9F6AF2;
    margin-bottom: 10px;
    line-height: 1;
}

.mp-plan-price .currency {
    font-size: 48px;
}

.mp-plan-price .amount {
    letter-spacing: -2px;
}

.mp-plan-price .period {
    font-size: 18px;
    font-weight: 500;
}

.mp-plan-description {
    color: #666;
    font-size: 15px;
    margin: 10px 0 0 0;
    line-height: 1.5;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #6568eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(101, 104, 235, 0.15);
}

.form-group input.error-field {
    border-color: #ff4757;
    background: #fff5f5;
}

.form-group input.warning-field {
    border-color: #ffa502;
    background: #fffbf5;
}

.field-error {
    display: block;
    color: #ff4757;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

/* Animación shake para errores */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

/* Checkbox personalizado */
.checkbox-group {
    margin: 28px 0;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group span {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.checkbox-group a {
    color: #6568EB;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Botón de envío */
.mp-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #9F6AF2 0%, #6568EB 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 16px rgba(101, 104, 235, 0.3);
    letter-spacing: 0.5px;
}

.mp-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(101, 104, 235, 0.4);
}

.mp-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.mp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner */
.mp-loading {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 20px;
}

.mp-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #009ee3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mp-loading p {
    color: #55B5FF;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

/* Mensajes de estado */
.mp-message {
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    animation: slideDown 0.3s ease-out;
}

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

.mp-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #b1dfbb;
}

.mp-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Info de seguridad */
.mp-secure-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    color: #888;
    font-size: 13px;
}

.mp-secure-info svg {
    color: #55B5FF;
}

/* Placeholders con estilo */
input::placeholder {
    color: #aaa;
    opacity: 1;
}

/* Focus visible para accesibilidad */
input:focus-visible {
    outline: 3px solid rgba(0, 158, 227, 0.3);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .mp-subscription-container {
        padding: 10px;
        margin: 20px auto;
    }
    
    .mp-form {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .mp-plan-header h2 {
        font-size: 26px;
    }
    
    .mp-plan-price {
        font-size: 38px;
    }
    
    .mp-plan-price .currency {
        font-size: 22px;
    }
    
    .mp-submit-btn {
        font-size: 16px;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .mp-form {
        padding: 25px 15px;
    }
    
    .mp-plan-header h2 {
        font-size: 22px;
    }
    
    .mp-plan-price {
        font-size: 32px;
    }
    
    .form-group input {
        font-size: 16px; /* Previene zoom en iOS */
    }
}

/* Dark mode (opcional) */
@media (prefers-color-scheme: dark) {
    .mp-form {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .mp-plan-header {
        border-bottom-color: #333;
    }
    
    .mp-plan-header h2 {
        color: #ffffff;
    }
    
    .form-group label {
        color: #e0e0e0;
    }
    
    .form-group input {
        background: #2a2a2a;
        border-color: #404040;
        color: #ffffff;
    }
    
    .form-group input::placeholder {
        color: #666;
    }
    
    .checkbox-group span {
        color: #b0b0b0;
    }
}