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

:root {
    --verde: #2C9843;
    --azul: #5FBAE7;
    --plata: #C6C6C6;
    --blanco: #FFFFFF;
    --gris-fondo: #f4f6f8;
    --gris-texto: #444;
    --error: #e53e3e;
}

body {
    font-family: 'Inter Leve';
    background: var(--gris-fondo);
}
.container {
    background: var(--blanco);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 1260px; /* match acceder */
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin: 2rem auto;
}

.logo-wrap { text-align: center; margin-bottom: 2rem; }
.logo-wrap img { height: 72px; mix-blend-mode: multiply; }
h1 {
    font-family: 'Glacial Indiference Negrita' !important;
    font-size: 2.2rem;
    color: var(--verde);
    text-align: center;
    margin-bottom: 0.3rem;
}
.subtitle {
    text-align: center;
    color: var(--gris-texto);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.section-title {
    font-family: 'Glacial Indiference Negrita' !important;
    font-size: 1.4rem;
    color: var(--azul);
    margin: 1.8rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--azul);
}
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gris-texto);
    margin-bottom: 0.35rem;
}
label .req { color: var(--error); margin-left: 2px; }
input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--plata);
    border-radius: 8px;
    font-family: 'Inter Leve';
    font-size: 1.25rem;
    color: #222;
    background: white;
    transition: border-color 0.2s;
    outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--azul); }
textarea { resize: vertical; min-height: 90px; }

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 40px;

  background-image: url("data:image/svg+xml;charset=UTF-8,<svg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center; /* 👈 aquí controlas la separación */
  background-size: 16px;
}

/* Upload */
.upload-area {
    border: 2px dashed var(--plata);
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.upload-area:hover { border-color: var(--azul); background: #f0f8ff; }
.upload-area.has-file { border-color: var(--verde); background: #f0fff4; }
.upload-area input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
    border: none; padding: 0;
}
.upload-icon { color: var(--plata); margin-bottom: 0.4rem; }
.upload-area.has-file .upload-icon { color: var(--verde); }
.upload-label {
    font-size: 1.15rem;
    color: var(--gris-texto);
    pointer-events: none;
}
.upload-filename {
    font-size: 1.1rem;
    color: var(--verde);
    margin-top: 0.3rem;
    font-weight: 500;
    display: none;
}
.upload-area.has-file .upload-filename { display: block; }

/* Progreso */
.progress-wrap {
    display: none;
    margin-bottom: 1.2rem;
}
.progress-wrap.visible { display: block; }
.progress-bar-bg {
    background: #e2e8f0;
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--verde);
    border-radius: 8px;
    transition: width 0.3s;
    width: 0%;
}
.progress-label {
    font-size: 1.1rem;
    color: var(--gris-texto);
    margin-bottom: 0.4rem;
}

.msg {
    display: none;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    text-align: center;
}
.msg.error { background: #fff5f5; color: var(--error); border: 1px solid #fed7d7; display: block; }
.msg.success { background: #f0fff4; color: var(--verde); border: 1px solid #c6f6d5; display: block; }

.btn-primary {
    width: 100%;
    padding: 0.9rem;
    background: var(--verde);
    color: var(--blanco);
    border: none;
    border-radius: 8px;
    font-family: 'Glacial Indiference Negrita' !important;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 1rem;
    letter-spacing: 0.03em;
}
.btn-primary:hover { background: #247a38; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background: var(--plata); cursor: not-allowed; }

.spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: var(--gris-texto);
}
.links a { color: var(--azul); text-decoration: none; font-weight: 500; }
.links a:hover { text-decoration: underline; }

/* make language switcher match acceder.css so header/footer visuals align */
.lang-switcher {
    position: absolute; /* not fixed */
    top: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    background: white;
    border-radius: 20px;
    padding: 0.3rem 0.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    z-index: 1100;
}
.lang-btn {
    background: none;
    border: none;
    padding: 0.33rem 0.99rem;
    border-radius: 14px;
    font-family: 'Inter Leve';
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--gris-texto);
    transition: all 0.2s;
    letter-spacing: 0.05em;
}
.lang-btn.active { background: var(--verde); color: white; }

@media (min-width: 640px) {
    .lang-switcher { bottom: auto; top: 1.2rem; }
}
@media (max-width: 480px) {
    .field-row { grid-template-columns: 1fr; }
}

/* Force select options to use Inter on cadastro page */
#profesion,
#profesion option,
select,
select option {
    font-family: 'Inter Leve';
}

/* header layout left as in base styles (no overrides) */