/* red.css — estilo común de las webs de gestoría (modelo600 · 030 · 620 · 211).
   El MISMO fichero en las cuatro webs: si lo cambias, súbelo a todas y sube el ?v=.
   Solo añade la barra común, la cabecera con el precio y el pie de red, y alinea
   colores y tipografía. No toca textos, títulos ni enlaces de contenido (SEO). */

:root {
  --red-navy: #0A2540;
  --red-navy-2: #1B3A6B;
  --red-violet: #635BFF;
  --red-violet-d: #4B44E0;
  --red-green: #06A65D;
  --red-ink: #0A2540;
  --red-ink-2: #425466;
  --red-line: #E3E8EE;
  --red-display: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --red-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-padding-top: 84px; }

/* ── barra común (la «marca paraguas») ─────────────────────────────── */
.red-bar {
  background: var(--red-navy);
  color: rgba(255, 255, 255, .78);
  font: 500 12.5px/1.2 var(--red-text);
}
.red-bar-in {
  max-width: 1200px; margin: 0 auto; padding: 7px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.red-bar-who { display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.red-bar-who b { color: #fff; font-weight: 600; }
.red-bar-sites { display: flex; gap: 4px; flex-shrink: 0; }
.red-bar-sites a {
  color: rgba(255, 255, 255, .78); text-decoration: none; padding: 3px 8px; border-radius: 999px;
  white-space: nowrap; transition: background .15s, color .15s;
}
.red-bar-sites a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.red-bar-sites a[aria-current] { background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; }

/* ── cabecera con el precio siempre visible ───────────────────────── */
.red-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: saturate(180%) blur(8px); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--red-line);
  font-family: var(--red-text);
}
.red-head-in {
  max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 64px;
  display: flex; align-items: center; gap: 22px;
}
.red-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.red-mark {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 32px; padding: 0 6px; border-radius: 8px;
  background: var(--red-navy); color: #fff;
  font: 800 14px/1 var(--red-display); letter-spacing: -.02em;
}
.red-name { font: 700 17px/1 var(--red-display); color: var(--red-ink); letter-spacing: -.02em; }
.red-nav { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.red-nav::-webkit-scrollbar { display: none; }
.red-nav a {
  color: var(--red-ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 7px 10px; border-radius: 7px; white-space: nowrap; transition: background .15s, color .15s;
}
.red-nav a:hover { background: #F2F4FF; color: var(--red-violet-d); }
.red-nav a.red-lang { border: 1px solid var(--red-line); border-radius: 999px; padding: 6px 11px; }
.red-cta {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red-violet); color: #fff; text-decoration: none;
  padding: 8px 8px 8px 16px; border-radius: 10px;
  box-shadow: 0 1px 2px rgba(10, 37, 64, .12), 0 4px 14px rgba(99, 91, 255, .28);
  transition: background .15s, transform .15s;
}
.red-cta:hover { background: var(--red-violet-d); transform: translateY(-1px); }
.red-cta-lbl { font: 600 14.5px/1 var(--red-text); white-space: nowrap; }
.red-cta-price {
  display: flex; flex-direction: column; align-items: flex-end;
  background: rgba(255, 255, 255, .16); border-radius: 7px; padding: 5px 9px;
}
.red-cta-price b { font: 800 16px/1 var(--red-display); letter-spacing: -.01em; white-space: nowrap; }
.red-cta-price small { font: 500 10px/1.1 var(--red-text); opacity: .85; margin-top: 2px; white-space: nowrap; }

/* ── pie común de la red ──────────────────────────────────────────── */
.red-foot { background: #06192D; color: rgba(255, 255, 255, .7); font: 400 13px/1.6 var(--red-text); }
.red-foot-in {
  max-width: 1200px; margin: 0 auto; padding: 22px 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px;
}
.red-foot b { color: #fff; font-weight: 600; }
.red-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.red-foot a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.red-foot a:hover { color: #fff; text-decoration: underline; }

/* ── la misma paleta y tipografía en todas ────────────────────────── */
h1, h2, h3 { font-family: var(--red-display) !important; letter-spacing: -.02em; }
.gradient-bg { background: linear-gradient(135deg, var(--red-navy) 0%, var(--red-navy-2) 62%, #3E3AB8 100%) !important; }
footer.bg-blue-900, .bg-blue-900 { background-color: var(--red-navy) !important; }
.text-blue-900 { color: var(--red-navy) !important; }
.bg-green-600 { background-color: var(--red-green) !important; }
.hover\:bg-green-700:hover { background-color: #058a4d !important; }
.text-green-600 { color: var(--red-green) !important; }

/* ── móvil ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .red-bar-who span.red-long { display: none; }
  .red-head-in { height: auto; flex-wrap: wrap; padding: 10px 16px 0; gap: 10px 12px; }
  .red-nav { order: 3; flex-basis: 100%; margin: 0 -16px; padding: 0 12px 8px; }
  .red-nav a { font-size: 13.5px; padding: 6px 9px; }
  .red-cta { padding: 6px 6px 6px 12px; gap: 8px; }
  .red-cta-lbl { font-size: 14px; }
  .red-cta-price small { display: none; }
  html { scroll-padding-top: 120px; }
}
@media (max-width: 560px) {
  .red-bar-in { padding: 6px 12px; flex-direction: column; align-items: stretch; gap: 4px; }
  .red-bar-who { justify-content: center; }
  .red-bar-sites { justify-content: center; }
  .red-name { font-size: 15px; }
  .red-mark { min-width: 32px; height: 29px; font-size: 13px; }
}

/* ── páginas legales: el body traía max-width; la red a todo el ancho ─ */
html:has(body.red-legal), body.red-legal { background: #fff; }
body.red-legal { max-width: none !important; padding: 0 !important; }
body.red-legal > :not(.red-bar):not(.red-head):not(.red-foot):not(script):not(style) {
  max-width: 760px; margin-left: auto !important; margin-right: auto !important;
  padding-left: 20px; padding-right: 20px; box-sizing: border-box;
}
body.red-legal > .back { display: block; margin-top: 32px; }

/* menú que no cabe: se desliza y se difumina por la derecha */
.red-nav { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 24px; }

/* ── búho: imagen corporativa en el hero, sin texto ni tarjeta (20-10-2026) ── */
:root { --red-mostaza: #E3A93B; }
.red-hero-buho { pointer-events: none; z-index: 2; }
.red-hero-buho img { display: block; height: 100%; width: auto; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .28)); }
/* modelo600: flotando junto al titular; el texto lo rodea */
.red-hero-buho--flota { float: right; height: 175px; margin: 0 0 4px 12px; }
/* 030 · 620 · 211: en la esquina inferior derecha del hero azul */
section.gradient-bg { position: relative; overflow: hidden; }
.red-hero-buho--hero { position: absolute; right: max(16px, calc(50% - 640px)); bottom: 0; height: 250px; }
@media (max-width: 1180px) { .red-hero-buho--hero { height: 190px; } }
@media (max-width: 900px) {
  .red-hero-buho--hero { position: static; height: 120px; margin: -50px auto 14px; display: flex; justify-content: center; }
  .red-hero-buho--flota { height: 105px; margin-left: 8px; }
}

/* 5 webs en la barra: en móvil, que bajen de línea en vez de cortarse */
@media (max-width: 560px) {
  .red-bar-sites { flex-wrap: wrap; justify-content: center; gap: 2px 2px; }
  .red-bar-sites a { padding: 2px 7px; font-size: 12px; }
}
