/* ============================================================
   MINTHY — Component Styles
   ============================================================ */

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 900;
  background: rgba(248, 250, 252, 0);
  border-bottom: 1px solid transparent;
  transition: background var(--t-3) var(--ease), border-color var(--t-3) var(--ease),
              backdrop-filter var(--t-3) var(--ease);
}
.header.scrolled {
  background: rgba(248, 250, 252, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--bdr);
  box-shadow: var(--sh-xs);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--sp-8);
}

.nav-logo img {
  height: 34px;
  transition: opacity var(--t-2) var(--ease);
}
.nav-logo:hover img { opacity: .75; }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--t-2);
  border-radius: var(--r-md);
  transition: all var(--t-1) var(--ease);
}
.nav-link:hover, .nav-link.active {
  color: var(--t);
  background: var(--bg-2);
}
.nav-link.active { color: var(--t); }
.nav-link svg { transition: transform var(--t-2) var(--ease); opacity: .5; }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown:hover .nav-link svg { transform: rotate(180deg); opacity: .8; }

/* Invisible bridge that covers the 6px gap so hover isn't lost mid-movement */
.has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 260px;
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  padding: var(--sp-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease);
  box-shadow: var(--sh-xl);
}
.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--r-lg);
  transition: background var(--t-1) var(--ease);
}
.dropdown-item:hover { background: var(--bg-2); }
.dropdown-icon { font-size: 1.2rem; }
.dropdown-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--t);
  margin-bottom: 1px;
}
.dropdown-desc { font-size: var(--fs-xs); color: var(--t-3); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4.5px;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--t-2);
  border-radius: var(--r-full);
  transition: all var(--t-2) var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--bg-1);
  border-top: 1px solid var(--bdr);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--t-5) var(--ease-expo), opacity var(--t-5) var(--ease-expo);
  z-index: 899;
  pointer-events: none;
  overflow-y: auto;
}
.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav-mobile a {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--t-2);
  border-radius: var(--r-md);
  transition: all var(--t-1) var(--ease);
}
.nav-mobile a:hover { background: var(--bg-2); color: var(--t); }
.nav-mobile .btn-primary { margin-top: var(--sp-3); text-align: center; justify-content: center; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-20);
  align-items: center;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.about-card {
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
}
.about-card:hover { border-color: var(--ind-m); box-shadow: var(--sh-md); }

.about-card-icon { font-size: 1.4rem; margin-bottom: var(--sp-3); }
.about-card-title {
  font-family: var(--font-h);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--t);
  margin-bottom: var(--sp-2);
}
.about-card-desc { font-size: var(--fs-xs); color: var(--t-2); line-height: 1.55; }

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-header { text-align: center; margin-bottom: var(--sp-12); }
.products-header .sec-desc { margin-inline: auto; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.product-card {
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease), transform var(--t-2) var(--ease);
}
.product-card:hover {
  border-color: var(--ind-m);
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
}

.product-card--featured {
  grid-column: span 2;
  background: linear-gradient(145deg, rgba(99,102,241,.03), rgba(14,165,233,.02));
  border-color: var(--ind-m);
}

.product-num {
  display: block;
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--bdr);
  line-height: 1;
  margin-bottom: var(--sp-3);
  transition: color var(--t-2) var(--ease);
}
.product-card:hover .product-num { color: var(--ind-m); }

.product-tags {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.product-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--t);
  margin-bottom: var(--sp-3);
}

.product-desc {
  font-size: var(--fs-sm);
  color: var(--t-2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--sp-5);
}

.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

/* Tags */
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .03em;
}
.tag-ind  { background: var(--ind-l);  color: var(--ind);  border: 1px solid var(--ind-m); }
.tag-sky  { background: var(--sky-l);  color: #0284C7;     border: 1px solid #BAE6FD; }
.tag-teal { background: var(--teal-l); color: #0F766E;     border: 1px solid #99F6E4; }
.tag-gray { background: var(--bg-2);   color: var(--t-2);  border: 1px solid var(--bdr); }

/* Chips */
.chip {
  display: inline-block;
  padding: 3px 9px;
  background: var(--bg-2);
  border: 1px solid var(--bdr);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--t-2);
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.service-card {
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease), transform var(--t-2) var(--ease);
}
.service-card:hover {
  border-color: var(--ind-m);
  box-shadow: var(--sh-lg);
  transform: translateY(-2px);
}
.service-card:hover .service-icon { background: var(--ind); color: #fff; }

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--ind-l);
  color: var(--ind);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  transition: background var(--t-2) var(--ease), color var(--t-2) var(--ease);
}

.service-title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--t);
  margin-bottom: var(--sp-3);
}
.service-desc {
  font-size: var(--fs-sm);
  color: var(--t-2);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.service-tags span {
  padding: 3px 8px;
  background: var(--bg-2);
  border: 1px solid var(--bdr);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  color: var(--t-2);
  font-weight: 500;
}

.services-cta { margin-top: var(--sp-8); text-align: center; }

/* ============================================================
   PROCESS
   ============================================================ */
.process-section {
  background: var(--bg-2);
  border-block: 1px solid var(--bdr);
}
.process-header { text-align: center; margin-bottom: var(--sp-12); }
.process-header .sec-desc { margin-inline: auto; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(16.66% + 22px);
  right: calc(16.66% + 22px);
  height: 1px;
  background: linear-gradient(90deg, var(--ind-m), var(--sky-l));
}

.process-step { text-align: center; padding: var(--sp-4); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  font-family: var(--font-h);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ind);
  margin: 0 auto var(--sp-5);
  position: relative;
  z-index: 1;
  transition: all var(--t-2) var(--ease);
  box-shadow: var(--sh-sm);
}
.process-step:hover .step-num {
  background: var(--ind);
  border-color: var(--ind);
  color: #fff;
  box-shadow: var(--sh-ind);
}

