* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

:root {
    --bg-dark: #090d13;
    --card-bg: rgba(17, 23, 34, 0.92);
    --input-bg: #0b1017;
    --border-color: #1f2a3a;
    --input-border: #233245;
    --primary-blue: #16a4ff;
    --primary-hover: #0f8bd8;
    --text-main: #ffffff;
    --text-muted: #9bb0c6;
    --text-label: #cbd5e1;
}

body {
    /* Fondo con degradado ambiental multinivel usando la paleta base */
    background: radial-gradient(circle at 50% 10%, rgba(22, 164, 255, 0.25) 0%, rgba(13, 27, 46, 0.85) 45%, var(--bg-dark) 85%),
                linear-gradient(135deg, #060a0f 0%, #0d1726 50%, #08111e 100%);
    background-attachment: fixed;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

/* Destello de luz azul neón detrás de la tarjeta */
body::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 450px;
    background: radial-gradient(circle, rgba(22, 164, 255, 0.3) 0%, rgba(22, 164, 255, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 780px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.card {
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 50px 45px 45px 45px;
    border-radius: 24px;
    border: 1px solid rgba(22, 164, 255, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                0 0 35px rgba(22, 164, 255, 0.15),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Badge flotante en la esquina superior derecha */
.top-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(22, 164, 255, 0.12);
    border: 1px solid rgba(22, 164, 255, 0.3);
    color: var(--primary-blue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Avatar / Icono circular en la parte superior central */
.header-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #16a4ff 0%, #0072ff 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -75px auto 20px auto;
    box-shadow: 0 8px 25px rgba(22, 164, 255, 0.4),
                0 0 0 8px rgba(17, 23, 34, 0.95);
}

.card-header {
    text-align: center;
    margin-bottom: 25px;
}

.card h4 {
    color: var(--primary-blue);
    letter-spacing: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.card h1 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #d8e5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Rejilla de métricas / destacados */
.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(11, 16, 23, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 35px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

/* Secciones divididas con subtítulos e iconos */
.form-section {
    margin-bottom: 28px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(31, 42, 58, 0.7);
}

.section-title h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

/* Rejilla / Grid responsive */
.grid {
    display: grid;
    gap: 16px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.grupo {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    color: var(--text-label);
    font-size: 13px;
    font-weight: 600;
}

.req {
    color: var(--primary-blue);
}

input,
select,
textarea {
    width: 100%;
    background: var(--input-bg);
    color: var(--text-main);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 14.5px;
    transition: all 0.25s ease-in-out;
}

input::placeholder,
textarea::placeholder {
    color: #4a5d73;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2316a4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select option {
    background: #0b1017;
    color: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(22, 164, 255, 0.3);
    background: #0e1520;
}

textarea {
    resize: vertical;
    min-height: 90px;
}

/* Botón de Enviar con degradado de la paleta */
.btn-submit {
    width: 100%;
    margin-top: 15px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #16a4ff 0%, #0080ff 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(22, 164, 255, 0.35);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #24adff 0%, #0088ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(22, 164, 255, 0.5);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Adaptación responsive para pantallas móviles */
@media (max-width: 768px) {
    body {
        padding: 20px 12px;
    }

    .card {
        padding: 40px 20px 30px 20px;
        border-radius: 18px;
    }

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

    .card h1 {
        font-size: 26px;
    }

    .top-badge {
        position: static;
        display: flex;
        justify-content: center;
        margin: 0 auto 15px auto;
        width: fit-content;
    }

    .header-icon {
        margin-top: -60px;
    }
}