
/* ── Selector de idioma ───────────────────────────────────── */
.lang-switcher {
    display: flex;
    justify-content: flex-end;
    max-width: 820px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
}

.lang-switcher a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .85rem;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--primary-dk);
    text-decoration: none;
    background: var(--surface);
    transition: background .15s, border-color .15s, color .15s;
}

.lang-switcher a:hover {
    background: var(--primary-dk);
    border-color: var(--primary-dk);
    color: #fff;
}



/* ============================================================
   formulario.css — III Premios Albia de Sostenibilidad
   ============================================================ */

:root {
    --bg:         rgb(233, 246, 248);
    --surface:    #ffffff;
    --surface2:   #e0f0f4;
    --border:     #cce0e6;
    --primary:    #66a5b4;
    --primary-dk: #5496a5;
    --text:       #1a2e33;
    --muted:      #7a9ca5;
    --error-bg:   rgba(176,64,64,.07);
    --error-bd:   rgba(176,64,64,.22);
    --error-tx:   #a03030;
    --ok-bg:      rgba(46,138,94,.08);
    --ok-bd:      rgba(46,138,94,.25);
    --ok-tx:      #2e7a5a;
}

@font-face {
	font-family: 'Montserrat_web';
	src: url('../css/fonts/Montserrat-Regular.woff2') format('woff2'), 
		 url('../css/fonts/Montserrat-Regular.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
    font-family: 'MontserratMedium';
    src: url('../css/fonts/Montserrat-Medium.woff2') format('woff2'),
         url('../css/fonts/Montserrat-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MontserratBold';
    src: url('../css/fonts/Montserrat-Bold.woff2') format('woff2'),
         url('../css/fonts/Montserrat-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MontserratSemiBold';
    src: url('../css/fonts/Montserrat-SemiBold.woff2') format('woff2'),
         url('../css/fonts/Montserrat-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
	font-family: 'NeutraTextBook';
	src: url('../css/fonts/NeutraText-Book.woff2') format('woff2'), 
		 url('../css/fonts/NeutraText-Book.woff') format('woff');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'NeutraTextDemi';
	src: url('../css/fonts/NeutraText-Demi.woff2') format('woff2'), 
		 url('../css/fonts/NeutraText-Demi.woff') format('woff');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'NeutraTextLight';
	src: url('../css/fonts/NeutraText-Light.woff2') format('woff2'), 
		 url('../css/fonts/NeutraText-Light.woff') format('woff');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    line-height: 1.65;
}

/* ── Imagen de cabecera ───────────────────────────────────── */
.f-header-img {
    width: 100%;
    max-width: 820px;
    margin: 0 auto 0;
    display: block;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    background: var(--primary-dk);
    aspect-ratio: 4 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.45);
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    /* Cuando haya imagen real, reemplazar el background y quitar flex/color/font */
}

/* ── Contenedor ───────────────────────────────────────────── */
.form-wrap {
    max-width: 820px;
    margin: 2rem auto;
    padding: 0 1.5rem 4rem;
}

/* ── Sección ──────────────────────────────────────────────── */
.f-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 6px rgba(84,150,165,.06);
}

.f-section-title {
    font-family: 'NeutraTextDemi', serif;
    font-size: 1.1rem;
    font-size: 21px;
    font-weight: 400;
    color: var(--primary-dk);
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: .65rem;
}

.f-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-dk);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* ── Campo — siempre en fila completa ─────────────────────── */
.f-field { margin-bottom: 1.25rem; }
.f-field:last-child { margin-bottom: 0; }

.f-label {
    display: block;
    font-size: .75rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .45rem;
}
.f-label .req  { color: var(--primary); margin-left: .15rem; }
.f-label .hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: .72rem;
    color: var(--muted);
    margin-left: .3rem;
}

/* ── Inputs, selects, textareas ───────────────────────────── */
.f-input,
.f-select,
.f-textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .65rem .9rem;
    font-family: 'DM Sans', sans-serif;
    font-size: .92rem;
    color: var(--text);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
}
.f-input:focus,
.f-select:focus,
.f-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102,165,180,.13);
}
.f-input::placeholder,
.f-textarea::placeholder { color: var(--muted); opacity: .6; }
.f-textarea { resize: vertical; min-height: 90px; }

