/* ==========================================================================
   TECOM HISPALIS S.L. — ESTILOS CORPORATIVOS MINIMALISTAS (https://tecomhispalis.com)
   Manual de Identidad Visual:
     - Tipografía: Montserrat (Bold 700/800, Regular/Medium 400/500, Thin/Light 200/300)
     - Azul Marino Corporativo: #012057
     - Coral / Naranja Ascendente: #fe7042
   ========================================================================== */

:root {
  /* Paleta Oficial Tecom Hispalis */
  --th-navy: #012057;
  --th-navy-dark: #00153b;
  --th-navy-mid: #0a2f73;
  --th-navy-tint: #eef3fb;
  --th-coral: #fe7042;
  --th-coral-hover: #e55a2d;
  --th-coral-tint: #fff3ee;
  
  /* Neutros Minimalistas */
  --th-bg: #ffffff;
  --th-surface: #f8fafc;
  --th-surface-alt: #f1f5f9;
  --th-border: #e2e8f0;
  --th-border-strong: #cbd5e1;
  --th-text: #0f172a;
  --th-text-muted: #475569;
  --th-text-light: #64748b;
  --th-success: #0d9488;

  /* Tipografía y Espaciado */
  --font-sans: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 78rem; /* 1248px */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-pill: 9999px;

  /* Sombras Minimalistas */
  --shadow-xs: 0 1px 2px rgba(1, 32, 87, 0.04);
  --shadow-sm: 0 4px 12px rgba(1, 32, 87, 0.06);
  --shadow-md: 0 12px 32px -4px rgba(1, 32, 87, 0.08), 0 4px 12px -2px rgba(1, 32, 87, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(1, 32, 87, 0.14);
}

/* ==========================================================================
   1. RESET, ESTABILIDAD DE LAYOUT Y TIPOGRAFÍA BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--th-text);
  background-color: var(--th-bg);
  min-block-size: 100dvh;
  display: flex;
  flex-direction: column;
  text-align: start;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

/* Evitar gaps de elementos inline reemplazados */
img,
svg,
video,
canvas {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

/* Tipografía legible y balanceada */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block: 0 0.75rem;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--th-navy);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p,
li,
blockquote {
  text-wrap: pretty;
}

p {
  margin-block: 0 1rem;
  max-inline-size: 75ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Indicadores de foco de alto contraste para accesibilidad */
:where(a:any-link, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--th-coral);
  outline-offset: 3px;
}

/* Utilidad Visually Hidden accesible (permite foco en skip-link) */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link:focus-visible {
  position: fixed;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  z-index: 9999;
  padding-block: 0.75rem;
  padding-inline: 1.25rem;
  background-color: var(--th-navy);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

/* Contenedor Principal */
.th-container {
  inline-size: min(100% - 2.5rem, var(--container-max));
  margin-inline: auto;
}

/* ==========================================================================
   2. TOPBAR CORPORATIVA
   ========================================================================== */
.th-topbar {
  background-color: var(--th-navy-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
  border-block-end: 1px solid rgba(255, 255, 255, 0.08);
}

.th-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.5rem;
}

.th-topbar-status {
  display: flex;
  align-items: safe center;
  gap: 0.5rem;
  font-weight: 500;
}

.th-status-dot {
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 50%;
  background-color: var(--th-coral);
  box-shadow: 0 0 0 3px rgba(254, 112, 66, 0.25);
  flex-shrink: 0;
}

.th-topbar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-topbar-links a {
  display: inline-flex;
  align-items: safe center;
  gap: 0.375rem;
  color: rgba(255, 255, 255, 0.85);
  min-block-size: 1.5rem;
}

.th-topbar-links a:hover {
  color: var(--th-coral);
}

/* ==========================================================================
   3. HEADER STICKY Y NAVEGACIÓN
   ========================================================================== */
.th-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--th-border);
}

.th-header-inner {
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.875rem;
}

.th-brand {
  display: inline-flex;
  align-items: safe center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.th-brand-logo {
  block-size: 2.75rem;
  inline-size: auto;
  aspect-ratio: 625 / 150;
  object-fit: contain;
}

.th-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-nav-link {
  display: inline-flex;
  align-items: safe center;
  padding-block: 0.5rem;
  padding-inline: 0.875rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--th-navy);
  border-radius: var(--radius-sm);
  min-block-size: 2.5rem;
}

.th-nav-link:hover {
  color: var(--th-coral);
  background-color: var(--th-surface);
}

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

