/* Siftpro — paleta azul + tema claro / oscuro */

:root {
  color-scheme: light;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-muted: #3b82f6;
  --primary-hero-bg: #1e3a8a;
  --primary-hero-end: #172554;
  --nav-text: #1e3a8a;
  --icon-blue: #2563eb;
  --secondary: #0f172a;
  --muted: #64748b;
  --muted-btn: #64748b;
  --border-light: #e2e8f0;
  --surface-page: #f8fafc;
  --surface: #ffffff;
  --surface-header: rgba(255, 255, 255, 0.92);
  --text-body: #1e293b;
  --text-heading: #0f172a;
  --text-soft: #64748b;
  --nav-hover-bg: #eff6ff;
  --nav-hover-fg: #2563eb;
  --card-border: #e2e8f0;
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.06);
  --mercados-bg: linear-gradient(to bottom, var(--surface-page), #f1f5f9);
  --hero-badge-bg: rgba(255, 255, 255, 0.96);
  --hero-badge-text: #0f172a;
  --white: #fff;
  --whatsapp: #25d366;
  --whatsapp-hover: #128c7e;
  --header-h-top: 72px;
  --header-h-bottom: 56px;
  --header-total: calc(var(--header-h-top) + var(--header-h-bottom));
  /* Altura real del header fijo + anclas (en móvil la barra inferior se oculta → solo top) */
  --header-scroll-offset: var(--header-total);
  --radius-pill: 999px;
  --shadow-header: 0 1px 3px rgba(15, 23, 42, 0.08);
  --font: "Poppins", system-ui, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --primary-muted: #93c5fd;
  --primary-hero-bg: #172554;
  --primary-hero-end: #0f172a;
  --nav-text: #e2e8f0;
  --icon-blue: #60a5fa;
  --muted: #94a3b8;
  --muted-btn: #64748b;
  --border-light: #334155;
  --surface-page: #0f172a;
  --surface: #1e293b;
  --surface-header: rgba(15, 23, 42, 0.95);
  --text-body: #e2e8f0;
  --text-heading: #f8fafc;
  --text-soft: #94a3b8;
  --nav-hover-bg: rgba(37, 99, 235, 0.2);
  --nav-hover-fg: #93c5fd;
  --card-border: #334155;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --mercados-bg: linear-gradient(to bottom, #0f172a, #1e293b);
  --hero-badge-bg: rgba(30, 41, 59, 0.95);
  --hero-badge-text: #f1f5f9;
  --shadow-header: 0 1px 3px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-body);
  background: var(--surface-page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(1280px, 100% - 2rem);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--surface-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-header);
  transition: background 0.25s ease;
}

.header-top {
  border-bottom: 1px solid var(--border-light);
}

.header-top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h-top);
  gap: 1rem;
}

.header-top-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: start;
}

.header-quick-menu {
  position: relative;
  z-index: 1002;
}

.header-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--surface);
  color: var(--nav-text);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.header-menu-trigger:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.header-menu-trigger[aria-expanded="true"] {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--nav-hover-bg);
}

.header-menu-panel {
  left: 0;
  right: auto;
  min-width: 240px;
  padding: 0.5rem;
}

.header-menu-panel__block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.header-menu-panel__caption {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 0.35rem 0.5rem 0.25rem;
}

.header-menu-panel__link {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nav-text);
  transition: background 0.15s, color 0.15s;
}

.header-menu-panel__link:hover {
  background: var(--nav-hover-bg);
  color: var(--primary);
}

.header-menu-panel__divider {
  height: 1px;
  margin: 0.4rem 0;
  background: var(--border-light);
}

.theme-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--nav-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.theme-option:hover {
  background: var(--nav-hover-bg);
  color: var(--primary);
}

.theme-option.is-active {
  background: var(--nav-hover-bg);
  color: var(--primary);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--nav-text);
  transition: background 0.2s, color 0.2s;
}

.burger:hover,
.burger[aria-expanded="true"] {
  background: var(--nav-hover-bg);
  color: var(--primary);
}

.brand {
  grid-column: 2;
  text-align: center;
}

.header-social {
  display: flex;
  gap: 0.5rem;
  justify-self: end;
  grid-column: 3;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}