/* Select con flecha propia */
.f-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a9ca5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9rem center;
    padding-right: 2.2rem;
    cursor: pointer;
}

.f-char {
    text-align: right;
    font-size: .7rem;
    color: var(--muted);
    margin-top: .2rem;
}

/* ── Radios y checkboxes ──────────────────────────────────── */
.f-check-group,
.f-radio-group { display: flex; flex-direction: column; gap: .45rem; }

.f-radio-group.inline { flex-direction: row; gap: 1.5rem; flex-wrap: wrap; }

.f-check-item,
.f-radio-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    cursor: pointer;
    font-size: .9rem;
    line-height: 1.5;
}
.f-check-item input[type="checkbox"],
.f-radio-item  input[type="radio"] {
    width: 16px;
    height: 16px;
    margin-top: .2rem;
    accent-color: var(--primary-dk);
    flex-shrink: 0;
    cursor: pointer;
}

/* ── Subcampo condicional ─────────────────────────────────── */
.f-subfield {
    display: none;
    margin-top: .5rem;
    margin-left: 1.65rem;
}
.f-subfield.open { display: block; }
.f-subfield .f-textarea,
.f-subfield .f-input {
    background: var(--surface2);
    font-size: .88rem;
}

/* ── Sección específica por categoría ────────────────────── */
.cat-specific { display: none; }
.cat-specific.open { display: block; }

/* ── Adjunto ──────────────────────────────────────────────── */
.f-file-zone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    background: var(--bg);
    transition: border-color .2s, background .2s;
}
.f-file-zone:hover {
    border-color: var(--primary);
    background: var(--surface2);
}
.f-file-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.f-file-icon  { font-size: 1.5rem; margin-bottom: .35rem; }
.f-file-text  { font-size: .84rem; color: var(--muted); }
.f-file-text strong { color: var(--primary-dk); }
.f-file-name  { margin-top: .45rem; font-size: .82rem; color: var(--primary-dk); font-weight: 500; }

/* ── Aceptación de bases ──────────────────────────────────── */
.f-accept-box {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
}

/* ── Botón principal ──────────────────────────────────────── */
.f-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: 1rem;
    background: var(--primary-dk);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: .02em;
    transition: background .2s, box-shadow .2s, transform .15s;
    box-shadow: 0 2px 10px rgba(84,150,165,.25);
}
.f-btn-submit:hover:not(:disabled) {
    background: var(--primary);
    box-shadow: 0 4px 16px rgba(84,150,165,.35);
}
.f-btn-submit:active:not(:disabled) { transform: scale(.99); }
.f-btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.f-btn-submit .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.f-btn-submit.loading .spinner  { display: block; }
.f-btn-submit.loading .btn-text { opacity: .7; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Mensajes de estado ───────────────────────────────────── */
.f-msg {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: .9rem;
    display: none;
}
.f-msg.visible { display: block; }

.f-msg-error {
    background: var(--error-bg);
    border: 1px solid var(--error-bd);
    color: var(--error-tx);
}
.f-msg-error strong { display: block; margin-bottom: .4rem; }
.f-msg-error ul { padding-left: 1.2rem; }
.f-msg-error li + li { margin-top: .2rem; }

.f-msg-ok {
    background: var(--ok-bg);
    border: 1px solid var(--ok-bd);
    color: var(--ok-tx);
    text-align: center;
    padding: 2rem;
}
.f-msg-ok .ok-icon { font-size: 2rem; margin-bottom: .6rem; }
.f-msg-ok h3 {
    font-family: 'NeutraTextDemi', serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: .4rem;
}

.f-msg a{
    color: var(--primary-dk);
}

/* ── Nota de contacto ─────────────────────────────────────── */
.f-contact {
    text-align: center;
    font-size: .82rem;
    color: var(--muted);
    margin-top: 1.25rem;
}
.f-contact a { color: var(--primary-dk); }
