/*
Theme Name: Spidy Agency
Theme URI: https://spidyagency.com
Author: Yorley Pérez · Spidy Agency
Author URI: https://spidyagency.com
Description: Tema personalizado para Spidy Agency — SEO, branding y diseño web de la mano de Yorley Pérez. Cálido, femenino, lifestyle.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spidy-agency
Tags: seo, branding, lifestyle, feminine, one-column, custom-header, custom-menu, featured-images
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand gradient stops */
  --brand-teal:      #2BD4CB;
  --brand-cyan:      #36AEE6;
  --brand-blue:      #3B5BF5;

  --brand-50:  #EEF3FF;
  --brand-100: #DCE6FF;
  --brand-200: #BBCCFE;
  --brand-300: #8FA8FB;
  --brand-400: #5E7DF7;
  --brand-500: #3B5BF5;
  --brand-600: #2E45C8;
  --brand-700: #25379F;

  --teal-50:  #E6FBF9;
  --teal-100: #C7F5F1;
  --teal-300: #6FE3DB;
  --teal-500: #2BD4CB;
  --teal-700: #169A93;

  --blush-50:  #FCEFEC;
  --blush-100: #FBE4DE;
  --blush-200: #F6C9BF;
  --blush-300: #F3B7AE;
  --blush-400: #EF9D90;
  --blush-500: #EA8A7C;
  --blush-600: #D26F61;
  --blush-700: #B0564A;

  --ivory: #FCF8F4;
  --cream: #F7EFE8;
  --sand:  #EFE4DA;
  --white: #FFFFFF;

  --ink-900: #14233B;
  --ink-800: #1E3050;
  --ink-700: #2E425F;
  --ink-500: #5C6E88;
  --ink-400: #8392A8;
  --ink-300: #AAB6C8;

  --line-warm:   #ECE2D8;
  --line-cool:   #E1E7F0;
  --line-strong: #D4CCBF;

  --success:      #1FA98A;
  --success-soft: #E2F6F0;
  --warning:      #E0A23C;
  --warning-soft: #FBF0DC;
  --error:        #D9655B;
  --error-soft:   #FBE7E4;

  /* Semantic aliases */
  --bg:             var(--ivory);
  --bg-warm:        var(--cream);
  --surface:        var(--white);
  --surface-warm:   var(--cream);
  --surface-sand:   var(--sand);
  --surface-dark:   var(--ink-900);

  --text-strong:         var(--ink-900);
  --text-body:           var(--ink-700);
  --text-muted:          var(--ink-500);
  --text-on-brand:       #FFFFFF;
  --text-on-dark:        #F4F1EC;
  --text-on-dark-muted:  #A7B2C4;
  --text-accent:         var(--blush-600);
  --text-link:           var(--brand-600);

  --border:        var(--line-warm);
  --border-cool:   var(--line-cool);
  --border-strong: var(--line-strong);

  --primary:       var(--brand-500);
  --primary-hover: var(--brand-600);
  --accent:        var(--blush-500);
  --accent-hover:  var(--blush-600);

  --focus-ring: color-mix(in oklab, var(--brand-500) 55%, white);
  --ring: 0 0 0 3px var(--focus-ring);

  /* Gradients */
  --gradient-brand:      linear-gradient(118deg, var(--brand-teal) 0%, var(--brand-cyan) 46%, var(--brand-blue) 100%);
  --gradient-brand-soft: linear-gradient(118deg, #DBF7F4 0%, #E7EEFF 100%);
  --gradient-warm:       linear-gradient(135deg, #FCEFEC 0%, #FCF8F4 60%, #F1F7FF 100%);
  --gradient-ink:        linear-gradient(160deg, #1A2C49 0%, #14233B 100%);

  /* Typography */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body:    "DM Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-tech:    "Space Grotesk", "DM Sans", system-ui, sans-serif;
  --font-heading: var(--font-display);
  --font-eyebrow: var(--font-tech);
  --font-data:    var(--font-tech);

  --w-regular:  400;
  --w-medium:   500;
  --w-semibold: 600;
  --w-bold:     700;

  --fs-display-xl:  clamp(2.75rem, 1.9rem + 3.6vw, 4.75rem);
  --fs-display-lg:  clamp(2.25rem, 1.7rem + 2.2vw, 3.5rem);
  --fs-h1:          clamp(2rem, 1.5rem + 1.8vw, 2.75rem);
  --fs-h2:          clamp(1.6rem, 1.3rem + 1.1vw, 2.1rem);
  --fs-h3:          1.5rem;
  --fs-h4:          1.25rem;
  --fs-lead:        1.275rem;
  --fs-body-lg:     1.125rem;
  --fs-body:        1rem;
  --fs-body-sm:     0.9375rem;
  --fs-caption:     0.8125rem;
  --fs-eyebrow:     0.78rem;

  --lh-display: 1.08;
  --lh-heading: 1.18;
  --lh-body:    1.62;
  --lh-relaxed: 1.78;

  --ls-display: -0.015em;
  --ls-eyebrow: 0.18em;
  --ls-tech:    0.06em;

  /* 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-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 4rem;
  --space-11: 5rem;
  --space-12: 6rem;

  --gutter:           clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
  --container:        1200px;
  --container-narrow: 760px;

  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  36px;
  --r-pill: 999px;

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(34,39,56,.06);
  --shadow-sm: 0 2px 8px rgba(46,49,64,.06), 0 1px 2px rgba(46,49,64,.04);
  --shadow-md: 0 8px 24px rgba(60,52,48,.08), 0 2px 6px rgba(60,52,48,.05);
  --shadow-lg: 0 18px 48px rgba(54,47,44,.10), 0 6px 14px rgba(54,47,44,.06);
  --shadow-xl: 0 32px 80px rgba(40,36,34,.14), 0 10px 24px rgba(40,36,34,.07);
  --shadow-brand: 0 14px 34px rgba(59,91,245,.28);
  --shadow-brand-sm: 0 6px 16px rgba(59,91,245,.22);
  --shadow-blush: 0 12px 30px rgba(234,138,124,.30);

  --blur-sm: 8px;
  --blur-md: 16px;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:   cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast:    140ms;
  --dur:         240ms;
  --dur-slow:    420ms;

  --t-base:      all var(--dur) var(--ease-out);
  --t-color:     color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
  --t-transform: transform var(--dur) var(--ease-soft);

  --z-sticky:  100;
  --z-overlay: 800;
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--w-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--w-semibold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: var(--w-semibold); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--text-link); text-decoration: none; transition: var(--t-color); }
a:hover { color: var(--brand-700); }

img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }
::selection { background: var(--blush-200); color: var(--ink-900); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem);
}
.section--tight {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.section--cream { background: var(--surface-warm); }
.section--dark {
  background: var(--gradient-ink);
  color: var(--text-on-dark);
}

.eyebrow {
  font-family: var(--font-eyebrow);
  font-size: var(--fs-eyebrow);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 0.6rem;
}
.eyebrow--brand { color: var(--brand-600); }
.eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: currentColor;
  display: inline-block;
  opacity: 0.7;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.6rem;
}
.section-head h2 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  margin: 0.4rem 0 0.6rem;
}
.section-head .lead { color: var(--text-muted); }
.section-head--center { margin-inline: auto; text-align: center; }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: var(--w-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.72rem;
  border-radius: var(--r-pill);
  line-height: 1;
}
.badge--teal    { background: var(--teal-50); color: var(--teal-700); }
.badge--blush   { background: var(--blush-50); color: var(--blush-700); }
.badge--brand   { background: var(--brand-50); color: var(--brand-700); }
.badge--gradient {
  background: var(--gradient-brand);
  color: #fff;
}

/* Buttons */
.btn, .btn-brand, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.5rem;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--w-semibold);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: var(--t-base);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-brand {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-brand-sm);
}
.btn-brand:hover {
  color: #fff;
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--brand-600);
  border-color: var(--brand-300);
}
.btn-outline:hover {
  background: var(--brand-50);
  border-color: var(--brand-500);
  color: var(--brand-700);
}
.btn-white {
  background: #fff;
  color: var(--brand-700);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  padding: 0.72rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--w-semibold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--t-base);
}
.btn-white:hover {
  background: var(--brand-50);
  color: var(--brand-800);
}
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: color-mix(in oklab, var(--ivory) 82%, transparent);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in oklab, var(--ivory) 94%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 76px;
}

