* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

/*Animacion de form naranjita*/
@keyframes pulseBg {
    0% { background-color: #f3e8ff; }     /* morado muy clarito */
    50% { background-color: #a75cff; }    /* morado vibrante y fuerte */
    100% { background-color: #f3e8ff; }
}


.form-step.active {
    display: block;
    background: linear-gradient(135deg, #fce6db, #f9c5a8);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(127, 0, 255, 0.4);
    padding: 20px;
    transition: background 0.4s ease;
}



/*Formulario*/
form {
    display: flex;
    flex-direction: column;
    width: 70%; /* 3/5 del ancho */
    margin: 40px auto 60px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    padding: 40px 50px 50px;
    transition: box-shadow 0.3s ease;
}

form:hover {
    box-shadow: 0 28px 60px rgba(0,0,0,0.35);
}

form h2 {
    font-family: 'Inika', serif;
    font-weight: 700;
    font-size: 2rem;
    color: #5a2a83;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 1.3px;
}

/* LOGO */
form > img {
    display: block;
    margin: 0 auto 30px auto;
    max-width: 160px;
    max-height: 160px;
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(90, 42, 131, 0.4);
    transition: transform 0.3s ease;
}

form > img:hover {
    transform: scale(1.05);
}

/* Contenedor general */
.container-global {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

label {
    font-weight: 600;
    color: #5a2a83;
    margin-bottom: 8px;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

input[type="text"],
input[type="date"],
input[type="email"],
select {
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: 10px;
    border: 2px solid #c6b6e2;
    outline: none;
    background-color: #faf9ff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color: #333;
}

input[type="text"]::placeholder,
input[type="date"]::placeholder,
input[type="email"]::placeholder,
select {
    color: #9c8dbf;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
select:focus {
    border-color: #7f00ff;
    box-shadow: 0 0 8px 2px rgba(127, 0, 255, 0.35);
    background-color: #fff;
}

/* Radio y checkbox personalizado */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 6px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2.5px solid #7f00ff;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.radio-option input[type="radio"]:checked {
    background: linear-gradient(135deg, #7f00ff, #b300b3);
    border-color: #b300b3;
}

.radio-option input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Checkbox similar */
.checkbox-group {
    display: flex;
    gap: 20px;
    margin-top: 6px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.checkbox-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2.5px solid #7f00ff;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #7f00ff, #b300b3);
    border-color: #b300b3;
}

.checkbox-option input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 1px;
    left: 6px;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

/* Botones */
.boton {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.boton button {
    width: 180px;
    height: 50px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #7f00ff, #b300b3);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(127, 0, 255, 0.45);
    transition: background 0.4s ease, transform 0.3s ease;
}

.boton button:hover {
    background: linear-gradient(135deg, #b300b3, #7f00ff);
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(179, 0, 179, 0.65);
}

.boton button:active {
    transform: scale(0.95);
    box-shadow: 0 5px 10px rgba(179, 0, 179, 0.45);
}

/* Mensaje error global */
#form-error-global {
    background-color: #f44336;
    color: white;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(244, 67, 54, 0.5);
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    vertical-align: middle;
    accent-color: #e74c3c;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Animacion de los checkboxs */
.radio-option input[type="radio"]:checked,
.checkbox-option input[type="checkbox"]:checked {
    animation: pop 0.3s forwards;
    box-shadow: 0 0 8px 2px #e74c3c;
}

/* Animación pop */
@keyframes pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
        box-shadow: 0 0 12px 3px #e74c3c;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px 2px #e74c3c;
    }
}

/* Opcional: efecto hover para que "resalten" */
.radio-option input[type="radio"]:hover,
.checkbox-option input[type="checkbox"]:hover {
    box-shadow: 0 0 6px 1.5px #e74c3c;
    transform: scale(1.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* Responsive */
@media only screen and (max-width: 768px) {
    form {
        width: 100%;
        max-width: 400px;
        margin: 10px auto;
        padding: 20px;
    }

    form > img {
        max-width: 120px;
        max-height: 120px;
        margin-bottom: 20px;
    }

    input, select {
        width: 100%;
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 8px;
        border: 1px solid #ccc;
        box-sizing: border-box;
    }

    .radio-group, .checkbox-group {
        flex-wrap: wrap;
        gap: 15px;
    }

    .radio-option, .checkbox-option {
        flex: 1 1 45%;
        min-width: 140px;
    }

    .container-global {
        justify-content: center;
        padding: 0 10px;
    }

    .container {
        max-width: 100%;
    }

    button {
        width: 90%;
        padding: 14px;
        border-radius: 8px;
        background-color: #7f00ff;
        color: white;
        border: none;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s ease;
    }

    button:hover {
        background-color: #b300b3;
    }
    .form-step.active {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    
    form h2 {
        font-size: 1.5rem;
    }
}

