/*
Theme Name: FormateRD Premium
Theme URI: https://formaterd.com
Author: FormateRD
Author URI: https://formaterd.com
Description: Plataforma educativa digital premium — diseño editorial moderno, tipografía grande, experiencia SaaS. Para docentes innovadores de la República Dominicana.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: formaterd
Tags: education, modern, full-site-editing, custom-colors, custom-menu, featured-images, responsive-layout, wide-blocks
*/

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS — Single source of truth
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* Brand */
  --blue-950: #0a1628;
  --blue-900: #0f1f40;
  --blue-800: #162d5a;
  --blue-700: #1e3a8a;
  --blue-600: #1d4ed8;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;

  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-400: #f87171;
  --red-100: #fee2e2;

  --ink-950: #050810;
  --ink-900: #0d1117;
  --ink-800: #161b27;
  --ink-700: #1f2535;
  --ink-600: #2d3445;
  --ink-400: #4a5568;
  --ink-300: #718096;
  --ink-200: #a0aec0;
  --ink-100: #e2e8f0;
  --ink-50: #f7f8fc;

  --white: #ffffff;
  --off-white: #f9fafb;

  /* Semantic */
  --primary: var(--blue-700);
  --primary-hover: var(--blue-600);
  --accent: var(--red-500);
  --accent-hover: var(--red-600);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-editorial: 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --shadow-blue: 0 8px 30px rgba(30,58,138,0.25);
  --shadow-red:  0 8px 30px rgba(239,68,68,0.25);

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1440px;
  --container-narrow: 820px;
  --header-h: 72px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;
}

/* ═══════════════════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--white);
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink-950);
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: var(--space-32);
}

.section--sm { padding-block: var(--space-20); }
.section--lg { padding-block: calc(var(--space-32) * 1.5); }

/* ═══════════════════════════════════════════════════════════════
   LABELS & BADGES
   ═══════════════════════════════════════════════════════════════ */
.label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
}

.label--primary {
  background: rgba(30,58,138,0.08);
  color: var(--blue-600);
  border-color: rgba(30,58,138,0.15);
}

.label--accent {
  background: rgba(239,68,68,0.08);
  color: var(--red-600);
  border-color: rgba(239,68,68,0.15);
}

.label--dark {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.2);
}

.label--live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 28px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    background var(--duration-base) var(--ease-in-out),
    box-shadow var(--duration-base) var(--ease-in-out),
    transform var(--duration-fast) var(--ease-in-out),
    border-color var(--duration-base) var(--ease-in-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--duration-fast);
}

.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active       { transform: scale(0.98); }

/* Sizes */
.btn--sm  { padding: 9px 20px;  font-size: var(--text-xs); }
.btn--lg  { padding: 16px 36px; font-size: var(--text-base); border-radius: var(--r-lg); }
.btn--xl  { padding: 20px 44px; font-size: var(--text-lg);  border-radius: var(--r-xl); }

/* Variants */
.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-red);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 12px 40px rgba(239,68,68,0.35);
  transform: translateY(-2px);
  color: var(--white);
}

.btn--secondary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-blue);
}

.btn--secondary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(30,58,138,0.3);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--ink-200);
}

.btn--outline:hover {
  background: var(--blue-100);
  border-color: var(--blue-400);
}

/* Arrow icon inside btn */
.btn__arrow {
  transition: transform var(--duration-base) var(--ease-out-expo);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 900;
  height: var(--header-h);
  transition: background var(--duration-slow), box-shadow var(--duration-slow);
}

#site-header.is-transparent {
  background: transparent;
}

#site-header.is-scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 8px 32px rgba(0,0,0,0.35);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Logo */
.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header__logo img {
  height: 38px;
  width: auto;
}

.header__logo-wordmark {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.header__logo-wordmark em {
  font-style: normal;
  color: var(--red-400);
}

/* Nav */
.header__nav {
  display: flex;
  align-items: center;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.header__menu a {
  display: block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  transition: color var(--duration-fast), background var(--duration-fast);
}

.header__menu a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.header__menu a.is-active {
  color: var(--white);
}

.header__cta {
  flex-shrink: 0;
}

/* Mobile toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.12);
}

.header__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--duration-base), opacity var(--duration-base);
  transform-origin: center;
}

.header__toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.header__toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile drawer */
.header__drawer {
  display: none;
  position: fixed;
  inset-block: 0;
  inset-inline: 0;
  background: var(--blue-950);
  z-index: 890;
  padding: calc(var(--header-h) + var(--space-8)) var(--space-8) var(--space-8);
  flex-direction: column;
  gap: var(--space-6);
  overflow-y: auto;
}

.header__drawer.is-open {
  display: flex;
}

.header__drawer .header__menu {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.header__drawer .header__menu a {
  font-size: var(--text-xl);
  padding: var(--space-3) 0;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100dvh;
  min-height: 100vh;
  background: var(--blue-950);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-block-start: var(--header-h);
}

/* Background layers */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(30,58,138,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 70%, rgba(239,68,68,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 90% 90%, rgba(59,130,246,0.12) 0%, transparent 50%);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 40%, transparent 100%);
}

.hero__bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero__bg-orb--1 {
  width: 600px;
  height: 600px;
  top: -10%;
  right: 5%;
  background: radial-gradient(circle, rgba(30,77,216,0.3) 0%, transparent 70%);
}

.hero__bg-orb--2 {
  width: 400px;
  height: 400px;
  bottom: 0;
  left: -5%;
  background: radial-gradient(circle, rgba(239,68,68,0.12) 0%, transparent 70%);
}

/* Grid layout */
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
  padding-block: var(--space-20);
  position: relative;
  z-index: 1;
}

/* Content */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero__label {
  align-self: flex-start;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5.5vw, var(--text-7xl));
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--white);
}

.hero__title-line {
  display: block;
}

.hero__title-highlight {
  display: inline;
  position: relative;
  color: transparent;
  background: linear-gradient(135deg, #60a5fa 0%, #f87171 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  color: rgba(255,255,255,0.62);
  line-height: 1.72;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-2);
}

.hero__trust-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.12);
}

.hero__trust-item {
  display: flex;
  flex-direction: column;
}

.hero__trust-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero__trust-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Image side */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero__image-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}

.hero__image-bg {
  position: absolute;
  bottom: 0;
  inset-inline: -20px;
  height: 85%;
  background: linear-gradient(160deg, rgba(30,58,138,0.5) 0%, rgba(30,77,216,0.3) 100%);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  border: 1px solid rgba(255,255,255,0.08);
}

.hero__image {
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 -20px 60px rgba(59,130,246,0.4));
  max-height: 520px;
}

/* Floating badges */
.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  z-index: 2;
}

.hero__float--a {
  top: 12%;
  left: -12%;
  animation: float-a 5s ease-in-out infinite;
}