.site-logo img {
  height: 42px;
  width: auto;
}
.site-logo:hover { opacity: 0.88; }

.main-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  list-style: none;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: var(--w-medium);
  color: var(--text-body);
  position: relative;
  padding: 0.2rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gradient-brand);
  transition: right var(--dur) var(--ease-out);
}
.main-nav a:hover { color: var(--brand-600); }
.main-nav a:hover::after { right: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--text-body);
  font-size: 1.2rem;
  line-height: 1;
}
.menu-toggle:hover { background: var(--brand-50); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem var(--gutter);
  gap: 0.2rem;
}
.mobile-nav.is-open { display: flex; }
/* WordPress wp_nav_menu outputs a <ul> inside the nav — make it visible */
.mobile-nav ul,
.mobile-nav .mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.mobile-nav li {
  display: block;
  width: 100%;
}
.mobile-nav a {
  display: block;
  padding: 0.75rem 0.4rem;
  font-size: 1rem;
  font-weight: var(--w-medium);
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-nav li:last-child a { border-bottom: none; }
.mobile-nav a:hover { color: var(--brand-600); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 1rem + 5vw, 5rem);
  padding-bottom: clamp(3rem, 2rem + 5vw, 6rem);
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gradient-warm);
  opacity: 0.9;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
}

