* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-image:   linear-gradient(135deg, rgba(119, 4, 176, 0.7) 0%, rgba(188, 25, 221, 0.7) 40%, rgba(234, 90, 7, 0.7) 100%),
                        url("images/fondo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.contenedor-principal {
    background: linear-gradient(135deg, rgba(119, 4, 176, 0.8) 0%, rgba(188, 25, 221, 0.8) 40%, rgba(234, 90, 7, 0.8) 100%);
    background-blend-mode: overlay;
    background-size: cover;
    padding: 20px;
    border-radius: 15px;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 20px 40px rgba(11, 11, 11, 0.542) 0 0 0 1px rgba(27, 27, 27, 0.6);
}

.cabezal {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: #e5e0e7;
    font-size: clamp(1.8rem, 2.5vw, 1.7rem);
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0;}
    to { transform: scale(1); opacity: 1; }
}

.instruccion {
    background: rgba(255, 255, 255, 0.788);
    border: 1px solid #ffff;
    border-radius: 15px;
    padding: 20px 22px;
    margin-bottom: 25px;
}

.instruccion h2 {
    font-size: 1.1rem;
    color: rgb(71, 70, 70);
    margin-bottom: 10px;
    font-weight: bold;
}

.instruccion p {
    color: rgb(71, 70, 70);
    margin-bottom: 10px;
    font-weight: center;
    text-align: justify;
}

.listado-ins {
    padding-left: 15px;
    color: rgba(0, 0, 0, 0.626);
    font-size: 0.95rem;
    line-height: 1.5;
}

.listado-ins > li {
    margin-bottom: 8px;
}

.listado-ins > li:last-child {
    margin-bottom: 0;
}

.sublist-ins {
    list-style-type: lower-alpha;
    padding-left: 20px;
    margin-top: 6px;
    margin-bottom: 6px;
}

.sublist-ins li {
    margin-bottom: 4px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 10px;
}

fieldset {
    border: 2px solid #333330;
    border-radius: 12px;
    padding: 20px;
    background: linear-gradient(100deg, #ffff 40%, #cecaca 150%);
    transition: all 0.3s ease;
}

fieldset:hover {
    border-color: rgba(199, 8, 202, 0.83);
    box-shadow: 0 4px 15px rgba(11, 11, 11, 0.378);
}

legend {
    font-weight: 700;
    color: #333330;
    background: linear-gradient(100deg, #ffff 40%, #cecaca 150%);
    padding: 6px 13px;
    border: 2px solid #717171;
    font-size: 13px;
    box-shadow: 0 2px 4px rgba(71, 70, 70, 0.496);
}

.campo-datos {
    margin-bottom: 18px;
}

.campo-datos:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #020202;
    font-weight: 600;
    font-size: 0.9rem
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #cecaca;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3 ease;
    background-color: #ffff;
    color: #020202;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    border-color: #ea5a07;
    background-color: #ffff;
    box-shadow: 0 0 0 4px rgba(216, 39, 39, 0.482);
}

.aceptados {
    font-size: 0.8rem;
    color: #474747;
    margin-top: 6px;
    display: block;
}

.btn-content {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.btn-send,
.btn-exit {
    flex: 1 1 220px;
    max-width: 280px;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.btn-send {
    background: linear-gradient(100deg, #1ce322 40%, #056d01 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 12, 0.189);
}

.btn-send:hover {
    background: linear-gradient(100deg, #1ce322 40%, #056d01 100%);
    box-shadow: 0 6px 20px rgba(0, 123, 12, 0.693);
    transform: translateY(-1px);
}

.btn-exit {
    background: linear-gradient(100deg, #f13535 0%, #b60a0a 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 12, 0.189);
}

.btn-exit:hover {
    background: linear-gradient(100deg, #f13535 0%, #b60a0a 100%);
    box-shadow: 0 6px 20px rgba(221, 30, 30, 0.693);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    body {
        padding: 12px;
        align-items: flex-start;
    }
    .contenedor-principal {
        padding: 24px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    fieldset {
        padding: 18px;
    }
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .cabezal h1 { font-size: 1.3rem; } .instruccion h2 { font-size: 1.15rem; } .btn-content { flex-direction: column; } .btn-send, .btn-exit { width: 100%; } }

