/* =========================================================================
   CAMVA · Web publica · hoja de estilos
   Los colores corporativos se inyectan desde el panel (Ajustes > Marca)
   sobre las variables :root mediante js/site.js
   ========================================================================= */
:root {
  --c-primary: #1b4965;
  --c-primary-dark: #11314a;
  --c-accent: #f5a524;
  --c-dark: #11212d;
  --c-light: #f4f6f8;
  --c-text: #1d2733;
  --c-muted: #5d6b7a;
  --c-line: #dfe5ea;
  --c-white: #ffffff;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(17, 33, 45, .07), 0 2px 8px rgba(17, 33, 45, .06);
  --shadow-md: 0 8px 28px rgba(17, 33, 45, .12);
  --max: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--c-text);
  background: var(--c-white); line-height: 1.6; font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--c-muted); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none !important;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  min-height: 48px; line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-accent); color: #26200e; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #ffb63f; }
.btn-dark { background: var(--c-primary); color: #fff; }
.btn-dark:hover { background: var(--c-primary-dark); }
.btn-outline { border-color: currentColor; color: var(--c-primary); background: transparent; }
.btn-ghost-light { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ----------------------------------------------------------- cabecera --- */
.topbar {
  background: var(--c-dark); color: #cfd9e2; font-size: .9rem; padding: .45rem 0;
}
.topbar .container { display: flex; gap: 1.2rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar-contact { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.topbar-right { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
/* Acceso al panel privado: visible pero discreto, para empleados */
.topbar-staff {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem;
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  font-weight: 600; white-space: nowrap; min-height: 32px;
}
.topbar-staff:hover { background: rgba(255,255,255,.14); text-decoration: none; border-color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line);
}
.site-header .container { display: flex; align-items: center; gap: 1rem; min-height: 86px; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; color: var(--c-dark); font-size: 1.12rem; }
.brand:hover { text-decoration: none; }
.brand img.brand-logo { height: 58px; width: auto; flex: none; }
.brand-text small { display: block; font-size: .7rem; font-weight: 600; color: var(--c-muted); letter-spacing: .06em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.nav a {
  padding: .6rem .8rem; border-radius: 8px; color: var(--c-text); font-weight: 600; font-size: .97rem;
}
.nav a:hover { background: var(--c-light); text-decoration: none; }
.nav a.active { color: var(--c-primary); background: #eaf1f6; }
.nav .btn { margin-left: .5rem; }
.nav-toggle {
  margin-left: auto; display: none; width: 48px; height: 44px; border: 1px solid var(--c-line);
  background: #fff; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--c-dark); position: relative;
}
.nav-toggle span::before { content: ''; position: absolute; top: -7px; }
.nav-toggle span::after { content: ''; position: absolute; top: 7px; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: .6rem 20px 1.2rem; border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .9rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .nav .btn { margin: .8rem 0 0; }
}
/* En pantallas estrechas basta con el logotipo: ya lleva el nombre */
@media (max-width: 520px) {
  .brand img.brand-logo { height: 42px; }
  .brand-text { display: none; }
}

/* --------------------------------------------------------------- hero --- */
.hero {
  position: relative; color: #fff; padding: clamp(3rem, 8vw, 6.5rem) 0;
  background:
    linear-gradient(115deg, rgba(17,33,45,.93) 0%, rgba(27,73,101,.86) 60%, rgba(27,73,101,.72) 100%),
    var(--c-primary);
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.5) 0 1px, transparent 1px 86px);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #dde7ef; max-width: 54ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-badges { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 2.4rem; }
.hero-badge { display: flex; gap: .6rem; align-items: center; font-weight: 600; font-size: .95rem; color: #e7eff5; }
.hero-badge svg { flex: none; color: var(--c-accent); }
.hero-card {
  background: rgba(255,255,255,.97); color: var(--c-text); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-md);
}
.hero-card h3 { margin-bottom: .3rem; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ------------------------------------------------------------ secciones -- */
.section { padding: clamp(2.8rem, 6vw, 5rem) 0; }
.section-alt { background: var(--c-light); }
.section-dark { background: var(--c-dark); color: #e6edf3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 62ch; margin-bottom: 2.4rem; }
.section-head.center { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-accent); margin-bottom: .7rem;
}
.section-dark .eyebrow { color: var(--c-accent); }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--c-muted); margin: 0; font-size: .97rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; background: #eaf1f6; color: var(--c-primary);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.card-more { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--c-primary); font-size: .95rem; }

.feature { display: flex; gap: 1rem; }
.feature-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c-accent);
  color: #26200e; font-weight: 800; display: grid; place-items: center;
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; text-align: center; }
.stat-num { font-size: 2.1rem; font-weight: 800; color: var(--c-accent); line-height: 1; }
.stat-label { font-size: .92rem; color: #b9c6d2; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------- galeria --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.6rem; }
.work {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.work-media { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--c-line); }
.work-media figure { margin: 0; position: relative; background: #e9edf1; }
.work-media img { width: 100%; height: 210px; object-fit: cover; }
.work-media figcaption {
  position: absolute; left: 8px; top: 8px; background: rgba(17,33,45,.85); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 6px;
}
.work-media.single { grid-template-columns: 1fr; }
.work-body { padding: 1.2rem 1.3rem 1.4rem; }
.work-body h3 { margin-bottom: .2rem; font-size: 1.1rem; }
.work-meta { font-size: .88rem; color: var(--c-muted); display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem; }
.tag {
  display: inline-block; background: #eaf1f6; color: var(--c-primary); font-size: .78rem;
  font-weight: 700; padding: .2rem .6rem; border-radius: 999px;
}
.placeholder-media {
  height: 210px; display: grid; place-items: center; color: var(--c-muted); font-size: .9rem;
  background: repeating-linear-gradient(45deg, #eef2f5 0 10px, #e7ecf1 10px 20px);
}

/* -------------------------------------------------------------- formulario */
.form-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--c-muted); margin-top: .3rem; }
.req { color: #c0392b; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number],
input[type=password], select, textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; font-size: 1rem; color: var(--c-text);
  background: #fff; border: 1px solid #c6d0d9; border-radius: var(--radius); min-height: 48px;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(27,73,101,.22); border-color: var(--c-primary);
}
textarea { min-height: 140px; resize: vertical; }
input[type=file] { padding: .6rem; background: #fbfcfd; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin: .15rem 0 0; flex: none; }
.form-error { color: #a3291b; font-size: .88rem; margin-top: .3rem; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #c0392b; }
.field.invalid .form-error { display: block; }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.2rem; font-size: .97rem; }
.alert-ok { background: #e8f6ec; border: 1px solid #a9d9b8; color: #1d6334; }
.alert-err { background: #fdecea; border: 1px solid #f3b7b0; color: #95261a; }
.alert-info { background: #eaf1f6; border: 1px solid #bed4e2; color: #1b4965; }

/* ------------------------------------------------------------- contacto -- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--c-line); }
.contact-list svg { flex: none; color: var(--c-primary); margin-top: .2rem; }

.cta-band { background: var(--c-primary); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; padding-top: 2.6rem; padding-bottom: 2.6rem; }
.cta-band h2 { margin: 0; color: #fff; }
.cta-band p { margin: .3rem 0 0; color: #d7e4ed; }

/* ----------------------------------------------------------------- pie --- */
.site-footer { background: var(--c-dark); color: #aebdc9; padding: 3.4rem 0 0; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; letter-spacing: .01em; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.1fr; gap: 2.2rem; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: #d6e1ea; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-about p { color: #9fb0bd; max-width: 38ch; }
.footer-areas { font-size: .85rem; margin-bottom: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: .5rem; }
.footer-contact svg { flex: none; margin-top: .25rem; color: var(--c-accent); }

/* Identificacion fiscal de la empresa titular */
.footer-identity {
  margin-top: 2.6rem; padding: 1.1rem 0; display: flex; align-items: flex-start; gap: .7rem;
  border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: #9fb0bd;
}
.footer-identity svg { flex: none; margin-top: .2rem; color: #7f91a0; }
.footer-identity address {
  font-style: normal; display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; line-height: 1.5;
}
.footer-identity strong { color: #e8eef3; font-weight: 600; }

/* Franja final: derechos reservados + firma del desarrollador.
   Es lo ultimo visible de la pagina, debajo de todos los enlaces. */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.05rem 0 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: .6rem 1.4rem; flex-wrap: wrap; font-size: .85rem; color: #8da0b1;
}
@media (max-width: 620px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .85rem; }
}

/* Credito de IMPERIUM SYSTEM (desarrollo). Discreto, sin aire publicitario:
   colores corporativos del desarrollador adaptados al contraste del pie. */
.dev-credit { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; }
.dev-credit-prefix { color: #7e90a0; }
.dev-credit-link {
  display: inline-flex; align-items: center; gap: .42rem;
  padding: .3rem .72rem; border-radius: 999px;
  background: #101C2D; border: 1px solid rgba(255,121,0,.32);
  color: #fff !important; text-decoration: none !important;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.dev-credit-link:hover { border-color: #FF7900; background: #0b1524; transform: translateY(-1px); }
.dev-credit-link:focus-visible { outline: 2px solid #FF7900; outline-offset: 2px; }
.dev-credit-name {
  font-weight: 600; letter-spacing: .055em; font-size: .775rem; text-transform: uppercase;
  color: #fff;
}
/* El punto naranja sustituye al logotipo mientras no se facilite el oficial */
.dev-credit-link::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #FF7900; flex: none;
}
.dev-credit-link .dev-logo { height: 18px; width: auto; display: block; }
.dev-credit-link:has(.dev-logo)::before { display: none; }

.staff-access { color: #8da0b1 !important; font-size: .85rem; }
.staff-access:hover { color: #fff !important; }

.breadcrumb { font-size: .9rem; color: var(--c-muted); padding: 1rem 0 0; }
.page-head { padding: 2.6rem 0 1.6rem; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.skeleton { background: linear-gradient(90deg, #eef2f5 25%, #e4eaef 37%, #eef2f5 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 8px; min-height: 1rem; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ======================================================================= */
/*  Paginas legales                                                        */
/*  Diseno sobrio y legible: columna de texto estrecha, indice lateral     */
/*  fijo en escritorio y apilado en movil.                                 */
/* ======================================================================= */
.legal-page { padding: 1.4rem 0 4rem; }
.legal-head { padding: 1.2rem 0 2rem; border-bottom: 1px solid var(--c-line); margin-bottom: 2.4rem; }
.legal-head h1 { margin-bottom: .5rem; font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
.legal-subtitle { color: var(--c-muted); font-size: 1.08rem; max-width: 62ch; margin-bottom: 1.4rem; }
.legal-meta {
  display: flex; flex-wrap: wrap; gap: .7rem 2.2rem; margin: 0;
  font-size: .9rem;
}
.legal-meta dt {
  color: var(--c-muted); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .07em; font-weight: 600; margin-bottom: .15rem;
}
.legal-meta dd { margin: 0; font-weight: 600; color: var(--c-text); }

.legal-layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: 3.2rem; align-items: start; }
@media (max-width: 960px) { .legal-layout { grid-template-columns: 1fr; gap: 2rem; } }

/* Indice de navegacion del documento */
.legal-toc {
  position: sticky; top: 1.4rem; background: var(--c-light);
  border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 1.3rem 1.3rem 1.1rem; font-size: .9rem; max-height: calc(100vh - 3rem);
  overflow-y: auto;
}
@media (max-width: 960px) { .legal-toc { position: static; max-height: none; } }
.legal-toc-title {
  margin: 0 0 .8rem; font-weight: 700; font-size: .76rem; text-transform: uppercase;
  letter-spacing: .09em; color: var(--c-muted);
}
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.legal-toc li { counter-increment: toc; margin-bottom: .1rem; }
.legal-toc a {
  display: block; padding: .38rem .55rem .38rem 2rem; border-radius: 7px;
  color: var(--c-text); position: relative; line-height: 1.35;
  transition: background .14s ease, color .14s ease;
}
.legal-toc a::before {
  content: counter(toc) "."; position: absolute; left: .55rem; top: .38rem;
  color: var(--c-muted); font-variant-numeric: tabular-nums; font-size: .85em;
}
.legal-toc a:hover { background: #fff; color: var(--c-primary); text-decoration: none; }

/* Cuerpo del documento */
.legal-body { max-width: 74ch; }
.legal-body h2 {
  font-size: clamp(1.22rem, 2.4vw, 1.5rem); margin: 2.9rem 0 .9rem;
  padding-top: .9rem; border-top: 2px solid var(--c-line); scroll-margin-top: 1.4rem;
}
.legal-body > h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.legal-body h3 { font-size: 1.06rem; margin: 1.8rem 0 .6rem; color: var(--c-primary); }
.legal-body p, .legal-body li { font-size: 1.01rem; }
.legal-body ul, .legal-body ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.legal-body li { margin-bottom: .45rem; }
.legal-body strong { color: var(--c-text); }

/* Nota aclaratoria dentro del texto legal */
.legal-note {
  background: #eaf1f6; border-left: 4px solid var(--c-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .95rem 1.2rem; margin: 1.3rem 0; font-size: .95rem; color: #24455c;
}
/* Dato que la empresa todavia no ha facilitado */
.legal-pending {
  background: #fff4e0; border: 1px dashed #e0a949; border-radius: 5px;
  padding: 0 .4rem; font-size: .88em; color: #8a5a07; white-space: nowrap;
}

/* Tabla del inventario de cookies */
.legal-table-wrap { overflow-x: auto; margin: 1.2rem 0 1.6rem; -webkit-overflow-scrolling: touch; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
.legal-table th, .legal-table td {
  text-align: left; padding: .66rem .8rem; border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
.legal-table thead th {
  background: var(--c-light); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--c-muted); border-bottom: 2px solid var(--c-line);
}
.legal-table code {
  background: #eef2f5; padding: .1rem .35rem; border-radius: 4px; font-size: .92em;
}
.legal-badge {
  display: inline-block; background: #e8f6ec; color: #1d6334; border: 1px solid #a9d9b8;
  border-radius: 999px; padding: 0 .45rem; font-size: .72rem; font-weight: 600;
}

/* Enlaces al resto de documentos legales */
.legal-related {
  margin-top: 3rem; padding: 1.3rem 1.5rem; background: var(--c-light);
  border: 1px solid var(--c-line); border-radius: var(--radius-lg);
}
.legal-related-title {
  margin: 0 0 .6rem; font-weight: 700; font-size: .76rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--c-muted);
}
.legal-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.legal-related li { margin: 0; }

/* ======================================================================= */
/*  Clausula informativa de proteccion de datos junto a los formularios     */
/* ======================================================================= */
.check label { font-weight: 400; }
.form-privacy {
  margin-top: 1.4rem; padding: 1.1rem 1.25rem; background: var(--c-light);
  border: 1px solid var(--c-line); border-radius: var(--radius); font-size: .86rem;
  color: var(--c-muted);
}
.form-privacy-title {
  margin: 0 0 .7rem; font-weight: 700; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--c-text);
}
.form-privacy dl { margin: 0; display: grid; gap: .5rem; }
.form-privacy dt {
  font-weight: 600; color: var(--c-text); font-size: .82rem;
}
.form-privacy dd { margin: 0 0 .1rem; line-height: 1.45; }
@media (min-width: 560px) {
  .form-privacy dl > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: .8rem; }
  .form-privacy dt { padding-top: .02rem; }
}
.form-privacy-compact { font-size: .8rem; padding: .85rem 1rem; }
.form-privacy-compact dl > div { grid-template-columns: 105px minmax(0, 1fr); }

/* ======================================================================= */
/*  Consentimiento de cookies                                              */
/*  Solo se muestra si existen cookies no esenciales declaradas: el aviso   */
/*  lo inyecta js/site.js a partir de /api/public/site.                    */
/* ======================================================================= */
.cookie-banner {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  background: var(--c-dark); color: #e5edf3; box-shadow: 0 -8px 30px rgba(17,33,45,.28);
  padding: 1.2rem 0; animation: cookie-up .26s ease-out;
}
@keyframes cookie-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }
.cookie-banner .container {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem 2rem; align-items: center;
}
@media (max-width: 860px) { .cookie-banner .container { grid-template-columns: 1fr; } }
.cookie-banner h2 { font-size: 1.08rem; color: #fff; margin: 0 0 .35rem; }
.cookie-banner p { margin: 0; font-size: .9rem; color: #b6c5d1; max-width: 72ch; }
.cookie-banner a { color: #fff; text-decoration: underline; }
/* Las tres opciones tienen EXACTAMENTE el mismo formato: mismo color, mismo
   tamano y mismo peso tipografico. Ninguna se destaca sobre las otras, de modo
   que aceptar no resulte mas facil que rechazar. */
.cookie-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.cookie-actions .btn { min-height: 46px; padding: .7rem 1.2rem; font-size: .94rem; flex: 1 1 auto; }
.cookie-btn { background: #fff; color: var(--c-dark); border: 2px solid #fff; font-weight: 600; }
.cookie-btn:hover { background: #e9eff4; }
.cookie-btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.cookie-dialog {
  position: fixed; inset: 0; z-index: 95; display: flex; align-items: center;
  justify-content: center; padding: 1.2rem; background: rgba(17,33,45,.55);
}
.cookie-dialog-box {
  background: #fff; color: var(--c-text); border-radius: var(--radius-lg);
  max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 1.8rem;
  box-shadow: var(--shadow-md);
}
.cookie-dialog-box h2 { font-size: 1.3rem; }
.cookie-cat {
  border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: .95rem 1.1rem; margin-bottom: .8rem;
}
.cookie-cat-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.cookie-cat h3 { font-size: 1rem; margin: 0 0 .25rem; }
.cookie-cat p { font-size: .87rem; color: var(--c-muted); margin: 0; }
.cookie-cat-fixed { font-size: .8rem; color: var(--c-muted); white-space: nowrap; }
.cookie-switch { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; flex: none; }
.cookie-switch input { width: 22px; height: 22px; }
.cookie-dialog-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.cookie-dialog-actions .btn { flex: 1 1 auto; }
