
:root {
    --header-height: 72px; 
}

/* Estilos globales */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(180deg, #F7F2EC 0%, #EEF7F4 100%); 
    margin: 0;
    padding: calc(var(--header-height) + 24px) 16px 24px; 
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    color: #333;
}


html, body { overflow-x: hidden; }

/* Encabezado  */
header {
    text-align: center;
    padding: 14px 0;
    height: var(--header-height);
    width: 100%;
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    background: rgba(247,242,236,0.98);
    z-index: 999;
    box-shadow: 0 2px 8px rgba(34,34,34,0.06);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* titulo */
h1 {
    font-size: 2.2rem;
    color: #C57A5A; 
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.6px;
}

/* Formulario */
.registro {
    background: #FFFFFF;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(34, 34, 34, 0.06);
    width: 760px; 
    max-width: calc(100% - 40px); 
    margin: 20px auto 40px auto; 
    border-left: 6px solid #7FC8A9; 
    position: relative; 
    z-index: 2;
}


.Campo {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #4A4A4A;
    font-weight: 600;
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E7E0D8;
    border-radius: 8px;
    background: #FFF;
    font-size: 1rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #7FC8A9; /* verde menta */
    box-shadow: 0 8px 20px rgba(127,200,169,0.12);
    outline: none;
}

.opciones {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.opciones input {
    margin-right: 8px;
    accent-color: #C57A5A; 
}

.error {
    color: #9B1E2F;
    font-size: 13px;
    margin-top: 6px;
    display: block;
    background: #FFF6F6;
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 4px solid #9B1E2F;
}

.exit-1 {
    color: #2E7D4E;
    font-size: 16px;
    text-align: center;
    margin-top: 18px;
    display: none;
    background: #F3FCF6;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #D7EFE0;
}

button {
    width: 100%;
    padding: 12px 14px;
    background: linear-gradient(90deg, #7FC8A9 0%, #C57A5A 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(33, 33, 33, 0.08);
}

@media (max-width: 600px) {
    :root { --header-height: 64px; }
    body { padding: calc(var(--header-height) + 12px) 12px 18px; }
    h1 { font-size: 1.6rem; }
    .registro { width: calc(100% - 32px); padding: 18px; margin: 10px 0 30px 0; }
    .opciones { gap: 12px; }
    button { font-size: 0.95rem; padding: 11px; }
}