/*
 * Torrox Hub Theme — Main Stylesheet
 * Mobile-first, Bootstrap 5 + Font Awesome 6
 * Target: Lighthouse 100/100
 *
 * @package TorroxHub
 */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --th-blue:         #1a3a8f;
  --th-blue-dark:    #0f2560;
  --th-blue-light:   #2550b8;
  --th-orange:       #f47920;
  --th-orange-light: #ff9a3c;
  --th-orange-dark:  #d4620a;
  --th-white:        #ffffff;
  --th-off-white:    #f8f9fc;
  --th-gray-100:     #f0f2f8;
  --th-gray-200:     #e2e6f0;
  --th-gray-400:     #9aa0b8;
  --th-gray-600:     #5a607a;
  --th-gray-800:     #1e2340;
  --th-text:         #1e2340;
  --th-text-muted:   #6b7194;
  --th-radius:       16px;
  --th-radius-sm:    8px;
  --th-radius-pill:  50px;
  --th-shadow:       0 4px 24px rgba(26,58,143,.10);
  --th-shadow-lg:    0 12px 48px rgba(26,58,143,.18);
  --th-transition:   0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* account for sticky header */
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--th-text);
  background: var(--th-white);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--th-gray-800);
}

a { transition: color var(--th-transition); }
img { max-width: 100%; height: auto; display: block; }

/* WordPress generated classes */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--th-text-muted); text-align: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { font-family: 'Outfit', sans-serif; font-weight: 600; transition: all var(--th-transition); border-radius: var(--th-radius-pill); }

.th-btn-primary {
  background: var(--th-orange);
  color: var(--th-white) !important;
  border: 2px solid var(--th-orange);
  box-shadow: 0 4px 16px rgba(244,121,32,.35);
}
.th-btn-primary:hover {
  background: var(--th-orange-dark);
  border-color: var(--th-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,121,32,.4);
  color: var(--th-white) !important;
}

.th-btn-outline-white {
  background: transparent;
  color: var(--th-white) !important;
  border: 2px solid rgba(255,255,255,.45);
}
.th-btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.8);
  color: var(--th-white) !important;
}

.th-btn-outline-blue {
  background: transparent;
  color: var(--th-blue) !important;
  border: 2px solid var(--th-blue);
}
.th-btn-outline-blue:hover {
  background: var(--th-blue);
  color: var(--th-white) !important;
}

.th-btn-white {
  background: var(--th-white);
  color: var(--th-blue) !important;
  border: 2px solid var(--th-white);
}
.th-btn-white:hover {
  background: var(--th-gray-100);
  color: var(--th-blue-dark) !important;
}

/* Alias used in mobile offcanvas */
.th-btn-outline {
  background: transparent;
  color: rgba(255,255,255,.88) !important;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: var(--th-radius-pill);
}
.th-btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.65);
  color: var(--th-white) !important;
}

/* Icon vertical alignment fix — applies globally */
.btn i, a i, span i, p i, li i, strong i, label i { vertical-align: middle; }
/* Inline icons in headings/links sit on baseline */
h1 i, h2 i, h3 i { vertical-align: -0.1em; }

.th-btn-cta {
  background: var(--th-orange);
  color: var(--th-white) !important;
  border: 2px solid var(--th-orange);
  padding: 10px 22px;
  font-size: .9rem;
  border-radius: var(--th-radius-pill);
}
.th-btn-cta:hover {
  background: var(--th-orange-dark);
  border-color: var(--th-orange-dark);
  color: var(--th-white) !important;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.th-topbar {
  background: var(--th-blue-dark);
  padding: 7px 0;
  font-size: 13px;
  color: rgba(255,255,255,.88); /* improved contrast on dark bg */
}
.th-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.th-topbar__contact {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.th-topbar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.88); /* white on #0f2560 ≫ 12:1 ✓ AAA */
  font-size: 13px;
  text-decoration: none;
  transition: color var(--th-transition);
}
.th-topbar__item i { color: var(--th-orange-light); font-size: 12px; }
.th-topbar__item:hover { color: var(--th-white); }
.th-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.th-topbar__wa {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5dd87b; /* lightened green — better contrast on dark bg */
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--th-transition);
}
.th-topbar__wa i { font-size: 15px; }
.th-topbar__wa:hover { color: #25d366; }
.th-lang-switcher { display: flex; gap: 4px; }
.th-lang-btn {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.88);
  background: transparent;
  text-decoration: none;
  transition: all var(--th-transition);
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
}
.th-lang-btn.active,
.th-lang-btn:hover {
  background: var(--th-orange);
  border-color: var(--th-orange);
  color: var(--th-white);
}

/* ============================================================
   HEADER
   ============================================================ */
.th-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--th-white);
  box-shadow: 0 2px 16px rgba(26,58,143,.07);
  transition: box-shadow var(--th-transition);
}
.th-header--scrolled {
  box-shadow: 0 4px 24px rgba(26,58,143,.14);
}
.th-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}
.th-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.th-logo__text { line-height: 1; }
.th-logo__name {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--th-blue);
}
.th-logo__tagline {
  display: block;
  font-size: .65rem;
  font-weight: 500;
  color: var(--th-orange);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 1px;
}
/* ============================================================
   HEADER
   ============================================================ */
.th-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--th-white);
  box-shadow: 0 2px 16px rgba(26,58,143,.07);
  transition: box-shadow var(--th-transition);
}
.th-header--scrolled {
  box-shadow: 0 4px 24px rgba(26,58,143,.16);
}
.th-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

/* Logo */
.th-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.th-logo__text { line-height: 1; }
.th-logo__name {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--th-blue);
}
.th-logo__tagline {
  display: block;
  font-size: .65rem;
  font-weight: 500;
  color: var(--th-orange-dark); /* darker orange for contrast on white */
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ============================================================
   HEADER NAV — Desktop
   Alta especificidad para anular Bootstrap list styles
   ============================================================ */

/* Wrapper flex del nav */
.th-header .th-nav {
  display: flex;
  align-items: center;
}

/*
 * La <ul> que genera wp_nav_menu.
 * Bootstrap pone list-style y padding en ul — los anulamos aquí
 * con alta especificidad (#site-navigation .th-nav__menu).
 */
#site-navigation .th-nav__menu,
.th-nav .th-nav__menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Cada <li> */
#site-navigation .th-nav__menu .th-nav__item,
.th-nav .th-nav__menu .th-nav__item {
  position: relative;
  list-style: none !important;
  margin: 0;
  padding: 0;
}

/* El <a> dentro de cada <li> */
#site-navigation .th-nav__menu .th-nav__item .th-nav__link,
.th-nav .th-nav__menu .th-nav__item .th-nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: .92rem;
  color: var(--th-gray-600);
  padding: 9px 14px;
  border-radius: var(--th-radius-sm);
  text-decoration: none !important;
  white-space: nowrap;
  transition: color var(--th-transition), background var(--th-transition);
  line-height: 1;
}

#site-navigation .th-nav__menu .th-nav__item .th-nav__link:hover,
#site-navigation .th-nav__menu .th-nav__item.th-nav__item--current .th-nav__link,
.th-nav .th-nav__menu .th-nav__item .th-nav__link--active {
  color: var(--th-blue);
  background: var(--th-gray-100);
}

#site-navigation .th-nav__menu .th-nav__item.th-nav__item--current .th-nav__link {
  font-weight: 600;
}

