/* ───────────────────────────────────────────────────────────────────────
   HD Electronics — components.css
   Aditivo: usa tokens existentes de main.css y custom.css.
   Trust & Authority — B2B industrial, navy/grey, sin gradientes lúdicos.
   ─────────────────────────────────────────────────────────────────────── */

:root {
  --c-navy-900:        #07467c;
  --c-navy-700:        #0a2540;
  --c-navy-500:        #0056b3;
  --c-navy-300:        #4a78a8;
  --c-ink:             #172033;
  --c-ink-muted:       #4a5568;
  --c-ink-soft:        #6b7689;
  --c-line:            #e2e8f0;
  --c-line-soft:       #eef2f7;
  --c-surface:         #ffffff;
  --c-surface-alt:     #f6f9ff;
  --c-surface-deep:    #eef4fb;
  --c-accent:          #0880e8;
  --c-success:         #13a35f;
  --c-warning:         #d97706;
  --c-danger:          #dc2626;
  --c-whatsapp:        #25d366;
  --c-whatsapp-dark:   #1da851;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm:  0 1px 2px rgba(15, 35, 64, .06);
  --shadow-md:  0 4px 12px rgba(15, 35, 64, .08), 0 1px 3px rgba(15, 35, 64, .05);
  --shadow-lg:  0 12px 32px rgba(15, 35, 64, .12), 0 2px 6px rgba(15, 35, 64, .06);
  --shadow-ring: 0 0 0 1px var(--c-line);

  --t-ease: cubic-bezier(.2, .6, .2, 1);
  --t-fast: 160ms;
  --t-base: 220ms;
}

/* ───────────────────────────────────────────────────────────────────────
   BREADCRUMB
   ─────────────────────────────────────────────────────────────────────── */
.breadcrumb-wrap {
  background: linear-gradient(180deg, #ffffff 0%, var(--c-surface-deep) 100%);
  padding: 16px 0;
  margin-top: 110px;
}
@media (max-width: 991px) {
  .breadcrumb-wrap { margin-top: 90px; }
}
.breadcrumb-wrap .breadcrumb {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid var(--c-line-soft);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(7, 70, 124, 0.08);
  font-size: 14px;
  letter-spacing: .02em;
}
.breadcrumb-wrap .breadcrumb-item {
  color: var(--c-ink-muted);
}
.breadcrumb-wrap .breadcrumb-item a {
  color: var(--c-navy-500);
  text-decoration: none;
  transition: color var(--t-fast) var(--t-ease);
}
.breadcrumb-wrap .breadcrumb-item a:hover {
  color: var(--c-navy-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumb-wrap .breadcrumb-item.active {
  color: var(--c-navy-700);
  font-weight: 600;
}
.breadcrumb-wrap .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--c-ink-soft);
  padding: 0 .5em;
}

/* ───────────────────────────────────────────────────────────────────────
   BLOG — POST CARD
   ─────────────────────────────────────────────────────────────────────── */
.post-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base) var(--t-ease),
              box-shadow var(--t-base) var(--t-ease),
              border-color var(--t-base) var(--t-ease);
  position: relative;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-navy-300);
}
.post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.post-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--c-surface-deep);
  overflow: hidden;
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: transform var(--t-base) var(--t-ease);
  filter: saturate(.9);
}
.post-card:hover .post-card__media img {
  transform: scale(1.04);
}
.post-card__category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--c-navy-700);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 12px;
}
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--c-ink-soft);
  font-family: var(--nav-font, "Poppins", sans-serif);
  letter-spacing: .02em;
}
.post-card__meta i {
  margin-right: 4px;
  color: var(--c-navy-500);
}
.post-card__title {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.post-card__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--c-ink-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__footer {
  margin-top: auto;
  padding-top: 4px;
}
.post-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-navy-500);
  font-weight: 600;
  font-size: 14px;
  transition: gap var(--t-fast) var(--t-ease), color var(--t-fast) var(--t-ease);
}
.post-card:hover .post-card__cta {
  gap: 10px;
  color: var(--c-navy-900);
}

