/* Configuración general */
:root {
    --background: #f3f6fb;
    --surface: #ffffff;
    --text: #1d2939;
    --muted: #667085;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --border: #d0d5dd;
    --danger: #b42318;
    --danger-bg: #fef3f2;
    --success: #027a48;
    --success-bg: #ecfdf3;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

/*body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 35%),
        var(--background);
}*/

button,
input {
    font: inherit;
}

.page {
   /* min-height: 100vh;*/
    display: grid;
    place-items: center;
    padding: 5px 16px;
}

.contact-card {
    width: min(100%, 620px);
    padding: 10px;
    background: var(--surface);
    border: 1px solid rgba(208, 213, 221, 0.8);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.contact-card__header {
    margin-bottom: 30px;
}

.contact-card__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-card h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    line-height: 1.15;
}

.contact-card__header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.contact-form {
    display: grid;
    gap: 22px;
}

.form-group2 {
    display: grid;
    gap: 1px;
}

.form-group2 > label {
    font-size: 0.95rem;
    font-weight: 650;
}

.form-group2 > label span {
    color: var(--danger);
}

input[type="text"] {
    width: 100%;
    padding: 13px 14px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

input.is-invalid {
    border-color: var(--danger);
}

.field-hint {
    color: var(--muted);
    font-size: 0.82rem;
}

.field-error {
    min-height: 18px;
    color: var(--danger);
    font-size: 0.82rem;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 18px;
    cursor: pointer;
    background: #f8fafc;
    border: 1.5px dashed var(--border);
    border-radius: 14px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.file-upload:hover,
.file-upload:focus-within {
    background: #eff6ff;
    border-color: var(--primary);
}

.file-upload__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    background: #dbeafe;
    border-radius: 50%;
}

.file-upload strong,
.file-upload small {
    display: block;
}

.file-upload strong {
    margin-bottom: 4px;
}

.file-upload small {
    color: var(--muted);
    font-weight: 400;
    word-break: break-word;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.form-check label {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.submit-button {
    width: 100%;
    padding: 14px 20px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    background: var(--primary);
    border: 0;
    border-radius: 11px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

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

.submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.form-message {
    display: none;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.form-message.is-success {
    display: block;
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid #abefc6;
}

.form-message.is-error {
    display: block;
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid #fecdca;
}

@media (max-width: 600px) {
    .contact-card {
        padding: 25px 20px;
        border-radius: 16px;
    }
}