/* Chevron en items con hijos */
.th-nav__chevron {
  font-size: .6rem;
  margin-left: 2px;
  transition: transform var(--th-transition);
  display: inline-block;
}
.th-nav__item--has-children:hover .th-nav__chevron { transform: rotate(180deg); }

/* CTA button (class th-nav-cta asignada en Apariencia > Menús) */
#site-navigation .th-nav__menu .th-nav__item--cta .th-nav__link,
.th-nav .th-nav__menu .th-nav__item--cta .th-nav__link,
#site-navigation .th-nav__menu .th-nav__item .th-nav__link--cta {
  background: var(--th-orange) !important;
  color: var(--th-white) !important;
  border-radius: var(--th-radius-pill);
  padding: 9px 22px;
  font-weight: 700;
  margin-left: 10px;
  box-shadow: 0 3px 14px rgba(244,121,32,.35);
  text-decoration: none !important;
}
#site-navigation .th-nav__menu .th-nav__item--cta .th-nav__link:hover,
.th-nav .th-nav__menu .th-nav__item--cta .th-nav__link:hover,
#site-navigation .th-nav__menu .th-nav__item .th-nav__link--cta:hover {
  background: var(--th-orange-dark) !important;
  color: var(--th-white) !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(244,121,32,.45);
}

/* Dropdown sub-menu */
.th-nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 210px;
  background: var(--th-white);
  border-radius: var(--th-radius-sm);
  box-shadow: var(--th-shadow-lg);
  border: 1px solid var(--th-gray-200);
  list-style: none !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  z-index: 500;
}
.th-nav__item--has-children:hover .th-nav__dropdown,
.th-nav__item--has-children:focus-within .th-nav__dropdown { display: block; }

.th-nav__dropdown .th-nav__item { list-style: none !important; }
.th-nav__dropdown-link {
  display: block;
  padding: 9px 18px;
  font-size: .88rem;
  color: var(--th-gray-600);
  text-decoration: none !important;
  transition: background var(--th-transition), color var(--th-transition), padding-left var(--th-transition);
  white-space: nowrap;
}
.th-nav__dropdown-link:hover {
  background: var(--th-gray-100);
  color: var(--th-blue);
  padding-left: 22px;
}

/* Hamburger button */
.th-hamburger {
  display: none; /* hidden desktop, shown mobile via CSS below */
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--th-gray-100);
  border: 1px solid var(--th-gray-200);
  border-radius: var(--th-radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}
.th-hamburger__line {
  display: block;
  height: 2px;
  background: var(--th-blue);
  border-radius: 2px;
  transition: all var(--th-transition);
}

/* Desktop: show nav, hide hamburger */
@media (min-width: 992px) {
  .th-nav { display: flex; }
  .th-hamburger { display: none !important; }
}

/* Mobile: hide nav, show hamburger */
@media (max-width: 991.98px) {
  .th-nav { display: none !important; }
  .th-hamburger { display: flex; }
}

/* ============================================================
   MOBILE OFFCANVAS NAV
   ============================================================ */
.th-mobile-nav {
  background: var(--th-blue-dark);
  border-left: none;
  width: min(320px, 90vw);
}
.th-mobile-nav .offcanvas-header {
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 18px 20px;
}
.th-mobile-nav .th-logo__name { color: var(--th-white); }
.th-mobile-nav .btn-close { filter: invert(1); }

/* Mobile menu list */
.th-mobile-nav__menu {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.th-mobile-nav__item { position: relative; }
.th-mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  /* white on dark blue: high contrast ✓ */
  color: rgba(255,255,255,.88);
  padding: 13px 20px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background var(--th-transition), color var(--th-transition);
}
.th-mobile-nav__link:hover,
.th-mobile-nav__link--active {
  background: rgba(255,255,255,.09);
  color: var(--th-white);
}
.th-mobile-nav__link--cta {
  background: var(--th-orange);
  color: var(--th-white) !important;
  border-radius: var(--th-radius-sm);
  margin: 12px 16px;
  padding: 13px 20px;
  border-bottom: none;
  justify-content: center;
}
.th-mobile-nav__link--cta:hover { background: var(--th-orange-dark) !important; }
.th-mobile-nav__toggle {
  position: absolute;
  right: 0; top: 0;
  height: 100%;
  width: 48px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
}
.th-mobile-nav__toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.th-mobile-nav__toggle i { transition: transform var(--th-transition); }

/* Sub-menu in mobile */
.th-mobile-nav__sub {
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(0,0,0,.15);
  display: none;
}
.th-mobile-nav__sub.open { display: block; }
.th-mobile-nav__sub .th-mobile-nav__link {
  font-size: .92rem;
  padding-left: 36px;
  font-weight: 500;
}

/* Contact CTAs inside mobile drawer */
.th-mobile-nav__contact {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.th-mobile-nav__phone,
.th-mobile-nav__whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--th-radius-pill);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none !important;
  transition: all var(--th-transition);
}
.th-mobile-nav__phone {
  background: var(--th-orange);
  color: var(--th-white) !important;
}
.th-mobile-nav__phone:hover { background: var(--th-orange-dark); }
.th-mobile-nav__whatsapp {
  background: rgba(37,211,102,.15);
  color: #5dd87b !important;
  border: 1px solid rgba(37,211,102,.3);
}
.th-mobile-nav__whatsapp:hover { background: rgba(37,211,102,.25); }