.step-title { font-size: var(--fs-base); font-weight: 700; margin-bottom: var(--sp-3); }
.step-desc { font-size: var(--fs-sm); color: var(--t-2); line-height: 1.6; }

/* ============================================================
   CTA PANEL
   ============================================================ */
.cta-panel {
  background: linear-gradient(135deg, var(--ind) 0%, #4F46E5 50%, var(--sky) 100%);
  border-radius: var(--r-2xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-8);
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: var(--sp-3);
}
.cta-title {
  font-family: var(--font-h);
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: var(--sp-4);
  line-height: 1.1;
  color: #fff;
}
.cta-desc {
  font-size: var(--fs-base);
  opacity: .8;
  margin-bottom: var(--sp-7);
  max-width: 520px;
}
.cta-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.btn-white {
  background: #fff;
  color: var(--ind);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  border: none;
}
.btn-white:hover { background: #f0f0f0; transform: translateY(-1px); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }

.cta-deco {
  display: flex;
  gap: var(--sp-3);
  opacity: .15;
}
.cta-deco-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.cta-deco-ring:nth-child(2) { width: 56px; height: 56px; }
.cta-deco-ring:nth-child(3) { width: 36px; height: 36px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--t);
  color: #fff;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--sp-10);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer-logo {
  height: 32px;
  filter: brightness(0) invert(1);
  margin-bottom: var(--sp-5);
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: #94A3B8;
  line-height: 1.65;
  max-width: 260px;
  margin-bottom: var(--sp-6);
}

.footer-socials {
  display: flex;
  gap: var(--sp-3);
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  transition: all var(--t-2) var(--ease);
}
.social-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

.footer-col-head {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-5);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer-links a {
  font-size: var(--fs-sm);
  color: #64748B;
  transition: color var(--t-1) var(--ease);
}
.footer-links a:hover { color: #fff; }

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
  color: #64748B;
}
.footer-contact-row svg { color: #6366F1; flex-shrink: 0; margin-top: 2px; }
.footer-contact-row a {
  color: #94A3B8;
  transition: color var(--t-1) var(--ease);
}
.footer-contact-row a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-copy { font-size: var(--fs-xs); color: #475569; }
.footer-legal {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-legal a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-full);
  background: rgba(255,255,255,.03);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #94A3B8;
  transition: color var(--t-1) var(--ease), border-color var(--t-1) var(--ease), background var(--t-1) var(--ease);
}
.footer-legal a svg { opacity: .55; transition: opacity var(--t-1) var(--ease), transform var(--t-2) var(--ease-spring); }
.footer-legal a:hover {
  color: #fff;
  border-color: rgba(99,102,241,.45);
  background: rgba(99,102,241,.14);
}
.footer-legal a:hover svg { opacity: 1; transform: scale(1.12); }

/* ============================================================
   PAGE HEROES (inner pages)
   ============================================================ */
.page-hero {
  padding-top: clamp(5.5rem, 12vw, 9rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--bdr);
  background: var(--bg-1);
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-10);
}

.article-featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
}
.article-featured:hover { border-color: var(--bdr-1); box-shadow: var(--sh-lg); }
.article-featured .art-thumb { min-height: 280px; }
.article-featured .art-body { padding: var(--sp-8) var(--sp-10); display: flex; flex-direction: column; justify-content: center; }
.article-featured .art-title { font-size: var(--fs-xl); }

.article-card {
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease), transform var(--t-2) var(--ease);
}
.article-card:hover { border-color: var(--bdr-1); box-shadow: var(--sh-lg); transform: translateY(-2px); }

.art-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-2);
  overflow: hidden;
}
.art-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.art-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.article-card:hover .art-thumb img { transform: scale(1.04); }

.art-body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.art-tag { margin-bottom: var(--sp-3); }
.art-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--t);
  line-height: 1.35;
  margin-bottom: var(--sp-3);
  flex: 1;
}
.art-meta {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--t-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--bdr);
  align-items: center;
}

/* Category filters */
.cat-filters { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.cat-btn {
  padding: 7px 16px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  border: 1px solid var(--bdr);
  background: var(--bg-1);
  color: var(--t-2);
  cursor: pointer;
  transition: all var(--t-1) var(--ease);
}
.cat-btn:hover { border-color: var(--ind-m); color: var(--ind); background: var(--ind-l); }
.cat-btn.active { background: var(--ind); border-color: var(--ind); color: #fff; }

/* Newsletter */
.newsletter-box {
  background: var(--bg-2);
  border: 1px solid var(--bdr);
  border-radius: var(--r-2xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-top: var(--sp-16);
}
.newsletter-form {
  display: flex;
  gap: var(--sp-3);
  max-width: 440px;
  margin: var(--sp-6) auto 0;
}
.newsletter-form input {
  flex: 1;
  padding: 11px 18px;
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  font-family: var(--font-b);
  color: var(--t);
  outline: none;
  transition: border-color var(--t-2) var(--ease);
}
.newsletter-form input:focus { border-color: var(--ind); }
.newsletter-form input::placeholder { color: var(--t-3); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--sp-12);
  align-items: start;
}

.contact-info-card {
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
  transition: border-color var(--t-2) var(--ease), transform var(--t-2) var(--ease);
}
.contact-info-card:hover { border-color: var(--ind-m); transform: translateX(3px); }

.ci-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--ind-l);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ind);
  flex-shrink: 0;
}
.ci-label { font-size: var(--fs-xs); color: var(--t-3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 3px; }
.ci-value { font-size: var(--fs-sm); font-weight: 600; color: var(--t); }

.form-card {
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  box-shadow: var(--sh-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.form-field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--t-1);
}
.form-field input,
.form-field textarea,
.form-field select {
  padding: 11px 15px;
  background: var(--bg);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-family: var(--font-b);
  color: var(--t);
  outline: none;
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
  appearance: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--ind);
  box-shadow: 0 0 0 3px rgba(99,102,241,.08);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--t-4); }
