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

:root {
  --bg:      #05050A;
  --bg2:     #0A0A14;
  --bg3:     #11111F;
  --bg-glass: rgba(8, 8, 18, 0.72);
  --bg-card:  rgba(17, 17, 31, 0.75);

  --accent:  #3DBFEF;
  --accent2: #A855F7;
  --green:   #22c55e;

  --accent-glow:   rgba(61, 191, 239, 0.22);
  --accent-glow2:  rgba(168, 85, 247, 0.18);
  --accent-gradient: linear-gradient(135deg, #3DBFEF 0%, #A855F7 100%);

  --text:   #F1F5F9;
  --muted:  #64748b;
  --muted2: #94a3b8;

  --border:  rgba(255, 255, 255, 0.06);
  --border2: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(61, 191, 239, 0.28);

  --shadow-sm:   0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 20px 35px -12px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px rgba(61, 191, 239, 0.14);

  --nav-h: 56px;
  --touch: 44px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── BASE ──────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 2rem);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent2); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── NAV ───────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem 0 1.25rem;
  background: var(--bg-glass);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s;
}

.logo {
  display: flex; align-items: center;
  text-decoration: none; z-index: 320;
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-img--footer {
  height: 30px;
  opacity: 0.9;
}
.logo-pc, .f-logo-pc { color: var(--accent2); }
.logo-hub, .f-logo-hub { color: var(--accent); }

.nav-desktop {
  list-style: none; display: flex; gap: 1.25rem; align-items: center;
}
.nav-desktop a {
  color: var(--muted); text-decoration: none; font-size: 0.82rem;
  font-weight: 500; transition: color 0.18s;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.nav-desktop a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.dollar-badge {
  display: inline-flex; align-items: center;
  min-height: 28px; padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(61,191,239,0.28);
  background: rgba(61,191,239,0.08);
  color: var(--accent);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-cta {
  background: var(--accent) !important; color: #000 !important;
  padding: 0.4rem 1rem !important; border-radius: var(--radius-sm);
  font-weight: 700 !important;
  box-shadow: 0 0 14px var(--accent-glow);
  transition: box-shadow 0.18s, opacity 0.18s !important;
}
.nav-cta:hover { opacity: 0.9; box-shadow: 0 0 22px var(--accent-glow) !important; }

.nav-profile {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--muted2); transition: border-color 0.15s, color 0.15s, background 0.15s;
  text-decoration: none; flex-shrink: 0;
}
.nav-profile:hover { border-color: var(--accent); color: var(--accent); background: rgba(61,191,239,0.08); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: var(--touch); height: var(--touch);
  border: none; background: transparent; color: var(--text);
  cursor: pointer; border-radius: var(--radius-sm); z-index: 320;
  transition: background 0.15s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.07); }
.nav-toggle:active { transform: scale(0.97); }

.burger { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.burger span {
  display: block; height: 2px; background: var(--text); border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(0,0,0,0.6);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.16s ease-out, visibility 0s linear 0.16s;
}
body.nav-open .nav-scrim {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.16s ease-out;
}

.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(100%, 300px);
  z-index: 280;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  padding: calc(var(--nav-h) + 0.75rem) 1rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.18s var(--ease-out);
  overflow-y: auto; overscroll-behavior: contain;
}
body.nav-open .nav-drawer { transform: translateX(0); }

.nav-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.nav-drawer a {
  display: flex; align-items: center; min-height: var(--touch);
  padding: 0 0.75rem; color: var(--text); text-decoration: none;
  font-size: 0.95rem; font-weight: 600; border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-drawer a:hover, .nav-drawer a:focus-visible {
  background: rgba(61,191,239,0.09); color: var(--accent);
}
.nav-drawer .nav-cta { justify-content: center; margin-top: 0.5rem; }

.dollar-mobile-inline {
  display: none; margin-left: auto; margin-right: 0.55rem;
  min-height: 28px; font-size: 0.72rem;
}

/* ── SECTIONS ──────────────────────────────────────────────── */
section { padding: 3.5rem 1.25rem; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 2rem); }
.container { max-width: 860px; margin: 0 auto; }

.s-tag {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--accent-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; margin-bottom: 0.75rem;
}

.s-title {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 800; letter-spacing: -0.5px; line-height: 1.18; margin-bottom: 0.85rem;
}

.s-desc {
  color: var(--muted2); font-size: 0.92rem; max-width: 32rem;
  margin-bottom: 2rem; line-height: 1.7;
}

/* ── HERO CAROUSEL ─────────────────────────────────────────── */
.hero-carousel {
  position: relative;
  width: 100%;
  background: var(--bg);
  overflow: hidden;
  padding-top: var(--nav-h);
  touch-action: pan-y;
}

.hc-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hc-slide {
  flex: 0 0 100%;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  /* sin overflow:hidden — las imágenes se muestran completas */
}

/* Blurred backdrop — fills empty space on desktop when image isn't 16:9 */
.hc-bg {
  display: none;
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  filter: blur(32px) brightness(0.3) saturate(0.65);
  pointer-events: none;
  z-index: 0;
}

.hc-slide img {
  display: block;
  width: 100%;
  height: auto;
  /* sin max-height — imagen completa, sin recortes */
  pointer-events: none;
  user-select: none;
  position: relative;
  z-index: 1;
}

.hc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.hc-btn:hover {
  background: rgba(61,191,239,0.18);
  border-color: var(--border-glow);
}
.hc-btn:active { transform: translateY(-50%) scale(0.94); }

.hc-prev { left: 1rem; }
.hc-next { right: 1rem; }

.hc-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  align-items: center;
  z-index: 10;
}

