/* Theme tokens for DASSRH static site */
:root {
  --color-primary: #0f2744;
  --color-accent: #e8a317;
  --color-surface: #f4f6f8;
  --color-text: #1b1b1b;
  --color-muted: #5c6b7a;

  --radius-lg: 18px;
  --shadow-sm: 0 8px 24px rgba(15, 39, 68, 0.12);
}

html {
  height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Sticky footer: short pages (e.g. contacto) fill the viewport so the footer sits at the bottom. */
body {
  font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main#contenido {
  flex: 1 0 auto;
  width: 100%;
}

.bg-surface {
  background: var(--color-surface);
}

.navbar-brand img,
.brand-mark {
  /* Taller mark on desktop (was capped too low vs. nav text / CTAs) */
  height: clamp(64px, 10vw, 104px);
  width: auto;
  flex-shrink: 0;
}

.site-chrome.navbar .navbar-brand {
  line-height: 0;
}

.footer-brand {
  height: clamp(34px, 3.5vw, 44px);
  width: auto;
}

.nav-icon {
  font-size: 1.35rem !important;
  line-height: 1 !important;
}

/* Mobile menu: Material "menu" instead of Bootstrap bitmap toggler (plan: one icon system).
   Do not use Bootstrap d-inline-flex on this button: its !important overrides
   .navbar-expand-lg .navbar-toggler { display: none } and keeps the hamburger visible on desktop. */
.nav-toggler-material {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 39, 68, 0.18);
  padding: 0.35rem 0.55rem;
}
.nav-toggler-material .navbar-toggler-icon {
  display: none;
}
.nav-toggler-material .material-symbols-outlined {
  font-size: 1.65rem;
  line-height: 1;
  color: var(--color-primary);
}

.site-chrome {
  box-shadow: 0 1px 0 rgba(15, 39, 68, 0.06);
}

.site-footer {
  box-shadow: inset 0 1px 0 rgba(15, 39, 68, 0.06);
}

/* Credit strip below main footer content */
.footer-provider-band {
  background: rgba(15, 39, 68, 0.04);
}

/* Tighter than Bootstrap py-2 / gap-2 so the mark reads larger than the chrome */
.footer-provider-band > .container {
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
  gap: 0.35rem !important;
}

.footer-provider-link {
  line-height: 0;
  opacity: 0.88;
}

.footer-provider-link:hover {
  opacity: 1;
}

.footer-provider-logo {
  height: 36px;
  width: auto;
  max-width: min(240px, 52vw);
  object-fit: contain;
  object-position: right center;
  display: block;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.navbar-toggler:focus-visible {
  outline: 3px solid rgba(232, 163, 23, 0.9);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .logo-tile img {
    transition: none;
  }
}

.btn-accent {
  --bs-btn-bg: var(--color-accent);
  --bs-btn-border-color: var(--color-accent);
  --bs-btn-color: #111;
  --bs-btn-hover-bg: #d89510;
  --bs-btn-hover-border-color: #d89510;
  --bs-btn-hover-color: #111;
  --bs-btn-focus-shadow-rgb: 232, 163, 23;
}

.btn-outline-accent {
  --bs-btn-color: var(--color-accent);
  --bs-btn-border-color: rgba(232, 163, 23, 0.65);
  --bs-btn-hover-bg: rgba(232, 163, 23, 0.12);
  --bs-btn-hover-border-color: rgba(232, 163, 23, 0.9);
  --bs-btn-hover-color: var(--color-text);
}

/* Navbar WhatsApp CTA (brand green; SVG icon in markup) */
.btn-wa {
  --bs-btn-color: #fff;
  --bs-btn-bg: #25d366;
  --bs-btn-border-color: #20bd5a;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1eb959;
  --bs-btn-hover-border-color: #1aa84f;
  --bs-btn-focus-shadow-rgb: 37, 211, 102;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1aa84f;
  --bs-btn-active-border-color: #179648;
}

.nav-wa-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-primary);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(15, 39, 68, 0.93) 0%,
    rgba(15, 39, 68, 0.72) 40%,
    rgba(15, 39, 68, 0.38) 100%
  );
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(1.25rem, 3vw, 3rem);
  max-width: 56rem;
}

.hero h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.38);
}

.hero .display-5,
.hero .display-6 {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.38);
}

.hero-lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.015em;
}