.form-field textarea { resize: vertical; min-height: 120px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--t-2);
  line-height: 1.5;
}
.form-check input { width: 15px; height: 15px; margin-top: 1px; accent-color: var(--ind); cursor: pointer; flex-shrink: 0; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-hero {
  background:
    radial-gradient(circle at 84% 20%, rgba(20,184,166,.12), transparent 28%),
    radial-gradient(circle at 14% 12%, rgba(99,102,241,.12), transparent 30%),
    var(--bg-1);
}
.legal-title {
  font-size: var(--fs-3xl);
  max-width: 760px;
  margin-bottom: var(--sp-5);
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.legal-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--bdr);
  border-radius: var(--r-full);
  background: rgba(255,255,255,.72);
  color: var(--t-2);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.legal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  max-width: 760px;
  margin-top: var(--sp-8);
}
.legal-action-card {
  min-height: 88px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  background: rgba(255,255,255,.82);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-2) var(--ease), border-color var(--t-2) var(--ease),
              box-shadow var(--t-2) var(--ease), background var(--t-2) var(--ease);
}
.legal-action-card:hover {
  transform: translateY(-3px);
  border-color: var(--ind-m);
  box-shadow: var(--sh-md);
  background: rgba(255,255,255,.96);
}

/* lac = legal-action-card parts */
.lac-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
  transition: transform var(--t-2) var(--ease-spring), background var(--t-2) var(--ease), color var(--t-2) var(--ease);
}
.legal-action-card:hover .lac-icon { transform: scale(1.1) rotate(5deg); }

.lac--ind  .lac-icon { background: var(--ind-l);  color: var(--ind);   border-color: var(--ind-m); }
.lac--teal .lac-icon { background: var(--teal-l); color: #0D9488;      border-color: #99F6E4; }
.lac--red  .lac-icon { background: #FEF2F2;       color: #DC2626;      border-color: #FECACA; }
.lac--sky  .lac-icon { background: var(--sky-l);  color: #0284C7;      border-color: #BAE6FD; }

.lac--ind:hover  .lac-icon { background: var(--ind); color: #fff; border-color: var(--ind); }
.lac--teal:hover .lac-icon { background: #0D9488;    color: #fff; border-color: #0D9488; }
.lac--red:hover  .lac-icon { background: #DC2626;    color: #fff; border-color: #DC2626; }
.lac--sky:hover  .lac-icon { background: #0284C7;    color: #fff; border-color: #0284C7; }

.lac-body { flex: 1; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.lac-tag {
  display: inline-block; width: fit-content;
  padding: 2px 8px; border-radius: var(--r-full);
  font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.lac--ind  .lac-tag { background: var(--ind-l);  color: var(--ind); }
.lac--teal .lac-tag { background: var(--teal-l); color: #0D9488; }
.lac--red  .lac-tag { background: #FEF2F2;       color: #DC2626; }
.lac--sky  .lac-tag { background: var(--sky-l);  color: #0284C7; }
.lac-title { font-family: var(--font-h); font-size: var(--fs-sm); line-height: 1.3; color: var(--t); font-weight: 700; }
.lac-arrow {
  color: var(--t-3); flex-shrink: 0; margin-left: var(--sp-1);
  transition: transform var(--t-2) var(--ease), color var(--t-2) var(--ease);
}
.legal-action-card:hover .lac-arrow { transform: translateX(5px); color: var(--ind); }
.lac--teal:hover .lac-arrow { color: #0D9488; }
.lac--red:hover  .lac-arrow { color: #DC2626; }
.lac--sky:hover  .lac-arrow { color: #0284C7; }
.legal-section { padding-top: var(--sp-16); }
.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--sp-12);
  align-items: start;
}
.legal-aside {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-3);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  background: rgba(255,255,255,.82);
  box-shadow: var(--sh-sm);
}
.legal-aside a {
  padding: 9px 11px;
  border-radius: var(--r-md);
  color: var(--t-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color var(--t-1) var(--ease), background var(--t-1) var(--ease);
}
.legal-aside a:hover,
.legal-aside a.active {
  background: var(--ind-l);
  color: var(--ind);
}
.legal-aside a.active {
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--ind);
}
.legal-document {
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-2xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--sh-sm);
}
.legal-document section + section {
  margin-top: var(--sp-10);
  padding-top: var(--sp-10);
  border-top: 1px solid var(--bdr);
}
.legal-document h2 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.legal-document h2::before {
  content: '';
  display: inline-block;
  width: 3px; height: 1.1em;
  border-radius: var(--r-full);
  background: linear-gradient(180deg, var(--ind), var(--sky));
  flex-shrink: 0;
}
.legal-document p,
.legal-document li {
  color: var(--t-1);
  font-size: var(--fs-sm);
  line-height: 1.85;
}
.legal-document p + p { margin-top: var(--sp-4); }
.legal-document ul {
  display: grid;
  gap: var(--sp-3);
  padding-left: 1.15rem;
}
.legal-document a {
  color: var(--ind);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--ind-m);
  text-underline-offset: 3px;
}
.legal-callout {
  margin-top: var(--sp-10);
  padding: var(--sp-5);
  border: 1px solid var(--ind-m);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--ind-l), var(--sky-l));
  color: var(--t);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}
.legal-callout strong { font-family: var(--font-h); }
.legal-callout span { color: var(--ind); font-weight: 700; }

/* FAQ */
.faq-wrap { max-width: 680px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--bdr); }
.faq-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-5) 0;
  cursor: pointer;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--t);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-b);
  transition: color var(--t-1) var(--ease);
  gap: var(--sp-4);
}
.faq-trigger:hover { color: var(--ind); }
.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t-2);
  flex-shrink: 0;
  transition: all var(--t-2) var(--ease);
}
.faq-item.open .faq-icon {
  background: var(--ind);
  border-color: var(--ind);
  color: #fff;
  transform: rotate(45deg);
}
.faq-body { max-height: 0; overflow: hidden; transition: max-height var(--t-5) var(--ease); }
.faq-item.open .faq-body { max-height: 250px; }
.faq-inner { padding-bottom: var(--sp-5); font-size: var(--fs-sm); color: var(--t-2); line-height: 1.7; }

/* ============================================================
   INNER PAGE — service/product detail
   ============================================================ */
.detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--bdr);
}
.detail-block:last-child { border-bottom: none; }
.detail-block.flip .detail-visual { order: -1; }