.hero-copy .eyebrow { color: var(--brand-600); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0.9rem 0 1rem;
  color: var(--text-strong);
}
.hero-title em { font-style: italic; color: var(--brand-600); }
.hero-lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--text-body);
  max-width: 30ch;
}
.hero-cta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.hero-trust svg {
  color: var(--blush-500);
  width: 18px; height: 18px;
  display: inline;
}
.hero-stats {
  display: flex;
  gap: 2.4rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-stat__value {
  font-family: var(--font-data);
  font-size: 1.75rem;
  font-weight: var(--w-bold);
  color: var(--text-strong);
  line-height: 1;
}
.hero-stat__value--gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat__label {
  font-family: var(--font-tech);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Hero visual panel */
.hero-visual { position: relative; aspect-ratio: 1 / 1.02; }
.collage-panel {
  position: absolute;
  inset: 6% 4%;
  border-radius: var(--r-2xl);
  background: var(--gradient-brand);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.collage-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 80% 10%, rgba(255,255,255,.35), transparent 50%);
}
.collage-panel img.hero-mark {
  width: 46%;
  position: absolute;
  right: 9%; top: 6%;
  opacity: 0.9;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.18));
  z-index: 1;
}
.collage-photo {
  position: absolute;
  inset: 10% 9% 16% 9%;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--blush-100);
}
.collage-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.collage-chip {
  position: absolute;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
}
.collage-chip--rank {
  right: -3%; top: 20%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.chip-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chip-icon svg { width: 18px; height: 18px; }
.chip-rank-label {
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-strong);
}
.chip-rank-sub {
  font-family: var(--font-tech);
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.collage-chip--stat {
  left: -4%; bottom: 14%;
}
.chip-stat-value {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-strong);
  margin-top: 0.4rem;
}
.chip-stat-label {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem;
  transition: var(--t-base);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-cool);
}
.service-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 1.4rem;
}
.service-card h3 {
  font-size: 1.3rem;
  margin: 0.4rem 0 0.5rem;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.service-link {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: var(--w-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
}
.service-link:hover { color: var(--brand-800); gap: 0.5rem; }

/* ============================================================
   ABOUT / CONÓCEME SECTION (Yorley Pérez — Personal Brand)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.about-visual { position: relative; }
.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  background: var(--gradient-brand-soft);
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.about-photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand-soft);
  color: var(--ink-400);
  font-family: var(--font-tech);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 2rem;
}
.about-badge {
  position: absolute;
  left: -1.2rem;
  bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.55rem 0.95rem 0.55rem 0.6rem;
  box-shadow: var(--shadow-lg);
}
.about-badge img {
  width: 34px; height: 34px;
}
.about-badge-name {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--w-semibold);
  font-size: 0.92rem;
  color: var(--text-strong);
  line-height: 1.1;
}
.about-badge-role {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.08;
  margin: 0.7rem 0 1.1rem;
}
.about-title em { font-style: italic; color: var(--brand-600); }
.about-lead {
  font-size: clamp(1.02rem, 1rem + 0.35vw, 1.22rem);
  color: var(--text-body);
  max-width: 46ch;
}
.about-points {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.about-points li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.98rem;
  color: var(--text-body);
}
.about-point-icon {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 11px;
  background: var(--blush-50);
  color: var(--blush-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.about-foot {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  flex-wrap: wrap;
}
.about-sign {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--brand-600);
  line-height: 1;
}

/* ============================================================
   RESULTS DARK BAND
   ============================================================ */
.results-band {
  background: var(--gradient-ink);
  color: var(--text-on-dark);
  border-radius: clamp(20px, 3vw, 40px);
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 4vw, 4rem);
}
.results-band h2 { color: #fff; margin-top: 0.6rem; margin-bottom: 1.8rem; }
.results-band .eyebrow { color: var(--brand-300); }
.results-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.4rem;
}
.stat-item { display: flex; flex-direction: column; gap: 0.15rem; }
.stat-value {
  font-family: var(--font-data);
  font-size: 2.2rem;
  font-weight: var(--w-bold);
  color: #fff;
  line-height: 1;
}
.stat-value--gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.stat-delta {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  color: var(--teal-300);
  margin-top: 0.2rem;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 1.6vw, 2.1rem);
  line-height: 1.32;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-style: italic;
}
.testimonial-quote em { color: var(--brand-300); font-style: normal; }
.testimonial-by {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blush-200);
  color: var(--blush-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: var(--w-bold);
  font-size: 1rem;
  border: 2px solid var(--blush-300);
  flex: none;
}
.testimonial-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: var(--w-semibold);
  color: #fff;
}
.testimonial-role {
  font-family: var(--font-tech);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

/* ============================================================
   SEO GUIDE DOWNLOAD BANNER
   ============================================================ */
.guide-banner {
  background: var(--gradient-brand);
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) clamp(1.5rem, 1rem + 4vw, 3.5rem);
  color: #fff;
  margin-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.guide-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 90% -10%, rgba(255,255,255,.22), transparent 60%);
  pointer-events: none;
}
.guide-banner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}
.guide-banner .eyebrow { color: rgba(255,255,255,.75); }
.guide-banner .eyebrow::before { background: rgba(255,255,255,.6); }
.guide-banner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 1.3rem + 1.8vw, 2.4rem);
  margin: 0.4rem 0 0.6rem;
}
.guide-banner p {
  color: rgba(255,255,255,.88);
  font-size: var(--fs-body-lg);
  margin: 0;
  max-width: 42ch;
}
.guide-form {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
  min-width: 280px;
}
.guide-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1.1rem;
  border-radius: var(--r-pill);
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.15);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  backdrop-filter: blur(4px);
  outline: none;
  transition: var(--t-base);
}
.guide-form input[type="email"]::placeholder { color: rgba(255,255,255,.6); }
.guide-form input[type="email"]:focus { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.2); }
.guide-form .btn-white { flex: none; }
.guide-form-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,.6);
  margin-top: 0.5rem;
  width: 100%;
}
.guide-confirm {
  display: none;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-size: var(--fs-body-lg);
  font-weight: var(--w-semibold);
}
.guide-confirm.is-shown { display: flex; }