/* Language switcher inside mobile drawer */
.th-mobile-nav__langs {
  display: flex;
  gap: 6px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 4px;
}

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.th-section { padding: 72px 0; }
.th-section__header { text-align: center; margin-bottom: 48px; }
.th-section__tag {
  display: inline-block;
  background: rgba(212,98,10,.12);
  color: var(--th-orange-dark); /* #d4620a on white = 4.6:1 ✓ AA */
  border: 1px solid rgba(212,98,10,.3);
  padding: 4px 14px;
  border-radius: var(--th-radius-pill);
  font-size: .78rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.th-section__header h2 { font-size: clamp(1.8rem,4vw,2.6rem); margin-bottom: 14px; color: var(--th-gray-800); }
.th-section__header p {
  color: var(--th-gray-600); /* #5a607a = 4.6:1 on white ✓ AA */
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.th-page-hero {
  background: linear-gradient(135deg, var(--th-blue-dark) 0%, var(--th-blue) 100%);
  padding: 48px 0 40px;
  color: var(--th-white);
}
.th-page-hero--blog   { background: linear-gradient(135deg, #0d2a6e 0%, #1a3a8f 100%); }
.th-page-hero--contact { background: linear-gradient(135deg, #0f2560 0%, #1a3a8f 60%, #2550b8 100%); }
.th-page-hero__title {
  font-size: clamp(2rem,5vw,3rem);
  color: var(--th-white);
  margin: 12px 0 0;
}
.th-page-hero__desc { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-top: 10px; max-width: 560px; }

/* Breadcrumb */
.th-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  padding: 0; margin: 0;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.th-breadcrumb li + li::before { content: '/'; margin-right: 8px; }
.th-breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.th-breadcrumb a:hover { color: var(--th-orange-light); }
.th-breadcrumb .active { color: var(--th-orange-light); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.th-hero {
  background-color: var(--th-blue-dark); /* fallback si no carga la imagen */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 80px 0 64px;
  color: var(--th-white);
  position: relative;
  overflow: hidden;
}
/* Filtro oscuro sobre la imagen para que resalte el texto */
.th-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(10, 20, 60, 0.82) 0%,
    rgba(15, 37, 96, 0.72) 50%,
    rgba(10, 20, 60, 0.65) 100%
  );
  z-index: 0;
}
/* El contenido por encima del filtro */
.th-hero .container {
  position: relative;
  z-index: 1;
}
/* .Eliminamos los pseudoelementos decorativos anteriores */
.th-hero__bg::before,
.th-hero__bg::after { display: none; }
.th-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.th-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 14px;
  border-radius: var(--th-radius-pill);
  font-size: .8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.th-hero__pulse {
  width: 8px; height: 8px;
  background: var(--th-orange-light);
  border-radius: 50%;
  animation: th-pulse 2s ease-in-out infinite;
}
@keyframes th-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.6; transform:scale(1.3); }
}
.th-hero__title {
  font-size: clamp(2.2rem,5vw,3.4rem);
  color: var(--th-white);
  margin-bottom: 20px;
  line-height: 1.1;
}
.th-hero__highlight { color: var(--th-orange-light); }
.th-hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}
.th-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.th-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.th-hero__card {
  position: absolute;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 20px 24px;
  color: var(--th-white);
  display: flex;
  flex-direction: column;
}
.th-hero__card--main {
  width: 270px; top: 40px; left: 10px; z-index: 2;
  background: rgba(255,255,255,.15);
}
.th-hero__card--accent {
  width: 190px; top: 0; right: 0; z-index: 1;
  background: rgba(244,121,32,.25);
  border-color: rgba(244,121,32,.3);
}
.th-hero__card--bottom {
  width: 230px; bottom: 0; left: 20px; z-index: 2;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}
.th-hero__card strong { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .95rem; display: block; margin-bottom: 4px; }
.th-hero__card small { opacity: .75; font-size: .78rem; }
.th-hero__stats { display: flex; gap: 20px; margin-top: 10px; }
.th-hero__stats > div { display: flex; flex-direction: column; }
.th-hero__stat { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--th-orange-light); line-height: 1; }
.th-hero__stats small { font-size: .72rem; opacity: .75; }

.th-stats-bar { background: var(--th-white); padding: 28px 0; border-bottom: 1px solid var(--th-gray-200); }
.th-stats-bar__grid { display: grid; grid-template-columns: repeat(4,1fr); }
.th-stats-bar__item { text-align: center; padding: 12px 16px; border-right: 1px solid var(--th-gray-200); }
.th-stats-bar__item:last-child { border-right: none; }
.th-stats-bar__num { display: block; font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; color: var(--th-blue); line-height: 1; }
.th-stats-bar__num small { font-size: 1.1rem; font-weight: 700; }
.th-stats-bar__label {
  font-size: .82rem;
  color: var(--th-gray-600); /* 4.6:1 ✓ AA */
  margin-top: 5px;
  font-weight: 500;
}

/* ============================================================
   SERVICES
   ============================================================ */
.th-services { background: var(--th-off-white); }
.th-services__grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.th-service-card {
  background: var(--th-white);
  border-radius: var(--th-radius);
  padding: 28px 24px;
  box-shadow: var(--th-shadow);
  border: 1px solid var(--th-gray-200);
  position: relative;
  overflow: hidden;
  transition: all var(--th-transition);
}
.th-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--th-orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--th-transition);
}
.th-service-card:hover { transform: translateY(-4px); box-shadow: var(--th-shadow-lg); border-color: transparent; }
.th-service-card:hover::before { transform: scaleY(1); }
.th-service-card--highlight::before { transform: scaleY(1); }
.th-service-card__icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--th-blue), var(--th-blue-light));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--th-white);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.th-service-card--highlight .th-service-card__icon {
  background: linear-gradient(135deg, var(--th-orange), var(--th-orange-light));
}
.th-service-card__title { font-size: 1.05rem; margin-bottom: 8px; color: var(--th-gray-800); }
.th-service-card__desc {
  font-size: .88rem;
  color: var(--th-gray-600); /* 4.6:1 on white ✓ AA */
  line-height: 1.65;
  margin-bottom: 12px;
}
.th-service-card__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.th-service-card__list li {
  font-size: .84rem;
  color: var(--th-gray-600);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.th-service-card__list li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--th-orange);
  flex-shrink: 0;
  margin-top: 4px;
}
.th-service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: var(--th-blue); /* 8.5:1 on white ✓ AAA */
  text-decoration: none;
  margin-top: 14px;
  transition: gap var(--th-transition), color var(--th-transition);
}
.th-service-card__link i { font-size: .8rem; transition: transform var(--th-transition); }
.th-service-card__link:hover { color: var(--th-orange-dark); gap: 10px; }
.th-service-card__link:hover i { transform: translateX(3px); }

/* ============================================================
   RELOCATION
   ============================================================ */
.th-relocation { background: var(--th-white); }
.th-relocation__visual {
  background: linear-gradient(135deg, var(--th-blue-dark), var(--th-blue));
  border-radius: 24px;
  padding: 36px;
  color: var(--th-white);
  position: relative;
  overflow: hidden;
}
.th-relocation__visual::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(244,121,32,.28) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.th-relocation__visual-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--th-white);
  margin-bottom: 20px;
  opacity: .9;
}
.th-reloc-step {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.th-reloc-step:last-child { border-bottom: none; padding-bottom: 0; }
.th-reloc-step__num {
  width: 30px; height: 30px;
  background: var(--th-orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .82rem;
  flex-shrink: 0; color: var(--th-white);
}
.th-reloc-step__text strong { display: block; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .88rem; margin-bottom: 3px; }
.th-reloc-step__text span { font-size: .8rem; opacity: .75; }

.th-reloc-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 28px;
}
.th-reloc-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; font-weight: 500; color: var(--th-gray-600);
}
.th-reloc-feature__icon {
  width: 32px; height: 32px;
  background: rgba(244,121,32,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--th-orange); font-size: .95rem; flex-shrink: 0;
}

/* ============================================================
   P.O. BOX
   ============================================================ */
.th-pobox { background: var(--th-off-white); }
.th-check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.th-check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: var(--th-gray-600);
}
.th-check-list li .fa-check { color: var(--th-orange); flex-shrink: 0; margin-top: 3px; }
.th-pobox-plans {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
}
.th-plan-card {
  background: var(--th-white);
  border-radius: var(--th-radius);
  padding: 24px 20px;
  border: 2px solid var(--th-gray-200);
  transition: all var(--th-transition);
  text-align: center;
  position: relative;
}
.th-plan-card:hover { border-color: var(--th-orange); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(244,121,32,.15); }
.th-plan-card--featured {
  border-color: var(--th-orange);
  background: linear-gradient(135deg, rgba(244,121,32,.05), rgba(244,121,32,.02));
}
.th-plan-card__badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--th-orange); color: var(--th-white);
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .7rem;
  padding: 3px 10px; border-radius: var(--th-radius-pill);
  white-space: nowrap; letter-spacing: .04em;
}
.th-plan-card__duration {
  font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700;
  color: var(--th-blue); margin: 10px 0 4px;
}
.th-plan-card__desc { font-size: .8rem; color: var(--th-text-muted); }
.th-plan-card__features { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; display: flex; flex-direction: column; gap: 5px; }
.th-plan-card__features li { font-size: .8rem; color: var(--th-gray-600); display: flex; align-items: center; gap: 6px; }
.th-plan-card__features li .fa-check { color: var(--th-orange); font-size: .75rem; }
.th-pobox-note {
  grid-column: span 2;
  background: var(--th-white);
  border-radius: var(--th-radius);
  padding: 16px 20px;
  font-size: .85rem; color: var(--th-text-muted);
  border: 1px solid var(--th-gray-200);
}

