/* ========================================
   TMA PRO SYSTEM - ESTILOS FRONTEND
   ======================================== */

/* Reset y variables */
:root {
    --tma-primary: #EE1990;
    --tma-secondary: #C2185B;
    --tma-success: #28a745;
    --tma-danger: #dc3545;
    --tma-warning: #ffc107;
    --tma-info: #17a2b8;
    --tma-dark: #2c3e50;
    --tma-light: #f8f9fa;
    --tma-border: #e0e0e0;
    --tma-shadow: 0 4px 15px rgba(238, 25, 144, 0.1);
}

/* Contenedor principal */
.tma-registro-wrap {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.tma-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.tma-header h1 {
    color: var(--tma-primary);
    font-size: 2.5em;
    margin: 0 0 10px;
    font-weight: 700;
}

.tma-header h2 {
    color: var(--tma-dark);
    font-size: 2em;
    margin: 0 0 10px;
    font-weight: 700;
}

.tma-header p {
    color: #666;
    font-size: 1.1em;
    margin: 0;
}

.tma-btn-back {
    position: absolute;
    left: 0;
    top: 0;
    background: transparent;
    border: 2px solid var(--tma-border);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    color: var(--tma-dark);
    transition: all 0.3s ease;
}

.tma-btn-back:hover {
    background: var(--tma-light);
    border-color: var(--tma-primary);
    color: var(--tma-primary);
}

/* Grid de opciones */
.tma-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.tma-option-card {
    background: #fff;
    border: 3px solid var(--tma-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tma-option-card:hover {
    border-color: var(--tma-primary);
    transform: translateY(-5px);
    box-shadow: var(--tma-shadow);
}

.tma-option-highlighted {
    border-color: var(--tma-primary);
    background: linear-gradient(135deg, #fff5f9, #ffe8f3);
}

.tma-option-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.tma-option-card h3 {
    color: var(--tma-dark);
    font-size: 1.5em;
    margin: 0 0 15px;
    font-weight: 700;
}

.tma-option-card p {
    color: #666;
    margin: 0 0 20px;
    line-height: 1.6;
}

.tma-features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.tma-features-list li {
    padding: 8px 0;
    color: #555;
    font-size: 0.95em;
}

.tma-btn-option {
    background: linear-gradient(135deg, var(--tma-primary), var(--tma-secondary));
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.tma-btn-option:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(238, 25, 144, 0.4);
}

.tma-btn-premium {
    background: linear-gradient(135deg, #8a2be2, #6a1bb2);
}

/* RGPD Box */
.tma-rgpd-box {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 15px;
    padding: 25px;
    margin: 40px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tma-rgpd-icon {
    font-size: 3em;
    flex-shrink: 0;
}

.tma-rgpd-content h4 {
    color: #2e7d32;
    margin: 0 0 10px;
    font-size: 1.2em;
}

.tma-rgpd-content p {
    color: #1b5e20;
    margin: 0 0 10px;
    line-height: 1.6;
}

.tma-rgpd-reminder {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    color: #856404;
}

/* Formulario */
.tma-form-section {
    background: #fff;
    border: 2px solid var(--tma-border);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.tma-section-title {
    color: var(--tma-primary);
    font-size: 1.3em;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--tma-primary);
}

.tma-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.tma-form-group {
    margin-bottom: 20px;
}

.tma-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--tma-dark);
}

.tma-required {
    color: var(--tma-danger);
    font-weight: 700;
}

.tma-input,
.tma-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--tma-border);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.tma-input:focus,
.tma-textarea:focus {
    outline: none;
    border-color: var(--tma-primary);
    box-shadow: 0 0 0 4px rgba(238, 25, 144, 0.1);
}

.tma-textarea {
    resize: vertical;
    min-height: 80px;
}

.tma-help {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.tma-help a {
    color: var(--tma-primary);
    text-decoration: none;
    font-weight: 600;
}

/* File inputs */
.tma-file-input {
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--tma-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tma-file-input:hover {
    border-color: var(--tma-primary);
    background: #fff5f9;
}

.tma-file-preview {
    margin-top: 10px;
    display: none;
}

.tma-file-preview.active {
    display: block;
}

.tma-file-item {
    background: #f8f9fa;
    border: 1px solid var(--tma-border);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tma-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tma-file-icon {
    font-size: 1.5em;
}

.tma-file-name {
    font-weight: 600;
    color: var(--tma-dark);
}

.tma-file-size {
    color: #666;
    font-size: 0.9em;
}

/* Checkboxes */
.tma-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.tma-checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--tma-primary);
}

.tma-checkbox-group label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    line-height: 1.6;
}

.tma-checkbox-group a {
    color: var(--tma-primary);
    text-decoration: underline;
}

/* Submit area */
.tma-submit-area {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #fff5f9, #ffe8f3);
    border-radius: 15px;
    margin-top: 40px;
}

.tma-btn-submit {
    background: linear-gradient(135deg, var(--tma-primary), var(--tma-secondary));
    color: #fff;
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(238, 25, 144, 0.3);
}

.tma-btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(238, 25, 144, 0.5);
}

.tma-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tma-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.tma-submit-note {
    margin-top: 20px;
    color: #666;
    font-size: 0.95em;
}

/* Steps visibility */
.tma-step {
    display: none;
}

.tma-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Messages */
.tma-message {
    padding: 20px 25px;
    border-radius: 12px;
    margin: 20px 0;
    font-weight: 500;
    animation: slideDown 0.4s ease;
}

.tma-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.tma-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info box */
.tma-info-box {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.tma-info-box p {
    margin: 10px 0;
    color: #1565c0;
    font-size: 1.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .tma-header h1 {
        font-size: 1.8em;
    }
    
    .tma-header h2 {
        font-size: 1.5em;
    }
    
    .tma-options-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tma-form-row {
        grid-template-columns: 1fr;
    }
    
    .tma-btn-back {
        position: static;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .tma-rgpd-box {
        flex-direction: column;
    }
}

/* Policy boxes - FUERA del media query */
.tma-policy-box {
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.tma-policy-critical {
    background: #fff5f5;
    border: 3px solid #dc3545;
}

.tma-policy-critical h4 {
    color: #dc3545;
    margin: 0 0 15px;
    font-size: 1.2em;
}

.tma-policy-info {
    background: #f0f8ff;
    border: 2px solid #2196f3;
}

.tma-policy-info h4 {
    color: #1976d2;
    margin: 0 0 15px;
    font-size: 1.2em;
}

.tma-policy-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.tma-policy-list li {
    padding: 8px 0;
    line-height: 1.6;
}

.tma-policy-box p {
    margin: 10px 0;
    line-height: 1.7;
}

.tma-policy-box strong {
    color: inherit;
}