.hc-dot {
  width: 28px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s;
}
.hc-dot::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
}
.hc-dot.active::after {
  animation: dotProgress var(--hc-delay, 5000ms) linear forwards;
}
@keyframes dotProgress {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── BANNER MODAL (mobile only) ────────────────────────────── */
.bm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  align-items: center;
  justify-content: center;
}
.bm-modal.is-open { display: flex; }

.bm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  animation: bmFadeIn 0.22s ease;
}

@keyframes bmFadeIn { from { opacity: 0; } to { opacity: 1; } }

.bm-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1rem 1.5rem;
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100dvh - 1rem);
  animation: bmSlideUp 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bmSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bm-img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 10rem);
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0,0,0,0.75);
}

.bm-close {
  position: absolute;
  top: 0.5rem;
  right: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.bm-close:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border2);
}

.bm-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 360px;
}

.bm-cta-wa,
.bm-cta-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  width: 100%;
  padding: 0 1.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.bm-cta-wa:active,
.bm-cta-ig:active { transform: scale(0.97); }

.bm-cta-wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.bm-cta-wa:hover { box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

.bm-cta-ig {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  box-shadow: 0 4px 20px rgba(220,39,67,0.3);
}
.bm-cta-ig:hover { opacity: 0.92; box-shadow: 0 6px 28px rgba(220,39,67,0.45); }

/* ── BOTONES ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch); padding: 0 1.4rem;
  background: var(--accent); color: #000;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch); padding: 0 1.2rem;
  color: var(--muted2); font-weight: 600; font-size: 0.88rem;
  text-decoration: none; border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.btn-secondary:hover {
  color: var(--text); border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}
.btn-secondary:active { transform: translateY(0); }

/* ── SERVICIOS ─────────────────────────────────────────────── */
#que-hacemos { background: var(--bg2); padding-top: 3rem; padding-bottom: 3rem; }

.service-logic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem; margin: 0 0 1rem;
}

.logic-card {
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}
.logic-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card);
}

.logic-card.urgent {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.18);
  box-shadow: inset 3px 0 0 #22c55e;
}
.logic-card.urgent:hover { border-color: rgba(34,197,94,0.38); }

.logic-card.planned {
  background: rgba(61, 191, 239, 0.05);
  border-color: rgba(61, 191, 239, 0.18);
  box-shadow: inset 3px 0 0 var(--accent);
}
.logic-card.planned:hover { border-color: rgba(61,191,239,0.35); }

.logic-title {
  font-size: 0.95rem; font-weight: 800;
  margin-bottom: 0.45rem; line-height: 1.25; color: var(--text);
}
.logic-text { font-size: 0.84rem; color: var(--muted2); line-height: 1.6; }
.logic-mini {
  margin-top: 0.7rem; font-size: 0.76rem; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 0.65rem; line-height: 1.5;
}

/* ── SERVICES GRID ─────────────────────────────────────────── */
.services-header { margin-bottom: 2.5rem; }
.services-header .s-desc { margin-bottom: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s;
}
.service-card:hover { background: rgba(61,191,239,0.04); }

.service-num {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 0.25rem;
}

.service-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.service-card-text {
  font-size: 0.85rem;
  color: var(--muted2);
  line-height: 1.65;
}

/* ── PILARES ───────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.pillar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.15rem 1.1rem;
  transition: border-color 0.2s, transform 0.2s;
}
.pillar:hover { border-color: var(--border-glow); transform: translateY(-2px); }
.pillar h3 { font-size: 0.92rem; font-weight: 800; margin-bottom: 0.4rem; line-height: 1.25; }
.pillar p { font-size: 0.8rem; color: var(--muted2); line-height: 1.55; }

/* ── ACORDEON ──────────────────────────────────────────────── */
.accordion-wrap { margin-top: 1rem; }
details.acc {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg3); margin-bottom: 0.5rem; overflow: hidden;
  transition: border-color 0.2s;
}
details.acc[open] { border-color: var(--border2); }
details.acc summary {
  cursor: pointer; list-style: none;
  padding: 0.95rem 1.1rem; font-size: 0.88rem; font-weight: 700;
  color: var(--text); display: flex; align-items: center;
  justify-content: space-between; gap: 0.5rem;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; color: var(--accent); font-weight: 900; font-size: 1.1rem; }
