/* Barra de progreso */

.custom-progress {
    width: 100%;
    height: 12px;
    appearance: none;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(41, 128, 185, 0.1);
}

    .custom-progress::-webkit-progress-bar {
        background-color: #e8f4f8;
        border-radius: 10px;
    }

    .custom-progress::-webkit-progress-value {
        border-radius: 10px;
        background: linear-gradient(45deg, #2980b9 0%, #3498db 50%, #5dade2 100%);
        background-size: 200% auto;
        animation: shine 2s linear infinite;
        transition: width 0.5s ease-in-out;
        box-shadow: 0 2px 8px rgba(41, 128, 185, 0.3);
    }

    .custom-progress::-moz-progress-bar {
        background: linear-gradient(45deg, #2980b9 0%, #3498db 50%, #5dade2 100%);
        background-size: 200% auto;
        animation: shine 2s linear infinite;
        border-radius: 10px;
        transition: width 0.5s ease-in-out;
        box-shadow: 0 2px 8px rgba(41, 128, 185, 0.3);
    }

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Formulario moderno */

.form-step {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.form-section {
    background: linear-gradient(to bottom, #f8fbfd 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(41, 128, 185, 0.12);
    margin-bottom: 24px;
    border: 1px solid rgba(41, 128, 185, 0.1);
    position: relative;
    overflow: hidden;
}

    .form-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #2980b9 0%, #3498db 50%, #5dade2 100%);
    }

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 28px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8f4f8;
    position: relative;
}

    .section-title::before {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 80px;
        height: 2px;
        background: linear-gradient(90deg, #2980b9, #3498db);
    }

.form-row {
    margin-bottom: 24px;
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: block;
}

.required {
    color: #2980b9;
    margin-left: 2px;
    font-weight: 700;
}

.input-field {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #d5e8f0;
    border-radius: 10px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
    color: #2c3e50;
}

    .input-field:focus {
        border-color: #2980b9;
        background-color: #f8fbfd;
        box-shadow: 0 0 0 4px rgba(41, 128, 185, 0.1);
        transform: translateY(-1px);
    }

    .input-field:hover:not(:focus) {
        border-color: #5dade2;
        background-color: #f8fbfd;
    }

    .input-field::placeholder {
        color: #95a5a6;
        font-size: 14px;
    }

.select-field {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%232980b9' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
    font-weight: 500;
}

    .select-field:focus {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%232980b9' d='M7 4L12 9H2z'/%3E%3C/svg%3E");
    }

/* Zona de botones */

.button-zone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 24px 0;
    /*border-top: 2px solid #e8f4f8;*/
}

.prev-button,
.next-button {
    flex: 1;
    max-width: 220px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
}

    .prev-button::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 0;
        height: 100%;
        border-radius: 10px;
        transition: width 0.4s ease;
        z-index: -1;
    }

    .next-button::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        border-radius: 10px;
        transition: width 0.4s ease;
        z-index: -1;
    }

.prev-button {
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

    .prev-button::before {
        background: #1a5a8a;
    }

    .prev-button:hover::before {
        width: 100%;
    }

    .prev-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    }

.next-button {
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.4);
}

    .next-button::before {
        background: #1a5a8a;
    }

    .next-button:hover::before {
        width: 100%;
    }

    .next-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(41, 128, 185, 0.5);
    }

    .prev-button:active,
    .next-button:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(41, 128, 185, 0.3);
    }

    .prev-button:disabled,
    .next-button:disabled {
        opacity: 0.25;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

        .prev-button:disabled::before,
        .next-button:disabled::before {
            width: 0;
        }


.btn-primary-send {
    background-color: #fd7e14;
    color: white;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 10px;
    box-shadow: 0 4px 12px #ffdaa8;
}

    .btn-primary-send:hover {
        transform: translateX(6px);
        box-shadow: -6px 6px 16px #ffdaa8;
    }


/* Responsive */

@media (max-width: 768px) {
    .form-section {
        padding: 28px 20px;
    }

    .section-title {
        font-size: 22px;
    }

    .form-row-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .button-zone {
        flex-direction: column;
    }

    .prev-button,
    .next-button {
        max-width: 100%;
        width: 100%;
    }
}


/* Resumen de inscripción */

.resumen-subtitle {
    color: #5dade2;
    font-size: 15px;
    margin: -10px 0 30px 0;
    font-weight: 500;
}

.resumen-group {
    margin-bottom: 32px;
    padding: 24px;
    background: #f8fbfd;
    border-radius: 12px;
    border-left: 4px solid #2980b9;
}

.resumen-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #2980b9;
    margin: 0 0 20px 0;
}

.resumen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.resumen-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.resumen-label {
    font-size: 13px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resumen-value {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    padding: 10px 14px;
    background: white;
    border-radius: 6px;
    border: 1px solid #d5e8f0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
}

    .resumen-value:empty::after {
        content: "No especificado";
        color: #95a5a6;
        font-style: italic;
        font-weight: 400;
    }

@media (max-width: 768px) {
    .resumen-grid {
        grid-template-columns: 1fr;
    }

    .resumen-group {
        padding: 16px;
    }
}

.politicas {
    padding: 0 5%;
}