.detail-num {
  font-family: var(--font-h);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  color: var(--bdr);
  line-height: 1;
}

.detail-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: var(--sp-5);
}

.detail-visual {
  aspect-ratio: 1;
  max-width: 380px;
  background: var(--bg-2);
  border: 1px solid var(--bdr);
  border-radius: var(--r-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.detail-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(99,102,241,.05), transparent 65%);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}
.tech-badge {
  padding: 4px 11px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--bg-2);
  border: 1px solid var(--bdr);
  color: var(--t-2);
  transition: all var(--t-1) var(--ease);
}
.tech-badge:hover { border-color: var(--ind-m); color: var(--ind); background: var(--ind-l); }

/* ============================================================
   PROJECTS
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-10);
}
.stat-box {
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
}
.stat-box-num {
  font-family: var(--font-h);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--t);
  margin-bottom: var(--sp-2);
}
.stat-box-num em { font-style: normal; color: var(--ind); }
.stat-box-lbl { font-size: var(--fs-xs); color: var(--t-3); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-10);
}
.project-card {
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease), transform var(--t-2) var(--ease);
}
.project-card:hover { border-color: var(--ind-m); box-shadow: var(--sh-lg); transform: translateY(-3px); }
.project-card--hero {
  grid-column: span 2;
  background: linear-gradient(145deg, rgba(99,102,241,.04), rgba(14,165,233,.02));
  border-color: var(--ind-m);
}
.project-card--dashed { border-style: dashed; }

.proj-title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}
.proj-desc {
  font-size: var(--fs-sm);
  color: var(--t-2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--sp-5);
}

/* ============================================================
   VALUES / TEAM (nosotros)
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.value-card {
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
}
.value-card:hover { border-color: var(--ind-m); box-shadow: var(--sh-md); }
.value-icon { font-size: 1.75rem; margin-bottom: var(--sp-4); }
.value-title { font-size: var(--fs-base); font-weight: 700; color: var(--t); margin-bottom: var(--sp-2); }
.value-desc { font-size: var(--fs-sm); color: var(--t-2); line-height: 1.6; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.team-card {
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  text-align: center;
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
}
.team-card:hover { border-color: var(--ind-m); box-shadow: var(--sh-md); }
.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ind), var(--sky));
  margin: 0 auto var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.team-name { font-weight: 700; color: var(--t); font-size: var(--fs-sm); margin-bottom: 3px; }
.team-role { font-size: var(--fs-xs); color: var(--t-3); }

/* ============================================================
   WHATSAPP
   ============================================================ */