.brand-logo__main {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.brand-logo__sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 0.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-circle {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.social-circle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.social-circle svg {
  width: 18px;
  height: 18px;
}

.header-bottom {
  border-bottom: 1px solid var(--border-light);
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--header-h-bottom);
  padding-block: 0.35rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nav-text);
}

.main-nav li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.main-nav a {
  padding: 0.25rem 0.4rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--nav-hover-fg);
  background-color: var(--nav-hover-bg);
  border-radius: 6px;
  transition: color 0.3s, background-color 0.3s;
}

.nav-sep {
  color: var(--text-soft);
  opacity: 0.7;
  font-weight: 400;
  user-select: none;
  margin-inline: 0.6rem;
}

.nav-icon {
  width: 16px;
  height: 16px;
  color: var(--icon-blue);
  flex-shrink: 0;
}

.header-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-left: 1rem;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-pill--primary {
  background: var(--primary);
  color: var(--white);
}

.btn-pill--primary:hover {
  background: var(--primary-dark);
}

.btn-pill--primary .chevron {
  transition: transform 0.2s;
}

.btn-pill--primary[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.btn-pill svg {
  width: 16px;
  height: 16px;
}

.dropdown-wrap {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  padding: 0.5rem 0;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--border-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 50;
}

.dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nav-text);
}

.dropdown-menu a:hover {
  background: var(--nav-hover-bg);
  color: var(--primary);
}

[data-theme="dark"] .dropdown-menu {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

/* —— Hero —— */
main {
  /* --header-scroll-offset lo fija main.js midiendo .site-header (incluye safe-area del propio header) */
  padding-top: var(--header-scroll-offset);
}

/* Respaldo si aún no corre JS; el click en anclas usa scroll manual en main.js */
section[id],
footer[id],
main[id] {
  scroll-margin-top: var(--header-scroll-offset);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(78vh, 640px);
}

.hero-left {
  background: linear-gradient(155deg, var(--primary-hero-bg) 0%, var(--primary-hero-end) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.hero-left h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero-left .lead {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 400;
  opacity: 0.95;
  max-width: 36ch;
}

.btn-dark-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-pill);
  background: var(--secondary);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.btn-dark-pill:hover {
  background: #334155;
  transform: translateY(-2px);
}

.btn-dark-pill svg {
  width: 18px;
  height: 18px;
}

.hero-right {
  position: relative;
  min-height: 280px;
  background-color: #111;
  background-size: cover;
  background-position: center;
}

.hero-right::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.15), transparent 40%);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  background: var(--hero-badge-bg);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--hero-badge-text);
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-light);
}

/* —— Sección intro —— */
.intro-band {
  padding: 3rem 1rem 2rem;
  text-align: center;
  background: var(--surface-page);
}

.intro-band h2 {
  margin: 0 auto;
  max-width: 22ch;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
}

.intro-band--page {
  padding-bottom: 1rem;
}

.intro-band--page h1 {
  margin: 0 auto;
  max-width: 24ch;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
}

.intro-band-lede {
  margin: 1.25rem auto 0;
  max-width: 52ch;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.55;
}

.intro-band-more {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.intro-band-more:hover {
  color: var(--primary-dark);
}

.page-about .about-prose p {
  margin: 0 0 1.15rem;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.65;
}

.page-about .about-prose p:last-child {
  margin-bottom: 0;
}

.page-about .about-highlight {
  color: var(--primary);
  font-weight: 700;
}

/* —— Software / Hardware —— */
.zigzag {
  padding: 3rem 1rem 4rem;
  background: var(--surface-page);
}

.zigzag-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.zigzag-row:last-child {
  margin-bottom: 0;
}

.zigzag-row--reverse .zigzag-copy {
  order: 2;
}

.zigzag-row--reverse .zigzag-media {
  order: 1;
}

.zigzag-copy h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text-heading);
  text-transform: capitalize;
}