/* Botones Corporativos */
.th-btn {
  display: inline-flex;
  align-items: safe center;
  justify-content: center;
  gap: 0.5rem;
  padding-block: 0.6875rem;
  padding-inline: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  min-block-size: 2.75rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.th-btn-coral {
  background-color: var(--th-coral);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(254, 112, 66, 0.28);
}

.th-btn-coral:hover {
  background-color: var(--th-coral-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(254, 112, 66, 0.36);
}

.th-btn-navy {
  background-color: var(--th-navy);
  color: #ffffff;
}

.th-btn-navy:hover {
  background-color: var(--th-navy-mid);
  transform: translateY(-1px);
}

.th-btn-outline {
  background-color: transparent;
  color: var(--th-navy);
  border-color: var(--th-border-strong);
}

.th-btn-outline:hover {
  border-color: var(--th-navy);
  background-color: var(--th-navy-tint);
}

.th-btn-sm {
  padding-block: 0.5rem;
  padding-inline: 0.9375rem;
  font-size: 0.825rem;
  min-block-size: 2.375rem;
}

.th-btn-lg {
  padding-block: 0.9375rem;
  padding-inline: 1.75rem;
  font-size: 0.975rem;
  min-block-size: 3.25rem;
}

/* Botón Menú Móvil */
.th-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  padding: 0;
  background-color: var(--th-surface);
  color: var(--th-navy);
  border: 1px solid var(--th-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.th-mobile-drawer {
  display: none;
  background-color: #ffffff;
  border-block-end: 1px solid var(--th-border);
  padding-block: 1rem 1.5rem;
  overscroll-behavior: contain;
}

.th-mobile-drawer[ data-open="true" ] {
  display: block;
}

.th-mobile-nav-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.th-mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  padding-inline: 0.75rem;
  font-weight: 600;
  color: var(--th-navy);
  border-radius: var(--radius-sm);
}

.th-mobile-nav-list a:hover {
  background-color: var(--th-surface);
  color: var(--th-coral);
}

.th-mobile-actions {
  display: grid;
  gap: 0.625rem;
}

/* ==========================================================================
   4. HERO CORPORATIVO MINIMALISTA
   ========================================================================== */
.th-hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  background:
    radial-gradient(circle at 88% 14%, rgba(254, 112, 66, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 10% 80%, rgba(1, 32, 87, 0.05) 0%, transparent 48%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-block-end: 1px solid var(--th-border);
  overflow: clip;
}

.th-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.th-eyebrow {
  display: inline-flex;
  align-items: safe center;
  gap: 0.5rem;
  padding-block: 0.375rem;
  padding-inline: 0.875rem;
  margin-block-end: 1.25rem;
  background-color: var(--th-navy-tint);
  color: var(--th-navy);
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(1, 32, 87, 0.12);
}

.th-eyebrow-accent {
  color: var(--th-coral);
}

.th-hero-title {
  font-size: clamp(2.125rem, 1.5rem + 2.5vw, 3.375rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--th-navy);
  margin-block-end: 0.75rem;
}

.th-hero-title-thin {
  display: block;
  font-weight: 300;
  color: var(--th-text-muted);
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem);
  margin-block-start: 0.35rem;
  letter-spacing: -0.01em;
}

.th-text-coral {
  color: var(--th-coral);
}

.th-hero-lead {
  font-size: clamp(1.025rem, 0.95rem + 0.35vw, 1.15rem);
  color: var(--th-text-muted);
  line-height: 1.65;
  margin-block-end: 1.75rem;
  max-inline-size: 62ch;
}

.th-hero-pills {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 0.5rem;
  margin-block: 0 2rem;
  padding: 0;
  list-style: none;
}

.th-pill {
  display: inline-flex;
  align-items: safe center;
  gap: 0.4rem;
  padding-block: 0.375rem;
  padding-inline: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--th-navy);
  background-color: #ffffff;
  border: 1px solid var(--th-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
}

.th-pill-dot {
  inline-size: 0.4rem;
  block-size: 0.4rem;
  border-radius: 50%;
  background-color: var(--th-coral);
}

.th-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  gap: 0.875rem;
  margin-block-end: 2.25rem;
}

.th-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--th-border);
}

.th-metric-value {
  display: block;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  color: var(--th-navy);
  line-height: 1.1;
}

.th-metric-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--th-text-muted);
  margin-block-start: 0.25rem;
  font-weight: 500;
}