.hero__float--b {
  bottom: 18%;
  left: -18%;
  animation: float-b 6s ease-in-out 1.5s infinite;
}

@keyframes float-a {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-b {
  0%, 100% { transform: translateY(0px) rotate(1deg); }
  50%       { transform: translateY(-10px) rotate(-1deg); }
}

.hero__float-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero__float-text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.hero__float-text span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.35);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
  animation: fade-in 1s ease 1.2s both;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scroll-line 2.4s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════ */
.section-head {
  margin-bottom: var(--space-16);
}

.section-head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.section-head--left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.section-head__title {
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-5xl));
  max-width: 14ch;
  line-height: 1.08;
}

.section-head--center .section-head__title {
  max-width: 18ch;
}

.section-head__desc {
  font-size: var(--text-lg);
  color: var(--ink-300);
  line-height: 1.7;
  max-width: 56ch;
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORIES SECTION
   ═══════════════════════════════════════════════════════════════ */
.categories {
  background: var(--off-white);
  border-top: 1px solid var(--ink-100);
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

.cat-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--ink-100);
  cursor: pointer;
  transition:
    transform var(--duration-slow) var(--ease-out-expo),
    box-shadow var(--duration-slow) var(--ease-out-expo),
    border-color var(--duration-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}

.cat-card__stripe {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  border-radius: var(--r-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.cat-card:hover .cat-card__stripe { transform: scaleX(1); }

.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: transparent;
}

.cat-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.cat-card:hover .cat-card__icon { transform: scale(1.12) rotate(6deg); }

.cat-card__name {
  font-size: var(--text-base);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-950);
}

.cat-card__meta {
  font-size: var(--text-xs);
  color: var(--ink-300);
  font-weight: 600;
}

/* Color themes */
.cat--violet { --cc: #7c3aed; --cc-bg: rgba(124,58,237,0.08); }
.cat--blue   { --cc: #1d4ed8; --cc-bg: rgba(29,78,216,0.08);  }
.cat--green  { --cc: #059669; --cc-bg: rgba(5,150,105,0.08);  }
.cat--amber  { --cc: #d97706; --cc-bg: rgba(217,119,6,0.08);  }
.cat--red    { --cc: #dc2626; --cc-bg: rgba(220,38,38,0.08);  }

.cat-card__stripe  { background: var(--cc, var(--primary)); }
.cat-card__icon    { background: var(--cc-bg, rgba(30,58,138,0.08)); color: var(--cc, var(--primary)); }

/* ═══════════════════════════════════════════════════════════════
   APPS SECTION
   ═══════════════════════════════════════════════════════════════ */
.apps { background: var(--white); }

/* Filter pills */
.apps__filters {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.pill {
  padding: 7px 18px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--ink-100);
  background: var(--white);
  color: var(--ink-400);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-in-out);
  font-family: var(--font-body);
}

.pill:hover,
.pill.is-active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Apps grid */
.apps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.app-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--ink-100);
  background: var(--white);
  transition:
    transform var(--duration-slow) var(--ease-out-expo),
    box-shadow var(--duration-slow) var(--ease-out-expo),
    border-color var(--duration-base);
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(30,58,138,0.2);
}

.app-card__thumb {
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-50);
  position: relative;
  overflow: hidden;
}

.app-card__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,58,138,0.04), rgba(239,68,68,0.04));
  transition: opacity var(--duration-base);
}

.app-card:hover .app-card__thumb::before { opacity: 0; }

.app-card__thumb img {
  width: 72px;
  height: 72px;
  border-radius: var(--r-lg);
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.app-card__emoji {
  width: 72px;
  height: 72px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.app-card__body {
  padding: var(--space-5) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.app-card__tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: rgba(30,58,138,0.07);
  padding: 3px 10px;
  border-radius: var(--r-full);
  align-self: flex-start;
}

.app-card__title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--ink-950);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.app-card__desc {
  font-size: var(--text-sm);
  color: var(--ink-300);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card__foot {
  padding: var(--space-4) var(--space-6) var(--space-5);
  border-top: 1px solid var(--ink-50);
}

.app-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary);
  transition: gap var(--duration-base) var(--ease-out-expo), color var(--duration-base);
  padding: var(--space-2) 0;
}

.app-card__link:hover {
  gap: var(--space-3);
  color: var(--primary-hover);
}

.apps__more {
  text-align: center;
  margin-top: var(--space-12);
}

/* ═══════════════════════════════════════════════════════════════
   FEATURED — DARK SECTION
   ═══════════════════════════════════════════════════════════════ */
.featured {
  background: var(--blue-950);
  position: relative;
  overflow: hidden;
}

.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(239,68,68,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 0%, rgba(30,58,138,0.25) 0%, transparent 60%);
  pointer-events: none;
}

.featured__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: center;
  position: relative;
  z-index: 1;
}

.featured__label { margin-bottom: var(--space-6); }

.featured__title {
  font-size: clamp(var(--text-3xl), 3vw, var(--text-5xl));
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
}

.featured__body {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: var(--space-8);
}

.featured__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.featured__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.featured__item-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--red-400);
}

.featured__item-text {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

/* Platform mockup visual */
.featured__visual {
  position: relative;
}

.mockup {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.mockup__dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup__dot--r { background: #ff5f57; }
.mockup__dot--y { background: #ffbd2e; }
.mockup__dot--g { background: #28ca41; }

.mockup__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }

.mockup__row { display: flex; gap: var(--space-3); }

.mockup__app {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  transition: background var(--duration-base);
  cursor: pointer;
}

.mockup__app:hover { background: rgba(255,255,255,0.09); }

.mockup__app-icon {
  font-size: 1.4rem;
  margin-bottom: var(--space-2);
}

.mockup__app-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.mockup__app-cat {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  text-transform: uppercase;
}

.mockup__stats { display: flex; gap: var(--space-3); }

.mockup__stat {
  flex: 1;
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  padding: var(--space-4);
}

.mockup__stat-val {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--white);
  display: block;
}

.mockup__stat-key {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════════════
   BENEFITS
   ═══════════════════════════════════════════════════════════════ */
.benefits { background: var(--off-white); }

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.benefit-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--space-8);
  border: 1px solid var(--ink-100);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    transform var(--duration-slow) var(--ease-out-expo),
    box-shadow var(--duration-slow),
    border-color var(--duration-base);
  position: relative;
  overflow: hidden;
}

.benefit-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.benefit-card:hover::after { transform: scaleX(1); }

.benefit-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  background: rgba(30,58,138,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform var(--duration-slow) var(--ease-out-expo), background var(--duration-base);
}

.benefit-card:hover .benefit-card__icon {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  transform: scale(1.08);
}

.benefit-card__title {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.benefit-card__text {
  font-size: var(--text-sm);
  color: var(--ink-300);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   TEACHER SECTION
   ═══════════════════════════════════════════════════════════════ */
.teacher { background: var(--white); }

.teacher__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-20);
  align-items: center;
}

.teacher__portrait {
  position: relative;
}

.teacher__portrait-bg {
  position: absolute;
  inset: -16px;
  background: linear-gradient(135deg, rgba(30,58,138,0.06), rgba(239,68,68,0.04));
  border-radius: calc(var(--r-2xl) + 16px);
  z-index: 0;
}

.teacher__portrait-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-2xl);
}

