@charset "UTF-8";
:root {
  --p1: #1d4ed8;
  --p2: #2563eb;
  --p3: #0ea5e9;
  --p-rgb: 30, 64, 175;
  --fondo: #eef3fb;
  --fondo-alto: #dfeaff;
  --tarjeta: #ffffff;
  --texto: #0f1b33;
  --suave: #5b6b86;
  --texto-sec: #48587a;
  --etiqueta: #2c3e5e;
  --borde: #dbe4f3;
  --borde-2: #c3d2ea;
  --tinte: #eaf1fd;
  --tinte-2: #f5f8fe;
  --tinte-3: #dbe4f3;
  --marino: #0b1f44;
  --marino-2: #123a8f;
  --marino-3: #071530;
  --acento: #38bdf8;
  --acento-rgb: 56, 189, 248;
  --acento-claro: #7dd3fc;
  --cab-texto: #c3d2ea;
  --res-fin: #e0f2fe;
  --res-borde: #bfd3f5;
  --anuncio-bg: rgba(255, 255, 255, 0.55);
  --radio: 0;
  --sombra-s: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px -8px rgba(17, 24, 39, 0.10);
  --sombra-l: 0 1px 2px rgba(17, 24, 39, 0.04), 0 30px 60px -24px rgba(17, 24, 39, 0.30);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Temas (skins) ---------- */
html[data-tema="oceano"] {
  --p1: #0f766e;
  --p2: #0d9488;
  --p3: #06b6d4;
  --p-rgb: 15, 118, 110;
  --fondo: #eef7f6;
  --fondo-alto: #d9f1ef;
  --borde: #d3e6e4;
  --borde-2: #b5d4d1;
  --tinte: #e6f5f3;
  --tinte-2: #f3faf9;
  --tinte-3: #d3e6e4;
  --marino: #07302d;
  --marino-2: #0f5c57;
  --marino-3: #041f1d;
  --acento: #2dd4bf;
  --acento-rgb: 45, 212, 191;
  --acento-claro: #99f6e4;
  --cab-texto: #b5d4d1;
  --etiqueta: #1f4744;
  --texto: #0c2321;
  --suave: #547370;
  --texto-sec: #3f6561;
  --res-fin: #cffafe;
  --res-borde: #a7ddd8;
}
html[data-tema="esmeralda"] {
  --p1: #15803d;
  --p2: #16a34a;
  --p3: #65a30d;
  --p-rgb: 21, 128, 61;
  --fondo: #f0f7f2;
  --fondo-alto: #dcf1e3;
  --borde: #d5e6da;
  --borde-2: #b7d3c0;
  --tinte: #e8f5ec;
  --tinte-2: #f4faf6;
  --tinte-3: #d5e6da;
  --marino: #0a2e1a;
  --marino-2: #14532d;
  --marino-3: #061c10;
  --acento: #4ade80;
  --acento-rgb: 74, 222, 128;
  --acento-claro: #bbf7d0;
  --cab-texto: #b7d3c0;
  --etiqueta: #23412d;
  --texto: #0e2216;
  --suave: #55705e;
  --texto-sec: #416049;
  --res-fin: #ecfccb;
  --res-borde: #b9dcc5;
}
html[data-tema="ambar"] {
  --p1: #b45309;
  --p2: #d97706;
  --p3: #f59e0b;
  --p-rgb: 180, 83, 9;
  --fondo: #faf6ee;
  --fondo-alto: #fdecc8;
  --borde: #eadfca;
  --borde-2: #dcc9a3;
  --tinte: #fbf0dc;
  --tinte-2: #fdf8ee;
  --tinte-3: #eadfca;
  --marino: #2a1a05;
  --marino-2: #5c3a0a;
  --marino-3: #1a1003;
  --acento: #fbbf24;
  --acento-rgb: 251, 191, 36;
  --acento-claro: #fde68a;
  --cab-texto: #dcc9a3;
  --etiqueta: #4a3412;
  --texto: #231705;
  --suave: #7a6a50;
  --texto-sec: #5e4d33;
  --res-fin: #fef3c7;
  --res-borde: #ecd29b;
}
html[data-tema="carmesi"] {
  --p1: #b91c1c;
  --p2: #dc2626;
  --p3: #f97316;
  --p-rgb: 185, 28, 28;
  --fondo: #faf1f1;
  --fondo-alto: #fbdcdc;
  --borde: #ecd8d8;
  --borde-2: #dfbcbc;
  --tinte: #fbe9e9;
  --tinte-2: #fdf5f5;
  --tinte-3: #ecd8d8;
  --marino: #2b0a0a;
  --marino-2: #6b1414;
  --marino-3: #1a0606;
  --acento: #f87171;
  --acento-rgb: 248, 113, 113;
  --acento-claro: #fecaca;
  --cab-texto: #dfbcbc;
  --etiqueta: #4a1f1f;
  --texto: #240c0c;
  --suave: #7a5a5a;
  --texto-sec: #5e4141;
  --res-fin: #ffedd5;
  --res-borde: #eab5b5;
}
html[data-tema="grafito"] {
  --p1: #1f2937;
  --p2: #374151;
  --p3: #6b7280;
  --p-rgb: 31, 41, 55;
  --fondo: #f3f4f6;
  --fondo-alto: #e5e7eb;
  --borde: #e0e2e6;
  --borde-2: #cbd0d8;
  --tinte: #eceef1;
  --tinte-2: #f7f8f9;
  --tinte-3: #e0e2e6;
  --marino: #111827;
  --marino-2: #1f2937;
  --marino-3: #0b0f19;
  --acento: #9ca3af;
  --acento-rgb: 156, 163, 175;
  --acento-claro: #d1d5db;
  --cab-texto: #cbd0d8;
  --etiqueta: #374151;
  --texto: #111827;
  --suave: #6b7280;
  --texto-sec: #4b5563;
  --res-fin: #e5e7eb;
  --res-borde: #cbd0d8;
}
html[data-tema="noche"] {
  --p1: #3b82f6;
  --p2: #2563eb;
  --p3: #22d3ee;
  --p-rgb: 59, 130, 246;
  --fondo: #0b1220;
  --fondo-alto: #111c33;
  --tarjeta: #131c2e;
  --borde: #24324d;
  --borde-2: #33466b;
  --tinte: #1a2740;
  --tinte-2: #101a2c;
  --tinte-3: #24324d;
  --marino: #060b16;
  --marino-2: #0f1f3d;
  --marino-3: #04070f;
  --acento: #38bdf8;
  --acento-rgb: 56, 189, 248;
  --acento-claro: #7dd3fc;
  --cab-texto: #aab8d4;
  --etiqueta: #b8c4dc;
  --texto: #e6ecf8;
  --suave: #8b9bb8;
  --texto-sec: #a3b1cc;
  --res-fin: #0f2a3d;
  --res-borde: #1e4a7a;
  --anuncio-bg: rgba(255, 255, 255, 0.04);
}
html[data-tema="noche"] { color-scheme: dark; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, var(--fondo-alto) 0, var(--fondo) 420px);
  background-attachment: fixed;
  color: var(--texto);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(var(--p-rgb), 0.22); }