/* ============================================================
   SEO ANALYSIS WIDGET
   ============================================================ */
.seo-widget-section {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}
.seo-widget-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  max-width: 720px;
  margin-inline: auto;
}
.seo-widget-head { text-align: center; margin-bottom: 1.8rem; }
.seo-widget-head h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  margin: 0.4rem 0 0.5rem;
}
.seo-widget-head p { color: var(--text-muted); font-size: var(--fs-body-lg); margin: 0; }

.seo-form {
  display: flex;
  gap: 0.6rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.35rem 0.35rem 1.2rem;
  transition: border-color var(--dur) var(--ease-out);
}
.seo-form:focus-within { border-color: var(--brand-400); }
.seo-form input[type="url"],
.seo-form input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-body);
  outline: none;
  min-width: 0;
}
.seo-form input::placeholder { color: var(--text-muted); }
.seo-form button {
  flex: none;
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 0.65rem 1.4rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--w-semibold);
  cursor: pointer;
  transition: var(--t-base);
  box-shadow: var(--shadow-brand-sm);
}
.seo-form button:hover { box-shadow: var(--shadow-brand); transform: scale(1.02); }

.seo-results-panel { display: none; margin-top: 1.6rem; }
.seo-results-panel.is-visible { display: block; }

.seo-loading {
  text-align: center;
  padding: 2.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.seo-loading p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.seo-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--brand-100);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.seo-score-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.2rem;
}
.seo-score-ring {
  position: relative;
  width: 110px; height: 110px;
  flex: none;
}
.seo-score-ring svg {
  width: 100%; height: 100%;
  overflow: visible;
}
.ring-track {
  fill: none;
  stroke: var(--sand);
  stroke-width: 9;
}
.ring-fill {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 326.726;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  transition: stroke-dashoffset 1.2s var(--ease-out);
}
.seo-score-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}
.seo-score-num {
  font-family: var(--font-tech);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1;
}
.seo-score-label-sm {
  font-family: var(--font-tech);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.seo-score-meta {}
.seo-domain {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: var(--w-semibold);
  color: var(--text-strong);
  margin-bottom: 0.3rem;
}
.seo-pass-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.seo-checks {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.seo-check {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
}
.seo-check.is-pass { background: var(--success-soft); }
.seo-check.is-fail { background: var(--error-soft); }
.seo-check__icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex: none;
}
.is-pass .seo-check__icon { background: var(--success); color: #fff; }
.is-fail .seo-check__icon { background: var(--error); color: #fff; }
.seo-check__label {
  font-weight: var(--w-semibold);
  color: var(--text-strong);
}
.seo-check__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 0.3rem;
}
.seo-widget-cta {
  background: var(--gradient-brand-soft);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.seo-widget-cta p {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-body);
  min-width: 200px;
}
.seo-widget-cta a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 0.6rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: var(--w-semibold);
  box-shadow: var(--shadow-brand-sm);
  text-decoration: none;
  transition: var(--t-base);
}
.seo-widget-cta a:hover { color: #fff; box-shadow: var(--shadow-brand); transform: translateY(-1px); }
.seo-widget-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  margin-top: 0.8rem;
  transition: var(--t-color);
}
.seo-widget-reset:hover { color: var(--brand-600); }

/* ---- AI-powered badge ---- */
.ai-powered-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #EEF3FF 0%, #DBF7F4 100%);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-pill);
  padding: 0.3rem 0.85rem;
  font-family: var(--font-tech);
  font-size: 0.74rem;
  color: var(--brand-700);
  margin-top: 0.7rem;
}
.ai-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gradient-brand);
  animation: ai-pulse 2s ease-in-out infinite;
  flex: none;
}
@keyframes ai-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

