:root {
    --primary-blue: #003399;
    --secondary-blue: #3b82f6;
    --background-blue: #eff6ff;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-700: #374151;
    --gray-900: #111827;
    --pink-bg: #fff5f5;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--background-blue), var(--white));
    color: var(--gray-900);
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

.hero-shape {
    position: absolute;
    left: -20%;
    top: 0;
    width: 60%;
    height: 60%;
    rotate: 20deg;
    background: var(--pink-bg);
    /* border-radius: horizontal / vertical */
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    z-index: 1;
}


.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--secondary-blue);
    text-align: center;
    margin-bottom: 2rem;
}

.step-indicator {
    max-width: 400px;
    margin: 0 auto 3rem;
    position: relative;
}

.progress-line {
    position: absolute;
    height: 2px;
    background: var(--gray-200);
    width: 80%; /* Reducir el ancho para que no sobresalga más allá de los números */
    top: 1rem; /* Alinear verticalmente con los step-number */
    left: 50%; /* Centrar horizontalmente */
    transform: translate(-50%, -50%); /* Corregir posición para centrar bien */
}


.progress-fill {
    height: 100%;
    background: #003399;
    width: 0;
    transition: width 0.3s ease;
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.step-number {
    width: 2rem;
    height: 2rem;
    background: var(--gray-200);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

.step.active .step-number {
    background: #003399;
    color: var(--white);
}

.main-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.form-container {
    flex: 2;
    background: var(--white);
    padding: 4.7rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-container-2 {
    flex: 2;
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-container-userdata {
    flex: 2;
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.required {
    color: #ef4444;
}

input, select {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.phone-input {
    display: flex;
    align-items: center;
}

.country-flag {
    padding: 0.56rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
}

.phone-input input {
    border-radius: 0 0.375rem 0.375rem 0;
    flex: 1;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.checkbox-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.checkbox-item input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
}

.checkbox-item label {
    font-size: 0.875rem;
    color: var(--gray-700);
}

.checkbox-item a {
    color: var(--gray-900);
    text-decoration: none;
}

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

.button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

button {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 9999px;
    background: var(--gray-900);
    color: var(--white);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background: var(--gray-700);
}

.summary-panel {
    flex: 1;
    background: var(--primary-blue);
    color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    position: sticky;
    top: 2rem;
}

.summary-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.summary-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.summary-item .label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 0.25rem;
}

.summary-item .value {
    font-size: 1.25rem;
    font-weight: 600;
}

.step-2 {
    display: none;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .summary-panel {
        position: static;
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .hero-shape {
        display: none;
    }
}