.wa-widget {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-3);
}
.wa-panel {
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  width: 300px;
  box-shadow: var(--sh-xl);
  transform: translateY(8px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-3) var(--ease-expo);
}
.wa-widget.open .wa-panel { transform: none; opacity: 1; pointer-events: all; }
.wa-panel-title { font-weight: 700; font-size: var(--fs-base); color: var(--t); margin-bottom: var(--sp-1); }
.wa-panel-sub { font-size: var(--fs-xs); color: var(--t-2); margin-bottom: var(--sp-4); }
.wa-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--r-lg);
  transition: background var(--t-1) var(--ease);
}
.wa-link:hover { background: #DCFCE7; }
.wa-link-name { font-size: var(--fs-sm); font-weight: 700; color: #166534; }
.wa-link-sub { font-size: 10px; color: #4ADE80; }
.wa-fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37,211,102,.4);
  transition: transform var(--t-2) var(--ease-spring), box-shadow var(--t-2) var(--ease);
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,.45); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-card--featured { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card--hero { grid-column: span 1; }
  .detail-block { grid-template-columns: 1fr; }
  .detail-block.flip .detail-visual { order: 0; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: var(--sp-6); }
  .legal-aside {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    border-radius: var(--r-lg);
  }
  .legal-aside a { white-space: nowrap; }
  .form-row { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-deco { display: none; }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps::before { display: none; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .article-featured { grid-column: span 2; grid-template-columns: 1fr; }
  .article-featured .art-body { padding: var(--sp-5); }
}

@media (max-width: 640px) {
  .products-grid, .blog-grid { grid-template-columns: 1fr; }
  .article-featured { grid-column: span 1; }
  .values-grid, .team-grid { grid-template-columns: 1fr; }
  .projects-grid, .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--sp-3); text-align: center; }
  .footer-legal { justify-content: center; }
  .legal-meta { flex-direction: column; align-items: flex-start; }
  .legal-actions { grid-template-columns: 1fr; }
  .legal-document { border-radius: var(--r-xl); }
  .about-cards { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
}

/* ============================================================
   SVG ILLUSTRATION ICONS — shared
   ============================================================ */
.picon {
  width: 62%;
  max-width: 240px;
  position: relative;
  z-index: 1;
  transition: transform var(--t-3) var(--ease);
  overflow: visible;
}
.producto-visual:hover .picon,
.service-detail-visual:hover .picon { transform: scale(1.06) translateY(-4px); }

/* ============================================================
   MED — ECG trace
   ============================================================ */
@keyframes ecgTrace {
  0%, 5%   { stroke-dashoffset: 210; opacity: 0; }
  12%      { opacity: 1; }
  62%      { stroke-dashoffset: 0; opacity: 1; }
  80%      { stroke-dashoffset: 0; opacity: .85; }
  96%,100% { stroke-dashoffset: -210; opacity: 0; }
}
.picon-ecg { animation: ecgTrace 2.8s ease-in-out infinite; }

/* ============================================================
   GYM — Activity rings fill
   ============================================================ */
.gym-ring-1 { stroke-dashoffset: 390; animation: gymFill1 1.7s cubic-bezier(0.16,1,0.3,1) forwards; }
.gym-ring-2 { stroke-dashoffset: 295; animation: gymFill2 1.9s cubic-bezier(0.16,1,0.3,1) .18s forwards; }
.gym-ring-3 { stroke-dashoffset: 201; animation: gymFill3 2.1s cubic-bezier(0.16,1,0.3,1) .36s forwards; }
@keyframes gymFill1 { from { stroke-dashoffset: 390; } to { stroke-dashoffset: 78; } }
@keyframes gymFill2 { from { stroke-dashoffset: 295; } to { stroke-dashoffset: 103; } }
@keyframes gymFill3 { from { stroke-dashoffset: 201; } to { stroke-dashoffset: 20; } }

/* ============================================================
   DISCOTECAS — QR scan line
   ============================================================ */
@keyframes scanDown {
  0%   { transform: translateY(-52px); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(52px); opacity: 0; }
}
.scan-line-grp { animation: scanDown 2.2s ease-in-out infinite; }

/* ============================================================
   RESTAURANTES — Steam wisps
   ============================================================ */
@keyframes steamRise {
  0%   { transform: translateY(0) scaleX(1);    opacity: .55; }
  100% { transform: translateY(-20px) scaleX(1.3); opacity: 0; }
}
.steam-1 { animation: steamRise 2s ease-out infinite; }
.steam-2 { animation: steamRise 2s ease-out .45s infinite; }
.steam-3 { animation: steamRise 2s ease-out .9s infinite; }

/* ============================================================
   SOFTWARE — blinking cursor
   ============================================================ */
@keyframes cursorBlink { 0%,49% { opacity:1; } 50%,100% { opacity:0; } }
.code-cursor { animation: cursorBlink .85s step-end infinite; }

/* ============================================================
   CONSULTORÍA — bar chart grow
   ============================================================ */
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart-bar { transform-origin: bottom center; transform: scaleY(0); }
.chart-bar.in { animation: barGrow .9s cubic-bezier(0.16,1,0.3,1) forwards; }
.chart-bar:nth-child(2).in { animation-delay: .08s; }
.chart-bar:nth-child(3).in { animation-delay: .16s; }
.chart-bar:nth-child(4).in { animation-delay: .24s; }
.chart-bar:nth-child(5).in { animation-delay: .32s; }

/* ============================================================
   IA — neural node pulse
   ============================================================ */
@keyframes nodePulse { 0%,100% { opacity:.6; } 50% { opacity:1; } }
.nn-node { animation: nodePulse 2s ease-in-out infinite; }
.nn-node:nth-child(3n+1) { animation-delay: .3s; }
.nn-node:nth-child(3n+2) { animation-delay: .6s; }
.nn-node:nth-child(3n)   { animation-delay: .9s; }

/* ============================================================
   PROJECT CARD icons
   ============================================================ */
.pcard-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t-2) var(--ease-spring);
}
.proyecto-card:hover .pcard-icon { transform: scale(1.1) rotate(3deg); }
.pcard-icon--med  { background: var(--ind-l);  border: 1px solid var(--ind-m); color: var(--ind); }
.pcard-icon--gym  { background: var(--teal-l); border: 1px solid #99F6E4;      color: #0D9488; }
.pcard-icon--disc { background: var(--sky-l);  border: 1px solid #BAE6FD;      color: #0284C7; }
.pcard-icon--rest { background: var(--bg-2);   border: 1px solid var(--bdr);   color: var(--t-2); }
.pcard-icon--next { background: var(--ind-l);  border: 1px dashed var(--ind-m); color: var(--ind); }

/* ============================================================
   BLOG thumbnail SVG backgrounds
   ============================================================ */
.thumb-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.thumb-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ============================================================
   GRADIENT TEXT — inner pages
   ============================================================ */
.grad {
  background: linear-gradient(120deg, var(--ind), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   SCROLL REVEAL — scale variant
   ============================================================ */
[data-reveal="scale"] {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity .8s var(--ease-expo), transform .8s var(--ease-expo);
}
[data-reveal="scale"].in { opacity: 1; transform: scale(1); }

/* ============================================================
   INNER PAGE HEROES
   ============================================================ */
.services-hero-section,
.blog-hero {
  padding-top: clamp(7rem, 14vw, 10rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--bdr);
  position: relative;
  overflow: hidden;
}
.services-hero-section::before,
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  opacity: .35;
  pointer-events: none;
}

/* ============================================================
   TAG VARIANTS — inner pages
   ============================================================ */
.tag--p { background: var(--ind-l); color: var(--ind); border: 1px solid var(--ind-m); }
.tag--a { background: var(--teal-l); color: #0F766E; border: 1px solid #99F6E4; }
.tag--g { background: var(--bg-2); color: var(--t-2); border: 1px solid var(--bdr); }
.tag--s { background: var(--sky-l); color: #0284C7; border: 1px solid #BAE6FD; }

/* ============================================================
   FEATURE CHIPS
   ============================================================ */
.product-features { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.feature-chip {
  display: inline-block;
  padding: 5px 13px;
  background: var(--bg-2);
  border: 1px solid var(--bdr);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--t-2);
  transition: all var(--t-1) var(--ease);
}
.feature-chip:hover { border-color: var(--ind-m); color: var(--ind); background: var(--ind-l); }

/* ============================================================
   PRODUCT SECTIONS
   ============================================================ */
.producto-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}
.producto-num {
  display: block;
  font-family: var(--font-h);
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 800;
  color: var(--bdr);
  line-height: .9;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.04em;
  transition: color var(--t-3) var(--ease);
}
.producto-section:hover .producto-num { color: var(--ind-m); }
.producto-title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
  color: var(--t);
}
.producto-visual {
  aspect-ratio: 1;
  max-width: 400px;
  width: 100%;
  background: linear-gradient(155deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--bdr);
  border-radius: var(--r-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-xl);
  justify-self: center;
  transition: transform var(--t-5) var(--ease-expo), box-shadow var(--t-5) var(--ease-expo);
}
.producto-visual:hover {
  transform: translateY(-8px) rotate(1.5deg);
  box-shadow: 0 28px 56px rgba(15,23,42,.13);
}
.producto-visual::before {
  content: '';
  position: absolute;
  width: 200%; height: 200%;
  top: -50%; left: -50%;
  background: radial-gradient(circle at 50% 40%, rgba(99,102,241,.12), transparent 50%);
  animation: visualPulse 6s ease-in-out infinite;
}

/* ============================================================
   SERVICE DETAIL SECTIONS
   ============================================================ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}
.service-detail-num {
  display: block;
  font-family: var(--font-h);
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 800;
  color: var(--bdr);
  line-height: .9;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.04em;
  transition: color var(--t-3) var(--ease);
}
.service-detail:hover .service-detail-num { color: var(--ind-m); }
.service-detail-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
  line-height: 1.1;
  color: var(--t);
}
.service-detail-visual {
  aspect-ratio: 1;
  max-width: 360px;
  width: 100%;
  background: linear-gradient(155deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--bdr);
  border-radius: var(--r-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-xl);
  justify-self: center;
  transition: transform var(--t-5) var(--ease-expo), box-shadow var(--t-5) var(--ease-expo);
}
.service-detail-visual:hover {
  transform: translateY(-8px) rotate(-1.5deg);
  box-shadow: 0 28px 56px rgba(15,23,42,.13);
}
.service-detail-visual::before {
  content: '';
  position: absolute;
  width: 200%; height: 200%;
  top: -50%; left: -50%;
  background: radial-gradient(circle at 50% 40%, rgba(14,165,233,.1), transparent 50%);
  animation: visualPulse 7s ease-in-out infinite 1s;
}



/* ============================================================
   CTA EXTRAS
   ============================================================ */
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 85% 50%, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}
.cta-orbs {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  flex-shrink: 0;
}
.cta-orb {
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45);
  flex-shrink: 0;
  animation: orbPulse 3s var(--ease) infinite;
}
.cta-orb:nth-child(1) { width: 80px; height: 80px; }
.cta-orb:nth-child(2) { width: 56px; height: 56px; animation-delay: .5s; }
.cta-orb:nth-child(3) { width: 36px; height: 36px; animation-delay: 1s; }

/* ============================================================
   ARROW BUTTON
   ============================================================ */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ind);
  transition: gap var(--t-2) var(--ease);
}
.btn-arrow:hover { gap: var(--sp-4); }
.btn-arrow .arr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ind-l);
  border: 1px solid var(--ind-m);
  color: var(--ind);
  flex-shrink: 0;
  transition: background var(--t-2) var(--ease), color var(--t-2) var(--ease),
              border-color var(--t-2) var(--ease), transform var(--t-2) var(--ease-spring);
}
.btn-arrow:hover .arr {
  background: var(--ind);
  color: #fff;
  border-color: var(--ind);
  transform: translateX(4px);
}