/* ---- AI loading messages ---- */
.seo-loading-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.8rem;
  width: 100%;
  max-width: 280px;
}
.seo-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.seo-step.is-active   { opacity: 1; color: var(--brand-600); }
.seo-step.is-done     { opacity: 0.7; }
.seo-step-icon        { font-size: 0.75rem; width: 16px; text-align: center; flex: none; }

/* ---- AI report header ---- */
.ai-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.ai-report-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-tech);
  font-size: 0.68rem;
  font-weight: var(--w-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-50);
  border-radius: var(--r-pill);
  padding: 0.2rem 0.65rem;
}

/* ---- Executive summary ---- */
.seo-summary {
  background: var(--gradient-brand-soft);
  border-radius: var(--r-lg);
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
  border-left: 3px solid var(--brand-400);
}

/* ---- Strengths + Problems columns ---- */
.seo-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.seo-col-title {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: var(--w-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.seo-col-title--green { color: var(--success); }
.seo-col-title--red   { color: var(--error); }
.seo-strength-list, .seo-problem-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.seo-strength-item {
  display: flex; gap: 0.4rem; align-items: flex-start;
  font-size: 0.84rem; color: var(--text-body);
}
.seo-strength-item::before { content: "✓"; color: var(--success); font-weight: 700; flex: none; }
.seo-problem-item {
  display: flex; gap: 0.4rem; align-items: flex-start;
  font-size: 0.84rem; color: var(--text-body);
}
.seo-problem-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 5px;
}
.seo-problem-dot--alto  { background: var(--error); }
.seo-problem-dot--medio { background: var(--warning); }
.seo-problem-dot--bajo  { background: var(--ink-400); }

/* ---- Metrics grid ---- */
.seo-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.seo-metric-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.65rem 0.8rem;
}
.seo-metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}
.seo-metric-name {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: var(--w-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.seo-metric-score {
  font-family: var(--font-data);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-strong);
}
.seo-metric-bar {
  height: 5px;
  background: var(--sand);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}
.seo-metric-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s var(--ease-out);
  width: 0;
}
.seo-metric-fill--ok      { background: var(--success); }
.seo-metric-fill--warning { background: var(--warning); }
.seo-metric-fill--error   { background: var(--error); }
.seo-metric-nota {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ---- Problem cards (expanded) ---- */
.seo-problems-section {
  margin-bottom: 1.2rem;
}
.seo-problems-title {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: var(--w-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.seo-problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--error);
  border-radius: var(--r-md);
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.5rem;
}
.seo-problem-card.impacto-medio { border-left-color: var(--warning); }
.seo-problem-card.impacto-bajo  { border-left-color: var(--ink-300); }
.seo-problem-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.seo-problem-card-title {
  font-size: 0.88rem;
  font-weight: var(--w-semibold);
  color: var(--text-strong);
}
.seo-impact-tag {
  font-family: var(--font-tech);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: var(--r-pill);
  flex: none;
}
.seo-impact-tag.alto  { background: var(--error-soft);   color: var(--error); }
.seo-impact-tag.medio { background: var(--warning-soft); color: #B07B10; }
.seo-impact-tag.bajo  { background: var(--brand-50);     color: var(--ink-500); }
.seo-problem-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  line-height: 1.5;
}
.seo-problem-fix {
  font-size: 0.82rem;
  color: var(--success);
  font-weight: var(--w-medium);
}
.seo-problem-fix::before { content: "→ "; }

/* ---- Recommendations ---- */
.seo-recs-title {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: var(--w-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.seo-rec-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.seo-rec-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-body);
}
.seo-rec-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  margin-top: 1px;
}
.seo-rec-meta {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.2rem;
  flex-wrap: wrap;
}
.seo-rec-tag {
  font-family: var(--font-tech);
  font-size: 0.64rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand-700);
}
.seo-rec-time {
  font-family: var(--font-tech);
  font-size: 0.64rem;
  color: var(--text-muted);
}