:focus-visible { outline: 3px solid rgba(var(--p-rgb), 0.6); outline-offset: 2px; }

a { color: var(--p1); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Cabecera ---------- */
.cabecera {
  background: linear-gradient(90deg, var(--marino), var(--marino-2));
  border-top: 2px solid var(--acento);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.25);
  padding-bottom: env(safe-area-inset-bottom);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.cabecera-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
}
.logo:hover { text-decoration: none; }
.logo-icono {
  margin-right: 0.55rem;
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: linear-gradient(135deg, var(--p2), var(--acento));
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-size: 1.15rem;
  font-weight: 800;
  flex: none;
}
.logo span { color: var(--acento-claro); }
.nav-principal { display: flex; gap: 0.15rem; margin-right: 0.25rem; }
.nav-principal a {
  color: var(--cab-texto);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
}
.nav-principal a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; }

.buscador-cab { position: relative; flex: 0 1 380px; margin-left: auto; }
.buscador-cab::before {
  content: "\1F50D";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  pointer-events: none;
}
.buscador-cab input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  font-size: 0.92rem;
  font-family: inherit;
  border: 2px solid transparent;
  border-radius: 0;
  background: #fff;
  color: #0f1b33;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.buscador-cab input:focus {
  outline: none;
  border-color: var(--acento);
  box-shadow: 0 0 0 4px rgba(var(--acento-rgb), 0.3);
}
.sugerencias {
  display: none;
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  right: 0;
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 0;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.3);
  padding: 0.4rem;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 200;
}
.sugerencias.abierta { display: block; }
.sugerencias a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0;
  color: var(--texto);
  font-weight: 600;
  font-size: 0.92rem;
}
.sugerencias a:hover { background: rgba(var(--p-rgb), 0.10); text-decoration: none; }
.sugerencias .sin-coincidencias { padding: 0.6rem 0.8rem; color: var(--suave); font-size: 0.9rem; }
/* ---------- Selector de skin ---------- */
.skin { position: relative; flex: none; }
.skin-btn {
  display: flex; align-items: center; gap: 0.5rem;
  height: 38px; padding: 0 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff; font: inherit; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.skin-btn:hover, .skin-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.2); border-color: var(--acento); }