.zigzag-copy p {
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.feature-list {
  margin: 1rem 0 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}

.feature-list .bullet {
  color: var(--primary);
  font-weight: 700;
}

.btn-demo {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  background: var(--muted-btn);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-demo:hover {
  background: var(--primary-dark);
}

.zigzag-media img {
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--card-border);
}

/* —— Mercados —— */
.mercados {
  padding: 3rem 1rem 4rem;
  background: var(--mercados-bg);
}

.mercados h2 {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 28ch;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

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

.market-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--card-border);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.market-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
  border-color: var(--primary);
}

.market-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.market-card__head svg {
  width: 40px;
  height: 40px;
  color: var(--text-heading);
  flex-shrink: 0;
}

.market-card:hover .market-card__head svg {
  color: var(--primary);
}

.market-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
}

.market-card p {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.5;
}

/* —— Sucursales —— */
.sucursales {
  padding: 3rem 1rem 4rem;
  background: var(--surface-page);
}

.sucursales h2 {
  text-align: center;
  margin: 0 auto 2.5rem;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin-inline: auto;
}

.branch-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
  border-color: var(--primary);
}

.branch-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.branch-card .addr {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
  min-height: 3.2em;
}

.branch-hours {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 1rem;
}

.branch-hours div {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.branch-hours svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.btn-map {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 10px;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--surface);
  transition: background 0.2s, color 0.2s;
}

.btn-map:hover {
  background: var(--primary);
  color: var(--white);
}

/* —— Beneficios —— */
.beneficios {
  padding: 3rem 1rem 4rem;
  background: var(--surface-page);
}

.beneficios h2 {
  text-align: center;
  margin: 0 auto 2.5rem;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  max-width: min(1480px, 100%);
  margin-inline: auto;
}

@media (max-width: 1199px) {
  .beneficios-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1100px;
  }
}

@media (max-width: 767px) {
  .beneficios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .beneficios-grid {
    grid-template-columns: 1fr;
  }
}

.beneficio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.beneficio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
  border-color: var(--primary);
}

.beneficio-card__media {
  aspect-ratio: 16 / 10;
  background: var(--surface-page);
  overflow: hidden;
}

.beneficio-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.beneficio-card__body {
  padding: 1.25rem 1.5rem 1.5rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.beneficio-card__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.beneficio-card h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(0.82rem, 1.1vw, 1.1rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.3;
}

.beneficio-card p {
  margin: 0;
  font-size: clamp(0.78rem, 0.95vw, 0.95rem);
  color: var(--text-body);
  line-height: 1.55;
}

@media (min-width: 1200px) {
  .beneficio-card__body {
    padding: 1rem 0.75rem 1.15rem;
  }
}

/* —— Footer —— */
.footer-wave {
  line-height: 0;
  color: var(--surface-page);
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 48px;
  fill: currentColor;
}

.site-footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 100%);
  color: var(--white);
  padding: 2.5rem 1rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}

.footer-brand {
  text-align: left;
}

.footer-brand .brand-logo {
  align-items: flex-start;
}

.footer-brand .brand-logo__main {
  color: var(--white);
}

.footer-brand .brand-logo__sub {
  color: rgba(255, 255, 255, 0.85);
}

.footer-brand p {
  margin: 1rem 0 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 320px;
  line-height: 1.6;
  margin-left: 0;
  margin-right: auto;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-col h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.25rem 0;
}

.footer-links a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.footer-links a:hover {
  color: var(--white);
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.85;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* —— WhatsApp flotante —— */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: background 0.2s, transform 0.2s;
}

.whatsapp-float:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.05);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* —— Mobile nav overlay —— */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--surface);
  border-right: 1px solid var(--border-light);
  z-index: 999;
  padding: 1.25rem;
  padding-top: calc(var(--header-h-top) + env(safe-area-inset-top, 0px) + 1.25rem);
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
}

.mobile-panel.is-open {
  transform: translateX(0);
}

.mobile-panel nav ul li {
  margin-bottom: 0.75rem;
}