/* Responsive: metrics + two-cols en móvil */
@media (max-width: 560px) {
  .seo-two-cols  { grid-template-columns: 1fr; }
  .seo-metrics   { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG LOOP (index.php)
   ============================================================ */
.blog-hero {
  background: var(--gradient-warm);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.2rem);
  margin-bottom: 0.5rem;
}
.blog-hero p { color: var(--text-muted); margin: 0; }

.blog-loop {
  padding-block: clamp(2.5rem, 2rem + 3vw, 5rem);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--t-base);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.post-card:hover .post-card__title { color: var(--brand-600); }

.post-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--gradient-brand-soft);
  overflow: hidden;
  position: relative;
}
.post-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-400);
  font-size: 2rem;
}

.post-card__body {
  padding: 1.2rem 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}
.post-card__date {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.post-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--w-semibold);
  color: var(--text-strong);
  line-height: 1.22;
  margin: 0 0 0.6rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.post-card__excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.post-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: var(--w-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-600);
  text-decoration: none;
  margin-top: 1rem;
  transition: gap var(--dur) var(--ease-soft);
}
.post-card:hover .post-card__read-more { gap: 0.5rem; }

.no-posts {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}
.no-posts h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-body);
  font-family: var(--font-tech);
  font-size: 0.88rem;
  font-weight: var(--w-medium);
  text-decoration: none;
  transition: var(--t-base);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
}
.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* ============================================================
   SINGLE POST (single.php)
   ============================================================ */
.single-hero {
  background: var(--gradient-warm);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.single-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 1.4rem;
  transition: var(--t-color);
}
.single-back:hover { color: var(--brand-600); }
.single-hero .post-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.single-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 2.5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 20ch;
}
.single-byline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.single-featured-image {
  max-height: 480px;
  overflow: hidden;
  border-radius: var(--r-xl);
  margin-block: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}