/* ============================================================
   TELECOM PROVIDERS
   ============================================================ */
.th-telecom { background: var(--th-white); }
.th-providers { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.th-provider-pill {
  background: var(--th-gray-100);
  border: 1px solid var(--th-gray-200);
  border-radius: var(--th-radius-pill);
  padding: 10px 22px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .9rem;
  color: var(--th-gray-600);
  transition: all var(--th-transition);
  cursor: default;
}
.th-provider-pill:hover {
  background: var(--th-blue); color: var(--th-white);
  border-color: var(--th-blue); transform: translateY(-2px);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.th-cta-banner {
  background: linear-gradient(135deg, var(--th-blue-dark), var(--th-blue));
  padding: 56px 0;
  color: var(--th-white);
}
.th-cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.th-cta-banner__content h2 { font-size: clamp(1.5rem,3vw,2.2rem); color: var(--th-white); margin-bottom: 8px; }
.th-cta-banner__content p { color: rgba(255,255,255,.8); margin: 0; }
.th-cta-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   BLOG LAYOUT
   ============================================================ */
.th-blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.th-blog-grid { display: flex; flex-direction: column; gap: 28px; }
.th-blog-card {
  background: var(--th-white);
  border-radius: var(--th-radius);
  overflow: hidden;
  box-shadow: var(--th-shadow);
  border: 1px solid var(--th-gray-200);
  transition: all var(--th-transition);
}
.th-blog-card:hover { transform: translateY(-3px); box-shadow: var(--th-shadow-lg); }
.th-blog-card__thumb-link { display: block; overflow: hidden; }
.th-blog-card__thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .4s ease; }
.th-blog-card:hover .th-blog-card__thumb { transform: scale(1.03); }
.post-thumbnail--placeholder .placeholder-inner {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--th-blue), var(--th-blue-light));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4);
}
.th-blog-card__body { padding: 24px; }
.th-blog-card__title { font-size: 1.15rem; margin: 8px 0 10px; }
.th-blog-card__title a { color: var(--th-gray-800); text-decoration: none; }
.th-blog-card__title a:hover { color: var(--th-blue); }
.th-blog-card__excerpt { font-size: .9rem; color: var(--th-text-muted); line-height: 1.65; margin-bottom: 16px; }
.th-blog-card__link { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .85rem; color: var(--th-blue); text-decoration: none; }
.th-blog-card__link:hover { color: var(--th-orange); }

/* Blog preview grid (homepage) */
.th-blog-preview { background: var(--th-off-white); }
.th-blog-preview__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* Entry meta */
.entry-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; font-size: .82rem; color: var(--th-text-muted); }
.entry-meta a { color: var(--th-text-muted); text-decoration: none; }
.entry-meta a:hover { color: var(--th-blue); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.th-single-post__header { margin-bottom: 32px; }
.th-single-post__cats a { font-family: 'Outfit', sans-serif; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--th-orange); background: rgba(244,121,32,.1); padding: 3px 10px; border-radius: var(--th-radius-pill); text-decoration: none; margin-right: 6px; }
.th-single-post__title { font-size: clamp(1.8rem,4vw,2.8rem); margin: 12px 0 16px; }
.th-single-post__thumb { margin-top: 24px; border-radius: var(--th-radius); overflow: hidden; }
.th-single-post__content { font-size: 1rem; line-height: 1.8; }
.th-single-post__content h2,.th-single-post__content h3 { margin-top: 2rem; }
.th-single-post__content p { margin-bottom: 1.2rem; }
.th-single-post__content ul,.th-single-post__content ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }
.th-single-post__footer { margin-top: 40px; border-top: 1px solid var(--th-gray-200); padding-top: 32px; }
.th-single-post__tags a { font-size: .82rem; color: var(--th-gray-600); text-decoration: none; background: var(--th-gray-100); padding: 3px 10px; border-radius: var(--th-radius-pill); margin-right: 4px; }

.th-post-nav { margin-top: 32px; }
.th-post-nav__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.th-post-nav__link {
  display: flex; flex-direction: column;
  padding: 16px 20px; background: var(--th-gray-100);
  border-radius: var(--th-radius); text-decoration: none;
  transition: all var(--th-transition); border: 1px solid var(--th-gray-200);
}
.th-post-nav__link:hover { background: var(--th-blue); border-color: var(--th-blue); }
.th-post-nav__link:hover .th-post-nav__dir,
.th-post-nav__link:hover .th-post-nav__title { color: var(--th-white); }
.th-post-nav__link--next { text-align: right; }
.th-post-nav__dir { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--th-text-muted); }
.th-post-nav__title { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .9rem; color: var(--th-gray-800); margin-top: 4px; }

