:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg: #f8fafc;
    --text: #1e293b;
    --label: #64748b;
    --border: #cbd5e1;
    --radius: 8px;
    --error: #ef4444;
    --disabled: #f1f5f9;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 20px 20px;
    display: flex;
    justify-content: center;
}

.container {
    background: #ffffff;
    max-width: 800px;
    width: 100%;
    padding: 25px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

header {
    display: flex;
    justify-content: center;
    /*margin-bottom: 30px;*/
}

header img {
    width: 570px;
    height: 110px;
    object-fit: cover;
    border-radius: var(--radius);
}

h1 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

.full-width { grid-column: span 2; }

.three-cols {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.field-label {
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--label);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.field-label.label-with-badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

input:not([type="radio"]), select {
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: var(--text);
    background-color: #fff;
    transition: all 0.2s ease;
    appearance: none;
}

select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2em 1.2em;
}

.disabled-select {
    background-color: var(--disabled);
    cursor: not-allowed;
    opacity: 0.7;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

input:disabled, select:disabled {
    background-color: var(--disabled);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Errores */
.has-error input, .has-error select {
    border-color: var(--error) !important;
}

.error-message {
    color: var(--error);
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 5px;
    display: none;
}

.has-error .error-message { display: block; }

/* Radios */
.radio-group { display: flex; flex-direction: column; gap: 16px; }
.radio-option { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.88rem; }
.radio-option input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); }

.info-badge {
    width: 18px;
    height: 18px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: help;
    position: relative;
    font-weight: 700;
}

.info-badge::after {
    content: attr(data-tooltip);
    text-transform: none;
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    width: 180px;
    font-size: 0.7rem;
    font-weight: 400;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
}

.info-badge:hover::after { visibility: visible; opacity: 1; }

.sub-select { margin-left: 28px; width: calc(100% - 28px); margin-top: 10px; }

/* Botón */
.btn-container {
    grid-column: span 2;
    display: flex;
    justify-content: center;
    
}

button {
    font-family: 'Montserrat', sans-serif;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 60px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

button:hover { background: var(--primary-hover); transform: translateY(-1px); }

@media (max-width: 750px) {
    .form-grid, .three-cols { grid-template-columns: 1fr; }
    .full-width, .three-cols, .btn-container { grid-column: span 1; }
    header img { width: 100%; height: auto; }
}