/* ============================================================
   PROYECTOS STATS
   ============================================================ */
.proyectos-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  transition: border-color var(--t-2) var(--ease), transform var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
}
.stat-card:hover { border-color: var(--ind-m); transform: translateY(-3px); box-shadow: var(--sh-md); }
.stat-val {
  font-family: var(--font-h);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--t);
  margin-bottom: var(--sp-2);
  line-height: 1;
}
.stat-val em { font-style: normal; color: var(--ind); }
.stat-lbl { font-size: var(--fs-xs); color: var(--t-3); font-weight: 500; }

/* ============================================================
   PROYECTOS GRID
   ============================================================ */
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}
.proyecto-card {
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease), transform var(--t-2) var(--ease);
}
.proyecto-card:hover { border-color: var(--ind-m); box-shadow: var(--sh-lg); transform: translateY(-3px); }
.proyecto-card--featured {
  grid-column: span 2;
  background: linear-gradient(145deg, rgba(99,102,241,.03), rgba(14,165,233,.02));
  border-color: var(--ind-m);
}
.proyecto-title { font-size: var(--fs-lg); font-weight: 700; color: var(--t); margin-bottom: var(--sp-3); }
.proyecto-desc { font-size: var(--fs-sm); color: var(--t-2); line-height: 1.65; flex: 1; }

