﻿:root {
    --primary: #0a2540;
    --secondary: #f4f6fb;
    --accent: #2874a6;
    --border: #d1d9e6;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(10,37,64,0.07);
}

body {
    background: var(--secondary);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
}

.container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
}

.borde-rojo {
    border: 3px solid red;
    border-radius: 8px; /* Bordes redondeados */
    padding: 20px;
    background-color: #fff5f5; /* Fondo suave */
    box-shadow: 4px 4px 10px rgba(255, 0, 0, 0.3); /* Sombra con efecto */
    font-family: Arial, sans-serif;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #d40000; /* Color del texto */
}

h1 {
    color: #1b4769;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

h2 {
    color: #de4b46;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

section {
    margin-bottom: 2rem;
}

fieldset {
    border: none;
    margin: 0;
    padding: 0;
    margin-top: 35px
}

legend {
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #222;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 1rem;
    background: #f9fafc;
    transition: border 0.2s;
    min-width: 0;
}

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    select:focus,
    textarea:focus {
        border-color: var(--accent);
        outline: none;
    }

.invalid {
    border-color: red;
}

.inline-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

    .inline-group > * {
        flex: 1 1 0;
        min-width: 0;
    }

    .inline-group select {
        max-width: 130px;
        flex: 0 0 130px;
    }

    .inline-group input[type="tel"] {
        flex: 2 1 0;
    }

    .inline-group label {
        font-weight: 400;
        color: #444;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

.checkbox-group, .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

textarea {
    min-height: 60px;
    resize: vertical;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

button {
    background: #ea344f;
    color: #fff;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background 0.2s;
}

    button:hover {
        background: var(--accent);
    }

@media (max-width: 600px) {
    .container {
        padding: 1rem 0.5rem;
    }

    .inline-group, .checkbox-group, .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }

        .inline-group select,
        .inline-group input[type="tel"] {
            max-width: 100%;
            flex: 1 1 100%;
        }
}

.small {
    font-size: 0.95em;
    color: #666;
}

.is-invalid {
    border-color: red !important;
}
