@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* HelpTech — Site Styles */
:root {
  --primary: #1F3C88;
  --primary-dark: #1a3475;
  --accent: #F4A742;
  --accent-dark: #e09836;
  --black: #1A1A1A;
  --text: #1A1A1A;
  --muted: #555555;
  --bg: #FFFFFF;
  --bg-soft: #F4F4F4;
  --border: #E5E7EB;
  --radius: 14px;
  --shadow: 0 10px 30px -10px rgba(0,0,0,.15);
  --shadow-lg: 0 25px 50px -12px rgba(0,0,0,.25);
  --transition: all .3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 0; cursor: pointer; transition: var(--transition); white-space: nowrap;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; height: 56px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(31,60,136,.5); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 12px 30px -8px rgba(31,60,136,.7); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -8px rgba(244,167,66,.5); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #f1f5f9; }
.btn-outline { background: transparent; color: #fff; border: 1px solid #475569; }
.btn-outline:hover { background: #1e293b; }
.btn-cta-header { padding: .6rem 1.2rem; font-size: .9rem; }

/* ====== Header ====== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%); opacity: 0;
  animation: headerIn .7s cubic-bezier(.2,.8,.2,1) .1s forwards;
  transition: padding .3s ease, box-shadow .3s ease;
  padding: .5rem 0;
}
.site-header.scrolled { padding: .25rem 0; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
@keyframes headerIn { to { transform: translateY(0); opacity: 1; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo img { height: 64px; width: auto; transition: transform .3s; }
.logo:hover img { transform: scale(1.05); }
.main-nav { display: flex; gap: 2rem; }
.main-nav a { font-weight: 500; font-size: .9rem; color: #000; position: relative; padding: .25rem 0; transition: color .2s; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); transition: width .3s; }
.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after { width: 100%; }
.menu-toggle { display: none; background: transparent; border: 0; flex-direction: column; gap: 5px; padding: .5rem; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #000; transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 80px 0 40px;
  overflow: hidden;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 20s ease-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-inner {
  max-width: 760px;
  text-align: left;
  margin: 0 auto;
  transform: translateX(-40px);
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--accent); }
.hero p { font-size: 1.25rem; color: #E0E0E0; margin-bottom: 2rem; max-width: 700px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px;
  background: rgba(244,167,66,.15); color: var(--accent);
  border: 1px solid rgba(244,167,66,.3); font-size: .85rem; font-weight: 500;
  margin-bottom: 1.5rem;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ====== Metrics ====== */
.metrics-wrap { position: relative; z-index: 5; margin-top: -70px; padding: 0 1rem; }
.metrics-card {
  max-width: 1200px; margin: 0 auto; background: #fff; border-radius: 20px;
  border: 1px solid var(--border); padding: 2.5rem; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.metric { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 .5rem; }
.metric + .metric { border-left: 1px solid var(--border); }
.metric-num { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: #000; font-variant-numeric: tabular-nums; margin-bottom: .4rem; }
.metric-label { font-size: .95rem; color: var(--muted); font-weight: 500; }

/* ====== Sections ====== */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 4rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; margin-bottom: .75rem; letter-spacing: -.02em; }
.section-head p { font-size: 1.1rem; color: var(--muted); }

/* ====== Services ====== */
.services { padding: 6rem 0; background: #000; color: #fff; }
.services .section-head h2 { color: #fff; }
.services .section-head p { color: #94a3b8; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/3;
  background: #0f172a; border: 1px solid #1e293b; cursor: pointer;
  transition: transform .4s ease, box-shadow .4s ease;
}
.service-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 30px 50px -15px rgba(244,167,66,.3); }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.service-card:hover img { transform: scale(1.08); }
.service-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,6,23,.95), rgba(2,6,23,.4) 50%, transparent); z-index: 1; }
.service-body { position: absolute; inset: 0; padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; z-index: 2; }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(244,167,66,.2); backdrop-filter: blur(8px);
  border: 1px solid rgba(244,167,66,.3); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  margin-bottom: 1rem; transition: transform .35s ease;
}
.service-card:hover .service-icon { transform: scale(1.15) rotate(8deg); }
.service-body h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; transition: transform .3s; }
.service-card:hover .service-body h3 { transform: translateX(4px); }
.services-cta { display: flex; justify-content: center; margin-top: 3rem; }