/* Featured variant — horizontal layout en desktop */
.post-card--featured {
  border: 1px solid var(--c-navy-300);
  background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-surface-alt) 100%);
}
@media (min-width: 992px) {
  .post-card--featured .post-card__link {
    flex-direction: row;
  }
  .post-card--featured .post-card__media {
    flex: 0 0 45%;
    aspect-ratio: auto;
    min-height: 280px;
  }
  .post-card--featured .post-card__body {
    flex: 1 1 55%;
    padding: 36px 40px;
    justify-content: center;
  }
  .post-card--featured .post-card__title {
    font-size: 26px;
  }
  .post-card--featured .post-card__desc {
    font-size: 16px;
    -webkit-line-clamp: 4;
  }
}
.post-card--featured::before {
  content: "Destacado";
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: var(--c-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

/* ───────────────────────────────────────────────────────────────────────
   BLOG — POST ARTICLE LAYOUT
   ─────────────────────────────────────────────────────────────────────── */
.post-article {
  padding-top: 48px;
  padding-bottom: 64px;
  background: var(--c-surface);
}
.post-header {
  max-width: 860px;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 32px;
  margin-bottom: 8px;
}
.post-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 13px;
  color: var(--c-ink-soft);
  margin-bottom: 16px;
  align-items: center;
}
.post-header__meta i { margin-right: 4px; color: var(--c-navy-500); }
.post-category {
  display: inline-block;
  background: var(--c-navy-700);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.post-title {
  font-family: var(--heading-font, "Raleway", sans-serif);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--c-ink);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}
.post-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--c-ink-muted);
  margin: 0 0 24px 0;
  max-width: 700px;
}
.post-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--c-ink-muted);
}
.post-author i {
  font-size: 28px;
  color: var(--c-navy-500);
}

/* TOC sidebar */
.post-toc {
  background: var(--c-surface-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  top: 100px;
}
.post-toc__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-ink-soft);
  font-weight: 700;
  margin: 0 0 14px 0;
}
.post-toc__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  counter-reset: toc;
}
.post-toc__list li {
  counter-increment: toc;
  margin: 0;
  border-left: 2px solid var(--c-line);
  padding-left: 12px;
}
.post-toc__list li + li { margin-top: 2px; }
.post-toc__list a {
  display: block;
  padding: 6px 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--c-ink-muted);
  text-decoration: none;
  transition: color var(--t-fast) var(--t-ease);
}
.post-toc__list a::before {
  content: counter(toc, decimal-leading-zero) " · ";
  color: var(--c-ink-soft);
  font-family: var(--nav-font, "Poppins", sans-serif);
  font-size: 11px;
  font-weight: 600;
}
.post-toc__list a:hover {
  color: var(--c-navy-700);
}
.post-toc__cta {
  border-top: 1px solid var(--c-line);
  padding-top: 16px;
  margin-top: 16px;
}
.post-toc__cta p {
  font-size: 13px;
  color: var(--c-ink-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Post body typography */
.post-body {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-ink);
}
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 {
  font-family: var(--heading-font, "Raleway", sans-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--c-navy-900);
  margin-top: 2.4em;
  margin-bottom: .6em;
  letter-spacing: -0.01em;
  scroll-margin-top: 96px;
  position: relative;
  padding-left: 14px;
}
.post-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: linear-gradient(180deg, var(--c-navy-500), var(--c-accent));
  border-radius: 2px;
}
.post-body h3 {
  font-family: var(--heading-font, "Raleway", sans-serif);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  color: var(--c-ink);
  margin-top: 1.8em;
  margin-bottom: .5em;
  scroll-margin-top: 96px;
}
.post-body p {
  margin: 0;
  color: var(--c-ink);
}
.post-body strong { font-weight: 700; color: var(--c-ink); }
.post-body em { font-style: italic; color: var(--c-ink-muted); }
.post-body a {
  color: var(--c-navy-500);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(0, 86, 179, .35);
  transition: text-decoration-color var(--t-fast) var(--t-ease);
}
.post-body a:hover {
  text-decoration-color: var(--c-navy-500);
}

.post-body ul,
.post-body ol {
  padding-left: 1.5em;
}
.post-body li { margin: .35em 0; }
.post-body ul li::marker { color: var(--c-navy-500); }
.post-body ol li::marker { color: var(--c-ink-soft); font-weight: 700; font-family: var(--nav-font, "Poppins"); }