/* ============================================================
   BLOG — article class aliases (match HTML naming)
   ============================================================ */
.article-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-2);
  overflow: hidden;
}
.article-featured .article-thumb { aspect-ratio: auto; min-height: 280px; }
.article-body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.article-featured .article-body {
  padding: var(--sp-8) var(--sp-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.article-tag { margin-bottom: var(--sp-3); }
.article-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--t);
  line-height: 1.35;
  margin-bottom: var(--sp-3);
  flex: 1;
}
.article-featured .article-title { font-size: var(--fs-xl); }
.article-meta {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--t-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--bdr);
  align-items: center;
  flex-wrap: wrap;
}
.article-card:hover .article-thumb img { transform: scale(1.04); }

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  text-align: center;
  margin-top: var(--sp-16);
  padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--bg-2);
  border: 1px solid var(--bdr);
  border-radius: var(--r-2xl);
}
.newsletter-section .sec-title { margin-bottom: var(--sp-4); }

/* ============================================================
   HERO 3D PERSPECTIVE GRID
   ============================================================ */
.hero-3d-grid {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  perspective: 500px;
  perspective-origin: 50% 100%;
  pointer-events: none;
  overflow: hidden;
  opacity: .7;
}
.hero-3d-plane {
  width: 200%; height: 200%;
  position: absolute;
  bottom: 0; left: -50%;
  background-image:
    linear-gradient(rgba(99,102,241,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.09) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: rotateX(75deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 55%);
}

/* ============================================================
   PRODUCT VISUAL — new illustration helpers
   ============================================================ */
.live-dot { animation: livePulse 2s ease-in-out infinite; transform-origin: center; }
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.picon-med-screen .picon-ecg {
  animation: ecgTrace 2.8s ease-in-out infinite .8s;
}
@keyframes ecgTrace {
  0%   { stroke-dashoffset: 150; }
  55%  { stroke-dashoffset: 0; }
  82%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.star-twinkle { animation: starTwinkle 2.5s ease-in-out infinite; transform-origin: center; }
@keyframes starTwinkle {
  0%, 100% { opacity: .45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}
.bubble-1 { animation: bubbleFloat 2s ease-in-out infinite; transform-origin: center; }
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); opacity: .35; }
  50% { transform: translateY(-5px); opacity: .65; }
}
.picon-disc-phone .scan-line-grp { animation: scanQR 2.2s linear infinite; }
@keyframes scanQR {
  0%   { transform: translateY(-12px); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ============================================================
   CARD TILT — preserve-3d context
   ============================================================ */
.product-card, .proyecto-card, .about-card, .service-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ============================================================
   ADDITIONAL KEYFRAMES
   ============================================================ */
@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: .2; }
  50% { transform: scale(1.1); opacity: .38; }
}
@keyframes visualPulse {
  0%, 100% { opacity: .8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* Animate hero blobs */
.hero-blob-1 { animation: blobDrift1 12s ease-in-out infinite; }
.hero-blob-2 { animation: blobDrift2 14s ease-in-out infinite 2s; }
@keyframes blobDrift1 {
  0%, 100% { transform: translate(0,0) scale(1); opacity: .18; }
  33%       { transform: translate(-28px,18px) scale(1.05); opacity: .22; }
  66%       { transform: translate(18px,-12px) scale(.96); opacity: .16; }
}
@keyframes blobDrift2 {
  0%, 100% { transform: translate(0,0) scale(1); opacity: .18; }
  33%       { transform: translate(22px,-18px) scale(.94); opacity: .14; }
  66%       { transform: translate(-12px,22px) scale(1.07); opacity: .22; }
}

/* ============================================================
   PRIVACY HERO — premium
   ============================================================ */
.priv-hero {
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(99,102,241,.14) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(20,184,166,.12) 0%, transparent 50%),
    var(--bg-1);
}
.priv-desc { max-width: 600px; }

.priv-promises {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-4);
}
.priv-promise {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--bdr);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--t-1);
  box-shadow: var(--sh-xs);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.priv-promise svg { color: var(--ind); flex-shrink: 0; }

/* ============================================================
   LEGAL ACCORDION — premium collapsible sections
   ============================================================ */
.legal-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.legal-acc-item {
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  background: var(--bg-1);
  overflow: hidden;
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease), transform var(--t-2) var(--ease);
}
.legal-acc-item:hover { border-color: rgba(99,102,241,.25); }
.legal-acc-item.open {
  border-color: var(--ind-m);
  box-shadow: var(--sh-sm);
  transform: none;
}
.legal-acc-trigger {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-4) var(--sp-5);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-b);
  transition: background var(--t-1) var(--ease);
}
.legal-acc-trigger:hover { background: var(--bg-2); }
.legal-acc-item.open .legal-acc-trigger { background: rgba(99,102,241,.04); }