.skin-punto { width: 16px; height: 16px; flex: none; background: linear-gradient(135deg, var(--p1) 50%, var(--p3) 50%); border: 1px solid rgba(255, 255, 255, 0.6); }
.skin-panel {
  display: none; position: absolute; right: 0; bottom: calc(100% + 14px);
  width: 250px; padding: 0.5rem;
  background: var(--tarjeta); border: 1px solid var(--borde); box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.4);
  z-index: 300;
}
.skin-panel.abierto { display: block; }
.skin-panel h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--suave); margin: 0.2rem 0.4rem 0.4rem; }
.skin-op {
  display: flex; align-items: center; gap: 0.7rem; width: 100%;
  padding: 0.5rem 0.55rem; background: transparent; border: 1px solid transparent;
  color: var(--texto); font: inherit; font-size: 0.92rem; font-weight: 600; text-align: left; cursor: pointer;
}
.skin-op:hover { background: var(--tinte); }
.skin-op.activo { border-color: var(--p1); background: var(--tinte); }
.skin-muestra { display: flex; flex: none; width: 54px; height: 22px; border: 1px solid var(--borde-2); }
.skin-muestra i { flex: 1; }
.skin-op .ok { margin-left: auto; color: var(--p1); font-weight: 800; visibility: hidden; }
.skin-op.activo .ok { visibility: visible; }
@media (max-width: 640px) {
  .skin-btn { padding: 0 0.55rem; }
  .skin-btn .skin-nombre { display: none; }
  .skin-panel { right: -0.25rem; }
}

/* ---------- Layout ---------- */
.contenedor { max-width: 1160px; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; }

/* ---------- Página de herramienta ---------- */
.migas { font-size: 0.83rem; color: var(--suave); margin-bottom: 0.9rem; }

.layout-herramienta {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) { .layout-herramienta { grid-template-columns: minmax(0, 1fr); } }
.layout-herramienta > *, .fila-campos > * { min-width: 0; }