details.acc[open] summary::after { content: "−"; }
details.acc[open] summary { border-bottom: 1px solid var(--border); }
.acc-body {
  padding: 1rem 1.1rem 1.15rem;
  font-size: 0.82rem; color: var(--muted2); line-height: 1.65;
}
.acc-body ul { margin: 0.5rem 0 0 1rem; }
.acc-body li { margin-bottom: 0.35rem; }

/* ── CASOS ─────────────────────────────────────────────────── */
#casos { background: var(--bg); padding-top: 3rem; padding-bottom: 3rem; }

/* ── MESH REPEATER ─────────────────────────────────── */
#mesh-repeater {
  background: var(--bg2);
  padding-top: 3.5rem; padding-bottom: 3.5rem;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
#mesh-repeater::before {
  content: '';
  position: absolute; top: -160px; right: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.13) 0%, transparent 70%);
  pointer-events: none;
}
.case-layout--reverse { direction: rtl; }
.case-layout--reverse > * { direction: ltr; }

.mesh-badge {
  display: flex; gap: 0.4rem; margin-bottom: 0.75rem;
}
.chip--accent {
  background: rgba(168,85,247,0.12);
  border-color: rgba(168,85,247,0.35);
  color: #A855F7;
}
.chip--glow {
  background: rgba(61,191,239,0.08);
  border-color: var(--border-glow);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(61,191,239,0.18);
}

.mesh-cta-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  align-items: center; margin-top: 1.5rem;
}
.btn-secondary-outline {
  display: inline-flex; align-items: center;
  padding: 0.65rem 1.4rem;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--muted2); font-weight: 600; font-size: 0.85rem;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary-outline:hover { border-color: var(--accent); color: var(--accent); }

.case-visual--mesh {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}
.case-visual--mesh::before { display: none; }
.case-visual--mesh img {
  object-fit: contain;
  aspect-ratio: auto;
  height: 420px; width: 100%;
  filter: drop-shadow(0 20px 60px rgba(168,85,247,0.25)) drop-shadow(0 0 30px rgba(61,191,239,0.12));
  transition: transform 0.6s var(--ease-out), filter 0.6s;
}
.case-visual--mesh:hover img {
  transform: scale(1.04) translateY(-6px);
  filter: drop-shadow(0 28px 70px rgba(168,85,247,0.35)) drop-shadow(0 0 40px rgba(61,191,239,0.18));
}

.case-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 0.5rem;
}

.case-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.case-content .s-title { margin-bottom: 0.75rem; }
.case-content .s-desc  { margin-bottom: 1.5rem; }

.case-chips {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin-bottom: 1.75rem;
}
.chip {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--border-glow);
  background: rgba(61,191,239,0.07);
  color: var(--accent);
}

.case-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
  box-shadow: var(--shadow-card);
}
.case-visual::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(5,5,10,0.55) 100%
  );
  pointer-events: none;
}
.case-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 3 / 4;
  transition: transform 0.6s var(--ease-out);
}
.case-visual:hover img { transform: scale(1.03); }
.case-featured {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem 1.35rem;
  backdrop-filter: blur(4px);
}
.case-head {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 0.75rem; margin-bottom: 0.85rem;
}
.case-featured h3 { font-size: 1.15rem; font-weight: 900; }
.case-sub { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-top: 0.2rem; }
.badge-prod {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.28rem 0.6rem; border-radius: 4px;
  background: rgba(34,197,94,0.12); color: var(--green);
  border: 1px solid rgba(34,197,94,0.25);
}
.case-featured .lead { font-size: 0.88rem; color: var(--muted2); line-height: 1.6; margin-bottom: 0.75rem; }
.case-solve {
  font-size: 0.84rem; color: var(--text); line-height: 1.55;
  padding: 0.75rem 0.9rem; margin-bottom: 0.65rem;
  background: rgba(61,191,239,0.06); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.case-solve strong { color: var(--accent); }
.case-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.5; }
.btn-agrosense {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch); width: 100%; max-width: 100%;
  padding: 0 1rem; background: var(--accent); color: #000;
  font-weight: 800; font-size: 0.9rem; text-decoration: none;
  border-radius: var(--radius-sm); margin-top: 0.25rem;
  transition: box-shadow 0.15s, opacity 0.15s;
}
.btn-agrosense:hover { box-shadow: 0 0 22px var(--accent-glow); opacity: 0.92; }
.case-footnote {
  margin-top: 1.25rem; font-size: 0.8rem; color: var(--muted2);
  line-height: 1.5; padding-top: 1rem; border-top: 1px solid var(--border);
}

