html, body {
height: 100%;
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: radial-gradient(circle at center, #283747 100%, #040214 0%);
color: #eee;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}

canvas#fondoEspacial {
position: fixed;
top: 0;
left: 0;
z-index: -1;
}

.container {
max-width: 600px;
margin: 40px auto 60px;
background: rgba(22, 36, 86);
padding: 30px 40px;
border-radius: 16px;
box-shadow: 0 12px 35px rgba(0, 80, 255, 0.4);
}

.header {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 30px;
justify-content: center;
}

.header img {
width: 60px;
height: auto;
}

.header h1 {
font-size: 1.8rem;
font-weight: 700;
background: linear-gradient(90deg, #ffffff, #8ad4ff, #00aaff, #ffffff);
background-size: 300% 300%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: brilloTexto 8s ease-in-out infinite;
margin: 0;
text-align: center;
}

@keyframes brilloTexto {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}

label {
display: block;
margin-top: 20px;
margin-bottom: 8px;
font-weight: 600;
color: #aacfff;
}

input[type=text],
input[type=email],
input[type=tel],
select,
textarea {
width: 100%;
padding: 12px 14px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.15);
background: #15224b;
color: #d9eaff;
font-size: 1rem;
font-weight: 400;
transition: all 0.3s ease;
}

input:hover,
select:hover,
textarea:hover {
border-color: #00bfff99;
box-shadow: 0 0 6px #00bfff55;
}

input:focus,
select:focus,
textarea:focus {
border-color: #00bfff;
outline: none;
box-shadow: 0 0 8px #00bfff99;
}

textarea {
resize: vertical;
min-height: 100px;
}

button[type=submit] {
margin-top: 30px;
width: 100%;
padding: 14px 0;
background: linear-gradient(90deg, #00d4ff, #006bff);
border: none;
border-radius: 14px;
font-weight: 700;
color: #022135;
font-size: 1.1rem;
cursor: pointer;
box-shadow: 0 10px 25px rgba(0, 100, 255, 0.35);
transition: all 0.4s ease;
}

button[type=submit]:hover {
background: linear-gradient(90deg, #006bff, #00d4ff);
transform: scale(1.02);
}

button[type=submit]:active {
transform: scale(0.98);
}

@media(max-width: 520px){
.container {
margin: 20px 16px 40px;
padding: 20px;
}
.header h1 {
font-size: 1.4rem;
}
.header img {
width: 40px;
}
}