@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Fondo animado con gradiente */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00abb6 0%, #008a94 50%, #00abb6 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Contenedor principal fijo */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    max-height: 900px;
    display: flex;
    overflow: hidden;
}

/* Columna izquierda - Navegación */
.left-sidebar {
    width: 320px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dee2e6;
}

.logo-container {
    margin-bottom: 12px;
    text-align: center;
}

.logo-container img {
    max-width: 80px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0px;
    text-align: center;
    letter-spacing: -0.02em;
}

.sidebar-subtitle {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 400;
}

.steps-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.steps-container::-webkit-scrollbar {
    width: 4px;
}

.steps-container::-webkit-scrollbar-track {
    background: transparent;
}

.steps-container::-webkit-scrollbar-thumb {
    background: #00abb6;
    border-radius: 2px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.step-item:hover {
    background: rgba(0, 171, 182, 0.05);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.step-item.active .step-number {
    background: #00abb6;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 171, 182, 0.4);
    transform: scale(1.1);
}

.step-item.completed .step-number {
    background: #28a745;
    color: white;
}

/* Ocultar el número cuando está completado */
.step-item.completed .step-number {
    font-size: 0;
}

.step-item.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 18px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.step-item.inactive .step-number {
    background: #e9ecef;
    color: #6c757d;
}

.step-label {
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.step-item.active .step-label {
    color: #00abb6;
    font-weight: 600;
}

.step-item.completed .step-label {
    color: #28a745;
}

.step-item.inactive .step-label {
    color: #6c757d;
}

/* Línea conectora entre pasos */
.step-connector {
    width: 2px;
    height: 6px;
    background: #dee2e6;
    margin-left: 13px;
    margin-top: -1px;
    margin-bottom: -1px;
    transition: all 0.3s ease;
}

.step-item.completed + .step-connector,
.step-item.active + .step-connector {
    background: linear-gradient(180deg, #28a745 0%, #00abb6 100%);
}

/* Columna derecha - Contenido */
.right-content {
    flex: 1;
    background: white;
    padding: 40px 50px;
    overflow-y: auto;
    position: relative;
}

.right-content::-webkit-scrollbar {
    width: 8px;
}

.right-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.right-content::-webkit-scrollbar-thumb {
    background: #00abb6;
    border-radius: 4px;
}

.right-content::-webkit-scrollbar-thumb:hover {
    background: #008a94;
}

.step-header {
    margin-bottom: 24px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.step-subtitle {
    font-size: 14px;
    color: #6c757d;
}

.step-body {
    margin-top: 8px;
}

/* Estilo estándar para todos los inputs en step-body */
.step-body input[type="text"],
.step-body input[type="email"],
.step-body input[type="tel"],
.step-body input[type="number"],
.step-body input[type="password"],
.step-body input[type="date"],
.step-body textarea,
.step-body select {
    width: 100%;
    max-width: 520px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e2e6ea;
    font-size: 15px;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.step-body input[type="text"]::placeholder,
.step-body input[type="email"]::placeholder,
.step-body input[type="tel"]::placeholder,
.step-body input[type="number"]::placeholder,
.step-body input[type="password"]::placeholder,
.step-body input[type="date"]::placeholder,
.step-body textarea::placeholder {
    color: transparent;
}

/* Contenedor floating-field automático */
.floating-field {
    position: relative;
    margin-bottom: 24px;
    display: inline-block;
    width: 100%;
    max-width: 520px;
}

.floating-field input,
.floating-field textarea,
.floating-field select {
    width: 100%;
    max-width: 520px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e2e6ea;
    font-size: 15px;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.floating-field input::placeholder,
.floating-field textarea::placeholder {
    color: transparent;
}

.floating-field label {
    position: absolute;
    left: 16px;
    top: 45%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #adb5bd;
    background-color: #ffffff;
    padding: 0 6px;
    pointer-events: none;
    transition: all 0.2s ease;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
}

.floating-field input:focus,
.floating-field textarea:focus,
.floating-field select:focus {
    border-color: #00abb6;
    box-shadow: 0 0 0 3px rgba(0, 171, 182, 0.2);
}

.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown) + label,
.floating-field textarea:focus + label,
.floating-field textarea:not(:placeholder-shown) + label,
.floating-field select:focus + label,
.floating-field select:not([value=""]) + label {
    top: 0;
    left: 16px;
    transform: translateY(-50%);
    font-size: 12px;
    color: #00abb6;
    text-align: left;
    width: auto;
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #adb5bd;
}

.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

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

/* Botones de navegación */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #dee2e6;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: #00abb6;
    color: white;
}

.btn-primary:hover {
    background: #008a94;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 171, 182, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .form-card {
        flex-direction: column;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }

    .left-sidebar {
        width: 100%;
        max-height: 200px;
        overflow-y: auto;
        padding: 20px;
    }

    .steps-container {
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
    }

    .step-item {
        min-width: 120px;
    }

    .step-connector {
        display: none;
    }

    .right-content {
        padding: 30px 20px;
    }
}