.card-soft {
  border: 1px solid rgba(15, 39, 68, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px rgba(15, 39, 68, 0.08);
}

.wp-content :is(h1, h2, h3, h4) {
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-top: 1.25rem;
}

.wp-content p {
  color: var(--color-text);
  line-height: 1.75;
}

.wp-content :is(ul, ol) {
  padding-left: 1.2rem;
}

.wp-content table {
  width: 100%;
}

.wp-content :is(table, th, td) {
  border: 1px solid rgba(15, 39, 68, 0.12);
}

.wp-content th,
.wp-content td {
  padding: 0.6rem 0.75rem;
  vertical-align: top;
}

.wp-content figure {
  margin: 0;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 576px) {
  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 992px) {
  .logo-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
  }
}

.logo-tile {
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 39, 68, 0.08);
  min-height: 76px;
}

.logo-tile img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  filter: grayscale(1);
  opacity: 0.86;
  transition: filter 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.logo-wall--clients {
  padding: 1.5rem 0;
}

.logo-wall--clients .logo-tile {
  min-height: 72px;
}

.logo-wall--clients .logo-tile img {
  max-height: 56px;
}

.card-differentiator {
  border: 1px dashed rgba(15, 39, 68, 0.22);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: none;
}

.card-differentiator .fw-semibold {
  color: var(--color-primary);
}

.wp-inline-icon {
  font-size: 1.15em;
  vertical-align: -0.2em;
  margin-right: 0.12em;
}

.logo-tile:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-1px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 9999;
  background: #fff;
  border: 2px solid var(--color-primary);
  border-radius: 10px;
  padding: 10px 12px;
}

.skip-link:focus {
  left: 10px;
}

/* --- Service detail pages (consulting offerings) --- */
.service-page-section {
  --service-max-line: 42rem;
}

.service-summary .service-kicker {
  letter-spacing: 0.06em;
}

.service-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: none;
}

.service-body > .service-block,
.service-body > .service-lead,
.service-body > section.service-block {
  margin-bottom: 2.75rem;
}

.service-body > .service-media + p,
.service-body > .service-quote {
  margin-bottom: 0;
}

.service-h2,
.service-body > h2.wp-block-heading {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

.service-body > h3.wp-block-heading {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}

.service-lead {
  position: relative;
}

.service-lead-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), rgba(232, 163, 23, 0.35));
}

.service-pillar-icon {
  font-size: 1.75rem !important;
  color: var(--color-primary);
  opacity: 0.9;
  display: block;
  margin-bottom: 0.35rem;
}

.service-step {
  position: relative;
}

.service-step-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.service-callout {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
}

.service-quote blockquote {
  border-left: none;
  padding: 0;
  margin: 0;
  color: var(--color-primary);
}

.service-check-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: rgba(244, 246, 248, 0.85);
  border: 1px solid rgba(15, 39, 68, 0.06);
  font-size: 0.95rem;
  line-height: 1.45;
  height: 100%;
}

/* Material Symbols draw larger than font-size; box + smaller glyph aligns with text cap-height */
.service-check-line .material-symbols-outlined {
  font-size: 1.05rem !important;
  line-height: 1 !important;
  width: 1.35rem;
  height: 1.35rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.12em;
  color: var(--color-accent);
}

.service-q-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.service-q-list li .material-symbols-outlined {
  font-size: 1.05rem !important;
  line-height: 1 !important;
  width: 1.35rem;
  height: 1.35rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.12em;
  color: var(--color-muted);
}

.service-why-grid li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 0.98rem;
}

.service-why-grid li:last-child {
  margin-bottom: 0;
}

.service-why-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.service-inline-cta {
  background: linear-gradient(135deg, rgba(232, 163, 23, 0.12) 0%, #fff 55%);
  border: 1px solid rgba(15, 39, 68, 0.08) !important;
}

.service-table-card .service-table th {
  width: 38%;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  vertical-align: top;
  background: rgba(15, 39, 68, 0.03);
}

.service-table-card .service-table td {
  font-size: 0.85rem;
  color: var(--color-muted);
  vertical-align: top;
}

.service-table-card .service-table tbody tr + tr th,
.service-table-card .service-table tbody tr + tr td {
  border-top: 1px solid rgba(15, 39, 68, 0.07);
}

.service-faq .accordion-button:not(.collapsed) {
  background: rgba(232, 163, 23, 0.12);
  color: var(--color-primary);
}

.service-faq .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.service-faq .accordion-item:last-child {
  border-bottom: 0 !important;
}

/* Legacy WP blocks inside service-body (other services) */
.service-body .wp-block-heading {
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.service-body > *:first-child {
  margin-top: 0;
}

.service-body figure.wp-block-table {
  margin: 1.25rem 0;
}

.service-body figure.wp-block-table table {
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 39, 68, 0.08);
}

.service-body figure.wp-block-table th {
  background: rgba(15, 39, 68, 0.06);
  font-size: 0.85rem;
}

.service-body figure.wp-block-table td {
  font-size: 0.92rem;
  color: var(--color-muted);
}

.service-body .wp-block-image img {
  border-radius: var(--radius-lg);
}

/* --- Blog post pages (prose aligned with service styling) --- */
.blog-post-section {
  max-width: 100%;
}

.blog-post-body.service-body > h4.wp-block-heading {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: var(--color-primary);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

.blog-post-body.service-body > .service-lead + :is(h2, h3, h4).wp-block-heading {
  margin-top: 1.35rem;
}

.blog-post-body blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(244, 246, 248, 0.72);
  border-radius: 0 14px 14px 0;
  font-size: 1.02rem;
  color: var(--color-primary);
}

.blog-post-body blockquote p:last-child {
  margin-bottom: 0;
}

.blog-post-body hr.wp-block-separator {
  opacity: 1;
  border: 0;
  height: 4px;
  margin: 2.25rem 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-accent), rgba(232, 163, 23, 0.18));
}