.mobile-panel nav a {
  font-weight: 700;
  color: var(--nav-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-panel .header-cta {
  margin-top: 1.5rem;
  flex-direction: column;
  align-items: stretch;
}

.mobile-panel .btn-pill {
  justify-content: center;
}

.mobile-panel__theme {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.mobile-panel__caption {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.mobile-panel__theme-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.theme-option--mobile {
  border: 1px solid var(--border-light);
  background: var(--surface-page);
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --header-scroll-offset: var(--header-h-top);
  }

  .header-quick-menu {
    display: none;
  }

  .burger {
    display: flex;
  }

  /* Evita borde/espacio residual: la barra de navegación ya no se muestra */
  .header-bottom {
    display: none;
  }

  .header-bottom .nav-row {
    display: none;
  }

  .hero-split {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .hero-right {
    min-height: 320px;
  }

  .zigzag-row {
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
  }

  .zigzag-row--reverse .zigzag-copy,
  .zigzag-row--reverse .zigzag-media {
    order: unset;
  }

  /* Aire extra bajo el header al hacer scroll manual hasta el tope */
  .controla-section {
    padding-top: max(4rem, calc(var(--header-scroll-offset) + 12px));
  }
}

@media (max-width: 640px) {
  .header-social {
    gap: 0.35rem;
  }

  .social-circle {
    width: 36px;
    height: 36px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* —— Sección Servicios (inicio + página dedicada) —— */
.servicios-grid {
  padding: 5rem 1rem;
  background: var(--surface-page);
}

.servicios-grid h2 {
  text-align: center;
  margin-bottom: 3.5rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--surface);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.03;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  border-color: var(--primary-muted);
}

.service-card:hover::after {
  opacity: 0.1;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--nav-hover-bg);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary);
  color: var(--white);
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0;
}

.service-card p {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

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

.service-features li {
  font-size: 0.9rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.service-features li svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Página servicios.html: tarjetas solo con título + hueco para imagen */
.servicios-page.servicios-grid {
  padding-top: 2rem;
}

.servicios-page .services-container--placeholders {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card--placeholder {
  padding: 0;
  gap: 0;
  flex-direction: column;
  overflow: hidden;
}

.service-card--placeholder::after {
  display: none;
}

.service-card--placeholder:hover {
  transform: translateY(-8px);
}

.service-card__media-slot {
  width: auto;
  margin: 1.25rem 1.25rem 0;
  aspect-ratio: 16 / 10;
  min-height: 160px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 6%, var(--surface-page));
  border: 2px dashed var(--card-border);
  box-sizing: border-box;
}

.service-card__media-slot--photo {
  padding: 0;
  border: none;
  background: var(--surface-page);
  overflow: hidden;
}

.service-card__media-slot--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card--placeholder .service-card__body {
  padding: 1.5rem 1.75rem 2rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.service-card--placeholder .service-card__body h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  line-height: 1.25;
}

/* —— Modal "Próximamente" —— */
.coming-soon-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.coming-soon-overlay.is-open {
  display: flex;
  opacity: 1;
}

.coming-soon-dialog {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  color: var(--text-body);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.05);
}

.coming-soon-overlay.is-open .coming-soon-dialog {
  transform: translateY(0) scale(1);
}

.coming-soon-dialog__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.coming-soon-dialog__section {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--nav-text);
  letter-spacing: -0.02em;
}

.coming-soon-dialog__x {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.coming-soon-dialog__x:hover {
  background: var(--nav-hover-bg);
  color: var(--primary);
}

.coming-soon-dialog__content {
  padding: 1.5rem 1.75rem 1.75rem;
  text-align: center;
}

.coming-soon-dialog__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.coming-soon-dialog__headline {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
}

.coming-soon-dialog__text {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-soft);
}

.coming-soon-dialog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.coming-soon-dialog__btn:hover {
  background: var(--primary-dark);
}

.coming-soon-dialog__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

[data-theme="dark"] .coming-soon-overlay {
  background: rgba(0, 0, 0, 0.65);
}

/* —— Sección ¿Qué controlas? —— */
.controla-section {
  padding: 4rem 1rem;
  background: var(--surface-page);
}

.controla-title {
  text-align: center;
  margin: 0 auto 3rem;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.controla-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin-inline: auto;
}

.controla-card {
  background: var(--surface-card);
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  transition: transform 0.25s, box-shadow 0.25s;
}

.controla-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.controla-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.controla-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.controla-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
}

.controla-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}