.teacher__portrait-frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.teacher__portrait-badge {
  position: absolute;
  bottom: -12px;
  right: -12px;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--ink-100);
  z-index: 2;
  text-align: center;
}

.teacher__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.teacher__name {
  font-size: clamp(var(--text-3xl), 3vw, var(--text-5xl));
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.teacher__role {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary-hover);
}

.teacher__bio {
  font-size: var(--text-base);
  color: var(--ink-400);
  line-height: 1.8;
  max-width: 55ch;
}

.teacher__creds {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--off-white);
  border-radius: var(--r-xl);
  border: 1px solid var(--ink-100);
}

.teacher__cred {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--ink-700);
  font-weight: 500;
}

.teacher__cred-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: rgba(30,58,138,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact { background: var(--ink-50); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-20);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.contact__detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact__detail-text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 2px;
}

.contact__detail-text span {
  font-size: var(--text-sm);
  color: var(--ink-300);
}

.contact__form {
  background: var(--white);
  border-radius: var(--r-2xl);
  padding: var(--space-10);
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-lg);
}

/* Form elements */
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-700);
}

.form__input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  color: var(--ink-900);
  background: var(--white);
  outline: none;
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
  font-family: var(--font-body);
}

.form__input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.form__input::placeholder { color: var(--ink-200); }

textarea.form__input {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form__msg { display: none; padding: var(--space-4) var(--space-5); border-radius: var(--r-md); font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-5); }
.form__msg--success { background: rgba(5,150,105,0.08); color: #059669; border: 1px solid rgba(5,150,105,0.2); }
.form__msg--error   { background: rgba(239,68,68,0.08); color: var(--red-600); border: 1px solid rgba(239,68,68,0.2); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--ink-950);
  padding-block-start: var(--space-20);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__brand {}

.footer__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.footer__logo-text em { font-style: normal; color: var(--red-400); }

.footer__desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  line-height: 1.75;
  max-width: 30ch;
  margin-bottom: var(--space-6);
}

.footer__socials {
  display: flex;
  gap: var(--space-2);
}

.footer__social {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: background var(--duration-base), color var(--duration-base), transform var(--duration-fast);
}

.footer__social:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  transition: color var(--duration-base), padding-left var(--duration-base);
}

.footer__links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-6);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.25);
}

/* ═══════════════════════════════════════════════════════════════
   BLOG — SINGLE POST (MAGAZINE STYLE)
   ═══════════════════════════════════════════════════════════════ */
.post-hero {
  min-height: 65vh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}

.post-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.post-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5,8,16,0.95) 0%,
    rgba(5,8,16,0.6) 40%,
    rgba(5,8,16,0.2) 100%
  );
}

.post-hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-16);
}

.post-hero__cats {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.post-hero__title {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl));
  color: var(--white);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 18ch;
  margin-bottom: var(--space-6);
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  color: rgba(255,255,255,0.55);
  font-size: var(--text-sm);
  font-weight: 500;
}

.post-hero__meta-sep { opacity: 0.3; }

.post-hero__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.post-hero__author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.25);
}

/* Post body */
.post-body {
  padding-block: var(--space-20);
}

.post-body__layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-16);
  align-items: start;
}

.post-body__layout--full {
  grid-template-columns: 1fr;
}

.post-content {
  max-width: var(--container-narrow);
}

/* Prose styles */
.prose { font-size: var(--text-lg); line-height: 1.82; color: var(--ink-700); }
.prose > * + * { margin-top: 1.6em; }

.prose h1 { font-size: clamp(var(--text-3xl), 3vw, var(--text-5xl)); margin-top: 2em; margin-bottom: 0.6em; color: var(--ink-950); }
.prose h2 { font-size: clamp(var(--text-2xl), 2.5vw, var(--text-4xl)); margin-top: 1.8em; margin-bottom: 0.6em; color: var(--ink-950); }
.prose h3 { font-size: var(--text-2xl); margin-top: 1.6em; margin-bottom: 0.5em; color: var(--ink-900); }
.prose h4 { font-size: var(--text-xl); margin-top: 1.4em; font-weight: 700; }

.prose p { margin-top: 1.4em; color: var(--ink-600); }
.prose p:first-child { margin-top: 0; }
.prose p:first-child::first-letter { font-size: 3.8em; float: left; line-height: 0.85; margin: 4px 12px 0 0; font-family: var(--font-editorial); font-weight: 700; color: var(--primary); }

.prose a { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--accent); }

.prose strong { font-weight: 800; color: var(--ink-900); }
.prose em { font-style: italic; color: var(--ink-600); }

.prose ul, .prose ol { padding-left: 1.6em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { padding-left: 1.6em; position: relative; margin-bottom: 0.5em; }
.prose ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.prose ol { list-style: decimal; }
.prose ol li { margin-bottom: 0.5em; }

.prose blockquote {
  margin-block: 2em;
  padding: var(--space-8) var(--space-8) var(--space-8) var(--space-10);
  border-left: 4px solid var(--accent);
  background: var(--off-white);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  font-family: var(--font-editorial);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--ink-700);
  line-height: 1.5;
}

.prose img {
  border-radius: var(--r-xl);
  width: 100%;
  margin-block: var(--space-8);
  box-shadow: var(--shadow-xl);
}

.prose figure { margin-block: var(--space-8); }
.prose figcaption { text-align: center; font-size: var(--text-sm); color: var(--ink-300); margin-top: var(--space-3); }

.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--ink-50);
  color: var(--accent-hover);
  padding: 2px 6px;
  border-radius: 4px;
}

.prose pre {
  background: var(--ink-900);
  color: var(--ink-100);
  padding: var(--space-6);
  border-radius: var(--r-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-block: var(--space-8);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--ink-100);
  margin-block: var(--space-12);
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.sidebar-widget {
  background: var(--off-white);
  border-radius: var(--r-xl);
  padding: var(--space-6);
  border: 1px solid var(--ink-100);
}

.sidebar-widget__title {
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-300);
  margin-bottom: var(--space-5);
}

/* Author box */
.post-author {
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid var(--ink-100);
}

.post-author__inner {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  background: var(--off-white);
  border-radius: var(--r-xl);
  padding: var(--space-8);
  border: 1px solid var(--ink-100);
}