.th-author-box {
  display: flex; gap: 20px; align-items: flex-start;
  margin-top: 32px; padding: 24px;
  background: var(--th-off-white);
  border-radius: var(--th-radius); border: 1px solid var(--th-gray-200);
}
.th-author-box__avatar { border-radius: 50%; width: 72px; height: 72px; flex-shrink: 0; }
.th-author-box__name { display: block; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.th-author-box__bio { font-size: .88rem; color: var(--th-text-muted); margin: 0; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.th-sidebar-widget {
  background: var(--th-white);
  border-radius: var(--th-radius);
  padding: 24px;
  box-shadow: var(--th-shadow);
  border: 1px solid var(--th-gray-200);
  margin-bottom: 20px;
}
.th-sidebar-widget--cta {
  background: linear-gradient(135deg, var(--th-blue-dark), var(--th-blue));
  color: var(--th-white);
  text-align: center;
  border: none;
}
.th-sidebar-widget--cta i { color: var(--th-orange-light); }
.th-sidebar-widget--cta h3 { color: var(--th-white); font-size: 1rem; margin: 10px 0 6px; }
.th-sidebar-widget--cta p { color: rgba(255,255,255,.8); font-size: .85rem; margin-bottom: 16px; }
.th-sidebar-widget--contact { background: var(--th-off-white); }
.th-sidebar-widget__title { font-size: .95rem; font-family: 'Outfit', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; color: var(--th-gray-800); border-bottom: 2px solid var(--th-orange); padding-bottom: 8px; }
.th-sidebar-posts { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.th-sidebar-posts li { display: flex; flex-direction: column; }
.th-sidebar-posts a { font-size: .88rem; font-weight: 600; color: var(--th-gray-800); text-decoration: none; transition: color var(--th-transition); }
.th-sidebar-posts a:hover { color: var(--th-blue); }
.th-sidebar-posts time { font-size: .75rem; color: var(--th-text-muted); margin-top: 2px; }

/* ============================================================
   PAGE LAYOUT (page.php)
   ============================================================ */
.th-page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}
.th-page-article__content { font-size: 1rem; line-height: 1.8; }
.th-page-article__content h2,.th-page-article__content h3 { margin-top: 2rem; }
.th-page-article__content p { margin-bottom: 1.2rem; }
.th-page-article__content ul,.th-page-article__content ol { margin-bottom: 1.2rem; padding-left: 1.5rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.th-contact-info-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.th-contact-info-card {
  background: var(--th-white);
  border: 1px solid var(--th-gray-200);
  border-radius: var(--th-radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--th-shadow);
}
.th-contact-info-card__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(26,58,143,.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--th-blue); font-size: 1.2rem;
}
.th-contact-info-card strong { display: block; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .88rem; color: var(--th-gray-800); margin-bottom: 2px; }
.th-contact-info-card a { color: var(--th-blue); text-decoration: none; font-size: .9rem; display: block; }
.th-contact-info-card a:hover { color: var(--th-orange); }
.th-contact-info-card small { display: block; font-size: .76rem; color: var(--th-text-muted); margin-top: 3px; }

.th-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.th-contact-form-wrap {
  background: var(--th-white);
  border-radius: var(--th-radius);
  padding: 36px;
  box-shadow: var(--th-shadow-lg);
  border: 1px solid var(--th-gray-200);
}
.th-contact-form-wrap__title { font-size: 1.4rem; margin-bottom: 24px; }

/* Honeypot */
.th-honeypot { position: absolute; opacity: 0; pointer-events: none; height: 0; overflow: hidden; }

/* Form alerts */
.th-form-alert {
  border-radius: var(--th-radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: .9rem;
  font-weight: 500;
}
.th-form-alert--success { background: rgba(34,197,94,.1); color: #16a34a; border: 1px solid rgba(34,197,94,.3); }
.th-form-alert--error { background: rgba(239,68,68,.1); color: #dc2626; border: 1px solid rgba(239,68,68,.3); }
.th-form-privacy { font-size: .78rem; color: var(--th-text-muted); margin: 0; }
.th-form-privacy a { color: var(--th-blue); }

/* Form controls override */
.form-control, .form-select {
  border-radius: var(--th-radius-sm);
  border-color: var(--th-gray-200);
  font-size: .9rem;
  padding: 10px 14px;
  transition: border-color var(--th-transition), box-shadow var(--th-transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--th-blue);
  box-shadow: 0 0 0 3px rgba(26,58,143,.12);
}

.th-map-embed { border-radius: var(--th-radius); overflow: hidden; box-shadow: var(--th-shadow); }
.th-contact-map-info { padding: 16px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; }

/* ============================================================
   KIT DIGITAL STRIP
   Fondo blanco con borde superior naranja — máximo contraste
   con los logos oficiales de color y con el footer oscuro.
   PageSpeed no penaliza: texto oscuro sobre blanco ✓
   ============================================================ */
.th-kitdigital {
  background: #ffffff;
  border-top: 4px solid var(--th-orange);
  border-bottom: 1px solid #e2e6f0;
  padding: 24px 0 20px;
}
.th-kitdigital__text {
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  /* negro sobre blanco = 21:1 ✓✓✓ */
  color: #1e2340;
  margin-bottom: 18px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.th-kitdigital__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.th-kitdigital__logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  /* sin filter — logos de color sobre fondo blanco, sin modificar */
}
.th-kitdigital__logo-item img {
  height: 56px;
  width: auto;
  max-width: 180px;
  display: block;
  /* no loading="eager" — lazy está en el HTML para no bloquear LCP */
}

/* ============================================================
   FOOTER PRINCIPAL
   Fondo: #1e2340 (gris-azul muy oscuro) — distinto del
   azul del hero (#1a3a8f) y del topbar (#0f2560).
   Texto blanco sobre #1e2340 = 15.5:1 ✓✓✓ AAA
   ============================================================ */
.th-footer {
  background: #1e2340;
  color: rgba(255,255,255,.82);
}
.th-footer__main { padding: 56px 0 40px; }

/* Logo del footer */
.th-footer__brand { max-width: 300px; }
.th-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 16px;
}
.th-footer__logo:hover { color: var(--th-orange-light); }

/* Descripción */
.th-footer__desc {
  font-size: .87rem;
  line-height: 1.75;
  margin-bottom: 20px;
  /* rgba 255,255,255,.78 sobre #1e2340 = 11.2:1 ✓✓✓ AAA */
  color: rgba(255,255,255,.78);
}

/* Dirección */
.th-footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.th-footer__address p {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .85rem;
  color: rgba(255,255,255,.78);
  margin: 0;
  line-height: 1.5;
}
.th-footer__address i {
  color: var(--th-orange-light);
  width: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: .85rem;
}
.th-footer__address a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color var(--th-transition);
  font-size: .85rem;
  line-height: 1.5;
}
.th-footer__address a:hover { color: var(--th-orange-light); }
.th-footer__address a i {
  color: var(--th-orange-light);
  width: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Redes sociales */
.th-footer__social {
  display: flex;
  gap: 8px;
}
.th-footer__social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* rgba 255,255,255,.82 sobre rgba fondo = ✓ */
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--th-transition);
}
.th-footer__social a:hover {
  background: var(--th-orange);
  border-color: var(--th-orange);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Encabezados de columna */
.th-footer__col { }
.th-footer__heading {
  font-family: 'Outfit', sans-serif;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  /* blanco puro para los títulos de columna */
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(244,121,32,.5);
}

/* Menús del footer — generados por wp_nav_menu */
.th-footer__menu,
.th-footer .th-footer__menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.th-footer__menu li { list-style: none !important; }
.th-footer__menu a {
  font-size: .88rem;
  /* rgba .72 sobre #1e2340 = 9.8:1 ✓✓ AAA */
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: color var(--th-transition), padding-left var(--th-transition);
  display: block;
  padding: 2px 0;
}
.th-footer__menu a:hover {
  color: var(--th-orange-light);
  padding-left: 4px;
}

/* Enlace Google Maps */
.th-footer__map-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  margin-top: 18px;
  transition: color var(--th-transition);
  border: 1px solid rgba(255,255,255,.15);
  padding: 7px 12px;
  border-radius: var(--th-radius-sm);
}
.th-footer__map-link:hover {
  color: var(--th-orange-light);
  border-color: rgba(244,121,32,.4);
  background: rgba(244,121,32,.07);
}

/* Barra de copyright */
.th-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  background: rgba(0,0,0,.15);
}
.th-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .82rem;
  /* rgba .65 sobre bg oscuro = ✓ AA */
  color: rgba(255,255,255,.65);
}
.th-footer__copyright,
.th-footer__credit { margin: 0; font-size: .82rem; color: rgba(255,255,255,.65); }
.th-footer__copyright a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color var(--th-transition);
}
.th-footer__copyright a:hover { color: var(--th-orange-light); }
.th-footer__copyright a:hover { color: var(--th-orange-light); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.th-empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--th-gray-600);
}
.th-empty-state h2 { color: var(--th-gray-800); font-size: 1.5rem; margin-top: 16px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-nav { margin-top: 40px; }
.page-link { color: var(--th-blue); border-radius: var(--th-radius-sm) !important; margin: 0 3px; }
.page-item.active .page-link { background: var(--th-blue); border-color: var(--th-blue); }
.page-link:hover { background: var(--th-gray-100); color: var(--th-blue); border-color: var(--th-gray-200); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/*
 * Torrox Hub — Supplemental Styles
 * Legal pages, comments, archive enhancements, performance
 * Append to assets/css/main.css or enqueue separately
 *
 * @package TorroxHub
 */

/* ============================================================
   LEGAL PAGES (Privacy, Cookies, Legal Notice)
   ============================================================ */
.th-legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
.th-legal-toc {
  position: sticky;
  top: 100px;
}
.th-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.th-toc-list a {
  display: block;
  padding: 6px 12px;
  font-size: .87rem;
  color: var(--th-gray-600);
  text-decoration: none;
  border-radius: var(--th-radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--th-transition);
}
.th-toc-list a:hover {
  color: var(--th-blue);
  background: var(--th-gray-100);
  border-left-color: var(--th-orange);
}
.th-legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--th-gray-200);
  color: var(--th-blue);
}
.th-legal-content h2:first-child { margin-top: 0; }
.th-legal-content p,
.th-legal-content li { font-size: .97rem; line-height: 1.8; color: var(--th-gray-600); }
.th-legal-content ul { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.th-legal-content li { margin-bottom: .5rem; }
.th-legal-content a { color: var(--th-blue); }
.th-legal-content a:hover { color: var(--th-orange); }
.th-legal-alert {
  background: rgba(26,58,143,.06);
  border: 1px solid rgba(26,58,143,.15);
  border-left: 4px solid var(--th-blue);
  border-radius: var(--th-radius-sm);
  padding: 16px 20px;
  font-size: .9rem;
  color: var(--th-gray-600);
  margin-bottom: 32px;
}
.th-legal-address {
  background: var(--th-off-white);
  border: 1px solid var(--th-gray-200);
  border-radius: var(--th-radius-sm);
  padding: 20px 24px;
  font-style: normal;
  font-size: .93rem;
  line-height: 1.9;
  margin-bottom: 1.2rem;
}
.th-legal-address a { color: var(--th-blue); text-decoration: none; }
.th-legal-address a:hover { color: var(--th-orange); }

/* Cookie table */
.th-cookie-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.th-cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  background: var(--th-white);
  border-radius: var(--th-radius-sm);
  overflow: hidden;
  box-shadow: var(--th-shadow);
}
.th-cookie-table thead { background: var(--th-blue); color: var(--th-white); }
.th-cookie-table th { padding: 12px 16px; text-align: left; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .85rem; }
.th-cookie-table td { padding: 12px 16px; border-bottom: 1px solid var(--th-gray-200); color: var(--th-gray-600); }
.th-cookie-table tbody tr:last-child td { border-bottom: none; }
.th-cookie-table tbody tr:hover { background: var(--th-off-white); }
.th-cookie-table code { background: var(--th-gray-100); padding: 2px 6px; border-radius: 4px; font-size: .82rem; }