/* ── CONFIANZA ─────────────────────────────────────────────── */
#confianza { background: var(--bg2); border-top: 1px solid var(--border); }
.trust-line { font-size: 0.85rem; color: var(--muted2); margin-bottom: 1.25rem; max-width: 36rem; }
.logos-carousel {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
  mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
}
.logos-track {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.7rem 0.5rem; width: max-content;
  animation: logosMarquee 26s linear infinite; will-change: transform;
}
.logos-carousel:hover .logos-track { animation-play-state: paused; }
.logo-card {
  flex: 0 0 auto; width: 150px; height: 150px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px; border-radius: 50%; overflow: hidden;
  border: 2px solid #fff; background: #fff;
}
.logo-card img {
  width: 88%; height: 88%; object-fit: contain; object-position: center;
  filter: grayscale(1) brightness(1.12); opacity: 0.9;
  transition: filter 0.25s, opacity 0.25s;
}
.logo-card:hover img { filter: grayscale(0); opacity: 1; }
@keyframes logosMarquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

/* ── HERO PRINCIPAL ────────────────────────────────────────── */
.hero-main {
  position: relative;
  padding-top: var(--nav-h);
  background:
    radial-gradient(ellipse 75% 60% at 68% 48%, rgba(110,0,255,0.26), transparent 62%),
    radial-gradient(ellipse 50% 40% at 18% 78%, rgba(0,150,255,0.15), transparent 58%),
    var(--bg);
}

.hero-main-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 1.25rem;
}

.hero-main-text {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  justify-content: center;
}

/* PC visual — NO overflow clip, imagen completa siempre */
.hero-main-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-main-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(42vh, 380px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 48px rgba(110,0,255,0.52))
          drop-shadow(0 24px 36px rgba(0,0,0,0.45));
  animation: pcFloat 6s ease-in-out infinite;
}

.hc-glow {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(140,0,255,0.38), transparent 68%);
  filter: blur(52px);
  z-index: 0; pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes pcFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

/* Typography */
.hc-offer-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.3rem;
  background: rgba(249,115,22,0.14);
  border: 1px solid rgba(249,115,22,0.42);
  color: #f97316;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em;
  padding: 0.25rem 0.7rem; border-radius: 999px;
  text-transform: uppercase;
}