.calculadora {
  background: var(--tarjeta);
  border-radius: 0;
  padding: 2rem 2rem 2.1rem;
  box-shadow: var(--sombra-l), 0 0 0 1px var(--borde);
  position: relative;
}
.calculadora::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--p1), var(--p2), var(--p3));
}
.calculadora h1 { font-size: clamp(1.55rem, 3.2vw, 1.9rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 0.4rem; }
.calculadora .descripcion { color: var(--suave); font-size: 0.92rem; margin-bottom: 1.3rem; }

.campo { margin-bottom: 1rem; }
.campo label { display: block; font-weight: 600; font-size: 0.84rem; margin-bottom: 0.4rem; color: var(--etiqueta); letter-spacing: 0.01em; }
.campo input, .campo select {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border: 1.5px solid var(--borde);
  border-radius: 0;
  font-size: 1.05rem;
  font-family: inherit;
  background: var(--tinte-2);
  color: var(--texto);
  box-shadow: inset 0 1px 2px rgba(var(--p-rgb), 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.campo input:hover, .campo select:hover { border-color: var(--borde-2); }
.campo select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b94a8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.campo input:focus, .campo select:focus {
  outline: none;
  background: var(--tarjeta);
  border-color: var(--p1);
  box-shadow: 0 0 0 4px rgba(var(--p-rgb), 0.15);
}

.fila-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .fila-campos { grid-template-columns: minmax(0, 1fr); } }

.boton {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 1rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 12px 26px -10px rgba(var(--p-rgb), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s;
}
.boton:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -10px rgba(var(--p-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25); filter: brightness(1.06); }
.boton:active { transform: translateY(0) scale(0.99); }

.resultado {
  margin-top: 1.3rem;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(135deg, var(--tinte), var(--res-fin));
  border: 1px solid var(--res-borde);
  border-left: 5px solid var(--p2);
  border-radius: 0;
  display: none;
}
.resultado.visible { display: block; animation: aparecer 0.3s ease; }
@keyframes aparecer { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.resultado .valor {
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--p1), var(--p3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}
.resultado .detalle { color: var(--suave); font-size: 0.92rem; margin-top: 0.35rem; }
.resultado .error { color: #dc2626; font-weight: 600; }

/* ---------- Lista lateral: botones rectangulares apilados ---------- */
.otras {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.otras h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--suave); margin: 0 0.3rem 0.1rem; }
.otras h3:not(:first-child) { margin-top: 0.7rem; }
.otras a {
  --c1: var(--p1);
  --c2: var(--p3);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.9rem 0.55rem 0.55rem;
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 0;
  color: var(--texto);
  font-weight: 600;
  font-size: 0.94rem;
  box-shadow: var(--sombra-s), 0 0 0 1px var(--borde);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.otras a .ic {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 0;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: var(--tinte);
  border: 1px solid var(--borde-2);
}
.otras a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(var(--p-rgb), 0.5), 0 0 0 1px var(--p2);
  text-decoration: none;
}
.otras a.actual {
  background: var(--tarjeta);
  background: linear-gradient(90deg, var(--tinte), var(--tarjeta));
  box-shadow: inset 4px 0 0 var(--p1), 0 0 0 1px var(--p1), var(--sombra-s);
}
/* ---------- Contenido SEO ---------- */
.contenido-seo {
  background: var(--tarjeta);
  border-radius: 0;
  padding: 2.2rem;
  margin-top: 1.75rem;
  box-shadow: var(--sombra-s), 0 0 0 1px var(--borde);
}
.contenido-seo h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.025em; margin: 1.6rem 0 0.5rem; }
.contenido-seo h2:first-child { margin-top: 0; }
.contenido-seo p, .contenido-seo li { color: var(--texto-sec); font-size: 0.96rem; margin-bottom: 0.5rem; }
.contenido-seo ul, .contenido-seo ol { padding-left: 1.4rem; margin: 0.5rem 0; }
.contenido-seo table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1rem 0; font-size: 0.92rem; border: 1px solid var(--borde); border-radius: 0; overflow: hidden; }
.contenido-seo th, .contenido-seo td { padding: 0.6rem 0.9rem; text-align: left; border-bottom: 1px solid var(--borde); }
.contenido-seo th { background: var(--tinte); color: var(--p1); font-weight: 700; }
.contenido-seo tr:last-child td { border-bottom: none; }
.contenido-seo tr:nth-child(even) td { background: var(--tinte-2); }

/* ---------- Anuncios ---------- */
.anuncio {
  position: relative;
  background: var(--anuncio-bg);
  border: 1px dashed var(--borde-2);
  border-radius: 0;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--suave);
  font-size: 0.82rem;
  text-align: center;
  padding: 1rem;
}
.anuncio::before {
  content: "PUBLICIDAD";
  position: absolute;
  top: 0.55rem;
  left: 0.8rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  opacity: 0.8;
}
.anuncio-horizontal { min-height: 100px; margin: 1.75rem 0; }
.anuncio-cuadrado { aspect-ratio: 1 / 1; min-height: 0; width: 100%; max-width: 300px; margin: 0.5rem auto; }
.anuncio-rect { min-height: 120px; margin: 1.25rem 0; }

/* Banner horizontal superior (728x90 / 970x90 / responsive) */
.banner-superior { max-width: 1160px; margin: 0 auto; padding: 1rem 1.5rem 0; }
.banner-superior .anuncio { min-height: 90px; margin: 0; padding: 0.5rem; }

/* ---------- Pie ---------- */
.pie { background: linear-gradient(180deg, var(--marino), var(--marino-3)); color: var(--cab-texto); margin-top: 3rem; padding-bottom: 3.5rem; }
.pie-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}
.pie a { color: var(--cab-texto); margin-left: 1.4rem; font-weight: 500; }
.pie a:hover { color: #fff; text-decoration: none; }

/* ---------- Páginas de texto ---------- */
.pagina-texto {
  background: var(--tarjeta);
  border-radius: 0;
  padding: 2.5rem;
  box-shadow: var(--sombra-s), 0 0 0 1px var(--borde);
  max-width: 820px;
  margin: 0.5rem auto;
}
.pagina-texto h1 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--p1), var(--p3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pagina-texto h2 { font-size: 1.12rem; margin: 1.6rem 0 0.5rem; }
.pagina-texto p, .pagina-texto li { color: var(--texto-sec); font-size: 0.96rem; margin-bottom: 0.4rem; }
.pagina-texto ul { padding-left: 1.4rem; margin: 0.5rem 0; }

@media (max-width: 640px) {
  .cabecera-inner { padding: 0.4rem 0.5rem; gap: 0.4rem; }
  .logo { font-size: 1.05rem; }
  .logo-icono { margin-right: 0.4rem; }
  .nav-principal { margin-right: 0; }
  .nav-principal a { padding: 0.4rem 0.55rem; font-size: 0.85rem; }
  .buscador-cab { flex: 1 1 auto; min-width: 0; }
  .buscador-cab input { font-size: 16px; }
  .banner-superior { padding: 0.75rem 1rem 0; }
  .contenedor { padding: 1.1rem 1rem 2.5rem; }
  .calculadora, .pagina-texto { padding: 1.4rem 1.25rem; border-radius: 0; }
  .pie a { margin: 0 1rem 0 0; }
}
@media (max-width: 460px) {
  .logo { font-size: 0; }
  .logo-icono { margin-right: 0; }
}
@media (max-width: 640px) {
  .contenido-seo table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .contenido-seo th, .contenido-seo td { padding: 0.5rem 0.65rem; }
}

/* ---------- Componentes de herramientas ---------- */
.campo textarea {
  width: 100%;
  min-height: 190px;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--borde);
  border-radius: 0;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.55;
  background: var(--tinte-2);
  color: var(--texto);
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.campo textarea:focus { outline: none; background: var(--tarjeta); border-color: var(--p1); box-shadow: 0 0 0 4px rgba(var(--p-rgb), 0.15); }

.fila-botones { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.25rem 0 1rem; }
.boton-sec {
  background: var(--tinte);
  color: var(--p1);
  border: 1.5px solid transparent;
  border-radius: 0;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.boton-sec:hover { background: var(--tinte-3); border-color: var(--borde-2); }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin: 0.4rem 0 1.1rem; }
@media (max-width: 520px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { background: linear-gradient(180deg, var(--tarjeta), var(--tinte-2)); border: 1px solid var(--borde); border-radius: 0; box-shadow: var(--sombra-s); padding: 0.8rem 0.5rem; text-align: center; }
.stat strong { display: block; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--p1); line-height: 1.2; }
.stat span { font-size: 0.78rem; color: var(--suave); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.7rem; }
.chip {
  border: 1.5px solid var(--borde);
  background: var(--tarjeta);
  border-radius: 0;
  padding: 0.4rem 0.95rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--texto);
  transition: all 0.12s;
}
.chip:hover, .chip.activo { border-color: var(--p1); color: var(--p1); background: var(--tinte); }

