:root {
    --primary-color: #1a3455;
    --primary-hover: #142844;
    --secondary-color: #2d4a6f;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Container Principal */
.socios-salfa-wrapper {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header del Formulario */
.socios-form-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease-out;
}

.socios-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a3455;
    margin: 0 0 10px 0;
}

.socios-form-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

/* Formulario */
.socios-form {
    background: #f7f7f7;
    border-radius: var(--radius-xl);
    padding: 40px;
    animation: fadeInUp 0.6s ease-out;
}

/* Secciones del Formulario */
.form-section {
    margin-bottom: 35px;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #1a3455;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.required {
    color: var(--error-color);
    margin-left: 2px;
}

/* Inputs */
.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text-primary);
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #1a3455;
    box-shadow: 0 0 0 3px rgba(26, 52, 85, 0.1);
    background: #ffffff;
}

.form-control::placeholder {
    color: #9ca3af;
}

/* Phone Input Wrapper */
.phone-input-wrapper {
    position: relative;
}

.phone-input {
    padding-left: 16px;
}

/* Form Hint */
.form-hint {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Error Message */
.error-message {
    display: none;
    font-size: 13px;
    color: var(--error-color);
    margin-top: 6px;
}

.error-message.show {
    display: block;
    animation: shake 0.3s ease;
}

.form-control.error {
    border-color: var(--error-color);
    background-color: #fef2f2;
}

/* Form Actions */
.form-actions {
    margin-top: 35px;
    text-align: center;
}

/* Submit Button */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #1a3455;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-submit:hover {
    background: #142844;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    animation: rotate 1s linear infinite;
}

.spinner .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Confirmation Screen */
.socios-confirmation {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.confirmation-content {
    max-width: 500px;
    margin: 0 auto;
}

.confirmation-icon {
    margin-bottom: 30px;
    animation: scaleIn 0.6s ease-out;
}

.confirmation-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 15px 0;
}

.confirmation-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 35px 0;
}

/* Summary */
.confirmation-summary {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 25px;
    text-align: left;
}

.summary-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    text-align: center;
}

.summary-grid {
    display: grid;
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.summary-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Confirmation Notice */
.confirmation-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #e8f0f8;
    padding: 15px;
    border-radius: var(--radius-md);
    border-left: 4px solid #1a3455;
    color: #1a3455;
    text-align: left;
}

.confirmation-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.confirmation-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Fade Out Effect */
.fade-out {
    animation: fadeOut 0.4s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .socios-salfa-wrapper {
        padding: 0 15px;
        margin: 20px auto;
    }

    .socios-form,
    .socios-confirmation {
        padding: 30px 20px;
    }

    .socios-form-title {
        font-size: 26px;
    }

    .socios-form-subtitle {
        font-size: 14px;
    }

    .confirmation-title {
        font-size: 24px;
    }

    .summary-item {
        flex-direction: column;
        gap: 5px;
    }

    .btn-submit {
        width: 100%;
    }
}