.post-author__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
}

.post-author__name {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: 4px;
}

.post-author__role {
  font-size: var(--text-sm);
  color: var(--primary-hover);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.post-author__bio {
  font-size: var(--text-base);
  color: var(--ink-400);
  line-height: 1.7;
}

/* Related posts */
.post-related {
  padding-block: var(--space-16);
  border-top: 1px solid var(--ink-100);
}

.post-related__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
}

.post-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ═══════════════════════════════════════════════════════════════
   ARCHIVE (Blog Grid)
   ═══════════════════════════════════════════════════════════════ */
.archive-hero {
  background: var(--blue-950);
  padding-block: var(--space-24);
  padding-top: calc(var(--space-24) + var(--header-h));
  position: relative;
  overflow: hidden;
}

.archive-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(30,58,138,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.archive-hero h1 {
  color: var(--white);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.archive-hero p {
  color: rgba(255,255,255,0.55);
  font-size: var(--text-lg);
  position: relative;
  z-index: 1;
}

.archive-body { padding-block: var(--space-20); }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.archive-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--ink-100);
  background: var(--white);
  transition: transform var(--duration-slow) var(--ease-out-expo), box-shadow var(--duration-slow);
  display: flex;
  flex-direction: column;
}

.archive-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.archive-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ink-50);
  position: relative;
}

.archive-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}

.archive-card:hover .archive-card__thumb img { transform: scale(1.06); }

.archive-card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.archive-card__cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.archive-card__title {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink-950);
  flex: 1;
}

.archive-card__title a:hover { color: var(--primary-hover); }

.archive-card__excerpt {
  font-size: var(--text-sm);
  color: var(--ink-300);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--ink-200);
  font-weight: 600;
  padding-top: var(--space-3);
  border-top: 1px solid var(--ink-50);
  margin-top: auto;
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-16); }
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--ink-100);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-400);
  transition: all var(--duration-base);
}
.page-numbers:hover, .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════
   PAGE TEMPLATE
   ═══════════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--gradient-hero, var(--blue-950));
  padding-block: var(--space-24);
  padding-top: calc(var(--space-24) + var(--header-h));
  text-align: center;
}

.page-hero h1 { color: var(--white); font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl)); }
.page-hero p  { color: rgba(255,255,255,0.6); font-size: var(--text-lg); margin-top: var(--space-4); }

.page-body { padding-block: var(--space-20); }

/* ═══════════════════════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════════════════════ */
.error-page {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + var(--space-16)) var(--space-8) var(--space-16);
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 16rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-6);
}

.error-page__title { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); margin-bottom: var(--space-4); }
.error-page__sub { font-size: var(--text-lg); color: var(--ink-300); max-width: 42ch; margin: 0 auto var(--space-10); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-slower) var(--ease-out-expo),
    transform var(--duration-slower) var(--ease-out-expo);
}

.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* Hero animations */
.hero__label   { animation: slide-up 0.7s var(--ease-out-expo) 0.1s both; }
.hero__title   { animation: slide-up 0.8s var(--ease-out-expo) 0.2s both; }
.hero__sub     { animation: slide-up 0.8s var(--ease-out-expo) 0.3s both; }
.hero__actions { animation: slide-up 0.8s var(--ease-out-expo) 0.4s both; }
.hero__trust   { animation: slide-up 0.8s var(--ease-out-expo) 0.5s both; }
.hero__visual  { animation: slide-in-right 1s var(--ease-out-expo) 0.3s both; }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN BAR OFFSET
   ═══════════════════════════════════════════════════════════════ */
.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-header { top: 46px; } }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .categories__grid { grid-template-columns: repeat(3, 1fr); }
  .benefits__grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .hero__grid         { grid-template-columns: 1fr; text-align: center; gap: var(--space-16); }
  .hero__label        { align-self: center; }
  .hero__sub          { margin-inline: auto; }
  .hero__actions      { justify-content: center; }
  .hero__trust        { justify-content: center; }
  .hero__visual       { max-width: 360px; margin-inline: auto; }
  .hero__float        { display: none; }

  .featured__grid     { grid-template-columns: 1fr; gap: var(--space-12); }
  .teacher__grid      { grid-template-columns: 1fr; gap: var(--space-10); }
  .contact__grid      { grid-template-columns: 1fr; gap: var(--space-10); }
  .footer__grid       { grid-template-columns: 1fr 1fr; gap: var(--space-8); }

  .apps__grid         { grid-template-columns: repeat(2, 1fr); }
  .archive-grid       { grid-template-columns: repeat(2, 1fr); }
  .post-body__layout  { grid-template-columns: 1fr; }
  .post-related__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --space-32: 5rem; --space-24: 4rem; --space-20: 3.5rem; }

  .header__nav, .header__cta { display: none; }
  .header__toggle { display: flex; }

  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .apps__grid       { grid-template-columns: 1fr; }
  .benefits__grid   { grid-template-columns: 1fr; }
  .archive-grid     { grid-template-columns: 1fr; }
  .footer__grid     { grid-template-columns: 1fr; gap: var(--space-6); }

  .form__row { grid-template-columns: 1fr; }

  .post-hero__title { font-size: var(--text-4xl); }
  .post-related__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-5); }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════
   PATCH v2.1 — Adiciones mínimas. Sin cambiar estilos existentes.
   ═══════════════════════════════════════════════════════════════ */

/* Botón "Ver más" dentro de archive-card__meta */
.archive-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: var(--text-xs);
  margin-left: auto;
  transition: gap 0.2s ease, color 0.2s ease;
}
.archive-card__link:hover {
  gap: 8px;
  color: var(--primary-hover, var(--blue-600));
}

/* Categoría como enlace en archive-card */
a.archive-card__cat {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.15s ease;
}
a.archive-card__cat:hover { color: var(--primary); }

/* Hover pill: fondo suave adicional en estado normal */
.pill:hover {
  background: var(--blue-100, #dbeafe);
  color: var(--primary);
  border-color: var(--blue-400, #60a5fa);
}

/* Header en páginas internas — ya tiene is-scrolled desde PHP,
   esto asegura que el color sea correcto incluso sin JS */
#site-header.is-scrolled {
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07), 0 4px 24px rgba(0,0,0,0.3);
}

