/* 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-who .red-marca { color: #fff; font-weight: 700; text-decoration: none; letter-spacing: .01em; }
.red-bar-who .red-marca:hover { text-decoration: underline; }
.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: flota junto al titular y las letras siguen su silueta (shape-outside con la
   transparencia de la propia imagen). El margen superior lo baja a la altura de la 2.ª línea
   sin estrechar la 1.ª (el margen queda fuera de la forma). Carlos, 21-10-2026. */
.red-hero-buho--flota {
  float: right; height: 240px; margin: 108px -6px 0 6px;
  shape-outside: url("/assets/buhos/recorte-modelo600.png?v=20261022d");
  shape-image-threshold: .35; shape-margin: 14px;
}
.red-hero-buho--flota img { height: 100%; width: auto; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .35)); }
/* medidas comprobadas línea a línea: ninguna línea salta ni deja hueco (21-10-2026) */
@media (min-width: 981px) and (max-width: 1100px) { .red-hero-buho--flota { height: 200px; } }
@media (max-width: 720px) { .red-hero-buho--flota { height: 132px; margin: 4px -8px 4px 10px; shape-outside: none; } }

/* 030 · 620 · 211: de pie en el borde inferior del hero, en el hueco que deja el texto
   (lo coloca el script); si no hay hueco (móvil), flota y el texto lo rodea */
section.gradient-bg { position: relative; overflow: hidden; }
.red-hero-buho--hero { position: absolute; display: none; }
.red-hero-buho--hero.red-flota-float { position: static; display: block; float: right; height: 118px; margin: -46px -6px 0 8px; }

/* ── modelo600: hero en la banda azul de la red (21-10-2026) ── */
.red-hero-azul, .red-hero-azul-landing { background: linear-gradient(135deg, var(--red-navy) 0%, var(--red-navy-2) 62%, #3E3AB8 100%) !important; border-bottom: 0 !important; }
.red-hero-azul .pill, .red-hero-azul-landing .pill { background: rgba(255, 255, 255, .12) !important; color: #fff !important; }
.red-hero-azul .pill .dot { background: var(--red-mostaza) !important; }
.red-hero-azul h1.hero-title, .red-hero-azul-landing h1 { color: #fff !important; }
.red-hero-azul h1.hero-title em { color: #BFDBFE !important; }
.red-hero-azul .hero-lead, .red-hero-azul-landing .lead { color: rgba(255, 255, 255, .86) !important; }
.red-hero-azul .hero-lead strong, .red-hero-azul-landing .lead strong { color: #fff !important; }
.red-hero-azul .hero-checks, .red-hero-azul-landing .checks { color: rgba(255, 255, 255, .86) !important; }
.red-hero-azul-landing .crumb, .red-hero-azul-landing .crumb a { color: rgba(255, 255, 255, .7) !important; }
.red-hero-azul .red-hero-buho--flota img { filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .35)); }

/* 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; }
}


/* ── casilla de desistimiento antes de pagar (22-10-2026) ── */
.red-desist { display: flex !important; gap: 9px; align-items: flex-start; margin: 4px 0 12px; padding: 10px 12px; border: 1px solid #E3E8EE; border-radius: 10px; background: #F8FAFC; font: 400 13px/1.45 var(--red-text); color: #334155 !important; text-align: left; cursor: pointer; }
.red-desist input { margin-top: 2px; width: 17px; height: 17px; flex: none; accent-color: var(--red-violet); cursor: pointer; }
.red-desist a { color: var(--red-violet-d); text-decoration: underline; }
.red-desist.red-desist-err { border-color: #DC2626; background: #FEF2F2; }
.red-desist.red-desist-err::after { content: attr(data-aviso); display: block; }
.red-desist.red-desist-err { flex-wrap: wrap; }
.red-desist.red-desist-err::after { flex-basis: 100%; color: #B91C1C; font-weight: 600; padding-left: 26px; }
.red-desist > span { flex: 1 1 0; min-width: 0; display: block; }

/* Aviso «servicio privado, no oficial» bajo la cabecera (política Google Ads, 22-10-2026) */
.red-aviso { background: #fff8e1; color: #5b4a00; border-bottom: 1px solid #f0dfa0; font-size: 13px; line-height: 1.45;
  text-align: center; padding: 7px 16px; }
.red-aviso b { color: #3d3200; }
@media (max-width: 720px) { .red-aviso { font-size: 12px; padding: 6px 12px; text-align: left; } }