/* Panel Visual Derecho del Hero */
.th-hero-panel {
  background-color: #ffffff;
  border: 1px solid var(--th-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.th-hero-panel::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 1.5rem;
  block-size: 4px;
  background: linear-gradient(90deg, var(--th-navy) 0%, var(--th-coral) 100%);
  border-radius: 0 0 4px 4px;
}

.th-hero-panel-header {
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 1rem;
  padding-block-end: 1.25rem;
  margin-block-end: 1.25rem;
  border-block-end: 1px solid var(--th-border);
}

.th-hero-panel-logo {
  block-size: 4.5rem;
  inline-size: auto;
  object-fit: contain;
}

.th-verisure-badge-img {
  block-size: 2.75rem;
  inline-size: auto;
  object-fit: contain;
}

.th-hero-verticals-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-mini-card {
  padding: 0.875rem;
  background-color: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.th-mini-card:hover {
  border-color: var(--th-coral);
  background-color: #ffffff;
}

.th-mini-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-end: 0.35rem;
}

.th-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2rem;
  block-size: 2rem;
  border-radius: 0.5rem;
  background-color: var(--th-navy);
  color: #ffffff;
  flex-shrink: 0;
}

.th-mini-card:nth-child(even) .th-mini-icon {
  background-color: var(--th-coral);
}

.th-mini-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--th-navy);
  margin: 0;
}

.th-mini-desc {
  font-size: 0.76rem;
  color: var(--th-text-muted);
  margin: 0;
  line-height: 1.4;
}

.th-hero-panel-footer {
  margin-block-start: 1.25rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--th-border);
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--th-text-muted);
}

/* ==========================================================================
   5. BANDA DE LOGOTIPOS Y COMERCIALIZADORAS OFICIALES
   ========================================================================== */
.th-partners-band {
  padding-block: 2.75rem;
  background-color: #ffffff;
  border-block-end: 1px solid var(--th-border);
}

.th-partners-header {
  text-align: center;
  margin-block-end: 1.75rem;
}

.th-partners-kicker {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--th-text-light);
  margin: 0;
}

.th-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 1rem;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding-block: 1rem;
  padding-inline: 1rem;
  background-color: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--radius-md);
  min-block-size: 5.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.th-partner-item:hover {
  background-color: #ffffff;
  border-color: var(--th-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.th-partner-logo-img {
  max-block-size: 2.25rem;
  inline-size: auto;
  object-fit: contain;
}

.th-partner-svg {
  block-size: 2rem;
  inline-size: auto;
}

.th-partner-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--th-text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   6. SECCIONES GENERALES Y ENCABEZADOS
   ========================================================================== */
.th-section {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.th-section-surface {
  background-color: var(--th-surface);
  border-block: 1px solid var(--th-border);
}

.th-section-navy {
  background-color: var(--th-navy);
  color: #ffffff;
}

.th-section-header {
  max-inline-size: 48rem;
  margin-inline: auto;
  text-align: center;
  margin-block-end: clamp(2.25rem, 4vw, 3.5rem);
}

.th-section-header p {
  margin-inline: auto;
  color: var(--th-text-muted);
  font-size: 1.05rem;
}

.th-section-title {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  font-weight: 800;
  color: var(--th-navy);
  margin-block-end: 0.75rem;
}

.th-title-light {
  font-weight: 300;
}

/* ==========================================================================
   7. LAS 6 LÍNEAS DE NEGOCIO (FILTRO + SUBGRID + CONTAINER QUERIES)
   ========================================================================== */
.th-filter-bar {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  justify-content: center;
  gap: 0.5rem;
  margin-block-end: 2.5rem;
}

.th-filter-btn {
  padding-block: 0.55rem;
  padding-inline: 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--th-text-muted);
  background-color: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  min-block-size: 2.5rem;
  transition: all 0.2s ease;
}

.th-filter-btn:hover {
  color: var(--th-navy);
  border-color: var(--th-navy);
}

.th-filter-btn[ aria-pressed="true" ] {
  background-color: var(--th-navy);
  color: #ffffff;
  border-color: var(--th-navy);
  box-shadow: var(--shadow-sm);
}

/* Grid Principal con Subgrid para alineación perfecta entre tarjetas */
.th-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 1.5rem;
}

.th-service-card-wrap {
  container: service-card / inline-size;
  display: grid;
  grid-row: span 4;
  grid-template-rows: auto auto 1fr auto;
  grid-template-rows: subgrid;
}

.th-service-card-wrap[ hidden ] {
  display: none !important;
}

.th-service-card {
  grid-row: span 4;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  grid-template-rows: subgrid;
  gap: 1rem;
  padding: 1.75rem;
  background-color: #ffffff;
  border: 1px solid var(--th-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: clip;
}

.th-service-card::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  block-size: 3px;
  background-color: var(--th-navy);
  transition: background-color 0.25s ease;
}

.th-service-card:hover {
  border-color: var(--th-coral);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.th-service-card:hover::after {
  background-color: var(--th-coral);
}

.th-service-top {
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 1rem;
}

.th-service-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 3.25rem;
  block-size: 3.25rem;
  border-radius: var(--radius-md);
  background-color: var(--th-navy-tint);
  color: var(--th-navy);
}

.th-service-card:hover .th-service-icon-box {
  background-color: var(--th-coral-tint);
  color: var(--th-coral);
}

.th-service-badge {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-block: 0.25rem;
  padding-inline: 0.65rem;
  border-radius: var(--radius-pill);
  background-color: var(--th-surface);
  color: var(--th-navy);
  border: 1px solid var(--th-border);
}

.th-service-title {
  font-size: clamp(1.2rem, 3.5cqi, 1.375rem);
  font-weight: 700;
  color: var(--th-navy);
  margin: 0;
}

.th-service-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.th-service-desc {
  font-size: 0.925rem;
  color: var(--th-text-muted);
  margin: 0;
  line-height: 1.6;
}

.th-service-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.th-service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--th-text);
  font-weight: 500;
}