/* ====== Cases ====== */
.cases { padding: 6rem 0; background: #fff; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.case-card {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 18px; padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem; transition: transform .35s ease, box-shadow .35s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-cat { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.case-card h3 { color: var(--primary); font-size: 1.2rem; font-weight: 700; line-height: 1.35; margin-bottom: .5rem; }
.case-card h4 { color: var(--primary); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: .5rem; }
.case-card p { color: #000; font-size: .92rem; line-height: 1.5; }
.case-result { background: rgba(31,60,136,.05); border: 1px solid rgba(31,60,136,.2); border-radius: 10px; padding: 1rem; margin-top: .5rem; }
.case-result p { font-weight: 500; }
.case-card .btn { margin-top: auto; }

/* ====== Final CTA ====== */
.final-cta { position: relative; padding: 8rem 0; overflow: hidden; color: #fff; text-align: center; }
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.5s ease; }
.cta-bg img.in { transform: scale(1); }
.cta-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.cta-content { position: relative; z-index: 2; }
.cta-content h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.cta-content p { font-size: 1.2rem; color: #cbd5e1; margin-bottom: 2rem; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ====== Contact ====== */
.contact { padding: 6rem 0; background: #fff; }
.contact-card {
  display: grid; grid-template-columns: 2fr 3fr;
  background: #000; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); max-width: 1100px; margin: 0 auto;
}
.contact-info { padding: 3rem; background: rgba(15,23,42,.5); border-right: 1px solid #1e293b; color: #fff; }
.contact-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: .5rem; color: #fff; }
.contact-subtitle { color: var(--accent); font-weight: 500; font-size: 1.05rem; margin-bottom: 2rem; }
.contact-desc { color: #94a3b8; font-size: .9rem; margin-bottom: 2rem; line-height: 1.6; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; color: #cbd5e1; font-size: .9rem; }
.contact-list li { display: flex; align-items: center; gap: .75rem; }
.contact-list span { width: 38px; height: 38px; border-radius: 50%; background: #1e293b; border: 1px solid #334155; display: inline-flex; align-items: center; justify-content: center; }
.contact-form { padding: 3rem; color: #fff; display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.contact-form label { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: #cbd5e1; font-weight: 500; }
.contact-form input, .contact-form textarea {
  background: #0f172a; border: 1px solid #1e293b; color: #fff; border-radius: 10px;
  padding: .75rem 1rem; font: inherit; transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,60,136,.25); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #475569; }
.form-msg { font-size: .9rem; font-weight: 500; min-height: 1.2em; text-align: center; }
.form-msg.success { color: #22c55e; }
.form-msg.error { color: #ef4444; }

/* ====== Footer ====== */
.site-footer { background: var(--black); color: #94a3b8; padding: 4rem 0 2rem; border-top: 1px solid #000; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-grid h4 { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: .95rem; }
.footer-grid p { font-size: .9rem; line-height: 1.6; margin: 1rem 0; max-width: 380px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-grid strong { color: var(--primary); margin-right: .4rem; }
.footer-logo { height: 56px; width: auto; background: #fff; border-radius: 8px; padding: .4rem; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; background: #0f172a; border: 1px solid #1e293b;
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; transition: var(--transition);
}
.socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; border-top: 1px solid #0f172a; padding-top: 1.5rem; font-size: .8rem; color: #64748b; }
.footer-bottom a:hover { color: #cbd5e1; }

/* ====== WhatsApp Float ====== */
.whatsapp-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 10px 30px rgba(37,211,102,.4); z-index: 80;
  animation: floatBob 2.5s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes floatBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ====== Reveal animations ====== */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal-up.in { opacity: 1; transform: translateY(0); }
.reveal-pop { opacity: 0; transform: translateY(40px) scale(.95); transition: opacity .7s ease, transform .7s ease; }
.reveal-pop.in { opacity: 1; transform: translateY(0) scale(1); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .8s ease, transform .8s ease; }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal-right.in { opacity: 1; transform: translateX(0); }
.stagger-grid > * { transition-delay: 0s; }
.stagger-grid > *:nth-child(1).in { transition-delay: .05s; }
.stagger-grid > *:nth-child(2).in { transition-delay: .18s; }
.stagger-grid > *:nth-child(3).in { transition-delay: .31s; }
.stagger-grid > *:nth-child(4).in { transition-delay: .44s; }
.stagger-grid > *:nth-child(5).in { transition-delay: .57s; }
.stagger-grid > *:nth-child(6).in { transition-delay: .7s; }
.reveal-stagger > *:nth-child(1) { transition-delay: .1s; }
.reveal-stagger > *:nth-child(2) { transition-delay: .25s; }
.reveal-stagger > *:nth-child(3) { transition-delay: .4s; }
.reveal-stagger > *:nth-child(4) { transition-delay: .55s; }

/* ====== About ====== */
.about { padding: 6rem 0; background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -.02em; }
.divider { width: 48px; height: 4px; background: var(--accent); border-radius: 999px; margin-bottom: 1.5rem; }
.about-text p { color: var(--muted); font-size: 1rem; line-height: 1.75; margin-bottom: 1.5rem; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: .8rem; margin-bottom: 2rem; }
.check-list li { display: flex; align-items: flex-start; gap: .75rem; font-size: .95rem; color: var(--text); }
.check-list li::before { content: "✓"; min-width: 24px; height: 24px; border-radius: 50%; background: rgba(31,60,136,.1); color: var(--primary); font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.link-arrow { color: var(--primary); font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem; transition: gap .2s; }
.link-arrow:hover { gap: .7rem; }
.about-image { position: relative; }
.about-image img { border-radius: 20px; width: 100%; box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.about-deco { position: absolute; border-radius: 20px; }
.about-deco-1 { width: 80%; height: 80%; background: rgba(31,60,136,.08); top: -24px; left: -24px; z-index: 0; }
.about-deco-2 { width: 50%; height: 50%; background: rgba(244,167,66,.12); bottom: -24px; right: -24px; z-index: 0; }

/* ====== Partners ====== */
.partners {
  padding: 1.6rem 0 1.8rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.partners-title {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.partners-track-wrap { overflow: hidden; }
.partners-track { display: flex; flex-wrap: nowrap; gap: 3rem; align-items: center; animation: scrollTrack 30s linear infinite; width: max-content; }
.partners-track:hover { animation-play-state: paused; }
@keyframes scrollTrack { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partner {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  min-width: 150px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(15,23,42,.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.partner:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15,23,42,.08); }
/* APC logo — enlarged */
.partner[href*="brand=APC"] {
  height: 96px;
  min-width: 180px;
}
.partner[href*="brand=APC"] img,
.partner img[alt="APC"] {
  max-height: 88px;
  max-width: 175px;
  width: 160px;
}
.partner img {
  max-height: 46px;
  max-width: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ====== Security ====== */
.security { padding: 6rem 0; background: var(--bg-soft); }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.security-text { display: flex; flex-direction: column; gap: 1.25rem; }
.badge-blue { background: rgba(31,60,136,.1); color: var(--primary); border: 1px solid rgba(31,60,136,.2); display: inline-flex; align-items: center; padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; width: fit-content; }
.security-text h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.security-text p { color: var(--muted); font-size: .97rem; line-height: 1.75; }
.security-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: .5rem; }
.email-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--muted); font-weight: 500; }
.security-image { position: relative; }
.security-image img { border-radius: 20px; width: 100%; box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.security-deco { position: absolute; width: 100%; height: 100%; border-radius: 20px; background: var(--primary); top: 16px; left: 16px; z-index: 0; opacity: .15; }
.live-card {
  position: absolute; bottom: 1.5rem; left: 1.5rem; z-index: 3;
  background: rgba(0,0,0,.75); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 1rem 1.25rem;
  color: #fff;
}
.live-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: pulse 1.6s infinite; }
.live-label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; color: #94a3b8; }
.live-num { font-size: 2rem; font-weight: 800; line-height: 1; }
.live-desc { font-size: .75rem; color: #94a3b8; margin-top: .25rem; }

/* ====== Clients ====== */
.clients { padding: 4rem 0; overflow: hidden; }
.clients-title { text-align: center; font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 2.5rem; }
.clients-track-wrap { position: relative; overflow: hidden; }
.clients-fade { position: absolute; top: 0; bottom: 0; z-index: 2; width: 120px; pointer-events: none; }
.clients-fade-left { left: 0; background: linear-gradient(to right, #fff, transparent); }
.clients-fade-right { right: 0; background: linear-gradient(to left, #fff, transparent); }
.clients-track { display: flex; gap: 3rem; animation: scrollTrack 25s linear infinite; width: max-content; }
.client { font-size: 1rem; font-weight: 700; letter-spacing: .1em; color: #9ca3af; white-space: nowrap; flex-shrink: 0; padding: .5rem 1.5rem; border: 1px solid var(--border); border-radius: 999px; }

/* ====== Responsive ====== */
@media (max-width: 960px) {
  .services-grid, .cases-grid { grid-template-columns: 1fr 1fr; }
  .metrics-card { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .metric + .metric { border-left: 0; }
  .metric:nth-child(odd) { border-right: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-info { border-right: 0; border-bottom: 1px solid #1e293b; }
  .about-grid, .security-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav, .btn-cta-header { display: none; }
  .menu-toggle { display: flex; }
  .main-nav.mobile-open {
    display: flex; flex-direction: column; gap: .25rem;
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; box-shadow: var(--shadow);
  }
  .main-nav.mobile-open a { padding: .75rem 0; border-bottom: 1px solid var(--border); }
  .services-grid, .cases-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .metrics-card { grid-template-columns: 1fr 1fr; padding: 1.5rem; }
  .hero { min-height: auto; padding: 130px 0 80px; }
  .contact-info, .contact-form { padding: 2rem; }
}

/* ============== Productos y Servicios Page ============== */
.ps-hero {
  padding: 130px 0 30px;
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
}
.ps-hero-tabs {
  display: flex;
  justify-content: center;
  gap: 60px;
  border-bottom: 1px solid #e6e8ec;
  padding-bottom: 18px;
}
.ps-tab {
  font-size: 22px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s ease;
}
.ps-tab:hover { color: var(--primary); }
.ps-tab-active {
  color: var(--primary);
}
.ps-tab-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -19px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.ps-section {
  padding: 70px 0;
  background: #ffffff;
}
.ps-section-alt {
  background: #f8f9fb;
}
.ps-section-title {
  font-size: 36px;
  font-weight: 800;
  color: #0f1729;
  margin: 0 0 40px;
  position: relative;
  padding-left: 18px;
}
.ps-section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 5px;
  background: var(--accent);
  border-radius: 3px;
}

.ps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 980px) {
  .ps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ps-grid { grid-template-columns: 1fr; }
}

.ps-item {
  background: #ffffff;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ps-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(15, 23, 41, 0.10);
  border-color: #d6dae1;
}
.ps-item-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eef0f4;
  overflow: hidden;
}
.ps-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.ps-item:hover .ps-item-image img { transform: scale(1.05); }
.ps-item-body {
  padding: 22px 22px 24px;
  flex: 1;
}
.ps-item-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f1729;
  margin: 0 0 12px;
}
.ps-item-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ps-item-body li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4b5563;
}
.ps-item-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.ps-more {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

/* ============== Extended Contact Form ============== */
.ps-contact {
  padding: 80px 0 100px;
  background: #ffffff;
}
.ps-contact-head {
  text-align: center;
  margin-bottom: 40px;
}
.ps-contact-head h2 {
  font-size: 34px;
  font-weight: 800;
  color: #0f1729;
  margin: 0 0 10px;
}
.ps-contact-head h2 .accent {
  color: var(--accent);
}
.ps-contact-head p {
  font-size: 18px;
  color: #6b7280;
  margin: 0;
}
.ps-contact-form {
  max-width: 880px;
  margin: 0 auto;
  background: #f8f9fb;
  border: 1px solid #e6e8ec;
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ps-contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 700px) {
  .ps-contact-form .form-row { grid-template-columns: 1fr; }
  .ps-contact-form { padding: 24px; }
}
.ps-contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0f1729;
}
.ps-contact-form input,
.ps-contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid #d6dae1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f1729;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ps-contact-form input:focus,
.ps-contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 58, 138, 0.12);
}
.ps-contact-form textarea {
  resize: vertical;
  min-height: 110px;
}
.ps-form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}
.ps-form-actions .btn {
  min-width: 240px;
}

/* ============== Scroll-to-top floating button ============== */
.scroll-top-float {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(31, 60, 136, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, visibility 0.25s;
  z-index: 999;
}
.scroll-top-float.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-float:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Make home service cards behave like clickable links */
a.service-card {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

/* ============== Blog list page ============== */
.blog-hero {
  padding: 130px 0 60px;
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
}
.blog-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.blog-hero-inner .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  background: rgba(244, 167, 66, 0.12);
  color: var(--accent);
  border: 1px solid rgba(244, 167, 66, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.blog-hero-inner .badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.blog-hero-inner h1 {
  font-size: 40px;
  font-weight: 800;
  color: #0f1729;
  margin: 0 0 14px;
  line-height: 1.15;
}
.blog-hero-inner p {
  font-size: 17px;
  color: #4b5563;
  margin: 0;
}

.blog-list-section {
  padding: 40px 0 90px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(15, 23, 41, 0.10);
  border-color: #d6dae1;
}
.blog-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eef0f4;
  overflow: hidden;
}
.blog-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-cat {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--primary);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.blog-card-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-card-meta {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
}
.blog-card-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: #0f1729;
  margin: 0;
  line-height: 1.3;
}
.blog-card-body p {
  font-size: 14.5px;
  color: #4b5563;
  margin: 0;
  flex: 1;
}
.blog-card-link {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* ============== Blog detail page ============== */
.blog-detail {
  padding: 0;
}
.blog-detail-hero {
  position: relative;
  padding: 140px 0 70px;
  color: #ffffff;
  overflow: hidden;
}
.blog-detail-hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.blog-detail-hero-bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.blog-detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,41,0.85) 0%, rgba(15,23,41,0.92) 100%);
}
.blog-detail-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.blog-detail-back {
  display: inline-block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.blog-detail-back:hover { color: var(--accent); }
.blog-detail-cat {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 16px;
}
.blog-detail-hero-inner h1 {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 22px;
  line-height: 1.15;
}
.blog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.blog-detail-meta strong { color: #ffffff; font-weight: 600; }

.blog-detail-body {
  padding: 60px 0 80px;
  background: #ffffff;
}
.blog-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  align-items: start;
}
@media (max-width: 920px) {
  .blog-detail-grid { grid-template-columns: 1fr; }
}

.blog-detail-summary {
  background: #f8f9fb;
  border: 1px solid #e6e8ec;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 40px;
}
.blog-detail-summary h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f1729;
  margin: 0 0 18px;
}
.summary-row { margin-bottom: 14px; }
.summary-row:last-child { margin-bottom: 0; }
.summary-row h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary);
  margin: 0 0 4px;
}
.summary-row-result h4 { color: var(--accent); }
.summary-row p {
  font-size: 15px;
  color: #4b5563;
  margin: 0;
  line-height: 1.55;
}

.blog-detail-section { margin-bottom: 36px; }
.blog-detail-section h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0f1729;
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}
.blog-detail-section p {
  font-size: 16px;
  color: #374151;
  line-height: 1.75;
  margin: 0 0 14px;
}

.blog-detail-cta {
  margin-top: 50px;
  padding: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 14px;
  text-align: center;
  color: #ffffff;
}
.blog-detail-cta h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
}
.blog-detail-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 22px;
}
.blog-detail-cta .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.blog-detail-cta .btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.blog-detail-aside {
  position: sticky;
  top: 100px;
}
.blog-results-card {
  background: #ffffff;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(15, 23, 41, 0.04);
}
.blog-results-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f1729;
  margin: 0 0 18px;
}
.blog-results-card ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.blog-results-card li {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: #f8f9fb;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}
.result-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.result-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.blog-related {
  padding: 70px 0 90px;
  background: #f8f9fb;
}
.blog-related h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0f1729;
  margin: 0 0 30px;
  padding-left: 16px;
  border-left: 5px solid var(--accent);
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 720px) { .blog-related-grid { grid-template-columns: 1fr; } }

.blog-not-found {
  padding: 160px 0;
  text-align: center;
}
.blog-not-found h1 {
  font-size: 32px;
  margin-bottom: 12px;
}
.blog-not-found p {
  margin-bottom: 26px;
  color: #6b7280;
}

/* Make case cards on home behave like links */
a.case-card {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}
a.case-card .btn { pointer-events: none; }

/* ============================================================
   Two-level Header (Topbar + Mainbar)
   ============================================================ */
.ht-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 0;
  margin: 0;
  transform: translateY(-100%); opacity: 0;
  animation: headerIn .7s cubic-bezier(.2,.8,.2,1) .1s forwards;
  padding: 0 !important;
  transition: box-shadow .3s ease;
}
.ht-header.scrolled { padding: 0 !important; box-shadow: 0 6px 18px rgba(0,0,0,.08); }

/* --- Top bar --- */
.ht-topbar {
  background: #0d1116;
  color: #cbd5e1;
  font-size: 13.5px;
}
.ht-topbar-inner {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 22px; padding: 6px 1.5rem; min-height: 32px;
  flex-wrap: wrap;
}
.ht-topbar-inner a {
  color: #cbd5e1; text-decoration: none; font-weight: 500;
  position: relative;
  transition: color .2s ease;
}
.ht-topbar-inner a:hover { color: var(--accent); }
.ht-topbar-inner a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.ht-topbar-inner a:hover::after { transform: scaleX(1); }
.ht-topbar-sep {
  display: inline-block; width: 1px; height: 14px;
  background: rgba(255,255,255,.18);
}
@media (max-width: 720px) {
  .ht-topbar-inner { justify-content: center; gap: 14px; font-size: 12.5px; }
  .ht-topbar-sep { display: none; }
}

/* --- Main bar --- */
.ht-mainbar {
  background: var(--primary);
  color: #fff;
}
.ht-mainbar-inner {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 4px 1.5rem;
}
.ht-brand { display: inline-flex; align-items: center; }
.ht-brand img {
  height: 64px; width: auto; display: block;
  transition: transform .25s ease;
}
.ht-brand:hover img { transform: scale(1.04); }

.ht-cats-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px;
  transition: background .2s ease, transform .15s ease;
}
.ht-cats-toggle:hover { background: rgba(255,255,255,.18); }
.ht-cats-toggle.open { background: var(--accent); border-color: var(--accent); }
.ht-burger { display: inline-flex; flex-direction: column; gap: 4px; }
.ht-burger span {
  width: 18px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.ht-cats-toggle.open .ht-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ht-cats-toggle.open .ht-burger span:nth-child(2) { opacity: 0; }
.ht-cats-toggle.open .ht-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.ht-cats { position: relative; }
.ht-cats-panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 260px; background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15,23,41,.18);
  padding: 14px 0 8px;
  z-index: 10;
  animation: catsPanelIn .2s ease;
}
@keyframes catsPanelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.ht-cats-panel::before {
  content: ""; position: absolute; top: -7px; left: 28px;
  width: 14px; height: 14px; background: #ffffff;
  transform: rotate(45deg);
  border-radius: 3px;
}
.ht-cats-panel-title {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--primary); padding: 4px 22px 10px;
  border-bottom: 1px solid #eef0f4; margin-bottom: 6px;
}
.ht-cats-panel ul {
  list-style: none; padding: 0; margin: 0;
}
.ht-cats-panel li a {
  display: block; padding: 10px 22px;
  color: #0f1729; text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: background .15s ease, color .15s ease, padding-left .2s ease;
}
.ht-cats-panel li a:hover {
  background: rgba(31,60,136,.06);
  color: var(--primary);
  padding-left: 28px;
}
.ht-cats-panel-foot {
  display: block; padding: 12px 22px 10px;
  margin-top: 4px; border-top: 1px solid #eef0f4;
  color: var(--accent); font-weight: 700; font-size: 13.5px;
  text-decoration: none;
  transition: color .2s ease;
}
.ht-cats-panel-foot:hover { color: var(--accent-dark); }

.ht-search {
  position: relative; display: flex; align-items: center;
  background: #fff; border-radius: 999px;
  height: 48px; padding: 0 18px 0 46px;
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
  width: 100%; max-width: 720px; justify-self: center;
}
.ht-search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--primary); display: inline-flex;
}
.ht-search input {
  border: 0; outline: 0; width: 100%; height: 100%;
  background: transparent; font: inherit; font-size: 15px; color: #0f1729;
}
.ht-search input::placeholder { color: #94a3b8; }

.ht-actions { display: flex; align-items: center; gap: 14px; }
.ht-login {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 500; font-size: 14px;
  text-decoration: none; opacity: .9;
  transition: opacity .2s ease;
}
.ht-login:hover { opacity: 1; color: var(--accent); }
.ht-cta-pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #1a1a1a;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 18px -6px rgba(244,167,66,.65);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.ht-cta-pill:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(244,167,66,.8); }

/* Secondary nav removed — links moved to topbar */
.ht-nav { display: none; }

/* --- Add top spacing for content under fixed header --- */
body { padding-top: 0; }
.hero, .ps-hero, .blog-hero, .blog-detail-hero, .tienda-hero {
  /* These already have generous top padding so the fixed header doesn't overlap */
}

/* --- Responsive header --- */
@media (max-width: 980px) {
  .ht-mainbar-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand cats actions"
      "search search search";
    gap: 12px;
  }
  .ht-brand { grid-area: brand; }
  .ht-cats { grid-area: cats; justify-self: end; }
  .ht-actions { grid-area: actions; }
  .ht-search { grid-area: search; max-width: 100%; }
  .ht-cats-label { display: none; }
}
@media (max-width: 720px) {
  .ht-brand img { height: 48px; }
  .ht-login span { display: none; }
  .ht-cta-pill { padding: 9px 14px; font-size: 12.5px; }
  .ht-cats-panel { left: 50%; transform: translateX(-50%); }
  .ht-cats-panel::before { left: 50%; margin-left: -7px; }
  .ht-mainbar-inner { padding: 6px 1rem; gap: 8px; }
  .ht-topbar { font-size: 12px; }
  .ht-topbar-inner { gap: 12px; padding: 4px 1rem; min-height: 26px; }
  .ht-search input { height: 38px; font-size: 14px; }
  .ht-search input::placeholder { font-size: 13px; }
}

/* ============================================================
   Tienda y Servicios — Storefront layout
   ============================================================ */
.tienda-hero {
  padding: 160px 0 50px;
  background: linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%);
}
.tienda-hero-inner { max-width: 760px; }
.tienda-hero-inner .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(244,167,66,.15); color: var(--accent);
  border: 1px solid rgba(244,167,66,.3);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.tienda-hero-inner h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800; color: #0f1729;
  line-height: 1.1; margin: 0 0 14px; letter-spacing: -.02em;
}
.tienda-hero-inner p {
  font-size: 17px; color: #4b5563; margin: 0;
}

.tienda-section { padding: 30px 0 80px; background: #ffffff; }

.tienda-search-wrap {
  position: relative;
  margin-bottom: 36px;
  max-width: 720px;
}
.tienda-search-icon {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  color: var(--primary); display: inline-flex; pointer-events: none;
}
.tienda-search {
  width: 100%;
  height: 56px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0 24px 0 56px;
  font: inherit; font-size: 15px; color: #0f1729;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15,23,41,.05);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tienda-search:focus {
  outline: 0; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31,60,136,.12);
}
.tienda-search::placeholder { color: #9ca3af; }

.tienda-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}

.tienda-filters {
  background: #ffffff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  padding: 24px 22px;
  position: sticky; top: 170px;
  box-shadow: 0 4px 18px rgba(15,23,41,.04);
}
.tienda-filter-group { margin-bottom: 22px; }
.tienda-filter-group:last-of-type { margin-bottom: 14px; }
.tienda-filter-group h4 {
  font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--primary); margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid #eef0f4;
}
.tienda-check {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #374151;
  padding: 6px 0; cursor: pointer;
  transition: color .2s ease;
}
.tienda-check:hover { color: var(--primary); }
.tienda-check input {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.tienda-clear {
  width: 100%; margin-top: 8px;
  background: transparent; color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 10px; padding: 10px;
  font: inherit; font-weight: 600; font-size: 13px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.tienda-clear:hover { background: var(--primary); color: #fff; }

.tienda-results-bar {
  font-size: 14px; color: #6b7280;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef0f4;
}
.tienda-results-bar strong { color: #0f1729; }

.tienda-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1180px) { .tienda-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) {
  .tienda-layout { grid-template-columns: 1fr; }
  .tienda-filters { position: static; }
}
@media (max-width: 600px) { .tienda-grid { grid-template-columns: 1fr; } }

.tienda-card {
  background: #ffffff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(15,23,41,.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tienda-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15,23,41,.10);
  border-color: #d6dae1;
}
.tienda-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f4f6fa;
  overflow: hidden;
}
.tienda-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.tienda-card:hover .tienda-card-img img { transform: scale(1.05); }
.tienda-stock {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.tienda-stock.in   { background: rgba(34,197,94,.92); color: #fff; }
.tienda-stock.back { background: rgba(244,167,66,.92); color: #1a1a1a; }

.tienda-card-body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.tienda-card-cat {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--primary);
}
.tienda-card-body h3 {
  font-size: 17px; font-weight: 700; color: #0f1729;
  margin: 0; line-height: 1.3;
}
.tienda-card-body p {
  font-size: 14px; color: #4b5563; margin: 0;
  line-height: 1.55;
}
.tienda-card-body ul {
  list-style: none; padding: 0; margin: 4px 0;
  display: flex; flex-direction: column; gap: 4px;
}
.tienda-card-body li {
  position: relative; padding-left: 16px;
  font-size: 13px; color: #6b7280;
}
.tienda-card-body li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.tienda-card-foot {
  margin-top: auto; padding-top: 14px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #eef0f4;
}
.tienda-card-brand {
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; color: #6b7280;
  text-transform: uppercase;
}
.tienda-card-foot .btn {
  padding: 8px 18px; font-size: 13px; height: auto;
}

.tienda-empty {
  background: #f8f9fb;
  border: 1px dashed #d6dae1;
  border-radius: 14px;
  padding: 60px 24px;
  text-align: center;
  color: #6b7280;
}

/* ============================================================
   Servicios de Ingeniería — Linear icons + horizontal blocks
   ============================================================ */
.servicios-eng {
  padding: 70px 0 90px;
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
}
.servicios-eng-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.servicios-eng-head .badge-blue {
  margin-bottom: 16px;
}
.servicios-eng-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800; color: #0f1729;
  margin: 0 0 12px; letter-spacing: -.02em;
}
.servicios-eng-head p {
  font-size: 16px; color: #6b7280; margin: 0;
}

.servicios-eng-list {
  display: flex; flex-direction: column;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
.servicio-eng {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center; gap: 22px;
  background: #ffffff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 22px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.servicio-eng:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15,23,41,.08);
  border-color: #d6dae1;
}
.servicio-eng-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(31,60,136,.08);
  border-radius: 12px;
  color: var(--primary);
}
.servicio-eng-icon svg { width: 28px; height: 28px; }
.servicio-eng-body h3 {
  font-size: 17px; font-weight: 700; color: #0f1729;
  margin: 0 0 4px; line-height: 1.3;
}
.servicio-eng-body p {
  font-size: 14px; color: #6b7280; margin: 0;
  line-height: 1.55;
}
.servicio-eng-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px;
  color: var(--primary);
  padding: 10px 18px; border-radius: 999px;
  background: rgba(31,60,136,.08);
  transition: background .2s ease, color .2s ease, gap .2s ease;
  white-space: nowrap;
}
.servicio-eng-link:hover {
  background: var(--primary); color: #fff;
  gap: 10px;
}
@media (max-width: 700px) {
  .servicio-eng {
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "icon body"
      "link link";
    gap: 14px;
  }
  .servicio-eng-icon { grid-area: icon; }
  .servicio-eng-body { grid-area: body; }
  .servicio-eng-link { grid-area: link; justify-self: end; }
}


/* ============================================================
   Cart icon in header (replaces Contacto icon)
   ============================================================ */
.ht-cart {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit; font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.ht-cart:hover { background: rgba(255,255,255,.18); }
.ht-cart:active { transform: translateY(1px); }
.ht-cart-label { font-size: .9rem; }
.ht-cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--accent);
  color: #1b1c2c;
  font-size: .7rem; font-weight: 800;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #1F3C88;
  line-height: 1;
}
@media (max-width: 720px) {
  .ht-cart-label { display: none; }
  .ht-cart { padding: 8px 10px; }
}

/* ============================================================
   Cart drawer
   ============================================================ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .55);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9000;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(720px, 100vw);
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 9001;
  box-shadow: -8px 0 30px rgba(15, 23, 42, .15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  background: var(--primary);
  color: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.cart-head h2 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.cart-close {
  background: rgba(255,255,255,.12); border: 0; color: #fff;
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.cart-close:hover { background: rgba(255,255,255,.22); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 18px; background: #f7f9fc; }
.cart-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #6b7280;
  padding: 50px 10px; gap: 10px;
}
.cart-empty svg { color: #cbd5e1; }
.cart-empty p { margin: 0; }
.cart-empty-hint { font-size: .9rem; color: #94a3b8; }
.cart-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }

/* Card item — image left + info middle + qty pill right */
.cart-item {
  display: grid;
  grid-template-columns: 168px 1fr auto;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  align-items: stretch;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.cart-item-img {
  position: relative;
  width: 168px; height: 100%; min-height: 150px;
  background: #f1f5f9;
  overflow: hidden;
}
.cart-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: .65rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cart-item-badge.in { background: #16a34a; color: #fff; }
.cart-item-badge.back { background: #f59e0b; color: #fff; }
.cart-item-info {
  padding: 16px 18px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  min-width: 0;
}
.cart-item-cat {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--primary); font-weight: 800;
}
.cart-item-title {
  margin: 0; font-size: 1.05rem; line-height: 1.3;
  color: #0f172a; font-weight: 700;
}
.cart-item-brand { font-size: .82rem; color: #6b7280; }
.cart-item-qty-wrap {
  display: flex; align-items: center; padding: 0 16px;
}
.cart-item-qty-pill {
  display: inline-flex; align-items: center;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--border);
  gap: 2px;
}
.cart-item-qty-pill .qty-btn {
  width: 30px; height: 30px;
  background: #fff; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary); cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  transition: background .15s ease;
}
.cart-item-qty-pill .qty-btn:hover { background: var(--primary); color: #fff; }
.cart-item-qty-pill .qty-value {
  min-width: 32px; text-align: center;
  font-weight: 700; font-size: 1rem; color: #0f172a;
  padding: 0 4px;
}

/* Drawer-specific tweaks */
.cart-item--drawer { grid-template-columns: 130px 1fr auto; }
.cart-item--drawer .cart-item-img { width: 130px; min-height: 130px; }
.cart-item--drawer .cart-item-info { padding: 12px 14px; }
.cart-item--drawer .cart-item-title { font-size: .98rem; }
.cart-item--drawer .cart-item-qty-wrap { padding: 0 12px; }

/* Page-specific tweaks (more breathing room) */
.cart-item--page .cart-item-img { width: 200px; min-height: 170px; }
.cart-item--page { grid-template-columns: 200px 1fr auto; }
.cart-item--page .cart-item-info { padding: 18px 22px; }
.cart-item--page .cart-item-title { font-size: 1.15rem; }
.cart-item--page .cart-item-qty-pill .qty-btn { width: 34px; height: 34px; }

/* Responsive — stack on narrow screens so qty pill stays tappable */
@media (max-width: 640px) {
  .cart-item, .cart-item--drawer, .cart-item--page {
    grid-template-columns: 110px 1fr;
    grid-template-areas: "img info" "qty qty";
  }
  .cart-item-img,
  .cart-item--drawer .cart-item-img,
  .cart-item--page .cart-item-img {
    grid-area: img; width: 110px; min-height: 110px;
  }
  .cart-item-info { grid-area: info; padding: 12px 14px; }
  .cart-item-qty-wrap {
    grid-area: qty;
    padding: 10px 14px 14px;
    border-top: 1px dashed var(--border);
    justify-content: flex-end;
  }
  .cart-item--page .cart-item-title { font-size: 1rem; }
}

.cart-foot {
  border-top: 1px solid var(--border);
  padding: 14px 18px 18px;
  background: #fff;
  display: flex; flex-direction: column; gap: 10px;
}
.cart-summary { display: flex; align-items: center; justify-content: space-between; font-size: .9rem; color: #475569; }
.cart-clear { background: transparent; border: 0; color: #6b7280; cursor: pointer; font-size: .82rem; }
.cart-clear:hover { color: #b91c1c; }
.cart-fullpage-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: .85rem; color: var(--primary); text-decoration: none;
  padding: 6px 4px; font-weight: 600;
}
.cart-fullpage-link:hover { text-decoration: underline; }
.cart-checkout {
  width: 100%;
  background: #25D366; color: #fff;
  border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 18px;
  border-radius: 12px; font-weight: 700;
}
.cart-checkout:hover:not(:disabled) { background: #1fbf5a; }
.cart-checkout:disabled { opacity: .5; cursor: not-allowed; background: #94a3b8; }
.cart-foot-note { margin: 0; font-size: .76rem; color: #94a3b8; text-align: center; }

/* ============================================================
   Cart full-page route /carrito
   ============================================================ */
.cart-page { padding: 140px 0 80px; background: #f7f9fc; min-height: calc(100vh - 200px); }
@media (max-width: 900px) { .cart-page { padding-top: 120px; } }
.cart-page-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.cart-page-head { margin-bottom: 32px; }
.cart-page-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: .9rem;
  text-decoration: none; margin-bottom: 14px;
}
.cart-page-back:hover { text-decoration: underline; }
.cart-page-head h1 {
  margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #0f172a;
}
.cart-page-sub { margin: 0; color: #475569; max-width: 680px; line-height: 1.5; }

.cart-page-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .cart-page-grid { grid-template-columns: 1fr; }
}
.cart-page-items { background: transparent; }
.cart-page-items-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.cart-page-items-head h2 { margin: 0; font-size: 1.1rem; color: #0f172a; }
.cart-list--page { gap: 16px; }

.cart-page-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  position: sticky; top: 24px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}
.cart-page-summary h3 {
  margin: 0 0 6px; font-size: 1.05rem; color: #0f172a;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.cart-page-sum-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .92rem; color: #475569;
}
.cart-page-sum-row strong { color: #0f172a; font-weight: 700; }
.cart-page-sum-note {
  font-size: .8rem; color: #6b7280; margin: 6px 0 4px; line-height: 1.4;
  background: #f8fafc; padding: 10px 12px; border-radius: 8px;
}
.cart-page-continue {
  text-align: center; color: var(--primary); font-weight: 600;
  text-decoration: none; font-size: .9rem; padding: 4px;
}
.cart-page-continue:hover { text-decoration: underline; }

.cart-page-empty {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 60px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.cart-page-empty svg { color: #cbd5e1; }
.cart-page-empty h2 { margin: 6px 0 0; color: #0f172a; }
.cart-page-empty p { margin: 0 0 14px; color: #6b7280; }

/* ============================================================
   Tienda — Add-to-cart button + brand search
   ============================================================ */
.tienda-add { transition: background .2s ease, transform .15s ease; }
.tienda-add.added {
  background: #15803d !important; border-color: #15803d !important;
  transform: scale(.98);
}
.tienda-filter-count { font-size: .75rem; color: #94a3b8; font-weight: 500; }
.tienda-brand-search {
  width: 100%;
  margin: 6px 0 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .85rem;
  font-family: inherit;
}
.tienda-brand-search:focus { outline: none; border-color: var(--primary); }
.tienda-brand-scroll {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
  display: flex; flex-direction: column; gap: 2px;
}
.tienda-brand-scroll::-webkit-scrollbar { width: 6px; }
.tienda-brand-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.tienda-brand-empty { color: #94a3b8; font-size: .82rem; padding: 6px 4px; }

/* ── Clients section — same visual style as Partners ── */
.clients.partners { padding: 2.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.clients.partners .partners-title { margin-bottom: 1.5rem; }
.clients-track { animation-duration: 30s; }
.client-as-partner {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  height: 90px; min-width: 140px; padding: 0 18px;
  background: #fff;
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 2px 6px rgba(15,23,42,.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.client-as-partner:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15,23,42,.08); }
.client-as-partner img { max-height: 60px; max-width: 180px; width: auto; height: auto; object-fit: contain; display: block; filter: none !important; }
@media (max-width: 720px) {
  .client-as-partner { height: 70px; min-width: 110px; padding: 0 12px; }
  .client-as-partner img { max-height: 46px; max-width: 130px; }
}

/* ===== Ajuste barra superior y barra azul HelpTech ===== */

.ht-topbar {
  height: 24px;
  background: #07111f;
  font-size: 11px;
}

.ht-topbar-inner {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.ht-mainbar {
  background: var(--primary);
  padding: 10px 0;
}

.ht-mainbar-inner {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.ht-brand img {
  height: 40px;
  width: auto;
}

.ht-cats-toggle {
  height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 12px;
}

.ht-search {
  height: 38px;
  max-width: 600px;
}

.ht-search input {
  height: 38px;
  font-size: 13px;
}

@media (max-width: 720px) {
  .hero {
    min-height: 500px;
    padding: 120px 0 40px;
  }

  .hero-inner {
    transform: translateX(0);
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .ht-mainbar-inner {
    gap: 12px;
  }

  .ht-brand img {
    height: 36px;
  }

  .ht-search {
    max-width: 100%;
  }

  .partners {
    padding: 1.4rem 0;
  }

  .partner {
    height: 66px;
    min-width: 135px;
  }

  .partner img {
    max-height: 40px;
    max-width: 145px;
  }
}

/* ============================================================
   AJUSTES FINALES DEFINITIVOS — HOME / HEADER / HERO
   Pegar al final asegura que estos valores ganen sobre reglas anteriores.
   ============================================================ */

/* Barra superior negra */
.ht-topbar {
  background: #0d1116 !important;
  font-size: 13px !important;
}

.ht-topbar-inner {
  min-height: 30px !important;
  padding: 5px 1.5rem !important;
  gap: 22px !important;
}

/* Barra azul principal */
.ht-mainbar {
  background: var(--primary) !important;
  padding: 8px 0 !important;
}

.ht-mainbar-inner {
  display: grid !important;
  grid-template-columns: auto auto 1fr auto !important;
  align-items: center !important;
  gap: 22px !important;
  padding: 6px 1.5rem !important;
  min-height: 82px !important;
}

/* Logo HelpTech más grande */
.ht-brand img {
  height: 82px !important;
  width: auto !important;
  display: block !important;
}

/* Botón Categorías */
.ht-cats-toggle {
  height: 44px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
}

/* Buscador */
.ht-search {
  height: 48px !important;
  max-width: 720px !important;
  padding: 0 18px 0 46px !important;
}

.ht-search input {
  height: 48px !important;
  font-size: 15px !important;
}

/* Imagen principal / Hero */
.hero {
  min-height: 540px !important;
  padding: 135px 0 60px !important;
  display: flex !important;
  align-items: center !important;
  color: #fff !important;
}

.hero-bg img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.hero-content {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  justify-content: center !important;
}

.hero-inner {
  max-width: 820px !important;
  margin: 0 auto !important;
  text-align: left !important;
  transform: translateX(-25px) !important;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.45rem) !important;
  line-height: 1.06 !important;
  font-weight: 800 !important;
  letter-spacing: -.03em !important;
  margin-bottom: 1.3rem !important;
}

.hero p {
  font-size: 1.28rem !important;
  line-height: 1.55 !important;
  color: #E0E0E0 !important;
  margin-bottom: 2rem !important;
  max-width: 760px !important;
}

.hero .btn-lg {
  height: 58px !important;
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
}

/* Responsive */
@media (max-width: 980px) {
  .ht-mainbar-inner {
    grid-template-columns: auto 1fr auto !important;
    grid-template-areas:
      "brand cats actions"
      "search search search" !important;
    gap: 12px !important;
    min-height: auto !important;
  }

  .ht-brand { grid-area: brand !important; }
  .ht-cats { grid-area: cats !important; justify-self: end !important; }
  .ht-actions { grid-area: actions !important; }
  .ht-search { grid-area: search !important; max-width: 100% !important; }
}

@media (max-width: 720px) {
  .ht-topbar-inner {
    min-height: 26px !important;
    padding: 4px 1rem !important;
    gap: 12px !important;
  }

  .ht-mainbar-inner {
    padding: 6px 1rem !important;
    gap: 8px !important;
  }

  .ht-brand img {
    height: 58px !important;
  }

  .ht-cats-toggle {
    height: 40px !important;
    padding: 0 14px !important;
  }

  .ht-search,
  .ht-search input {
    height: 42px !important;
  }

  .hero {
    min-height: 560px !important;
    padding: 155px 0 45px !important;
  }

  .hero-inner {
    transform: translateX(0) !important;
    text-align: center !important;
  }

  .hero-actions {
    justify-content: center !important;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9vw, 3rem) !important;
  }

  .hero p {
    font-size: 1.05rem !important;
  }
}

/* ============================================================
   AJUSTE FINAL — AUMENTAR SOLO LA IMAGEN DEL INICIO
   ============================================================ */
.hero-bg {
  overflow: hidden !important;
}

.hero-bg img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scale(1.18) !important;
  transform-origin: center center !important;
  animation: none !important;
}


/* ============================================================
   AJUSTE FINAL RESPONSIVE — HEADER COMPACTO, HERO COMPACTO Y MARCAS VISIBLES
   ============================================================ */

/* Barra superior más baja */
.ht-topbar {
  background: #0d1116 !important;
  min-height: 24px !important;
}
.ht-topbar-inner {
  min-height: 24px !important;
  padding: 3px 1.5rem !important;
  gap: 16px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}
.ht-topbar-sep {
  height: 12px !important;
}

/* Barra azul más fina */
.ht-mainbar {
  background: var(--primary) !important;
}
.ht-mainbar-inner {
  display: grid !important;
  grid-template-columns: auto auto minmax(220px, 620px) auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  padding: 6px 1.5rem !important;
  min-height: 58px !important;
}

/* Logo HelpTech proporcionado, sin agrandar de más */
.ht-brand img {
  height: 52px !important;
  width: auto !important;
  max-width: 150px !important;
  object-fit: contain !important;
  display: block !important;
}

.ht-cats-toggle {
  height: 34px !important;
  padding: 0 13px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}
.ht-burger span {
  width: 17px !important;
}
.ht-search {
  height: 38px !important;
  max-width: 620px !important;
  padding: 0 16px 0 44px !important;
  justify-self: stretch !important;
}
.ht-search input {
  height: 38px !important;
  font-size: 13px !important;
}
.ht-search input::placeholder {
  font-size: 13px !important;
}
.ht-actions {
  gap: 10px !important;
}
.ht-cta-pill {
  padding: 9px 16px !important;
  font-size: 13px !important;
}

/* Hero más bajo para que se vea “Nuestras Marcas Asociadas” al entrar */
.hero {
  min-height: 390px !important;
  padding: 92px 0 30px !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
}
.hero-bg {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
}
.hero-bg img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  animation: none !important;
}
.hero-content {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  justify-content: center !important;
}
.hero-inner {
  max-width: 720px !important;
  margin: 0 auto !important;
  text-align: left !important;
  transform: translateX(-25px) !important;
}
.hero h1 {
  font-size: clamp(2rem, 4.1vw, 3.1rem) !important;
  line-height: 1.08 !important;
  margin-bottom: 0.9rem !important;
}
.hero p {
  font-size: 1rem !important;
  line-height: 1.5 !important;
  max-width: 650px !important;
  margin-bottom: 1.35rem !important;
}
.hero-actions {
  gap: 0.8rem !important;
}
.hero .btn-lg {
  height: 46px !important;
  padding: 0.75rem 1.45rem !important;
  font-size: 0.92rem !important;
}

/* Marcas más compactas */
.partners {
  padding: 1rem 0 1.15rem !important;
}
.partners-title {
  font-size: 0.68rem !important;
  letter-spacing: 0.18em !important;
  margin-bottom: 0.8rem !important;
}
.partners-track {
  gap: 2rem !important;
}
.partner {
  height: 62px !important;
  min-width: 132px !important;
  padding: 0 14px !important;
  border-radius: 11px !important;
}
.partner img {
  max-height: 38px !important;
  max-width: 145px !important;
}

/* Tienda responsive */
.tienda-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.tienda-card-foot {
  gap: 8px !important;
}
.btn-whatsapp-prod,
.btn-catalog {
  min-height: 42px !important;
  white-space: normal !important;
  text-align: center !important;
}

@media (max-width: 1100px) {
  .ht-mainbar-inner {
    grid-template-columns: auto auto 1fr !important;
  }
  .ht-actions {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .ht-mainbar-inner {
    grid-template-columns: auto auto !important;
    grid-template-areas:
      "brand cats"
      "search search" !important;
    justify-content: stretch !important;
    gap: 8px 12px !important;
    padding: 6px 1rem !important;
  }
  .ht-brand { grid-area: brand !important; }
  .ht-cats { grid-area: cats !important; justify-self: end !important; }
  .ht-search { grid-area: search !important; max-width: 100% !important; width: 100% !important; }
  .tienda-layout {
    grid-template-columns: 1fr !important;
  }
  .tienda-filters {
    position: static !important;
  }
  .tienda-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 1rem !important;
  }
  .ht-topbar-inner {
    justify-content: center !important;
    gap: 10px !important;
    padding: 4px 0.75rem !important;
    font-size: 11px !important;
  }
  .ht-topbar-sep {
    display: none !important;
  }
  .ht-mainbar-inner {
    padding: 6px 0.75rem !important;
  }
  .ht-brand img {
    height: 42px !important;
    max-width: 125px !important;
  }
  .ht-cats-toggle {
    height: 32px !important;
    padding: 0 11px !important;
    font-size: 11.5px !important;
  }
  .ht-search,
  .ht-search input {
    height: 36px !important;
  }
  .hero {
    min-height: 415px !important;
    padding: 122px 0 28px !important;
  }
  .hero-inner {
    max-width: 100% !important;
    text-align: center !important;
    transform: none !important;
  }
  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.55rem) !important;
  }
  .hero p {
    font-size: 0.98rem !important;
  }
  .hero-actions {
    justify-content: center !important;
  }
  .hero .btn-lg {
    height: 44px !important;
    padding: 0.7rem 1.15rem !important;
    font-size: 0.88rem !important;
  }
  .partner {
    height: 56px !important;
    min-width: 118px !important;
  }
  .partner img {
    max-height: 34px !important;
    max-width: 125px !important;
  }
  .tienda-grid {
    grid-template-columns: 1fr !important;
  }
  .tienda-hero {
    padding: 128px 0 34px !important;
  }
}

@media (max-width: 420px) {
  .ht-topbar-inner a {
    font-size: 10.5px !important;
  }
  .hero {
    min-height: 440px !important;
  }
  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* ===== AUMENTAR IMAGEN PRINCIPAL DEL INICIO ===== */

#inicio.hero {
  min-height: 560px !important;
  padding-top: 115px !important;
  padding-bottom: 45px !important;
}

#inicio .hero-bg {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
}

#inicio .hero-bg img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  animation: none !important;
}



/* ============================================================
   FIX FINAL HEADER HELPTECH — logo sin choque entre páginas
   ============================================================
   Problema corregido: el logo se estaba agrandando con transform: scale(),
   lo que aumentaba visualmente la imagen sin reservar espacio en la grilla.
   Por eso se montaba sobre el botón "Categorías". Esta versión reserva
   ancho real para el logo y elimina cualquier transform heredado.
*/

.ht-mainbar {
  background: var(--primary) !important;
  padding: 4px 0 !important;
  overflow: visible !important;
}

.ht-mainbar-inner {
  display: grid !important;
  grid-template-columns: 190px auto minmax(260px, 620px) auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  min-height: 68px !important;
  padding: 4px 1.5rem !important;
  overflow: visible !important;
}

.ht-brand {
  width: 210px !important;
  height: 66px !important;
  flex: 0 0 210px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: visible !important;
}

.ht-brand img {
  height: 64px !important;
  width: auto !important;
  max-width: 205px !important;
  transform: none !important;
  object-fit: contain !important;
}

.ht-brand:hover img {
  transform: none !important;
}

.ht-cats {
  position: relative !important;
  z-index: 3 !important;
}

.ht-cats-toggle {
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}

.ht-search {
  height: 40px !important;
  max-width: 620px !important;
  width: 100% !important;
  padding: 0 16px 0 44px !important;
  justify-self: stretch !important;
}

.ht-search input {
  height: 40px !important;
  font-size: 13px !important;
}

@media (max-width: 1100px) {
  .ht-mainbar-inner {
    grid-template-columns: 175px auto 1fr !important;
    justify-content: stretch !important;
  }

  .ht-actions {
    display: none !important;
  }

  .ht-brand {
    width: 175px !important;
  }

  .ht-brand img {
    height: 54px !important;
    max-width: 170px !important;
  }
}

@media (max-width: 980px) {
  .ht-mainbar-inner {
    grid-template-columns: minmax(135px, 170px) auto !important;
    grid-template-areas:
      "brand cats"
      "search search" !important;
    gap: 8px 12px !important;
    min-height: auto !important;
    padding: 6px 1rem !important;
  }

  .ht-brand {
    grid-area: brand !important;
    width: 170px !important;
    height: 54px !important;
  }

  .ht-brand img {
    height: 52px !important;
    max-width: 165px !important;
  }

  .ht-cats {
    grid-area: cats !important;
    justify-self: end !important;
  }

  .ht-search {
    grid-area: search !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 720px) {
  .ht-mainbar-inner {
    grid-template-columns: minmax(110px, 145px) auto !important;
    gap: 8px 10px !important;
    padding: 6px 0.75rem !important;
  }

  .ht-brand {
    width: 145px !important;
    height: 44px !important;
  }

  .ht-brand img {
    height: 42px !important;
    max-width: 140px !important;
  }

  .ht-cats-toggle {
    height: 32px !important;
    padding: 0 11px !important;
    font-size: 11.5px !important;
  }

  .ht-search,
  .ht-search input {
    height: 36px !important;
  }
}

@media (max-width: 420px) {
  .ht-mainbar-inner {
    grid-template-columns: 118px auto !important;
  }

  .ht-brand {
    width: 118px !important;
  }

  .ht-brand img {
    height: 36px !important;
    max-width: 115px !important;
  }

  .ht-cats-label {
    display: none !important;
  }
}

/* ============================================================
   LOGO MÁS GRANDE — aumentar tamaño imagen HelpTech en header
   ============================================================ */
.ht-brand {
  width: 250px !important;
  height: 96px !important;
  flex: 0 0 250px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: visible !important;
}
.ht-brand img {
  height: 92px !important;
  width: auto !important;
  max-width: 245px !important;
  transform: none !important;
  object-fit: contain !important;
}
.ht-brand:hover img { transform: none !important; }
.ht-mainbar-inner {
  grid-template-columns: 250px auto minmax(260px, 620px) auto !important;
  min-height: 100px !important;
}
@media (max-width: 1100px) {
  .ht-brand { width: 210px !important; height: 80px !important; }
  .ht-brand img { height: 76px !important; max-width: 205px !important; }
  .ht-mainbar-inner { grid-template-columns: 210px auto 1fr !important; }
}
@media (max-width: 980px) {
  .ht-brand { width: 200px !important; height: 74px !important; }
  .ht-brand img { height: 70px !important; max-width: 195px !important; }
  .ht-mainbar-inner { grid-template-columns: minmax(180px,210px) auto !important; }
}
@media (max-width: 720px) {
  .ht-brand { width: 165px !important; height: 60px !important; }
  .ht-brand img { height: 58px !important; max-width: 160px !important; }
  .ht-mainbar-inner { grid-template-columns: minmax(140px,170px) auto !important; }
}
@media (max-width: 420px) {
  .ht-brand { width: 140px !important; height: 52px !important; }
  .ht-brand img { height: 50px !important; max-width: 135px !important; }
  .ht-mainbar-inner { grid-template-columns: 140px auto !important; }
}

/* ====== Servicios — service cards grid ====== */
.srv-section { padding: 5rem 0; background: var(--bg-soft); }
.srv-section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.srv-section-head h2 { font-size: clamp(1.7rem,3.2vw,2.4rem); font-weight: 800; margin-bottom: .75rem; letter-spacing: -.02em; }
.srv-section-head p { font-size: 1.05rem; color: var(--muted); }
.srv-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 1100px) { .srv-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .srv-cards-grid { grid-template-columns: 1fr; } }
.srv-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: .9rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.srv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -10px rgba(31,60,136,.14);
  border-color: rgba(31,60,136,.3);
}
.srv-card-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: rgba(31,60,136,.08); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.srv-card-icon svg { width: 26px; height: 26px; }
.srv-card h3 { font-size: .97rem; font-weight: 700; color: var(--primary); line-height: 1.4; }
.srv-card p { font-size: .85rem; color: var(--muted); line-height: 1.6; flex: 1; }
.btn-srv-consult {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.1rem; border-radius: 9px;
  font-weight: 600; font-size: .86rem;
  border: 0; cursor: pointer;
  background: var(--primary); color: #fff;
  transition: background .25s, transform .2s;
  text-decoration: none; margin-top: auto;
}
.btn-srv-consult:hover { background: var(--primary-dark); transform: translateY(-2px); }
/* Services page contact form */
.srv-contact { padding: 5rem 0; background: #fff; }
.srv-contact-inner {
  max-width: 860px; margin: 0 auto;
  background: #fff; border-radius: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  overflow: hidden;
}
.srv-contact-head { background: var(--primary); color: #fff; padding: 2.5rem 2.5rem 2rem; }
.srv-contact-head h2 { font-size: 1.65rem; font-weight: 800; margin-bottom: .4rem; }
.srv-contact-head p { opacity: .82; font-size: .95rem; }
.srv-contact-body { padding: 2.5rem; }
.srv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (max-width: 600px) { .srv-form-row { grid-template-columns: 1fr; } }
.srv-form-group { display: flex; flex-direction: column; gap: .42rem; }
.srv-form-group label { font-size: .84rem; font-weight: 600; color: #374151; }
.srv-form-group input,
.srv-form-group select,
.srv-form-group textarea {
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: .7rem 1rem; font: inherit; font-size: .93rem; color: var(--text);
  background: #fafafa; transition: border-color .2s, box-shadow .2s;
  outline: none; width: 100%;
}
.srv-form-group input:focus,
.srv-form-group select:focus,
.srv-form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,60,136,.1); background: #fff;
}
.srv-form-group textarea { resize: vertical; min-height: 110px; }
.srv-form-full { margin-bottom: 1.25rem; }
.srv-form-msg { margin-top: 1rem; font-size: .9rem; font-weight: 500; padding: .75rem 1rem; border-radius: 8px; display: none; }
.srv-form-msg.success { display: block; background: rgba(22,163,74,.1); color: #15803d; border: 1px solid rgba(22,163,74,.2); }
.srv-form-msg.error { display: block; background: rgba(220,38,38,.08); color: #b91c1c; border: 1px solid rgba(220,38,38,.15); }

/* ==========================================================
   CAROUSEL — infinite scroll + pause on wrapper hover
   ========================================================== */

/* Wrapper must be relative so fade overlays can position */
.partners-track-wrap {
  position: relative !important;
  overflow: hidden !important;
}

/* Pause animation when mouse is anywhere over the wrapper */
.partners-track-wrap:hover .partners-track,
.partners-track-wrap:hover .clients-track {
  animation-play-state: paused !important;
}

/* Ensure both tracks always scroll */
.partners-track {
  animation: scrollTrack 30s linear infinite !important;
  animation-play-state: running !important;
}
.clients-track {
  animation: scrollTrack 28s linear infinite !important;
  animation-play-state: running !important;
}

/* ── Fade edges ─────────────────────────────────────── */
.track-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.track-fade-left  { left:  0; background: linear-gradient(to right, #ffffff, transparent); }
.track-fade-right { right: 0; background: linear-gradient(to left,  #ffffff, transparent); }

/* Clients section has a soft-grey background */
.clients-bg .track-fade-left  { background: linear-gradient(to right, #F4F4F4, transparent); }
.clients-bg .track-fade-right { background: linear-gradient(to left,  #F4F4F4, transparent); }

/* ==========================================================
   ABOUT — extra top spacing so section starts below the fold
   ========================================================== */
.about {
  padding-top: 12rem !important;
}

/* ==========================================================
   RESPONSIVE — mobile fixes (v20260507)
   ========================================================== */

/* 1. Prevent any element from causing horizontal scroll/zoom-out on mobile */
body { overflow-x: hidden; }

/* 2. iOS Safari auto-zoom prevention:
      Safari zooms in when an input has font-size < 16px on focus.
      Force 16px on all interactive fields at mobile sizes. */
@media (max-width: 720px) {
  input,
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }
  /* Keep placeholder readable */
  input::placeholder,
  textarea::placeholder {
    font-size: 14px !important;
  }
}

/* 3. Scale back the "¿Quiénes somos?" top padding on small screens.
      12rem is intentional on desktop to push it below the fold;
      on mobile screens that amount of whitespace is excessive. */
@media (max-width: 960px) {
  .about { padding-top: 6rem !important; }
}
@media (max-width: 720px) {
  .about { padding-top: 4rem !important; }
}
@media (max-width: 420px) {
  .about { padding-top: 3rem !important; }
}

/* 4. Ensure carousel wrappers never overflow their parent on mobile */
.partners-track-wrap {
  max-width: 100vw;
}

/* 5. Clamp the categories dropdown panel so it never escapes the screen */
.ht-cats-panel {
  max-width: calc(100vw - 2rem);
}

/* 6. Prevent the search placeholder from causing overflow */
@media (max-width: 480px) {
  .ht-search input::placeholder {
    font-size: 12px !important;
  }
}

/* ==========================================================
   MOBILE FIX v2 — spacing, white border, zoom lock
   ========================================================== */

/* Prevent horizontal scroll on BOTH html and body (body alone is not enough) */
html { overflow-x: hidden; }

/* Ensure header elements never extend beyond viewport */
.ht-topbar,
.ht-mainbar {
  max-width: 100vw;
  box-sizing: border-box;
}

/* All sections and their containers must be fully contained */
section,
.container {
  max-width: 100%;
  box-sizing: border-box;
}

/* ── More breathing room after "Nuestras Marcas Asociadas" ── */
/* Add bottom padding to partners section on ALL screen sizes */
.partners {
  padding-bottom: 4rem !important;
}

/* On desktop also keep the top spacing compact */
@media (min-width: 961px) {
  .partners {
    padding-bottom: 3rem !important;
  }
}

/* On mobile increase the gap so About starts well below carousel */
@media (max-width: 960px) {
  .partners {
    padding-bottom: 3rem !important;
  }
  .about {
    padding-top: 5rem !important;
  }
}

@media (max-width: 720px) {
  .partners {
    padding-bottom: 2.5rem !important;
  }
  .about {
    padding-top: 5rem !important;
  }
}

@media (max-width: 420px) {
  .partners {
    padding-bottom: 2rem !important;
  }
  .about {
    padding-top: 4rem !important;
  }
}

/* ── Carousel: hard-clip anything overflowing on mobile ── */
.partners-track-wrap,
.clients-track-wrap {
  overflow: hidden !important;
  max-width: 100%;
}


/* =========================================================
   AJUSTE FINAL: separación entre "Nuestras Marcas Asociadas"
   y "¿Quiénes somos?"
   ========================================================= */
.about-after-partners {
  margin-top: 3.5rem !important;
}

.partners + .about,
.partners + .about-after-partners {
  margin-top: 3.5rem !important;
}

/* Mayor separación en versión mobile entre "Nuestras Marcas Asociadas" y "¿Quiénes somos?" */
@media (max-width: 720px) {
  .about-after-partners,
  .partners + .about,
  .partners + .about-after-partners {
    margin-top: 5rem !important;
    padding-top: 6rem !important;
  }
}

/* ==========================================================
   CLIENTS CAROUSEL — keyframe dedicado para 4 sets de logos
   Con 20 items (4×5), translateX(-25%) desplaza exactamente
   un set completo → loop siempre continuo sin huecos blancos
   ========================================================== */
@keyframes scrollTrackClients {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

.clients-track {
  animation: scrollTrackClients 30s linear infinite !important;
  animation-play-state: running !important;
}

/* Pausa al pasar el mouse sobre el wrapper (igual que Marcas) */
.partners-track-wrap:hover .clients-track {
  animation-play-state: paused !important;
}


  /* ====== Hero Slider — track + translateX approach ====== */
  .hero-slider-wrap {
    display: block;
    padding: 0;
    overflow: hidden;
    position: relative;
  }

  /* All .hero styles that normally apply to the section
     now apply to each slide, so we need to transfer them: */
  .hero-track {
    display: flex;
    width: 100%;
    transition: transform .8s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
  }

  .hero-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    padding: 80px 0 40px;
    overflow: hidden;
    color: #fff;
  }

  /* Re-declare hero-bg and overlay inside slides */
  .hero-slide .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .hero-slide .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 20s ease-out infinite alternate;
  }
  .hero-slide .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
  }
  .hero-slide .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  /* Exponor slide */
  .hero-content-exponor {
    justify-content: center !important;
    align-items: center;
    flex-direction: column;
  }
  .exponor-banner-img {
    max-width: min(860px, 88%);
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0,0,0,.55);
    display: block;
    margin: 0 auto;
  }

  /* Arrow controls */
  .hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.25);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .hero-arrow:hover { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.5); }
  .hero-arrow-prev { left: 1.5rem; }
  .hero-arrow-next { right: 1.5rem; }

  /* Dot indicators */
  .hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: .6rem;
  }
  .hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: background .25s, transform .25s;
    padding: 0;
  }
  .hero-dot.active { background: #fff; transform: scale(1.4); }

  @media (max-width: 768px) {
    .hero-slide { padding: 70px 0 35px; }
    .hero-arrow { width: 40px; height: 40px; }
    .hero-arrow-prev { left: .75rem; }
    .hero-arrow-next { right: .75rem; }
    .exponor-banner-img { border-radius: 10px; }
  }
  