@media (max-width: 768px) {
  .th-legal-layout { grid-template-columns: 1fr; }
  .th-legal-toc { position: static; }
}

/* ============================================================
   COMMENTS
   ============================================================ */
.th-comments { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--th-gray-200); }
.th-comments__title {
  font-size: 1.3rem;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.th-comments__closed {
  background: var(--th-off-white);
  border: 1px solid var(--th-gray-200);
  border-radius: var(--th-radius-sm);
  padding: 12px 16px;
  font-size: .9rem;
  color: var(--th-text-muted);
  margin-bottom: 24px;
}
.th-comment-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 20px; }
.th-comment { background: var(--th-off-white); border-radius: var(--th-radius); border: 1px solid var(--th-gray-200); }
.th-comment__body { padding: 20px 24px; }
.th-comment__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.th-comment__avatar img { border-radius: 50%; width: 44px; height: 44px; flex-shrink: 0; }
.th-comment__author { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .95rem; display: block; }
.th-comment__date { font-size: .78rem; color: var(--th-text-muted); display: block; margin-top: 2px; }
.th-comment__reply a { font-size: .82rem; font-weight: 600; color: var(--th-blue); text-decoration: none; }
.th-comment__reply a:hover { color: var(--th-orange); }
.th-comment__pending { background: rgba(244,121,32,.08); border: 1px solid rgba(244,121,32,.2); border-radius: 6px; padding: 8px 12px; font-size: .82rem; color: var(--th-orange-dark); margin-bottom: 12px; }
.th-comment__content p { font-size: .92rem; color: var(--th-gray-600); line-height: 1.7; margin: 0; }
.children { list-style: none; padding: 0; margin: 12px 0 0 32px; display: flex; flex-direction: column; gap: 12px; }

/* Comment form */
.th-comment-form { margin-top: 40px; }
.comment-form h3 { font-size: 1.3rem; margin-bottom: 24px; }
.th-comment-form__note { font-size: .82rem; color: var(--th-text-muted); margin-bottom: 20px; }
.comment-form p.form-submit { margin-top: 0; }

/* ============================================================
   SIDEBAR CATEGORIES (archive.php)
   ============================================================ */
.th-sidebar-cats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.th-sidebar-cats li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  font-size: .88rem;
  color: var(--th-gray-600);
  text-decoration: none;
  border-radius: var(--th-radius-sm);
  transition: all var(--th-transition);
}
.th-sidebar-cats li a:hover { background: var(--th-gray-100); color: var(--th-blue); }
.th-sidebar-cats .children { padding-left: 12px; }

/* ============================================================
   COOKIE CONSENT BANNER (basic, no plugin required)
   ============================================================ */
.th-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--th-gray-800);
  color: rgba(255,255,255,.85);
  padding: 16px 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.th-cookie-banner.visible { transform: translateY(0); }
.th-cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.th-cookie-banner__text { font-size: .88rem; line-height: 1.6; flex: 1 1 400px; }
.th-cookie-banner__text a { color: var(--th-orange-light); }
.th-cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.th-cookie-accept { background: var(--th-orange); color: var(--th-white); border: none; padding: 9px 20px; border-radius: var(--th-radius-pill); font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .88rem; cursor: pointer; transition: background var(--th-transition); }
.th-cookie-accept:hover { background: var(--th-orange-dark); }
.th-cookie-reject { background: transparent; color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.25); padding: 9px 20px; border-radius: var(--th-radius-pill); font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .88rem; cursor: pointer; transition: all var(--th-transition); }
.th-cookie-reject:hover { border-color: rgba(255,255,255,.5); color: var(--th-white); }

/* ============================================================
   SKIP LINK (accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--th-blue);
  color: var(--th-white);
  padding: 8px 16px;
  z-index: 9999;
  font-size: .9rem;
  border-radius: 0 0 var(--th-radius-sm) 0;
  text-decoration: none;
  transition: top var(--th-transition);
}
.skip-link:focus { top: 0; }

/* ============================================================
   SCREEN READER
   ============================================================ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  left: 5px;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ============================================================
   MISSING UTILITIES & FIXES (appended)
   ============================================================ */

/* Blog card category pills */
.th-blog-card__cats { margin-bottom: 6px; }
.th-blog-card__cats a {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--th-orange-dark);
  background: rgba(212,98,10,.1);
  border: 1px solid rgba(212,98,10,.25);
  padding: 2px 9px;
  border-radius: var(--th-radius-pill);
  text-decoration: none;
  margin-right: 4px;
  transition: all var(--th-transition);
}
.th-blog-card__cats a:hover {
  background: var(--th-orange);
  color: var(--th-white);
  border-color: var(--th-orange);
}

/* Sidebar cats count badge */
.th-sidebar-cats__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  background: var(--th-gray-200);
  color: var(--th-gray-600);
  font-size: .72rem;
  font-weight: 700;
  border-radius: var(--th-radius-pill);
  padding: 0 6px;
}

/* Author box link */
.th-author-box__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  color: var(--th-blue);
  text-decoration: none;
  margin-top: 6px;
  transition: color var(--th-transition);
}
.th-author-box__link:hover { color: var(--th-orange-dark); }
.th-author-box__link i { font-size: .72rem; }