.blog-related-section .service-h2.section-title {
  display: inline-block;
}

/* Fixed crop box: every related card shows the same thumbnail footprint */
.blog-related-section .blog-related-thumb-link {
  overflow: hidden;
}

.blog-related-section .blog-related-thumb-wrap {
  display: block;
  width: 100%;
  height: 44px;
  overflow: hidden;
  background: rgba(15, 39, 68, 0.06);
}

.blog-related-section .blog-related-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Service listing cards: home carousel + /servicios/ index */
.home-services-carousel .card-body :is(h2, h3).h5,
.services-index-cards .card-body :is(h2, h3).h5 {
  font-weight: 700;
}

/* Product pages: Kadie intro visual (dashboard + mascot) */
.product-intro-visual {
  position: relative;
  max-width: 52rem;
  margin-inline: auto;
}

.product-intro-dash-wrap {
  position: relative;
  overflow: visible;
  box-shadow: var(--shadow-sm);
}

.product-intro-dash-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #12101c;
  border: 1px solid rgba(15, 39, 68, 0.1);
}

.product-intro-dash {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.product-intro-char {
  max-width: min(38%, 220px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(15, 39, 68, 0.18));
}

.product-intro-dash-wrap .product-intro-char {
  position: absolute;
  right: -0.5rem;
  bottom: -1.25rem;
  z-index: 2;
}

@media (min-width: 768px) {
  .product-intro-dash-wrap {
    padding-right: clamp(3rem, 12%, 6rem);
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  }

  .product-intro-dash-wrap .product-intro-char {
    max-width: min(36%, 280px);
    right: 0;
    bottom: -1.5rem;
  }
}

.product-partner-logo {
  max-width: 10rem;
  height: auto;
  margin-inline: auto;
}

.home-product-teaser-logo {
  max-width: 7rem;
  height: auto;
}

.home-product-teaser-char {
  max-width: 120px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(15, 39, 68, 0.12));
}

/* --- Home: services carousel (6 offerings in 2 slides) --- */
.home-services-carousel {
  position: relative;
  padding-inline: clamp(0.25rem, 2.5vw, 2.5rem);
}

.home-services-carousel .carousel-inner {
  overflow: visible;
}

.home-services-carousel-control {
  width: 2.5rem;
  height: 2.5rem;
  top: 40%;
  bottom: auto;
  transform: translateY(-50%);
  opacity: 1;
  border-radius: 50%;
  background: #fff !important;
  border: 1px solid rgba(15, 39, 68, 0.12);
  box-shadow: 0 6px 18px rgba(15, 39, 68, 0.1);
}

.home-services-carousel-control.carousel-control-prev {
  left: 0;
}

.home-services-carousel-control.carousel-control-next {
  right: 0;
}

.home-services-carousel-control:hover {
  background: var(--color-surface) !important;
}

.home-services-carousel-control .carousel-control-prev-icon,
.home-services-carousel-control .carousel-control-next-icon {
  filter: invert(22%) sepia(18%) saturate(1800%) hue-rotate(169deg);
  width: 1.35rem;
  height: 1.35rem;
}

.home-services-carousel-indicators {
  gap: 0.35rem;
}

.home-services-carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0;
  border: 0;
  background-color: rgba(15, 39, 68, 0.22);
  opacity: 1;
}

.home-services-carousel-indicators [data-bs-target].active {
  background-color: var(--color-accent);
}

@media (max-width: 767.98px) {
  .home-services-carousel-control {
    width: 2.15rem;
    height: 2.15rem;
    top: 38%;
  }

  .service-summary .service-mini-panel {
    margin-top: 0.5rem;
  }
}