.post-body code {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  padding: 2px 7px;
  background: var(--c-surface-deep);
  color: var(--c-navy-900);
  border-radius: var(--radius-xs);
  border: 1px solid var(--c-line);
}
.post-body pre {
  background: #0b1a2e;
  color: #e7eef7;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
  border: 1px solid #142a47;
  margin: 1.6em 0;
}
.post-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.post-body blockquote {
  margin: 1.8em 0;
  padding: 18px 24px;
  background: var(--c-surface-alt);
  border-left: 4px solid var(--c-navy-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--c-ink-muted);
}

.post-body .comparison-table,
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 1.8em 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.post-body table th {
  background: var(--c-navy-700);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  letter-spacing: .02em;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.post-body table td {
  padding: 12px 16px;
  border-top: 1px solid var(--c-line);
  vertical-align: top;
  line-height: 1.5;
}
.post-body table tbody tr:nth-child(even) {
  background: var(--c-surface-alt);
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-line);
  margin: 1.6em 0;
}

/* Tags + share */
.post-tags {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.post-tags__label {
  font-size: 13px;
  color: var(--c-ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.post-tag {
  background: var(--c-surface-alt);
  color: var(--c-navy-700);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--c-line);
}
.post-share {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--c-ink-muted);
}
.post-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-surface-alt);
  color: var(--c-navy-700);
  border: 1px solid var(--c-line);
  transition: all var(--t-fast) var(--t-ease);
}
.post-share a:hover {
  background: var(--c-navy-700);
  color: #fff;
  border-color: var(--c-navy-700);
  transform: translateY(-2px);
}

/* ───────────────────────────────────────────────────────────────────────
   BLOG HUB — HERO + LISTING
   ─────────────────────────────────────────────────────────────────────── */
.blog-hero,
.about-hero,
.contact-hero,
.hub-hero {
  padding-top: 140px !important;
  padding-bottom: 60px !important;
}
/* Cuando hero va después del breadcrumb, el breadcrumb ya despeja el header fijo.
   Anula el padding-top destinado a clearance del header. */
.breadcrumb-wrap + main .hero.section {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}
.blog-hero h1,
.about-hero h1,
.contact-hero h1,
.hub-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ───────────────────────────────────────────────────────────────────────
   FOUNDER CARD
   ─────────────────────────────────────────────────────────────────────── */
.founder-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.founder-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-navy-700) 0%, var(--c-navy-500) 50%, var(--c-accent) 100%);
}
@media (min-width: 768px) {
  .founder-card {
    grid-template-columns: 200px 1fr;
    align-items: start;
    gap: 36px;
  }
}
.founder-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-navy-700), var(--c-navy-500));
  border-radius: var(--radius-md);
  aspect-ratio: 1;
  color: rgba(255, 255, 255, .9);
  font-size: 96px;
  box-shadow: var(--shadow-sm);
}
.founder-card__body h3 {
  font-family: var(--heading-font, "Raleway", sans-serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--c-navy-900);
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}
.founder-card__role {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-navy-500);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-line);
}
.founder-card__body > p {
  color: var(--c-ink-muted);
  line-height: 1.65;
  margin: 0 0 20px 0;
}
.founder-card__expertise {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 768px) {
  .founder-card__expertise {
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
  }
}
.founder-card__expertise li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--c-ink);
  line-height: 1.5;
}
.founder-card__expertise li i {
  color: var(--c-success);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.founder-card__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--c-line);
  margin-top: 8px;
  padding-top: 24px;
}

/* ───────────────────────────────────────────────────────────────────────
   CREDENTIAL CARD
   ─────────────────────────────────────────────────────────────────────── */
.credential-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base) var(--t-ease),
              box-shadow var(--t-base) var(--t-ease),
              border-color var(--t-base) var(--t-ease);
  position: relative;
}
.credential-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-navy-300);
}
.credential-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--c-surface-deep);
  border-radius: var(--radius-sm);
  color: var(--c-navy-700);
  font-size: 28px;
  margin-bottom: 18px;
  transition: background var(--t-base) var(--t-ease), color var(--t-base) var(--t-ease);
}
.credential-card:hover .credential-card__icon {
  background: var(--c-navy-700);
  color: #fff;
}
.credential-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}
.credential-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--c-ink-muted);
  margin: 0;
}