.single-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-content {
  padding-block: clamp(2rem, 1.5rem + 3vw, 4rem);
}
.entry-content {
  max-width: 680px;
  color: var(--text-body);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
}
.entry-content h2, .entry-content h3, .entry-content h4 {
  margin-top: 2em;
}
.entry-content p { margin-bottom: 1.3em; }
.entry-content ul, .entry-content ol {
  margin-bottom: 1.3em;
  padding-left: 1.5em;
  display: block;
}
.entry-content li { margin-bottom: 0.4em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  border-left: 3px solid var(--brand-300);
  margin: 1.5em 0;
  padding: 0.8rem 1.2rem;
  background: var(--brand-50);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
  color: var(--text-strong);
}
.entry-content img {
  border-radius: var(--r-lg);
  margin-block: 1.5rem;
  box-shadow: var(--shadow-md);
}
.entry-content code {
  font-family: monospace;
  background: var(--brand-50);
  color: var(--brand-700);
  padding: 0.1em 0.4em;
  border-radius: var(--r-xs);
  font-size: 0.9em;
}

.single-author-box {
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem 1.8rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-top: 3rem;
}
.author-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--gradient-brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: var(--w-bold);
  font-size: 1.2rem;
  color: var(--brand-600);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--brand-600);
  margin-bottom: 0.2rem;
}
.author-role {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.author-bio { font-size: 0.92rem; color: var(--text-muted); }

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.nav-prev, .nav-next {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: var(--t-base);
}
.nav-prev:hover, .nav-next:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
}
.nav-next { text-align: right; }
.nav-dir {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
}
.nav-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--w-semibold);
  color: var(--text-strong);
}

/* ============================================================
   GENERIC PAGE (page.php)
   ============================================================ */
.page-hero {
  background: var(--gradient-warm);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4rem);
}
.page-title {
  font-size: clamp(1.8rem, 1.4rem + 2vw, 3rem);
  margin: 0;
}
.page-content {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.8rem;
}
.contact-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.contact-item-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--blush-100);
  color: var(--blush-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 1.1rem;
}
.contact-item h4 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  margin: 0 0 0.15rem;
  color: var(--text-strong);
}
.contact-item p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-md);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-group label {
  font-size: 0.88rem;
  font-weight: var(--w-semibold);
  color: var(--text-strong);
  font-family: var(--font-body);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  transition: border-color var(--dur) var(--ease-out);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-50); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit .btn-brand { width: 100%; justify-content: center; padding: 0.85rem 1.5rem; font-size: 1rem; }
.form-privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink-900);
  color: var(--text-on-dark);
  padding-block: 3.5rem 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand {}
.footer-logo { height: 44px; width: auto; margin-bottom: 0.8rem; }
.footer-blurb {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  max-width: 32ch;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--t-base);
}
.footer-social a:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }

.footer-col h5 {
  font-family: var(--font-tech);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin: 0 0 1rem;
}
.footer-col a {
  display: block;
  color: var(--text-on-dark);
  font-size: 0.92rem;
  padding: 0.3rem 0;
  opacity: 0.85;
  text-decoration: none;
  transition: var(--t-color);
}
.footer-col a:hover { opacity: 1; color: var(--brand-300); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-tag {
  font-family: var(--font-tech);
  letter-spacing: 0.06em;
}

/* ============================================================
   WORDPRESS CORE OVERRIDES
   ============================================================ */
.wp-block-image img { border-radius: var(--r-lg); }
.aligncenter { text-align: center; margin-inline: auto; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-banner-inner { grid-template-columns: 1fr; }
  .guide-form { min-width: auto; }
}

@media (max-width: 920px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; }
  /* Contain the collage visual and reposition chips inside the frame */
  .hero-visual {
    max-width: 420px;
    margin-inline: auto;
    overflow: hidden;   /* clips chips so they don't bleed into next sections */
  }
  /* Move chips inside the container (no negative offsets) */
  .collage-chip--rank { right: 3%; top: 6%; }
  .collage-chip--stat { left: 3%; bottom: 6%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .results-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.4rem; }
  .footer-top { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .seo-score-row { flex-direction: column; align-items: center; text-align: center; }
  .guide-banner-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  /* Hide the floating stat chips on small phones — too cramped */
  .collage-chip { display: none; }
  /* Let the collage panel use full width of the visual */
  .hero-visual { max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