/* Search form styling */
.search-form {
  display: flex;
  gap: 6px;
}
.search-form label { flex: 1; margin: 0; }
.search-field {
  width: 100%;
  border: 1px solid var(--th-gray-200);
  border-radius: var(--th-radius-sm);
  padding: 9px 12px;
  font-size: .88rem;
  outline: none;
  transition: border-color var(--th-transition);
  font-family: 'Inter', sans-serif;
  color: var(--th-text);
}
.search-field:focus { border-color: var(--th-blue); box-shadow: 0 0 0 3px rgba(26,58,143,.1); }
.search-submit {
  background: var(--th-blue);
  color: var(--th-white);
  border: none;
  padding: 9px 16px;
  border-radius: var(--th-radius-sm);
  cursor: pointer;
  font-size: .88rem;
  transition: background var(--th-transition);
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}
.search-submit:hover { background: var(--th-blue-dark); }

/* Widget title base style */
.widget-title {
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--th-gray-800);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(244,121,32,.4);
}

/* Footer blog grid in home preview */
.th-blog-preview { background: var(--th-off-white); }
.th-blog-preview__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* Footer bottom contrast fix */
.th-footer__copyright,
.th-footer__credit {
  color: rgba(255,255,255,.65); /* improved from .45 */
  margin: 0;
  font-size: .82rem;
}
.th-footer__copyright a { color: rgba(255,255,255,.75); }
.th-footer__copyright a:hover { color: var(--th-orange-light); }

/* Footer desc & address contrast fix */
.th-footer__desc { color: rgba(255,255,255,.75); }
.th-footer__address p { color: rgba(255,255,255,.75); }

/* Footer menu link contrast fix */
.th-footer__menu a { color: rgba(255,255,255,.72); }
.th-footer__menu a:hover { color: var(--th-orange-light); }

/* Cookie banner text contrast fix */
.th-cookie-reject { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.35); }

/* ============================================================
   RESPONSIVE — COMPLETE OVERHAUL
   ============================================================ */

/* Large desktop */
@media (min-width: 1200px) {
  .container { max-width: 1160px; }
}

/* Tablet landscape */
@media (max-width: 1100px) {
  .th-services__grid { grid-template-columns: repeat(2,1fr); }
  .th-contact-info-row { grid-template-columns: repeat(2,1fr); }
  .th-blog-preview__grid { grid-template-columns: repeat(2,1fr); }
  .th-blog-layout { grid-template-columns: 1fr 260px; }
  .th-page-layout { grid-template-columns: 1fr 260px; }
  .th-footer__brand { max-width: 100%; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  html { scroll-padding-top: 70px; }
  .th-section { padding: 48px 0; }
  .th-hero { padding: 52px 0 40px; }
  .th-hero__grid { grid-template-columns: 1fr; }
  .th-hero__visual { display: none; }
  .th-hero__title { font-size: clamp(1.75rem, 6vw, 2.2rem); }
  .th-hero__actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .th-hero__actions .btn { width: 100%; justify-content: center; }

  .th-stats-bar__grid { grid-template-columns: repeat(2,1fr); }
  .th-stats-bar__item:nth-child(2) { border-right: none; }
  .th-stats-bar__item:nth-child(3) { border-right: 1px solid var(--th-gray-200); }

  .th-services__grid { grid-template-columns: 1fr; }
  .th-reloc-features { grid-template-columns: 1fr; gap: 8px; }

  .th-blog-layout { grid-template-columns: 1fr; }
  .th-blog-layout__sidebar { margin-top: 0; }
  .th-blog-preview__grid { grid-template-columns: 1fr; }

  .th-page-layout { grid-template-columns: 1fr; }
  .th-contact-grid { grid-template-columns: 1fr; }
  .th-contact-info-row { grid-template-columns: repeat(2,1fr); }

  .th-cta-banner__inner { flex-direction: column; text-align: center; align-items: center; }
  .th-cta-banner__actions { justify-content: center; width: 100%; }

  .th-pobox-plans { grid-template-columns: 1fr 1fr; }
  .th-pobox-note { grid-column: span 2; }

  .th-post-nav__inner { grid-template-columns: 1fr; }
  .th-post-nav__link--next { text-align: left; }

  .th-legal-layout { grid-template-columns: 1fr; }
  .th-legal-toc { position: static; }

  .th-topbar__item:nth-child(3) { display: none; }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .th-hero__title { font-size: 1.7rem; }
  .th-hero__desc { font-size: .95rem; }

  .th-stats-bar__num { font-size: 1.55rem; }
  .th-stats-bar__item { padding: 10px 8px; }

  .th-pobox-plans { grid-template-columns: 1fr; }
  .th-pobox-note { grid-column: 1; }

  .th-contact-info-row { grid-template-columns: 1fr; }

  .th-contact-form-wrap { padding: 24px 18px; }

  .kitdigital-logos { gap: 14px; }
  .kd-logo-item svg { height: 26px; }
  .kitdigital-text { font-size: .68rem; }

  /* New Kit Digital strip classes */
  .th-kitdigital__logos { gap: 14px; }
  .th-kitdigital__logo-item img { height: 30px; }
  .th-kitdigital__text { font-size: .64rem; }

  .th-footer__bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
  .th-footer__brand { max-width: 100%; }

  .th-author-box { flex-direction: column; align-items: flex-start; }

  .th-blog-preview__grid { grid-template-columns: 1fr; }

  .th-topbar__contact { gap: 8px; flex-wrap: wrap; }
  .th-topbar__item { font-size: 12px; }

  .th-cookie-banner__inner { flex-direction: column; gap: 12px; }
  .th-cookie-banner__actions { width: 100%; justify-content: stretch; }
  .th-cookie-accept, .th-cookie-reject { flex: 1; text-align: center; }
}

/* Very small screens */
@media (max-width: 360px) {
  .th-hero__title { font-size: 1.5rem; }
  .th-stats-bar__num { font-size: 1.3rem; }
  .th-nav__link--cta { padding: 9px 14px; font-size: .82rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .th-hero__pulse { animation: none; }
  .th-service-card { transition: none; }
  .th-service-card:hover { transform: none; }
  .th-btn-primary:hover { transform: none; }
  .th-blog-card:hover { transform: none; }
  .th-blog-card:hover .th-blog-card__thumb { transform: none; }
}

/* Print */
@media print {
  .th-topbar, .th-header, .th-mobile-nav, .th-cookie-banner,
  .th-cta-banner, .th-blog-layout__sidebar, .th-footer { display: none !important; }
  .th-blog-layout { grid-template-columns: 1fr; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .th-hero { background: none; color: #000; padding: 20px 0; }
  .th-hero__title, .th-hero__desc { color: #000; }
}

/* ============================================================
   FINAL PATCH — Missing classes identified in audit
   ============================================================ */

/* Blog layout columns */
.th-blog-layout__posts { min-width: 0; }
.th-blog-layout__sidebar { min-width: 0; }

/* Blog card full variant (used in blog lists) */
.th-blog-card--full { display: flex; flex-direction: column; }
.th-blog-card--full .th-blog-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Nav menu base — handled above with high specificity */
.th-nav__item { list-style: none; }

/* Mobile nav item base */
.th-mobile-nav__item { list-style: none; }

/* Relocation visual title (inside blue card) */
.th-relocation__visual-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--th-white);
  margin-bottom: 20px;
  opacity: .92;
}

/* Footer map link */
.th-footer__map { margin-top: 16px; }

/* Fix: footer desc and social colours already patched,
   ensure address link colour consistent */
.th-footer__address a:hover { color: var(--th-orange-light); }

/* Fix: widget-title inside sidebar widgets */
.th-sidebar-widget .widget-title {
  font-family: 'Outfit', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--th-gray-800);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(244,121,32,.35);
}

/* Fix: th-blog-card__link needs decoration:none when .th-blog-card--full */
.th-blog-card--full .th-blog-card__link { text-decoration: none; }

/* Fix: entry-content image handling for WP block editor */
.entry-content img { max-width: 100%; height: auto; border-radius: var(--th-radius-sm); }
.entry-content figure { margin: 1.5rem 0; }
.entry-content figcaption { font-size: .82rem; color: var(--th-gray-600); text-align: center; margin-top: 6px; }
.entry-content blockquote {
  border-left: 4px solid var(--th-orange);
  margin: 1.5rem 0;
  padding: 12px 20px;
  background: var(--th-off-white);
  border-radius: 0 var(--th-radius-sm) var(--th-radius-sm) 0;
  font-style: italic;
  color: var(--th-gray-600);
}
.entry-content blockquote p { margin: 0; }
.entry-content pre {
  background: var(--th-gray-800);
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: var(--th-radius-sm);
  overflow-x: auto;
  font-size: .88rem;
  margin: 1.5rem 0;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
}
.entry-content table th,
.entry-content table td {
  padding: 10px 14px;
  border: 1px solid var(--th-gray-200);
  text-align: left;
}
.entry-content table th { background: var(--th-gray-100); font-weight: 600; color: var(--th-gray-800); }
.entry-content table tbody tr:hover { background: var(--th-off-white); }

/* Fix: page-link WordPress pages */
.entry-content .page-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.entry-content .page-links .th-page-links__label { font-weight: 600; color: var(--th-gray-600); }
.entry-content .page-links .th-page-links__item a,
.entry-content .page-links .th-page-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--th-radius-sm);
  background: var(--th-gray-100);
  color: var(--th-gray-600);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--th-transition);
}
.entry-content .page-links .th-page-links__item a:hover { background: var(--th-blue); color: var(--th-white); }

