@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
    --primary: #001b4b;
    --primary-hover: #002f76;
    --primary-light: #f0f4ff;
    --secondary: #4c616c;
    --accent: #1db173;
    --accent-hover: #17935d;
    --accent-light: #e6f7f0;
    --background: #f4f6f8;
    --surface: #ffffff;
    --text: #191c1d;
    --text-muted: #526772;
    --border: #c3c6d1;
    --border-hover: #737780;
    --error: #ba1a1a;
    --error-light: #ffdad6;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
    padding: 4rem 1rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 600px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.container:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

h1 {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background-color: var(--surface);
    transition: var(--transition);
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 27, 75, 0.12);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c616c' 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 1rem center;
    background-size: 1.25em;
    padding-right: 2.5rem;
    cursor: pointer;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
    color: #9ea3a8;
}

small {
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.categorias {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.categoria-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    cursor: pointer;
    background: var(--surface);
    transition: var(--transition);
    text-transform: none;
    letter-spacing: normal;
}

.categoria-option:hover {
    border-color: var(--border-hover);
    background: var(--background);
}

.categoria-option input[type="radio"] {
    appearance: none;
    margin: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    outline: none;
    display: grid;
    place-content: center;
    transition: var(--transition);
    cursor: pointer;
    background-color: var(--surface);
}

.categoria-option input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: var(--primary);
}

.categoria-option input[type="radio"]:checked {
    border-color: var(--primary);
}

.categoria-option input[type="radio"]:checked::before {
    transform: scale(1);
}

/* Parent styling when radio option is checked */
.categoria-option:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 4px 6px -1px rgba(0, 27, 75, 0.05);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--surface);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert ul {
    margin: 0;
    padding-left: 1.5rem;
}

.alert-error,
.alert-rechazado {
    background: var(--error-light);
    color: var(--error);
    border: 1px solid rgba(186, 26, 26, 0.2);
}

.alert-pagado {
    background: var(--accent-light);
    color: var(--accent-hover);
    border: 1px solid rgba(29, 177, 115, 0.2);
}

.alert-pendiente,
.alert-anulado,
.alert-desconocido {
    background: #fffdf5;
    color: #8a6d00;
    border: 1px solid rgba(138, 109, 0, 0.2);
}

.resumen {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.resumen th,
.resumen td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.resumen th {
    width: 40%;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.775rem;
    letter-spacing: 0.08em;
}

.resumen td {
    color: var(--text);
    font-weight: 500;
}


