/* Portada en español: cálida y luminosa — rojo, amarillo y blanco */
:root {
  --bg: #fbf7f2;
  --card: #ffffff;
  --text: #2a1410;
  --muted: #6e5d55;
  --line: #efe3d6;
  --navy: #a51c24;
  --red: #f1bf00;
  --accent: var(--navy);
  --hero-bg: #a51c24;
  --hero-text: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1211;
    --card: #241918;
    --text: #f6ece6;
    --muted: #b9a59b;
    --line: #3d2a27;
    --accent: #ff8a7a;
    --hero-bg: #6e1218;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1211;
  --card: #241918;
  --text: #f6ece6;
  --muted: #b9a59b;
  --line: #3d2a27;
  --accent: #ff8a7a;
  --hero-bg: #6e1218;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  border-bottom: 5px solid var(--red);
}
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 16px 44px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand svg { width: 38px; height: 38px; flex: none; }
.langs { display: flex; gap: 14px; font-size: 0.88rem; }
.langs a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.langs a:hover { color: #ffffff; text-decoration: underline; }

.hero h1 {
  font-size: clamp(2rem, 6.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 44px 0 0;
  max-width: 14em;
}
.hero h1 em { font-style: normal; color: #ffd34d; }
.hero .lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 14px 0 0;
  max-width: 36em;
  line-height: 1.5;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}

.section { margin-top: 36px; }
.section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 14px;
}
.section h2::before {
  content: "";
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: var(--red);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.tool {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tool:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(165, 28, 36, 0.12);
}
.tool:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tool-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg);
}
.tool-title { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.tool-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.tool-go { margin-top: auto; font-size: 0.85rem; font-weight: 700; color: var(--accent); }

.blog {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.blog h2 { margin: 0 0 4px; font-size: 1.2rem; letter-spacing: -0.01em; }
.blog p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--red);
  color: #2a1410;
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 40px;
  line-height: 1.8;
}
.footer a { color: inherit; }