.th-check-icon {
  color: var(--th-coral);
  flex-shrink: 0;
  margin-block-start: 0.15rem;
}

.th-service-brands {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 0.375rem;
  margin-block-start: auto;
  padding-block-start: 0.5rem;
}

.th-brand-chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding-block: 0.25rem;
  padding-inline: 0.6rem;
  border-radius: var(--radius-sm);
  background-color: var(--th-navy-tint);
  color: var(--th-navy);
}

.th-brand-chip-coral {
  background-color: var(--th-coral-tint);
  color: #c2410c;
}

.th-service-footer {
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--th-border);
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 0.75rem;
}

.th-service-cta {
  display: inline-flex;
  align-items: safe center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--th-navy);
  background: none;
  border: none;
  padding: 0.25rem 0;
  cursor: pointer;
  min-block-size: 2rem;
}

.th-service-cta:hover {
  color: var(--th-coral);
}

/* ==========================================================================
   8. BLOQUE DESTACADO: COMERCIALIZADORAS ENERGÉTICAS (6 COMPAÑÍAS)
   ========================================================================== */
.th-energy-showcase {
  background-color: #ffffff;
  border: 1px solid var(--th-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
}

.th-energy-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}

.th-energy-companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-energy-card {
  padding: 1.125rem;
  background-color: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.th-energy-card:hover {
  background-color: #ffffff;
  border-color: var(--th-coral);
}

.th-energy-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.th-energy-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--th-navy);
  margin: 0;
}

.th-energy-desc {
  font-size: 0.8rem;
  color: var(--th-text-muted);
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   9. BLOQUE DESTACADO: VERISURE + ADESLAS + AVERÍAS / FRÍO INDUSTRIAL
   ========================================================================== */
.th-dual-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1.75rem;
  margin-block-start: 2rem;
}

.th-highlight-box {
  background-color: #ffffff;
  border: 1px solid var(--th-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-xs);
}

.th-verisure-media-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1rem;
  align-items: center;
  background-color: var(--th-surface);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--th-border);
}

.th-verisure-kit-img {
  inline-size: 100%;
  max-block-size: 11rem;
  object-fit: contain;
}

.th-verisure-placa-img {
  inline-size: 100%;
  max-block-size: 10rem;
  object-fit: contain;
}

.th-technical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}

.th-tech-item {
  padding: 1rem;
  background-color: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--radius-md);
}

.th-tech-item h4 {
  font-size: 0.9rem;
  margin-block-end: 0.35rem;
  color: var(--th-navy);
}

.th-tech-item p {
  font-size: 0.8rem;
  color: var(--th-text-muted);
  margin: 0;
}

/* ==========================================================================
   10. METODOLOGÍA DE VENTA TELEFÓNICA (4 PILARES)
   ========================================================================== */
.th-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-step-card {
  padding: 1.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
}

.th-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--th-coral);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-block-end: 1rem;
}

.th-step-card h3 {
  color: #ffffff;
  font-size: 1.125rem;
  margin-block-end: 0.5rem;
}

.th-step-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================================================
   11. SECCIÓN DE CONTACTO Y FORMULARIO DE SOLICITUD DE LLAMADA
   ========================================================================== */
.th-contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.th-corporate-card {
  background-color: var(--th-navy);
  color: #ffffff;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.th-corporate-card h3 {
  color: #ffffff;
  font-size: 1.375rem;
  margin-block-end: 0.5rem;
}

.th-corporate-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.125rem;
}

.th-corporate-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.th-corp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border-radius: var(--radius-sm);
  background-color: rgba(254, 112, 66, 0.18);
  color: var(--th-coral);
  flex-shrink: 0;
}