/* ───────────────────────────────────────────────────────────────────────
   VALUE CARD
   ─────────────────────────────────────────────────────────────────────── */
.value-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base) var(--t-ease),
              border-color var(--t-base) var(--t-ease),
              box-shadow var(--t-base) var(--t-ease);
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-navy-500);
  box-shadow: var(--shadow-lg);
}
.value-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
}
.value-card__head i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--c-navy-700), var(--c-navy-500));
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 22px;
  flex-shrink: 0;
}
.value-card__head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.value-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--c-ink-muted);
}

/* ───────────────────────────────────────────────────────────────────────
   STORY STATS (sobre nosotros)
   ─────────────────────────────────────────────────────────────────────── */
.story-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.story-stat {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-navy-500);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.story-stat strong {
  font-family: var(--heading-font, "Raleway", sans-serif);
  font-size: 38px;
  font-weight: 800;
  color: var(--c-navy-900);
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  min-width: 90px;
}
.story-stat span {
  font-size: 14px;
  color: var(--c-ink-muted);
  line-height: 1.45;
}

.section-h2 {
  font-family: var(--heading-font, "Raleway", sans-serif);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--c-navy-900);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

/* ───────────────────────────────────────────────────────────────────────
   CONTACT METHOD CARDS
   ─────────────────────────────────────────────────────────────────────── */
.contact-method-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  height: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base) var(--t-ease),
              box-shadow var(--t-base) var(--t-ease),
              border-color var(--t-base) var(--t-ease);
}
.contact-method-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 transparent inset;
  transition: box-shadow var(--t-base) var(--t-ease);
}
.contact-method-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.contact-method-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 34px;
  margin: 0 auto 18px auto;
  background: var(--c-surface-deep);
  color: var(--c-navy-700);
  transition: transform var(--t-base) var(--t-ease);
}
.contact-method-card:hover .contact-method-card__icon {
  transform: scale(1.08) rotate(-4deg);
}
.contact-method-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}
.contact-method-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--c-ink-muted);
  margin: 0 0 24px 0;
  min-height: 3em;
}
.contact-method-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: gap var(--t-fast) var(--t-ease), transform var(--t-fast) var(--t-ease), background var(--t-fast) var(--t-ease);
  box-shadow: var(--shadow-sm);
}
.contact-method-card__cta:hover {
  gap: 12px;
  transform: translateY(-1px);
}
.contact-method-card small {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--c-ink-soft);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: -0.01em;
}

/* WhatsApp variant */
.contact-method-card--whatsapp .contact-method-card__icon {
  background: rgba(37, 211, 102, .12);
  color: var(--c-whatsapp-dark);
}
.contact-method-card--whatsapp .contact-method-card__cta {
  background: var(--c-whatsapp);
  color: #fff;
}
.contact-method-card--whatsapp .contact-method-card__cta:hover {
  background: var(--c-whatsapp-dark);
}
.contact-method-card--whatsapp:hover {
  border-color: var(--c-whatsapp);
}

/* Phone variant */
.contact-method-card--phone .contact-method-card__icon {
  background: rgba(8, 128, 232, .12);
  color: var(--c-accent);
}
.contact-method-card--phone .contact-method-card__cta {
  background: var(--c-navy-700);
  color: #fff;
}
.contact-method-card--phone .contact-method-card__cta:hover {
  background: var(--c-navy-900);
}
.contact-method-card--phone:hover {
  border-color: var(--c-navy-500);
}

/* Email variant */
.contact-method-card--email .contact-method-card__icon {
  background: rgba(74, 85, 104, .1);
  color: var(--c-ink-muted);
}
.contact-method-card--email .contact-method-card__cta {
  background: var(--c-surface);
  color: var(--c-navy-700);
  border: 2px solid var(--c-navy-700);
  padding: 10px 20px;
}
.contact-method-card--email .contact-method-card__cta:hover {
  background: var(--c-navy-700);
  color: #fff;
}
.contact-method-card--email:hover {
  border-color: var(--c-ink-muted);
}

