/* maxiwebs.es — estilo de las páginas del servicio, sin dependencias. Móvil primero.
   Identidad: la base común de la familia Maxi (crema, grafito, radios, nombres de variables de los portales) con el principal de maxiwebs, el azul
   cobalto #3163cc (#93b6f7 en oscuro; elegido por el usuario el 15-nov-2026). Las webs de los negocios NO usan este fichero: tienen el suyo
   (web.css), porque son de cada negocio. Tema oscuro con [data-theme="dark"] (botón de assets/tema.js) o, sin JavaScript, el del sistema. */
:root {
  color-scheme: light;
  --accent: #e8a455; --bg-body: #fdf8f2; --bg-surface: #fffdfa; --bg-soft: #f8efe4; --border: #eadccb; --border-strong: #dcc7b1;
  --bg-dark: #2c2c2a; --on-dark: #f4ede4; --on-dark-muted: #d3cabf;
  --header-bg: #fffdfa; --header-border: #eadccb; --header-search-bg: #f6eee4; --header-search-border: #eadccb;
  --text-main: #2b2420; --text-muted: #5e5047; --text-light: #776a5e;
  --primary: #3163cc; --primary-hover: #2952a9; --primary-solid: #3163cc; --primary-solid-hover: #2952a9; --on-primary: #ffffff; --primary-soft: #e9effb;
  --logo-maxi: #2C2C2A;
  --max-w: 1120px; --radius-md: 10px; --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(61, 48, 40, 0.07); --shadow-md: 0 10px 25px -5px rgba(61, 48, 40, 0.10);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg-body: #262629; --bg-surface: #303033; --bg-soft: #2b2b2e; --border: #444447; --border-strong: #55524f;
  --bg-dark: #1c1c1e; --on-dark: #f4ede4; --on-dark-muted: #bdb3a8;
  --header-bg: #1c1c1e; --header-border: #444447; --header-search-bg: #303033; --header-search-border: #4a4a4d;
  --text-main: #f4ede4; --text-muted: #bdb3a8; --text-light: #a89f95;
  --primary: #93b6f7; --primary-hover: #b4cdfa; --primary-solid: #3163cc; --primary-solid-hover: #2952a9; --on-primary: #ffffff; --primary-soft: #2b3550;
  --logo-maxi: #f4ede4;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35); --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.55);
}
/* Sin JavaScript (sin data-theme), el tema del sistema */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg-body: #262629; --bg-surface: #303033; --bg-soft: #2b2b2e; --border: #444447; --border-strong: #55524f;
    --bg-dark: #1c1c1e; --on-dark: #f4ede4; --on-dark-muted: #bdb3a8;
    --header-bg: #1c1c1e; --header-border: #444447; --header-search-bg: #303033; --header-search-border: #4a4a4d;
    --text-main: #f4ede4; --text-muted: #bdb3a8; --text-light: #a89f95;
    --primary: #93b6f7; --primary-hover: #b4cdfa; --primary-solid: #3163cc; --primary-solid-hover: #2952a9; --on-primary: #ffffff; --primary-soft: #2b3550;
    --logo-maxi: #f4ede4;
  }
}

* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text-main); background: var(--bg-body);
  -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 14px; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin: 0 0 18px; font-weight: 750; }