/* Versión mobile: archive-card__meta con botón "Ver más" */
@media (max-width: 480px) {
  .archive-card__meta {
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  .archive-card__link { margin-left: 0; }
}


/* ═══════════════════════════════════════════════════════
   CSS ADICIONAL — Customizer v6
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   FormateRD — CSS Adicional v6 — La versión final
   ═══════════════════════════════════════════════════════ */

:root {
  --frd-blue:    #1e3a8a;
  --frd-blue-l:  #3b82f6;
  --frd-red:     #ef4444;
  --frd-dark:    #0a1628;
  --frd-off:     #f8faff;
  --frd-border:  #e8ecf4;
  --r-card:      20px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-hover: 0 20px 48px rgba(30,58,138,0.15);
}

.section { padding-block: 5rem !important; }
.section-head__title { font-size: clamp(2rem,4vw,3.2rem) !important; line-height:1.1 !important; letter-spacing:-0.025em !important; }
.section-head__desc  { font-size: 1.05rem !important; line-height: 1.7 !important; }
.section-head        { margin-bottom: 3rem !important; }
.section-head--split { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:1rem; margin-bottom:2.5rem !important; }

.hero__bg-orb--3 { position:absolute; bottom:-120px; left:-80px; width:350px; height:350px; border-radius:50%; background:radial-gradient(circle,rgba(59,130,246,0.12),transparent 70%); pointer-events:none; }
.hero__particles { position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
.hero__particle { position:absolute; left:calc(var(--x)*1%); top:calc(var(--y)*1%); width:calc(var(--s)*1px); height:calc(var(--s)*1px); border-radius:50%; background:rgba(59,130,246,0.5); animation:particleFloat calc(var(--d)*1s) calc(var(--delay)*-1s) ease-in-out infinite alternate; }
@keyframes particleFloat { 0%{transform:translateY(0) scale(1);opacity:0.3} 100%{transform:translateY(-18px) scale(1.4);opacity:0.8} }
.hero__label--anim   { animation: fadeSlideUp 0.6s 0.1s both; }
.hero__tl--1         { animation: fadeSlideUp 0.7s 0.25s both; }
.hero__tl--2         { animation: fadeSlideUp 0.7s 0.4s both; }
.hero__sub--anim     { animation: fadeSlideUp 0.6s 0.55s both; }
.hero__nl--anim      { animation: fadeSlideUp 0.6s 0.7s both; }
.hero__actions--anim { animation: fadeSlideUp 0.5s 0.85s both; }
.hero__trust--anim   { animation: fadeSlideUp 0.5s 1s both; }
@keyframes fadeSlideUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.hero__nl-privacy { font-size:0.72rem; color:rgba(255,255,255,0.45); margin:0; }
.hero__nl-msg { padding:10px 14px; border-radius:10px; font-size:0.82rem; font-weight:600; margin-top:4px; }
.hero__nl-msg--ok  { background:rgba(5,150,105,0.15); border:1px solid rgba(5,150,105,0.3); color:#34d399; }
.hero__nl-msg--err { background:rgba(239,68,68,0.12); border:1px solid rgba(239,68,68,0.3); color:#fca5a5; }
.hero__actions--secondary { margin-top:1.25rem; }
.ev3-light { animation:blink 1.8s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
.ev3-eye { animation:eyeGlow 2.5s ease-in-out infinite alternate; }
@keyframes eyeGlow { 0%{fill:#00d4ff;filter:drop-shadow(0 0 3px #00d4ff)} 100%{fill:#60efff;filter:drop-shadow(0 0 8px #60efff)} }
.ev3-antenna  { animation:antennaBlink 1.2s ease-in-out infinite alternate; }
.ev3-antenna2 { animation:antennaBlink 1.7s ease-in-out infinite alternate; }
@keyframes antennaBlink { 0%{opacity:1} 100%{opacity:0.3} }
@keyframes robotFloat { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-14px) rotate(2deg)} }

.editorial-section { background:#ffffff; }
.editorial-grid { display:grid; grid-template-columns:1.6fr 1fr; gap:1.5rem; align-items:start; }
.editorial-card--hero { background:#ffffff; border-radius:var(--r-card); overflow:hidden; border:1px solid var(--frd-border); box-shadow:var(--shadow-card); transition:transform 0.3s cubic-bezier(0.34,1.56,0.64,1),box-shadow 0.3s; }
.editorial-card--hero:hover { transform:translateY(-6px); box-shadow:var(--shadow-hover); }
.editorial-card__thumb { position:relative; aspect-ratio:16/9; overflow:hidden; background:linear-gradient(135deg,var(--frd-blue),var(--frd-blue-l)); }
.editorial-card__thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.5s; }
.editorial-card--hero:hover .editorial-card__thumb img { transform:scale(1.04); }
.editorial-card__overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,0.35),transparent 60%); }
.editorial-card__cat { position:absolute; top:14px; left:14px; background:var(--frd-blue); color:#fff; font-size:0.68rem; font-weight:800; letter-spacing:0.08em; text-transform:uppercase; padding:4px 12px; border-radius:100px; }
.editorial-card__cat--sm { font-size:0.62rem; padding:3px 10px; }
.editorial-card__no-thumb { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:3rem; min-height:220px; }
.editorial-card__no-thumb--sm { min-height:120px; font-size:2rem; }
.editorial-card__body { padding:1.6rem; }
.editorial-card__body--sm { padding:1rem 1.25rem; }
.editorial-card__title { font-size:1.2rem; font-weight:800; letter-spacing:-0.025em; line-height:1.25; color:#050810; margin-bottom:0.6rem; }
.editorial-card__title--sm { font-size:0.95rem; margin-bottom:0.4rem; }
.editorial-card__title a { color:inherit; text-decoration:none; transition:color 0.2s; }
.editorial-card__title a:hover { color:var(--frd-blue); }
.editorial-card__excerpt { font-size:0.9rem; color:#718096; line-height:1.65; margin-bottom:1rem; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.editorial-card__meta { display:flex; align-items:center; gap:0.4rem; font-size:0.72rem; font-weight:600; color:#a0aec0; margin-bottom:1rem; }
.editorial-card__dot { opacity:0.4; }
.editorial-card__btn { display:inline-flex; align-items:center; gap:6px; font-size:0.85rem; font-weight:700; color:var(--frd-blue); text-decoration:none; transition:gap 0.2s,color 0.2s; }
.editorial-card__btn:hover { gap:10px; color:#1d4ed8; }
.editorial-stack { display:flex; flex-direction:column; gap:1.25rem; }
.editorial-card--sm { background:#ffffff; border-radius:16px; overflow:hidden; border:1px solid var(--frd-border); display:grid; grid-template-columns:130px 1fr; box-shadow:var(--shadow-card); transition:transform 0.3s cubic-bezier(0.34,1.56,0.64,1),box-shadow 0.3s; }
.editorial-card--sm:hover { transform:translateY(-4px); box-shadow:var(--shadow-hover); }
.editorial-card__thumb--sm { height:120px; width:130px; aspect-ratio:unset; }
.editorial-card__thumb--sm img { height:100%; }
.editorial-section__all { white-space:nowrap; }
.editorial-stack--5 { display:flex; flex-direction:column; gap:0.75rem; overflow-y:auto; max-height:640px; }
.editorial-stack--5 .editorial-card--sm { display:grid; grid-template-columns:100px 1fr; border-radius:12px; min-height:unset; }
.editorial-stack--5 .editorial-card__thumb--sm { height:80px; width:100px; border-radius:12px 0 0 12px; overflow:hidden; flex-shrink:0; }
.editorial-stack--5 .editorial-card__body--sm { padding:0.7rem 0.9rem; display:flex; flex-direction:column; justify-content:center; gap:0.2rem; }
.editorial-stack--5 .editorial-card__title--sm { font-size:0.82rem; margin:0; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.editorial-stack--5 .editorial-card__meta { font-size:0.68rem; color:#a0aec0; margin-top:2px; }

.stats-strip { position:relative; padding:4rem 0; overflow:hidden; }
.stats-strip__bg { position:absolute; inset:0; background:linear-gradient(135deg,#0a1628 0%,#1e3a8a 50%,#0f172a 100%); }
.stats-strip__grid { position:relative; z-index:1; display:grid; grid-template-columns:repeat(4,1fr); gap:2rem; }
.stats-strip__item { text-align:center; padding:1.5rem 1rem; border-right:1px solid rgba(255,255,255,0.1); }
.stats-strip__item:last-child { border-right:none; }
.stats-strip__icon { font-size:2rem; margin-bottom:0.75rem; }
.stats-strip__number { font-size:clamp(2rem,4vw,3rem); font-weight:900; color:#ffffff; letter-spacing:-0.04em; line-height:1; margin-bottom:0.5rem; display:flex; align-items:baseline; justify-content:center; gap:2px; }
.stats-counter { display:inline-block; }
.stats-strip__label { font-size:0.825rem; font-weight:600; color:rgba(255,255,255,0.6); letter-spacing:0.04em; }

.teacher__timeline { display:flex; flex-direction:column; gap:0; margin:1.5rem 0 2rem; border-left:2px solid #e8f0fe; padding-left:0; }
.teacher__timeline-item { display:flex; align-items:flex-start; gap:14px; padding:0 0 1.25rem 1.5rem; position:relative; }
.teacher__timeline-item::before { content:''; position:absolute; left:-5px; top:10px; width:8px; height:8px; border-radius:50%; background:var(--frd-blue); border:2px solid #ffffff; box-shadow:0 0 0 2px var(--frd-blue); }
.teacher__timeline-dot { width:40px; height:40px; border-radius:10px; background:linear-gradient(135deg,var(--frd-blue),var(--frd-blue-l)); display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0; box-shadow:0 3px 10px rgba(30,58,138,0.2); }
.teacher__timeline-text { font-size:0.9rem; font-weight:600; color:#2d3748; line-height:1.5; padding-top:8px; margin:0; }

.contact-v2 { background:var(--frd-off); }
.contact-v2__grid { display:grid; grid-template-columns:1fr 1.4fr; gap:3rem; align-items:start; }
.contact-v2__map { border-radius:20px; overflow:hidden; box-shadow:var(--shadow-card); border:1px solid var(--frd-border); margin-bottom:1.5rem; }
.contact-v2__rd-map { width:100%; display:block; }
.contact-v2__details { display:flex; flex-direction:column; gap:1rem; }
.contact-v2__detail { display:flex; align-items:center; gap:12px; padding:1rem 1.25rem; background:#ffffff; border:1px solid var(--frd-border); border-radius:14px; box-shadow:0 2px 8px rgba(0,0,0,0.04); }
.contact-v2__detail-icon { font-size:1.4rem; flex-shrink:0; }
.contact-v2__detail-label { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:#a0aec0; margin-bottom:2px; }
.contact-v2__detail-val { font-size:0.9rem; font-weight:600; color:#0d1117; }
.contact-v2__form { background:#ffffff; border:1px solid var(--frd-border); border-radius:20px; padding:2rem; box-shadow:var(--shadow-card); }

.post-hero--clean { background:#0a1628; padding-top:calc(72px + 2rem)!important; padding-bottom:2.5rem!important; min-height:0!important; position:relative; overflow:hidden; }
.post-hero--clean::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 70% 80% at 50% 0%,rgba(30,58,138,0.4),transparent 70%); pointer-events:none; }
.post-hero--clean .container { position:relative; z-index:1; }
.post-hero--clean .post-hero__title { color:#ffffff; font-size:clamp(1.8rem,4vw,3rem); letter-spacing:-0.025em; line-height:1.1; max-width:20ch; margin-bottom:1.25rem; }
.post-hero--clean .post-hero__meta { color:rgba(255,255,255,0.6); display:flex; align-items:center; gap:0.6rem; flex-wrap:wrap; font-size:0.9rem; }
.post-hero--clean .post-hero__author { display:flex; align-items:center; gap:0.5rem; }
.post-hero--clean .post-hero__author span { color:rgba(255,255,255,0.85); font-weight:600; }
.post-hero--clean .post-hero__author-avatar { border:2px solid rgba(255,255,255,0.25); border-radius:50%; }
.post-hero--clean .post-hero__meta-sep { opacity:0.35; }
.post-hero--clean .post-hero__cats { margin-bottom:1rem; display:flex; gap:8px; flex-wrap:wrap; }
.prose p:first-of-type::first-letter,.post-content p:first-of-type::first-letter,.prose p::first-letter { font-size:inherit!important; float:none!important; color:inherit!important; font-weight:inherit!important; font-family:inherit!important; line-height:inherit!important; margin:0!important; }
.post-sidebar { display:flex; flex-direction:column; gap:1.25rem; position:sticky; top:calc(72px + 1.5rem); }
.post-sidebar__widget { background:#ffffff; border:1px solid var(--frd-border); border-radius:16px; padding:1.25rem; box-shadow:0 2px 16px rgba(0,0,0,0.06); }
.post-sidebar__widget-header { display:flex; align-items:center; gap:8px; margin-bottom:1rem; padding-bottom:0.75rem; border-bottom:2px solid #f0f4ff; }
.post-sidebar__widget-icon { font-size:1rem; }
.post-sidebar__widget-title { font-size:0.72rem!important; font-weight:800!important; text-transform:uppercase!important; letter-spacing:0.1em!important; color:#0a1628!important; margin:0!important; }
.post-sidebar__widget--search { padding:1rem; }
.post-sidebar__search-wrap { display:flex; align-items:center; background:#f4f6fb; border:1.5px solid #e2e8f4; border-radius:100px; overflow:hidden; transition:border-color 0.2s,box-shadow 0.2s; }
.post-sidebar__search-wrap:focus-within { border-color:var(--frd-blue); box-shadow:0 0 0 3px rgba(30,58,138,0.1); }
.post-sidebar__search-input { flex:1; border:none; background:transparent; padding:10px 16px; font-size:0.875rem; color:#0d1117; outline:none; font-family:inherit; }
.post-sidebar__search-input::placeholder { color:#a0aec0; }
.post-sidebar__search-btn { display:flex; align-items:center; justify-content:center; width:40px; height:40px; background:var(--frd-blue); color:#ffffff; border:none; cursor:pointer; flex-shrink:0; transition:background 0.2s; border-radius:0 100px 100px 0; }
.post-sidebar__search-btn:hover { background:#1d4ed8; }
.post-sidebar__apps,.post-sidebar__cats,.post-sidebar__recent { display:flex; flex-direction:column; gap:2px; }
.post-sidebar__app-item,.post-sidebar__cat-item,.post-sidebar__recent-item { display:flex; align-items:center; gap:0.75rem; padding:0.6rem 0.5rem; border-radius:10px; text-decoration:none; transition:background 0.2s,transform 0.15s; }
.post-sidebar__app-item:hover,.post-sidebar__cat-item:hover,.post-sidebar__recent-item:hover { background:#f0f4ff; transform:translateX(3px); }
.post-sidebar__app-icon { width:38px; height:38px; border-radius:10px; background:linear-gradient(135deg,var(--frd-blue),var(--frd-blue-l)); display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0; box-shadow:0 3px 8px rgba(30,58,138,0.2); }
.post-sidebar__app-info { display:flex; flex-direction:column; gap:2px; }
.post-sidebar__app-name { font-size:0.85rem; font-weight:700; color:#0d1117; line-height:1.3; }
.post-sidebar__app-cta { font-size:0.7rem; font-weight:600; color:#1d4ed8; }
.post-sidebar__cat-icon { font-size:1rem; width:22px; text-align:center; flex-shrink:0; }
.post-sidebar__cat-name { font-size:0.875rem; font-weight:600; color:#2d3748; flex:1; }
.post-sidebar__cat-count { font-size:0.68rem; font-weight:800; background:#e8f0fe; color:var(--frd-blue); border-radius:100px; padding:2px 9px; min-width:22px; text-align:center; }
.post-sidebar__recent-thumb { width:52px; height:52px; border-radius:10px; overflow:hidden; flex-shrink:0; background:linear-gradient(135deg,var(--frd-blue),var(--frd-blue-l)); }
.post-sidebar__recent-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.post-sidebar__recent-fallback { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:1.3rem; }
.post-sidebar__recent-info { display:flex; flex-direction:column; gap:3px; flex:1; min-width:0; }
.post-sidebar__recent-title { font-size:0.82rem; font-weight:700; color:#0d1117; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.post-sidebar__recent-date { font-size:0.7rem; color:#a0aec0; font-weight:500; }
.post-sidebar__cta-banner { background:linear-gradient(135deg,#0f1f40 0%,var(--frd-blue) 100%); border-radius:16px; padding:1.5rem 1.25rem; text-align:center; overflow:hidden; box-shadow:0 8px 24px rgba(30,58,138,0.25); }
.post-sidebar__cta-title { font-size:0.95rem!important; font-weight:800!important; color:#ffffff!important; margin:0 0 0.4rem!important; line-height:1.3!important; }
.post-sidebar__cta-desc { font-size:0.78rem; color:rgba(255,255,255,0.65); line-height:1.55; margin-bottom:1rem; }
.post-sidebar__cta-btn { display:inline-flex; align-items:center; gap:6px; background:var(--frd-red); color:#ffffff!important; text-decoration:none; padding:10px 20px; border-radius:100px; font-size:0.82rem; font-weight:700; transition:background 0.2s,transform 0.15s; box-shadow:0 4px 14px rgba(239,68,68,0.35); }
.post-sidebar__cta-btn:hover { background:#dc2626; transform:translateY(-2px); }

.appstore-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:8px; margin-top:1.5rem; }
.appstore-grid > div { transition:opacity 0.15s; }
.appstore-grid > div.hidden { display:none; }
.appstore-card { display:flex; align-items:center; gap:12px; padding:12px 14px; background:#ffffff; border:1px solid #eef0f5; border-radius:14px; text-decoration:none; transition:background 0.18s,box-shadow 0.18s,transform 0.18s; box-shadow:0 1px 4px rgba(0,0,0,0.05); }
.appstore-card:hover { background:#f8faff; box-shadow:0 6px 20px rgba(30,58,138,0.1); transform:translateY(-3px); border-color:rgba(30,58,138,0.15); }
.appstore-card__icon { width:42px; height:42px; border-radius:10px; overflow:hidden; flex-shrink:0; background:#f4f6fb; display:flex; align-items:center; justify-content:center; }
.appstore-card__img { width:42px; height:42px; object-fit:cover; display:block; border-radius:10px; }
.appstore-card__info { display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.appstore-card__name { font-size:0.85rem; font-weight:700; color:#0d1117; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.appstore-card__desc { font-size:0.72rem; color:#94a3b8; font-weight:500; line-height:1.3; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.appstore-card__desc--empty { color:#cbd5e1; font-style:italic; }
.appstore-card__domain { display:none !important; }

.site-header, header.site-header, #masthead { padding-top:14px !important; padding-bottom:14px !important; margin-top:0 !important; }
.hero__badge-wrap { display:flex; align-items:center; gap:14px; margin-bottom:1.5rem; }
.hero__image { mix-blend-mode:lighten; border-radius:0 !important; background:transparent !important; }
.hero__image-frame { background:transparent !important; border-radius:0 !important; overflow:visible !important; }
.hero__visual-nl { background:transparent !important; border:none !important; border-radius:0 !important; backdrop-filter:none !important; padding:0 0 1rem 0 !important; }
.hero__visual-nl__title { font-size:0.8rem; font-weight:700; color:rgba(255,255,255,0.6); margin:0 0 0.65rem; letter-spacing:0.04em; text-transform:uppercase; }
.hero__vnl-fields { background:#ffffff; border-radius:12px; padding:5px; box-shadow:0 8px 32px rgba(0,0,0,0.25),0 2px 8px rgba(0,0,0,0.15); border:none !important; display:flex; gap:6px; }
.hero__vnl-input { background:transparent; border:none; padding:10px 14px; font-size:0.875rem; color:#0d1117; outline:none; font-family:inherit; flex:1; min-width:0; border-right:1px solid #e8ecf4; }
.hero__vnl-input:last-of-type { border-right:none; }
.hero__vnl-input::placeholder { color:#a0aec0; font-size:0.85rem; }
.hero__vnl-btn { padding:10px 18px; background:#ef4444; color:#fff; border:none; border-radius:9px; font-size:0.82rem; font-weight:700; cursor:pointer; white-space:nowrap; flex-shrink:0; font-family:inherit; transition:background 0.2s,transform 0.15s,box-shadow 0.2s; box-shadow:0 4px 14px rgba(239,68,68,0.4); }
.hero__vnl-btn:hover { background:#dc2626; transform:translateY(-1px); }
.hero__vnl-privacy { font-size:0.7rem; color:rgba(255,255,255,0.38); margin:0.5rem 0 0; }
.hero__float { display:none !important; }
.hero__robot { display:none !important; }
.hero__robot-badge { display:none !important; }
.hero__blob { display:none !important; }
.hero__visual { background:transparent !important; position:relative; display:flex !important; flex-direction:column !important; min-height:640px !important; overflow:visible !important; justify-content:flex-start !important; }
.hero { padding-top:0 !important; margin-top:0 !important; }
.hero__grid { align-items:flex-start !important; padding-top:1.5rem !important; }
.hero__globe { position:absolute !important; top:50% !important; left:50% !important; transform:translate(-50%,-50%) !important; width:700px !important; height:700px !important; z-index:0 !important; pointer-events:none !important; }
.hero__globe-svg { width:100% !important; height:100% !important; animation:globeSpin 28s linear infinite; }
@keyframes globeSpin { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)} }
.hero__image-frame { position:relative !important; z-index:2 !important; flex:1; display:flex; align-items:flex-end; justify-content:center; }
.hero__visual-nl { position:relative !important; z-index:3 !important; }
.hero__image { mix-blend-mode:lighten !important; width:100% !important; max-width:680px !important; height:auto !important; display:block !important; }
.hero__badge-wrap, .hero__label--anim { margin-top:2.5rem !important; margin-bottom:1.25rem !important; }
.hero__actions--anim .btn--primary, .hero__actions .btn--primary { background:#ef4444 !important; color:#ffffff !important; border:none !important; }
.hero__visual-nl { margin-top:3rem !important; margin-bottom:1rem !important; }
.hero__trust { margin-top:1.5rem !important; padding-top:1.25rem !important; border-top:1px solid rgba(255,255,255,0.1) !important; }
.hero__actions--anim { margin-top:1.25rem !important; margin-bottom:0.5rem !important; }

@media (max-width:1200px) { .appstore-grid { grid-template-columns:repeat(4,1fr); } }
@media (max-width:1100px) { .stats-strip__grid { grid-template-columns:repeat(2,1fr); } .stats-strip__item { border-right:none; border-bottom:1px solid rgba(255,255,255,0.08); } .stats-strip__item:nth-child(2n) { border-bottom:none; } }
@media (max-width:900px) { .editorial-grid { grid-template-columns:1fr; } .editorial-stack { display:grid; grid-template-columns:1fr 1fr; gap:1rem; } .editorial-card--sm { grid-template-columns:1fr; } .editorial-card__thumb--sm { width:100%; height:160px; } .contact-v2__grid { grid-template-columns:1fr; } .editorial-stack--5 { max-height:unset; } .editorial-stack--5 .editorial-card--sm { grid-template-columns:80px 1fr; } .editorial-stack--5 .editorial-card__thumb--sm { width:80px; height:70px; } }
@media (max-width:768px) { .appstore-grid { grid-template-columns:repeat(2,1fr); gap:6px; } .editorial-stack { grid-template-columns:1fr; } .post-sidebar { position:static; margin-top:2.5rem; } .stats-strip__grid { grid-template-columns:repeat(2,1fr); } .hero__vnl-fields { flex-direction:column; } .hero__vnl-input { border-right:none; border-bottom:1px solid #e8ecf4; } .hero__vnl-btn { width:100%; justify-content:center; text-align:center; } }
@media (max-width:480px) { .appstore-grid { grid-template-columns:repeat(2,1fr); } .stats-strip__grid { grid-template-columns:1fr 1fr; } }

.apps__search-wrap { display:flex !important; align-items:center !important; gap:12px !important; background:#ffffff !important; border:2px solid #e8ecf4 !important; border-radius:16px !important; padding:14px 20px !important; box-shadow:0 4px 20px rgba(0,0,0,0.06) !important; max-width:640px !important; margin:0 auto 1.5rem !important; width:100% !important; }
.apps__search-wrap:focus-within { border-color:#1e3a8a !important; box-shadow:0 4px 20px rgba(30,58,138,0.12) !important; }
.apps__search-input { flex:1 !important; border:none !important; background:transparent !important; font-size:1rem !important; color:#0d1117 !important; outline:none !important; font-family:inherit !important; width:100% !important; }
#aplicaciones.apps.section { padding-top:3rem !important; }

.hero__robot-mascot { position:relative !important; top:2 !important; left:150px !important; display:flex !important; justify-content:flex-start !important; margin-top:2.5rem !important; margin-bottom:0.25rem !important; z-index:auto !important; animation:robotFloat 3.5s ease-in-out infinite; filter:drop-shadow(0 8px 20px rgba(0,0,0,0.45)); }
.hero__badge-wrap { display:none !important; }
.hero__robot-top  { display:none !important; }
.hero__label      { display:none !important; }
.hero__content { position:static !important; }
.hero__title { margin-top:0 !important; }
.hero__image { mix-blend-mode:luminosity !important; filter:contrast(1.05) brightness(1.05) !important; }
.hero__image { height:100% !important; object-fit:cover !important; object-position:top center !important; max-height:650px !important; width:auto !important; max-width:100% !important; }
.hero__image-frame { align-items:flex-start !important; overflow:hidden !important; max-height:650px !important; }

.hero__social { position:relative; z-index:3; padding:1rem 0.5rem 0.5rem; text-align:center; }
.hero__social-label { display:block; font-size:0.68rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:rgba(255,255,255,0.4); margin-bottom:0.65rem; }
.hero__social-links { display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; }
.hero__social-link { display:inline-flex; align-items:center; gap:6px; padding:7px 14px; border-radius:100px; font-size:0.75rem; font-weight:700; text-decoration:none; color:#ffffff; transition:transform 0.2s,opacity 0.2s,box-shadow 0.2s; opacity:0.8; backdrop-filter:blur(8px); }
.hero__social-link:hover { opacity:1; transform:translateY(-3px); }
.hero__social-link--fb { background:rgba(24,119,242,0.25); border:1px solid rgba(24,119,242,0.4); }
.hero__social-link--fb:hover { box-shadow:0 6px 20px rgba(24,119,242,0.35); }
.hero__social-link--ig { background:rgba(225,48,108,0.25); border:1px solid rgba(225,48,108,0.4); }
.hero__social-link--ig:hover { box-shadow:0 6px 20px rgba(225,48,108,0.35); }
.hero__social-link--yt { background:rgba(255,0,0,0.2); border:1px solid rgba(255,0,0,0.35); }
.hero__social-link--yt:hover { box-shadow:0 6px 20px rgba(255,0,0,0.3); }
.hero__social-link--tt { background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2); }
.hero__social-link--tt:hover { box-shadow:0 6px 20px rgba(255,255,255,0.15); }