/* ───────────────────────────────────────────────────────────────────────
   HOURS / LOCATION CARD
   ─────────────────────────────────────────────────────────────────────── */
.hours-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
  position: relative;
  box-shadow: var(--shadow-md);
}
.hours-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-navy-900);
  margin: 0 0 18px 0;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--c-line);
  letter-spacing: -0.01em;
}
.hours-card h3 i {
  color: var(--c-navy-500);
  font-size: 22px;
}
.hours-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hours-card li {
  padding: 10px 0;
  font-size: 14.5px;
  color: var(--c-ink);
  line-height: 1.5;
  border-bottom: 1px dashed var(--c-line-soft);
}
.hours-card li:last-child { border-bottom: 0; }
.hours-card li strong {
  display: block;
  font-weight: 700;
  color: var(--c-navy-700);
  margin-bottom: 2px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ───────────────────────────────────────────────────────────────────────
   SERVICE DETAIL (page individual de servicio)
   ─────────────────────────────────────────────────────────────────────── */
.service-detail {
  padding-top: 56px;
  padding-bottom: 48px;
}
.service-detail h2 {
  font-family: var(--heading-font, "Raleway", sans-serif);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  color: var(--c-navy-900);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.service-detail h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}
.service-detail .lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-ink-muted);
  margin-bottom: 32px;
}
.feature-list,
.use-case-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.feature-list li,
.use-case-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--c-ink);
  line-height: 1.55;
  border-bottom: 1px dashed var(--c-line-soft);
}
.feature-list li:last-child,
.use-case-list li:last-child { border-bottom: 0; }
.feature-list li i {
  color: var(--c-success);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.use-case-list li i {
  color: var(--c-navy-500);
  font-size: 22px;
  flex-shrink: 0;
  margin-top: -1px;
}

/* Sidebar of service detail */
.service-sidebar {
  position: sticky;
  top: 100px;
  background: var(--c-surface-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.service-sidebar h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-navy-900);
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}
.service-sidebar h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--c-ink-soft);
  font-weight: 700;
  margin: 0 0 12px 0;
}
.service-sidebar > p {
  font-size: 14.5px;
  color: var(--c-ink-muted);
  margin-bottom: 18px;
  line-height: 1.55;
}
.service-sidebar hr {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: 22px 0 18px 0;
}
.related-services {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-services li + li { margin-top: 4px; }
.related-services a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1px dashed var(--c-line-soft);
  transition: color var(--t-fast) var(--t-ease), padding-left var(--t-fast) var(--t-ease);
}
.related-services li:last-child a { border-bottom: 0; }
.related-services a:hover {
  color: var(--c-navy-700);
  padding-left: 4px;
}
.related-services i {
  color: var(--c-navy-500);
  font-size: 18px;
  flex-shrink: 0;
  width: 20px;
}

/* ───────────────────────────────────────────────────────────────────────
   SERVICE HERO TAG con icon (variante)
   ─────────────────────────────────────────────────────────────────────── */
.service-hero .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.service-hero .hero-tag i {
  font-size: 18px;
  color: var(--c-accent);
}

/* ───────────────────────────────────────────────────────────────────────
   COMPARISON TABLE (uso en posts)
   ─────────────────────────────────────────────────────────────────────── */
.comparison-table {
  width: 100%;
}

/* ───────────────────────────────────────────────────────────────────────
   SERVICE CARD — foto de portada (aditivo sobre custom.css)
   ─────────────────────────────────────────────────────────────────────── */
.service-card {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}
.service-card__body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 22px 6px;
}
.service-card__media {
  height: 200px;
  margin-top: auto;
  padding: 8px 24px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(0, 45, 99, 0.18));
}

/* ───────────────────────────────────────────────────────────────────────
   STRETCHED LINK helper (no rompe layout existente)
   ─────────────────────────────────────────────────────────────────────── */