.hc-title-block { }
.hc-title-top {
  display: block;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.3em;
  color: var(--muted2); text-transform: uppercase; margin-bottom: 0.1rem;
}
.hc-title-main {
  display: block;
  font-size: clamp(2.35rem, 4.2vw, 3.85rem);
  font-weight: 900; letter-spacing: -1.5px; line-height: 0.92;
  background: linear-gradient(120deg, #A855F7 0%, #3DBFEF 65%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.55rem;
}
.hc-title-sub {
  font-size: 0.9rem; color: var(--muted2); line-height: 1.55;
}

.hc-spec-mini {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.hc-spec-mini span {
  font-size: 0.62rem; font-weight: 700; color: var(--muted2);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 4px; padding: 0.18rem 0.5rem;
}

/* Price */
.hc-price-label {
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.12em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 0.15rem;
}
.hc-price-main {
  font-size: 2rem; font-weight: 900; letter-spacing: -0.03em;
  color: var(--text); line-height: 1;
}
.hc-price-main span { font-size: 0.95rem; font-weight: 600; color: var(--muted2); }
.hc-price-old {
  font-size: 0.78rem; color: var(--muted);
  text-decoration: line-through; margin-top: 0.12rem;
}

/* CTA buttons */
.hc-slide-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
  margin-top: 0.3rem;
}
.hc-btn-buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 50px;
  background: var(--accent-gradient); color: #fff;
  font-weight: 800; font-size: 0.88rem;
  text-decoration: none; border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(168,85,247,0.38);
  transition: transform 0.15s, box-shadow 0.15s;
}
.hc-btn-buy:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(168,85,247,0.5); }
.hc-btn-buy:active { transform: scale(0.97); }
.hc-btn-detail {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px;
  background: transparent; border: 1px solid var(--border2);
  color: var(--muted2); font-weight: 700; font-size: 0.84rem;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.hc-btn-detail:hover { border-color: var(--accent); color: var(--accent); background: rgba(61,191,239,0.06); }

/* Mobile — stack vertical, PNG en toda su gloria */
@media (max-width: 768px) {
  .hero-main-inner {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 2rem;
    gap: 1rem;
  }
  .hero-main-visual {
    order: -1; /* PNG primero en mobile */
  }
  .hero-main-visual img {
    width: 88%;
    max-width: 320px;
    max-height: min(36vh, 300px);
    margin: 0 auto;
    display: block;
  }
  .hc-glow {
    width: 280px; height: 280px;
  }
  .hc-title-main {
    font-size: clamp(2.4rem, 11vw, 3.5rem);
  }
  .hc-slide-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── PRODUCT DETAIL MODAL ──────────────────────────────────── */
.pd-modal {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}
.pd-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.pd-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.pd-modal.is-open .pd-overlay { opacity: 1; }

.pd-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 92dvh;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.pd-modal.is-open .pd-sheet { transform: translateY(0); }

.pd-close {
  position: sticky;
  top: 0.6rem;
  float: right;
  margin: 0.6rem 0.6rem 0 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--bg3);
  color: var(--muted2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.pd-close:hover { background: rgba(255,255,255,0.1); color: var(--text); }

.pd-body { padding: 0.5rem 1.25rem 2rem; clear: both; }

/* header */
.pd-header { margin-bottom: 1.1rem; }
.pd-badge {
  display: inline-block;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 0.22rem 0.65rem; border-radius: 999px;
  margin-bottom: 0.5rem;
}
.pd-badge--purple { background: rgba(168,85,247,0.18); border: 1px solid rgba(168,85,247,0.4); color: var(--accent2); }
.pd-badge--cyan   { background: rgba(61,191,239,0.18);  border: 1px solid rgba(61,191,239,0.4);  color: var(--accent);  }
.pd-badge--orange { background: rgba(249,115,22,0.18);  border: 1px solid rgba(249,115,22,0.4);  color: #f97316; }
.pd-badge--white  { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.65); color: #ffffff; }

.pd-name {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 900; letter-spacing: -0.5px; line-height: 1.1;
  margin-bottom: 0.2rem;
}
.pd-subtitle { font-size: 0.85rem; color: var(--muted2); }

/* layout */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.pd-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.pd-visual .pd-main-img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

.pd-gallery-main {
  position: relative;
  border-radius: inherit;
  overflow: hidden;
}

.pd-gallery-strip {
  display: flex;
  gap: 0.45rem;
  padding: 0.5rem 0 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.pd-gallery-thumb {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid var(--border2);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg3);
  scroll-snap-align: start;
  opacity: 0.72;
  transition: border-color 0.15s, opacity 0.15s, transform 0.12s;
}

.pd-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-gallery-thumb:hover {
  opacity: 1;
  border-color: var(--accent);
}

.pd-gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(61,191,239,0.35);
}

.pd-gallery-thumb:active {
  transform: scale(0.96);
}

/* pricing */
.pd-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.pd-price-main,
.pd-price-alt {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.pd-price-main { background: rgba(61,191,239,0.06); border-color: rgba(61,191,239,0.22); }
.pd-price-alt  { background: var(--bg3); }
.pd-price-main span,
.pd-price-alt span {
  display: block;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 0.2rem;
}
.pd-price-main strong { font-size: 1.15rem; font-weight: 900; color: var(--accent); letter-spacing: -0.02em; }
.pd-price-alt  strong { font-size: 0.98rem; font-weight: 800; color: var(--text); }

/* stock */
.pd-stock {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.76rem; font-weight: 700; color: var(--green);
  margin-bottom: 1.1rem;
}
.pd-stock-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.pd-stock--out { color: #f87171; }
.pd-stock--out .pd-stock-dot { background: #ef4444; animation: none; }

.pd-variants {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.pd-variant-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
}
.pd-variant-name { color: var(--muted2); font-weight: 600; }
.pd-variant-select {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  color: var(--text);
  font-size: 0.88rem;
  max-width: 100%;
}
.pd-btn-buy.is-disabled {
  pointer-events: none;
  opacity: 0.45;
  cursor: not-allowed;
}

/* product detail page (/producto) */
.pp-media {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg2);
  padding: 0.55rem;
}
.pp-main-wrap {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  cursor: zoom-in;
}
.pp-main-wrap img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.pp-thumbs {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
}
.pp-thumb {
  width: 64px;
  height: 64px;
  border: 2px solid var(--border2);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: var(--bg3);
  opacity: 0.78;
  cursor: pointer;
}
.pp-thumb.is-active {
  opacity: 1;
  border-color: var(--accent);
}
.pp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pp-video {
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #000;
}
.pp-video-wrap {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.pp-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.pp-casing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.45rem 0 0.85rem;
}
.pp-casing-card {
  width: 100%;
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: var(--bg2);
  padding: 0.35rem;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.pp-casing-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(61,191,239,0.35);
}
.pp-casing-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.pp-casing-name {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}
.pp-casing-price {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.7rem;
  color: var(--muted2);
}
.pp-price-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.45rem 0 0.55rem;
}
.pp-price-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg2);
  padding: 0.6rem 0.7rem;
}
.pp-price-card span {
  display: block;
  color: var(--muted2);
  font-size: 0.72rem;
  margin-bottom: 0.15rem;
}
.pp-price-card strong {
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}
.pp-price-card.is-main {
  border-color: rgba(37, 211, 102, 0.5);
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.16), rgba(18, 140, 126, 0.08));
}
.pp-state-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
}
.pp-state-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
}
.pp-state-badge.is-ok {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.pp-state-badge.is-error {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
}
.pp-variant-summary {
  color: var(--muted2);
  font-size: 0.75rem;
}
@media (max-width: 640px) {
  .pp-price-cards { grid-template-columns: 1fr; }
  .pp-casing-card {
    width: 100%;
  }
  .pp-casing-grid { grid-template-columns: 1fr; }
}

/* section titles */
.pd-section-title {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.65rem;
}

/* FPS bars */
.pd-fps-section { margin-bottom: 1.25rem; }
.pd-fps-item {
  display: grid;
  grid-template-columns: 90px 1fr 64px;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}
.pd-fps-game { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.pd-fps-bar {
  height: 6px; background: var(--bg3); border-radius: 99px; overflow: hidden;
}
.pd-fps-fill {
  height: 100%; border-radius: 99px;
  background: var(--accent-gradient);
  transform-origin: left;
  animation: fpsGrow 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes fpsGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pd-fps-num { font-size: 0.76rem; font-weight: 800; color: var(--accent); text-align: right; }

/* specs */
.pd-specs-section { margin-bottom: 1.25rem; }
.pd-spec-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.pd-spec-row:last-child { border-bottom: none; }
.pd-spec-key { color: var(--muted); font-weight: 600; }
.pd-spec-val { color: var(--text); font-weight: 500; }

/* value prop */
.pd-value {
  font-size: 0.84rem; color: var(--muted2); line-height: 1.6;
  padding: 0.75rem 0.9rem; margin-bottom: 1.25rem;
  background: rgba(61,191,239,0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* CTA */
.pd-cta { display: flex; flex-direction: column; gap: 0.6rem; }
.pd-btn-buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 52px; width: 100%;
  background: #25d366; color: #fff;
  font-weight: 800; font-size: 1rem;
  text-decoration: none; border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: box-shadow 0.15s, transform 0.15s;
}
.pd-btn-buy:hover { box-shadow: 0 6px 28px rgba(37,211,102,0.5); transform: translateY(-1px); }
.pd-btn-buy:active { transform: scale(0.98); }
.pd-btn-more-info {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; width: 100%;
  background: rgba(61,191,239,0.08);
  border: 1px solid rgba(61,191,239,0.35);
  border-radius: var(--radius-sm);
  color: var(--accent); font-size: 0.85rem; font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pd-btn-more-info:hover {
  background: rgba(61,191,239,0.16);
  border-color: var(--accent);
  color: #8bdfff;
}
.pd-btn-close-text {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; width: 100%;
  background: transparent; border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--muted); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.pd-btn-close-text:hover { background: rgba(255,255,255,0.05); color: var(--text); }

/* Desktop overrides */
@media (min-width: 769px) {
  .pd-modal { align-items: center; }
  .pd-sheet {
    max-width: 840px;
    border-radius: var(--radius-lg);
    max-height: 88vh;
    transform: scale(0.95) translateY(16px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s;
  }
  .pd-modal.is-open .pd-sheet { transform: scale(1) translateY(0); opacity: 1; }
  .pd-layout { grid-template-columns: 1fr 1fr; }
  .pd-visual { position: sticky; top: 1rem; align-self: start; }
  .pd-cta { flex-direction: row; }
  .pd-btn-buy { flex: 2; }
  .pd-btn-more-info { flex: 1; }
  .pd-btn-close-text { flex: 1; }
}

/* ── HERO CTA BAR ──────────────────────────────────────────── */
.hero-cta-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.9rem 1.25rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.btn-comprar-ahora,
.btn-wa-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn-comprar-ahora {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 18px rgba(168,85,247,0.3);
}
.btn-comprar-ahora:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(168,85,247,0.45); }
.btn-wa-cta {
  background: transparent;
  border: 2px solid #25d366;
  color: #25d366;
}
.btn-wa-cta:hover { background: rgba(37,211,102,0.08); }
.btn-comprar-ahora:active,
.btn-wa-cta:active { transform: scale(0.97); }

/* ── TRUST STRIP ───────────────────────────────────────────── */
/* ── CATEGORÍAS ────────────────────────────────────────────── */
.categories-strip {
  background: var(--bg);
  padding: 1.25rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cat-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted2);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cat-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(61,191,239,0.06);
}

/* ── PC CATALOG ────────────────────────────────────────────── */
#catalogo {
  background: var(--bg);
  padding-top: 2.75rem;
  padding-bottom: 0;
  scroll-margin-top: calc(var(--nav-h) + 2rem);
}
.pc-cat-outer {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}
.pc-cat-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 1.25rem 2rem;
  flex: 1;
}
.pc-cat-track::-webkit-scrollbar { display: none; }
.pc-cat-nav {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
}
.pc-cat-nav:hover { background: rgba(61,191,239,0.18); border-color: var(--border-glow); }
#pcPrev { left: 0; }
#pcNext { right: 0; }

.pc-card {
  flex: 0 0 clamp(220px, 72vw, 280px);
  scroll-snap-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
  position: relative;
}
.pc-card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.pc-card--featured {
  border-color: var(--accent2);
  box-shadow: 0 0 28px rgba(168,85,247,0.2);
}
.pc-card--featured:hover { border-color: var(--accent2); box-shadow: 0 0 40px rgba(168,85,247,0.3); }

.pc-recommended {
  position: absolute; top: 0; right: 0; z-index: 3;
  background: var(--accent2); color: #fff;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 0.28rem 0.7rem;
  border-radius: 0 var(--radius-lg) 0 var(--radius-sm);
}
.pc-card-visual { position: relative; overflow: hidden; }
.pc-card-visual[role="button"] {
  cursor: pointer;
  outline: none;
}
.pc-card-visual[role="button"]:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.pc-card-visual img {
  display: block; width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover; object-position: center;
  transition: transform 0.45s var(--ease-out);
}
.pc-card:hover .pc-card-visual img { transform: scale(1.05); }

.pc-tier {
  position: absolute; bottom: 0.6rem; left: 0.6rem;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem; border-radius: var(--radius-sm); z-index: 2;
}
.pc-tier--esencial { background: rgba(61,191,239,0.18); border: 1px solid rgba(61,191,239,0.45); color: var(--accent); }
.pc-tier--avanzado { background: rgba(168,85,247,0.18); border: 1px solid rgba(168,85,247,0.45); color: var(--accent2); }
.pc-tier--elite    { background: rgba(249,115,22,0.18); border: 1px solid rgba(249,115,22,0.45); color: #f97316; }
.pc-tier--white    { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.65); color: #ffffff; }

.pc-card-body {
  padding: 1rem 1rem 1.15rem;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.pc-card-title {
  font-size: 0.94rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.08rem;
}
.pc-card-cpu { font-size: 0.84rem; font-weight: 800; color: var(--text); }
.pc-card-gpu { font-size: 0.76rem; color: var(--muted2); }
.pc-card-price-row {
  display: flex; align-items: baseline; gap: 0.4rem; margin-top: 0.6rem;
}
.pc-card-from { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.pc-card-price { font-size: 1.2rem; font-weight: 900; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.pc-card--featured .pc-card-price { color: var(--accent2); }

.pc-card-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; margin-top: 0.85rem;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.pc-card-btn:hover { background: rgba(61,191,239,0.1); border-color: var(--border-glow); color: var(--accent); }
.pc-card-btn--featured { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.pc-card-btn--featured:hover { opacity: 0.88; color: #fff; }

/* ── PAYMENT BAR ───────────────────────────────────────────── */
.payment-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 0.85rem 1.25rem 0.7rem;
  text-align: center;
}
.pb-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 0.65rem; margin-bottom: 0.4rem;
}
.pb-label {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--muted); text-transform: uppercase;
}
.pb-methods { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; justify-content: center; }
.pm {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border2); background: var(--bg-card); color: var(--muted2);
}
.pm-visa    { background: #fff; color: #1A1F71; border-color: #c8c8c8; }
.pm-mc      { background: #fff; color: #333;    border-color: #c8c8c8; }
.pm-magna   { background: #4B0082; color: #fff; border-color: #4B0082; }
.pm-webpay  { background: #00B2E3; color: #fff; border-color: #00B2E3; }
.pm-mp      { background: #009EE3; color: #fff; border-color: #009EE3; }
.pb-sub { font-size: 0.66rem; color: var(--muted); margin: 0; }

/* ── NOSOTROS ──────────────────────────────────────────────── */
#nosotros { background: var(--bg); }
#nosotros ul {
  list-style: none; margin: 0.75rem 0 1.25rem; display: flex; flex-direction: column; gap: 0.5rem;
}
#nosotros ul li {
  font-size: 0.88rem; color: var(--muted2); display: flex; align-items: flex-start; gap: 0.55rem;
}
#nosotros ul li::before {
  content: "→"; color: var(--accent); font-weight: 700; flex-shrink: 0;
}
.about-compact {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.25rem; margin-bottom: 1rem;
}
.about-bit {
  font-size: 0.82rem; color: var(--muted2); line-height: 1.5;
  padding: 0.65rem 0.75rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.about-bit strong { display: block; color: var(--text); font-size: 0.78rem; margin-bottom: 0.2rem; }

/* ── CONTACTO ──────────────────────────────────────────────── */
#contacto { background: var(--bg2); }
.contact-wa-top {
  display: block; text-align: center;
  min-height: var(--touch); line-height: var(--touch);
  padding: 0 1rem; background: #25d366; color: #fff;
  font-weight: 800; font-size: 0.95rem; text-decoration: none;
  border-radius: var(--radius-sm); margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: filter 0.15s, box-shadow 0.15s;
}
.contact-wa-top:hover {
  filter: brightness(1.07);
  box-shadow: 0 6px 28px rgba(37,211,102,0.4);
}

.contact-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; align-items: start;
}
.contact-meta { display: flex; flex-direction: column; gap: 0.55rem; }
.c-line {
  font-size: 0.82rem; color: var(--muted2); padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.c-line:last-child { border-bottom: none; }
.c-line strong {
  display: block; font-size: 0.68rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.15rem;
}
.c-line a { color: var(--accent); text-decoration: none; font-weight: 600; }

.contact-form { display: flex; flex-direction: column; gap: 0.75rem; }
.fg label {
  font-size: 0.72rem; color: var(--muted); font-weight: 600;
  margin-bottom: 0.25rem; display: block;
}
.fg input, .fg textarea, .fg select {
  width: 100%; background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text); padding: 0.65rem 0.8rem; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-family: inherit; outline: none;
  min-height: var(--touch); transition: border-color 0.18s, box-shadow 0.18s;
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61,191,239,0.1);
}
.fg textarea { min-height: 88px; resize: vertical; }
.btn-submit {
  min-height: var(--touch);
  background: var(--accent); color: #000; font-weight: 800; font-size: 0.88rem;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
}
.btn-submit:hover { opacity: 0.9; box-shadow: 0 0 20px var(--accent-glow); }

/* ── FACTS ─────────────────────────────────────────────────── */
.hero-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  margin-top: 2rem; max-width: 28rem; margin-left: auto; margin-right: auto;
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
  background: var(--bg-card); backdrop-filter: blur(4px);
}
.fact {
  flex: 1; min-width: 120px; padding: 0.95rem 1rem; text-align: center;
  border-right: 1px solid var(--border);
}
.fact:last-child { border-right: none; }
.fact-num { font-size: 1.35rem; font-weight: 900; color: var(--accent); line-height: 1; }
.fact-label { font-size: 0.72rem; color: var(--muted); margin-top: 0.25rem; }

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  padding: 1.75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  background: linear-gradient(180deg, transparent, rgba(61,191,239,0.02));
}
.f-logo { font-size: 1.05rem; font-weight: 900; color: var(--text); text-decoration: none; }
footer > p { color: var(--muted); font-size: 0.74rem; }
.f-legal-id { font-size: 0.7rem; color: var(--muted); margin-top: 0.2rem; }
.f-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.f-links a {
  color: var(--muted); font-size: 0.74rem; text-decoration: none;
  transition: color 0.15s;
}
.f-links a:hover { color: var(--accent); }

/* ── WA FLOAT ──────────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 1.25rem; right: 1.25rem;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; z-index: 90;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.18s, box-shadow 0.18s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }

/* ── REVEAL ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-child {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-child.is-visible { opacity: 1; transform: translateY(0); }

/* ── DESKTOP ───────────────────────────────────────────────── */
@media (min-width: 769px) {
  .hc-slide { cursor: pointer; }
  .hc-slide img {
    max-width: 1200px;
    width: 100%;
    height: auto;
  }
  .hc-bg { display: block; }
  .bm-content { max-width: 680px; }
  .bm-actions { flex-direction: row; max-width: 100%; }
  .bm-cta-wa,
  .bm-cta-ig  { flex: 1; }
}

/* ── MOBILE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  html { scroll-behavior: auto; }
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .dollar-mobile-inline { display: inline-flex; }

  .hc-slide { cursor: pointer; }
  .hc-btn { width: 36px; height: 36px; }
  .hc-prev { left: 0.5rem; }
  .hc-next { right: 0.5rem; }

  .trust-strip { grid-template-columns: repeat(2, 1fr); overflow: hidden; }
  .ts-item:nth-child(2) { border-right: none; }
  .ts-item:nth-child(1),
  .ts-item:nth-child(2) { border-bottom: 1px solid var(--border); }

  .social-strip { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  .pc-cat-nav { display: none; }
  .pc-cat-track { padding-left: 1rem; padding-right: 1rem; }

  .logos-track { gap: 0.6rem; padding: 0.55rem 0.35rem; animation-duration: 20s; }
  .logo-card { width: 88px; height: 88px; padding: 0.4rem; }
  .logos-carousel { mask-image: none; -webkit-mask-image: none; }

  .nav-drawer { width: 100%; max-width: 320px; }
  .service-logic { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .case-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .case-layout--reverse { direction: ltr; }
  .case-visual { order: -1; }
  .case-visual img { aspect-ratio: 4 / 3; object-position: center 20%; }
  .case-visual--mesh img { height: 260px; aspect-ratio: auto; }
  .mesh-cta-row { flex-direction: column; align-items: flex-start; }
  .pillars { grid-template-columns: 1fr; }
  .about-compact { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; }
  .fact { border-right: none; border-bottom: 1px solid var(--border); flex: 1 1 100%; }
  .fact:last-child { border-bottom: none; }
  footer { flex-direction: column; text-align: center; }
}

/* ── REDUCED MOTION ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-child, .nav-drawer, .nav-scrim,
  .btn-primary, .btn-secondary,
  .burger span, .hc-track, .hc-dot,
  .logic-card, .wa-float {
    transition: none !important; animation: none !important;
  }
  .reveal, .reveal-child { opacity: 1; transform: none; }
  .logos-track { animation-duration: 40s; }
}

@media (max-width: 380px) {
  .hc-btn { width: 32px; height: 32px; }
}