.fila-nota { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.6rem; margin-bottom: 0.6rem; align-items: center; }
.fila-nota input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--borde);
  border-radius: 0;
  font-size: 1rem;
  font-family: inherit;
  background: var(--tinte-2);
  color: var(--texto);
}
.fila-nota input:focus { outline: none; background: var(--tarjeta); border-color: var(--p1); box-shadow: 0 0 0 4px rgba(var(--p-rgb), 0.15); }
.quitar { width: 38px; height: 38px; border: none; border-radius: 0; background: #fee2e2; color: #dc2626; font-weight: 800; cursor: pointer; }
.quitar:hover { background: #fecaca; }

.tabla-res { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: 0.9rem; }
.tabla-res th, .tabla-res td { padding: 0.5rem 0.7rem; text-align: right; border-bottom: 1px solid var(--borde); }
.tabla-res th { background: var(--tinte); color: var(--p1); font-size: 0.8rem; }
.tabla-res th:first-child, .tabla-res td:first-child { text-align: left; }

.display-grande {
  font-size: clamp(2.6rem, 11vw, 4.4rem);
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 1.2rem;
  background: linear-gradient(90deg, var(--p1), var(--p3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tabs { display: flex; gap: 0.35rem; background: var(--tinte); padding: 0.3rem; border-radius: 0; margin-bottom: 1.2rem; }
.tab { flex: 1; border: none; background: transparent; padding: 0.6rem; border-radius: 0; font-weight: 700; font-family: inherit; font-size: 0.95rem; color: var(--suave); cursor: pointer; }
.tab { transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.tab.activo { background: var(--tarjeta); color: var(--p1); box-shadow: 0 4px 12px -4px rgba(var(--p-rgb), 0.35); }
.vueltas { max-height: 180px; overflow: auto; margin-top: 1rem; font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.vueltas div { display: flex; justify-content: space-between; padding: 0.35rem 0.6rem; border-bottom: 1px solid var(--borde); }

.salida-pass { display: flex; gap: 0.5rem; margin-bottom: 0.8rem; }
.salida-pass input {
  flex: 1;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--borde);
  border-radius: 0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 1.15rem;
  background: var(--tinte-2);
  color: var(--texto);
  min-width: 0;
}
.salida-pass .boton-sec { flex: none; }
.fuerza { height: 8px; border-radius: 0; background: var(--tinte-3); overflow: hidden; margin: 0.2rem 0 0.4rem; }
.fuerza i { display: block; height: 100%; width: 0; border-radius: 0; transition: width 0.25s, background 0.25s; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; margin: 0.8rem 0 1.1rem; }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 0.55rem; font-size: 0.92rem; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--p1); }
input[type="range"] { padding: 0; accent-color: var(--p1); background: transparent; border: none; box-shadow: none; }

.lista-num { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.num { background: linear-gradient(135deg, var(--p1), var(--p2)); color: #fff; border-radius: 0; box-shadow: 0 8px 18px -8px rgba(var(--p-rgb), 0.7); padding: 0.45rem 1rem; font-weight: 800; font-size: 1.15rem; }
.num.grande { font-size: 2.6rem; padding: 0.4rem 1.6rem; }
/* ---------- Ruleta ---------- */
.ruleta-wrap { position: relative; width: 100%; max-width: 440px; margin: 0.5rem auto 1.2rem; aspect-ratio: 1; }
.ruleta-wrap canvas { width: 100%; height: 100%; display: block; }
.ruleta-puntero {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; z-index: 2;
  border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--marino);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35));
}
.boton:disabled { opacity: 0.6; cursor: not-allowed; transform: none; filter: none; }