/* Fix: single post categories contrast */
.th-single-post__cats a {
  font-family: 'Outfit', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--th-orange-dark);
  background: rgba(212,98,10,.1);
  border: 1px solid rgba(212,98,10,.25);
  padding: 3px 10px;
  border-radius: var(--th-radius-pill);
  text-decoration: none;
  margin-right: 6px;
  transition: all var(--th-transition);
  display: inline-block;
}
.th-single-post__cats a:hover { background: var(--th-orange); color: var(--th-white); border-color: var(--th-orange); }

/* Fix: th-page-links item inside WP pagination */
.th-post-nav__link {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: var(--th-gray-100);
  border-radius: var(--th-radius);
  text-decoration: none;
  transition: all var(--th-transition);
  border: 1px solid var(--th-gray-200);
  gap: 4px;
}
.th-post-nav__link:hover {
  background: var(--th-blue);
  border-color: var(--th-blue);
}
.th-post-nav__link:hover .th-post-nav__dir,
.th-post-nav__link:hover .th-post-nav__title { color: var(--th-white); }
.th-post-nav__link--next { text-align: right; }
.th-post-nav__dir {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--th-gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
}
.th-post-nav__link--next .th-post-nav__dir { justify-content: flex-end; }
.th-post-nav__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: var(--th-gray-800);
  line-height: 1.3;
}

/* Fix: comment reply link */
.th-comment__reply { font-size: .82rem; }
.th-comment__reply a {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--th-blue);
  text-decoration: none;
  transition: color var(--th-transition);
}
.th-comment__reply a:hover { color: var(--th-orange-dark); }

/* Fix: th-btn-cta should also not be overridden by Bootstrap */
.th-btn-cta { text-decoration: none; display: inline-flex; align-items: center; }

/* Fix: contact info card small text contrast */
.th-contact-info-card small { color: var(--th-gray-600); } /* was text-muted var */

/* Fix: reloc step text contrast on dark bg */
.th-reloc-step__text strong { color: var(--th-white); }
.th-reloc-step__text span { color: rgba(255,255,255,.78); font-size: .82rem; display: block; line-height: 1.5; }

/* Fix: hero desc on dark bg */
.th-hero__desc { color: rgba(255,255,255,.88); }

/* Fix: page hero desc on dark bg */
.th-page-hero__desc { color: rgba(255,255,255,.85); }

/* Fix: CTA banner desc */
.th-cta-banner__content p { color: rgba(255,255,255,.85); margin: 0; }

/* Fix: pobox note contrast */
.th-pobox-note { color: var(--th-gray-600); font-size: .86rem; }

/* Fix: plan card desc */
.th-plan-card__desc { color: var(--th-gray-600); }

/* Ensure footer address p has no bootstrap margin */
.th-footer__address p { margin-bottom: 6px; }
.th-footer__address p:last-child { margin-bottom: 0; }

/* Smooth scroll offset for all anchor targets */
:target { scroll-margin-top: 90px; }

/* Focus visible styles (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--th-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* WP admin bar offset for sticky header */
.admin-bar .th-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .th-header { top: 46px; }
}
.meta-author { display: none !important; }
/* ============================================================
   HEALTH INSURANCE BANNER — rediseño
   ============================================================ */
.th-insurance {
  position: relative;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding: 80px 0;
  overflow: hidden;
}
/* Overlay azul oscuro sobre la foto */
.th-insurance__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,20,60,.94) 0%,
    rgba(15,37,96,.90) 45%,
    rgba(10,20,60,.75) 100%
  );
  z-index: 0;
}
.th-insurance .container { position: relative; z-index: 1; }

.th-insurance__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: center;
}

/* Texto izquierdo */
.th-insurance__badge {
  display: inline-flex;
  align-items: center;
  background: rgba(244,121,32,.2);
  border: 1px solid rgba(244,121,32,.45);
  color: var(--th-orange-light);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--th-radius-pill);
  margin-bottom: 16px;
}
.th-insurance__body h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.15;
}
.th-insurance__body p {
  color: rgba(255,255,255,.82);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 500px;
}
.th-insurance__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}
.th-insurance__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .92rem;
  color: rgba(255,255,255,.88);
  font-weight: 500;
}
.th-insurance__list li .fa-check {
  color: var(--th-orange);
  font-size: .8rem;
  flex-shrink: 0;
}

/* Card derecha */
.th-insurance__card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.th-insurance__card-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}
.th-insurance__card-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}
.th-insurance__card-logo i { color: var(--th-orange); }
.th-insurance__card-logo span {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  color: rgba(255,255,255,.8);
  letter-spacing: .04em;
}
.th-insurance__card-x {
  font-size: 1.5rem;
  color: rgba(255,255,255,.3);
  font-weight: 300;
}
.th-insurance__card-stat {
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 14px 0;
  width: 100%;
}
.th-insurance__card-stat strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--th-orange-light);
  line-height: 1;
}
.th-insurance__card-stat span {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
}
.th-insurance__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--th-orange);
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  padding: 13px 24px;
  border-radius: var(--th-radius-pill);
  text-decoration: none !important;
  transition: all var(--th-transition);
  box-shadow: 0 4px 16px rgba(244,121,32,.4);
  width: 100%;
}
.th-insurance__cta:hover {
  background: var(--th-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,121,32,.5);
}
.th-insurance__sub {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .th-insurance__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .th-insurance__list { grid-template-columns: 1fr; }
  .th-insurance__card { max-width: 400px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .th-insurance { padding: 56px 0; }
  .th-insurance__body h2 { font-size: 1.7rem; }
}