h3 { font-size: 1.1rem; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.ancho { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 8px 14px; border-radius: var(--radius-md); background: var(--primary-solid);
  color: var(--on-primary); }
.saltar:focus { top: 12px; }
.entradilla { font-size: 1.12rem; color: var(--text-muted); max-width: 60ch; }
.nota { font-size: .9rem; color: var(--text-light); }
.sobretitulo { font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.boton { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; border-radius: var(--radius-md); font-weight: 700; text-decoration: none;
  background: var(--primary-solid); color: var(--on-primary); border: 2px solid var(--primary-solid); }
.boton:hover { background: var(--primary-solid-hover); border-color: var(--primary-solid-hover); }
.boton-2 { background: transparent; color: var(--primary); border-color: currentColor; }
.boton-2:hover { background: var(--primary-soft); border-color: currentColor; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.enlace-fuerte { font-weight: 700; }

/* Cabecera: logotipo, menú y botón de tema (como maxiguías) */
.cabecera { background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.cabecera .ancho { display: flex; align-items: center; gap: 8px 20px; min-height: 68px; flex-wrap: wrap; }
.marca { display: inline-flex; color: var(--primary); margin-right: auto; }
.marca:hover .logotipo { opacity: .85; }
.logotipo { display: block; height: 42px; width: auto; }
.menu { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: .95rem; font-weight: 600; }
.menu a { color: var(--text-main); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--primary); }
.tema { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; flex-shrink: 0; cursor: pointer;
  color: var(--text-main); background: var(--header-search-bg); border: 1px solid var(--header-search-border); border-radius: 999px; }
.tema:hover { border-color: var(--primary); }
.tema svg { width: 18px; height: 18px; }
.tema .sol { display: none; }
[data-theme="dark"] .tema .sol { display: block; }
[data-theme="dark"] .tema .luna { display: none; }
@media (max-width: 720px) {
  .cabecera .ancho { padding-top: 10px; padding-bottom: 10px; }
  .logotipo { height: 38px; }
}

/* Portada por bandas */
.portada { display: block; }
.banda { padding: clamp(44px, 7vw, 80px) 0; }
.banda-suave { background: var(--bg-soft); }
.heroe { padding-top: clamp(40px, 7vw, 88px); }
.heroe-dentro { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .heroe-dentro { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; } }
/* Una ventana de navegador con una web de ejemplo dentro, hecha con CSS: enseña el resultado sin usar el nombre de ningún negocio */
.ventana { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); overflow: hidden; background: #ffffff; color: #1c2024; box-shadow: var(--shadow-md);
  max-width: 460px; width: 100%; justify-self: center; }
.ventana-barra { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #eceef1; border-bottom: 1px solid #dfe2e6; }
.ventana-barra span { width: 10px; height: 10px; border-radius: 50%; background: #c4c9d0; }
.ventana-barra b { margin-left: 8px; flex: 1; font-size: .78rem; font-weight: 500; color: #4a535e; background: #ffffff; border-radius: 999px; padding: 3px 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ventana-web { padding: 26px 24px 22px; background: #8b2942; color: #ffffff; }
.ventana-web p { margin: 0; }
.ventana-sobre { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.ventana-titular { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.08; margin: 8px 0 16px !important; }
.ventana-botones { display: flex; gap: 8px; }
.ventana-botones span { font-size: .78rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 2px solid #ffffff; }
.ventana-botones span:first-child { background: #ffffff; color: #6d2034; }
.ventana-web dl { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .4); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ventana-web dt { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ventana-web dd { margin: 2px 0 0; font-size: .86rem; font-weight: 600; }

/* Los tres pasos: es una secuencia de verdad, por eso van numerados */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: paso; }
.pasos li { counter-increment: paso; border-top: 2px solid var(--text-main); padding-top: 16px; }
.pasos li::before { content: counter(paso); display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--primary); margin-bottom: 10px;
  font-variant-numeric: tabular-nums; }
.pasos p { color: var(--text-muted); margin: 0; }
.dos-columnas { display: grid; gap: 40px 64px; }
@media (min-width: 860px) { .dos-columnas { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.lista li { padding-left: 22px; position: relative; }
.lista li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.temas { list-style: none; margin: 0 0 18px; padding: 0; }
.temas li { display: grid; padding: 12px 0; border-bottom: 1px solid var(--border-strong); }
.temas span { color: var(--text-muted); font-size: .93rem; }

/* Planes */
.planes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); max-width: 880px; }
.plan { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 26px 22px; }
.plan-pago { border: 2px solid var(--primary); }
.plan h3 { font-size: 1.25rem; margin-bottom: 10px; }
.plan-precio { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.plan-precio strong { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-precio span { color: var(--text-muted); font-weight: 600; }
.plan-nota { color: var(--text-muted); font-size: .93rem; margin: 8px 0 18px; min-height: 2.9em; }
.plan-lleva { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; border-top: 1px solid var(--border); padding-top: 18px; font-size: .97rem; }

/* Preguntas */
.preguntas { margin: 0; display: grid; gap: 22px 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.preguntas dt { font-weight: 750; font-size: 1.05rem; margin-bottom: 4px; }
.preguntas dd { margin: 0; color: var(--text-muted); }

/* Páginas interiores */
.pagina { padding-top: clamp(28px, 5vw, 52px); padding-bottom: 60px; }
.pagina h2 { margin-top: 40px; }
.cabeza { margin-bottom: 30px; }
.texto { max-width: 72ch; }
.texto li { margin-bottom: 8px; }
.muestras ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.muestras a { display: grid; gap: 3px; height: 100%; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px;
  text-decoration: none; color: var(--text-main); }
.muestras a:hover { border-color: var(--primary); }
.muestras a span { color: var(--text-muted); font-size: .93rem; }
.muestra-color { width: 34px; height: 8px; border-radius: 999px; margin-bottom: 8px; }
.muestras .muestra-detalle { font-size: .82rem; color: var(--text-light); }

/* Legales: en una tarjeta centrada, con pestañas para pasar de una a otra (como en los portales) */
.legal-menu { display: flex; flex-wrap: wrap; gap: 8px; max-width: 960px; margin: 0 auto 18px; }
.legal-menu a { color: var(--text-main); text-decoration: none; font-size: .92rem; font-weight: 600; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; }
.legal-menu a:hover { border-color: var(--primary); }
.legal-menu a[aria-current="page"] { color: var(--on-primary); background: var(--primary-solid); border-color: var(--primary-solid); }
.legal { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px clamp(18px, 4vw, 32px) 24px;
  max-width: 960px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-top: 20px; }
.legal h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.legal li { margin: 4px 0; }
.tabla-scroll { overflow-x: auto; margin: 12px 0; }
.tabla-scroll table { border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.tabla-scroll th, .tabla-scroll td { border: 1px solid var(--border); padding: 6px 8px; vertical-align: top; text-align: left; }

/* Pie */
.pie { border-top: 1px solid var(--header-border); background: var(--header-bg); font-size: .9rem; color: var(--text-muted); padding: 28px 0 22px; }
.pie-red { margin-bottom: 12px; }
.pie-legal { margin: 0 0 6px; }
.pie-legal a { color: var(--text-muted); }

@media (prefers-reduced-motion: no-preference) {
  .muestras a, .tema, .boton { transition: border-color .15s, background-color .15s; }
}