.th-corp-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 600;
}

.th-corp-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-block-start: 0.15rem;
}

.th-corp-value a:hover {
  color: var(--th-coral);
}

/* Formulario Accesible */
.th-form-card {
  background-color: #ffffff;
  border: 1px solid var(--th-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.th-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem;
}

.th-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.th-form-group-full {
  grid-column: 1 / -1;
}

.th-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--th-navy);
}

.th-hint {
  font-size: 0.775rem;
  color: var(--th-text-light);
}

.th-input,
.th-select,
.th-textarea {
  inline-size: 100%;
  padding-block: 0.7rem;
  padding-inline: 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.925rem;
  color: var(--th-text);
  background-color: var(--th-surface);
  border: 1px solid var(--th-border-strong);
  border-radius: var(--radius-sm);
  min-block-size: 2.75rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.th-input:focus,
.th-select:focus,
.th-textarea:focus {
  background-color: #ffffff;
  border-color: var(--th-navy);
}

.th-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.825rem;
  color: var(--th-text-muted);
}

.th-checkbox-row input[ type="checkbox" ] {
  inline-size: 1.15rem;
  block-size: 1.15rem;
  margin-block-start: 0.15rem;
  accent-color: var(--th-coral);
  flex-shrink: 0;
}

.th-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--th-navy);
  text-decoration: underline;
  cursor: pointer;
}

.th-link-btn:hover {
  color: var(--th-coral);
}

.th-form-status {
  margin-block-start: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
}

.th-form-status[ hidden ] {
  display: none !important;
}

.th-form-status-ok {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* ==========================================================================
   12. FOOTER CORPORATIVO Y MODALES LEGALES NATIVOS (<dialog>)
   ========================================================================== */
.th-footer {
  background-color: var(--th-navy-dark);
  color: rgba(255, 255, 255, 0.78);
  padding-block: 3.5rem 2rem;
  border-block-start: 4px solid var(--th-coral);
}

.th-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2rem;
  padding-block-end: 2.5rem;
  border-block-end: 1px solid rgba(255, 255, 255, 0.1);
}

.th-footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: 1rem;
}

.th-footer-logo {
  block-size: 3rem;
  inline-size: auto;
}

.th-footer-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-block-end: 1rem;
}

.th-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.th-footer-links a,
.th-footer-links button {
  color: rgba(255, 255, 255, 0.78);
  background: none;
  border: none;
  padding: 0.15rem 0;
  font-family: inherit;
  font-size: inherit;
  text-align: start;
  cursor: pointer;
}

.th-footer-links a:hover,
.th-footer-links button:hover {
  color: var(--th-coral);
}

.th-footer-bottom {
  padding-block-start: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.62);
}

/* Native <dialog> Modals */
.th-dialog {
  inline-size: min(92vw, 44rem);
  max-block-size: 85dvh;
  padding: 0;
  border: 1px solid var(--th-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--th-text);
  background-color: #ffffff;
  overscroll-behavior: contain;
}

.th-dialog::backdrop {
  background-color: rgba(1, 21, 59, 0.65);
  backdrop-filter: blur(4px);
}

.th-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--th-surface);
  border-block-end: 1px solid var(--th-border);
  position: sticky;
  inset-block-start: 0;
}

.th-dialog-header h2 {
  font-size: 1.15rem;
  margin: 0;
}

.th-dialog-body {
  padding: 1.5rem;
  overflow-y: auto;
  scrollbar-gutter: stable;
  font-size: 0.9rem;
}

.th-dialog-body h3 {
  font-size: 1rem;
  margin-block-start: 1.25rem;
}

/* ==========================================================================
   13. MEDIA QUERIES RESPONSIVE
   ========================================================================== */
@media (max-width: 64rem) {
  .th-nav {
    display: none;
  }
  .th-mobile-toggle {
    display: inline-flex;
  }
  .th-hero-grid,
  .th-energy-layout,
  .th-contact-grid {
    grid-template-columns: 1fr;
  }
  .th-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .th-topbar-links {
    display: none;
  }
  .th-hero-metrics,
  .th-hero-verticals-summary,
  .th-form-grid,
  .th-technical-grid,
  .th-footer-grid {
    grid-template-columns: 1fr;
  }
  .th-verisure-media-row {
    grid-template-columns: 1fr;
  }
  .th-header-actions .th-btn-outline {
    display: none;
  }
}

@media (pointer: coarse) {
  .th-btn,
  .th-filter-btn,
  .th-nav-link {
    min-block-size: 2.75rem;
  }
}