.service-card h3 a.stretched-anchor {
  color: inherit;
  text-decoration: none;
  position: relative;
}
.service-card h3 a.stretched-anchor:hover {
  color: var(--c-navy-500);
}
.service-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.service-card-actions .service-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-navy-700);
  text-decoration: none;
  margin-top: 0;
  transition: color var(--t-fast) var(--t-ease);
}
.service-card-actions .service-link:hover {
  color: var(--c-navy-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ───────────────────────────────────────────────────────────────────────
   NAVBAR DROPDOWN (servicios)
   ─────────────────────────────────────────────────────────────────────── */
.navmenu .dropdown ul {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-width: 280px;
}
.navmenu .dropdown ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--c-ink);
  border-radius: var(--radius-xs);
  transition: background var(--t-fast) var(--t-ease), color var(--t-fast) var(--t-ease);
}
.navmenu .dropdown ul li a:hover {
  background: var(--c-surface-deep);
  color: var(--c-navy-700);
}
.navmenu .dropdown ul li a i {
  color: var(--c-navy-500);
  font-size: 18px;
  flex-shrink: 0;
}


/* ───────────────────────────────────────────────────────────────────────
   RESPONSIVE — móvil
   ─────────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .post-toc {
    position: static;
    margin-bottom: 32px;
  }
  .service-sidebar {
    position: static;
    margin-top: 32px;
  }
  .founder-card { padding: 24px; }
  .founder-card__media {
    max-width: 140px;
    margin: 0 auto;
  }
  .breadcrumb-wrap { margin-top: 70px; }
}

@media (max-width: 575px) {
  .post-body { font-size: 16px; }
  .post-body pre { font-size: 12.5px; padding: 14px; }
  .post-card__body { padding: 20px; }
  .service-card__body { padding: 18px 18px 4px; }
  .service-card__media { height: 160px; padding: 6px 16px 18px; }
  .contact-method-card { padding: 26px 22px; }
  .story-stat { padding: 16px 18px; }
  .story-stat strong { font-size: 32px; min-width: 70px; }
}

/* ───────────────────────────────────────────────────────────────────────
   REDUCED MOTION
   ─────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .post-card:hover,
  .credential-card:hover,
  .value-card:hover,
  .contact-method-card:hover,
  .insight-card:hover,
  .service-card:hover,
  .benefit-card:hover,
  .case-card:hover,
  .process-step:hover,
  .proof-panel:hover,
  .trust-box:hover {
    transform: none;
  }
}

/* ───────────────────────────────────────────────────────────────────────
   TRABAJOS — CARDS DE LA GALERÍA + BADGE DE CATEGORÍA
   ─────────────────────────────────────────────────────────────────────── */
/* El masonry de Isotope posiciona con absolute y se come el gutter vertical
   de Bootstrap (gy-*): el margen inferior explícito lo repone. */
#works .isotope-item {
  margin-bottom: 28px;
}
.work-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base) var(--t-ease),
              box-shadow var(--t-base) var(--t-ease),
              border-color var(--t-base) var(--t-ease);
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-navy-300);
}
.work-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.work-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--c-surface-deep);
  overflow: hidden;
}
.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-base) var(--t-ease);
}
.work-card:hover .work-card__media img {
  transform: scale(1.05);
}
.work-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-navy-300);
  font-size: 40px;
}
.work-badge {
  display: inline-block;
  background: var(--c-navy-700);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.6;
}
.work-card__media .work-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  box-shadow: var(--shadow-md);
}
.work-card__body {
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}
.work-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-navy-700);
  margin: 0;
  /* Altura fija de 2 líneas para que todas las cards midan igual y las
     filas del grid queden perfectamente alineadas. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(2 * 1.35em);
}
.work-card:hover .work-card__title {
  color: var(--c-navy-500);
}
.work-card__equipment {
  font-size: 13px;
  color: var(--c-ink-soft);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 1.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-card__equipment i {
  color: var(--c-navy-500);
}
.work-card__excerpt {
  font-size: 13px;
  color: var(--c-ink-soft);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-card__cta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy-500);
  display: flex;
  align-items: center;
  gap: 6px;
}
.work-card__cta i {
  transition: transform var(--t-base) var(--t-ease);
}
.work-card:hover .work-card__cta i {
  transform: translateX(4px);
}
@media (prefers-reduced-motion: reduce) {
  .work-card:hover {
    transform: none;
  }
  .work-card:hover .work-card__media img {
    transform: none;
  }
}