.legal-acc-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
  transition: all var(--t-2) var(--ease);
}
.lac-acc--ind   { background: var(--ind-l);  color: var(--ind);   border-color: var(--ind-m); }
.lac-acc--sky   { background: var(--sky-l);  color: #0284C7;      border-color: #BAE6FD; }
.lac-acc--teal  { background: var(--teal-l); color: #0D9488;      border-color: #99F6E4; }
.lac-acc--gray  { background: var(--bg-2);   color: var(--t-2);   border-color: var(--bdr); }
.lac-acc--amber { background: #FFFBEB;       color: #D97706;      border-color: #FDE68A; }
.lac-acc--red   { background: #FEF2F2;       color: #DC2626;      border-color: #FECACA; }

.legal-acc-item.open .lac-acc--ind   { background: var(--ind); color: #fff; border-color: var(--ind); }
.legal-acc-item.open .lac-acc--sky   { background: #0284C7;    color: #fff; border-color: #0284C7; }
.legal-acc-item.open .lac-acc--teal  { background: #0D9488;    color: #fff; border-color: #0D9488; }
.legal-acc-item.open .lac-acc--gray  { background: var(--t-2); color: #fff; border-color: var(--t-2); }
.legal-acc-item.open .lac-acc--amber { background: #D97706;    color: #fff; border-color: #D97706; }
.legal-acc-item.open .lac-acc--red   { background: #DC2626;    color: #fff; border-color: #DC2626; }

.legal-acc-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.legal-acc-num {
  font-size: 10px;
  font-weight: 800;
  color: var(--t-3);
  letter-spacing: .1em;
  font-family: var(--font-h);
  min-width: 20px;
}
.legal-acc-item.open .legal-acc-num { color: var(--ind); }
.legal-acc-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--t);
  line-height: 1.3;
}
.legal-acc-chevron {
  color: var(--t-3);
  flex-shrink: 0;
  transition: transform var(--t-3) var(--ease-expo), color var(--t-2) var(--ease);
}
.legal-acc-item.open .legal-acc-chevron {
  transform: rotate(180deg);
  color: var(--ind);
}
.legal-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease-expo);
}
.legal-acc-item.open .legal-acc-body { max-height: 800px; }
.legal-acc-content {
  padding: var(--sp-5) var(--sp-5) var(--sp-6) calc(var(--sp-5) + 38px + var(--sp-4));
  border-top: 1px solid var(--bdr);
}
.legal-acc-content p { font-size: var(--fs-sm); color: var(--t-1); line-height: 1.85; }
.legal-acc-content p + p { margin-top: var(--sp-4); }
.legal-acc-content ul {
  display: grid; gap: var(--sp-3); padding-left: 1.1rem;
}
.legal-acc-content li { font-size: var(--fs-sm); color: var(--t-1); line-height: 1.7; }
.legal-acc-content a {
  color: var(--ind); font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--ind-m);
  text-underline-offset: 3px;
}
.legal-acc-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: linear-gradient(135deg, var(--ind-l), var(--sky-l));
  border: 1px solid var(--ind-m);
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  color: var(--t-1);
  font-weight: 500;
}
.legal-acc-callout svg { color: var(--ind); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   LEGAL ASIDE — external link variant
   ============================================================ */
.legal-aside-link {
  display: flex !important;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-2);
  padding: 9px 11px;
  border-radius: var(--r-md);
  border-top: 1px solid var(--bdr) !important;
  color: var(--t-3) !important;
  font-size: var(--fs-xs) !important;
  font-weight: 600;
  transition: color var(--t-1) var(--ease), background var(--t-1) var(--ease) !important;
}
.legal-aside-link:hover { color: var(--ind) !important; background: var(--ind-l) !important; }
.legal-aside-link svg { flex-shrink: 0; opacity: .7; }

/* ============================================================
   RESPONSIVE — new inner-page components
   ============================================================ */
@media (max-width: 1024px) {
  .producto-section, .service-detail {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .producto-visual, .service-detail-visual {
    max-width: 320px;
    justify-self: center;
  }
  .proyectos-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .proyectos-grid { grid-template-columns: 1fr 1fr; }
  .proyecto-card--featured { grid-column: span 2; }
  .cta-orbs { display: none; }
}
@media (max-width: 640px) {
  .proyectos-stats { grid-template-columns: 1fr 1fr; }
  .proyectos-grid { grid-template-columns: 1fr; }
  .proyecto-card--featured { grid-column: span 1; }
  .article-featured { grid-template-columns: 1fr !important; }
  .article-featured .article-body { padding: var(--sp-5) !important; }
  .article-featured .article-thumb { min-height: 200px; }
  .hero-3d-grid { display: none; }
  .producto-visual, .service-detail-visual { max-width: 260px; }
  .producto-title { font-size: var(--fs-2xl); }
}

@media (max-width: 480px) {
  .wa-widget { right: var(--sp-4); bottom: var(--sp-4); }
  .wa-panel { width: calc(100vw - 3rem); max-width: 300px; }
  .cta-actions { flex-direction: column; }
  .footer-legal { flex-wrap: wrap; gap: var(--sp-3); }
  .form-card { padding: var(--sp-5); }
  .proyectos-stats { grid-template-columns: 1fr 1fr; }
  .detail-block { gap: var(--sp-8); }
  .newsletter-box { padding: var(--sp-6); }
}

@media (max-width: 380px) {
  .wa-widget { right: var(--sp-3); bottom: var(--sp-3); }
  .wa-panel { width: calc(100vw - 1.5rem); }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
