:root {
  --cream: #FDF8F2;
  --dark: #1D1F13;
  --red: #C5383D;
  --navy: #2E455D;
  --navy-deep: #1C274C;
  --gold: #B58E3C;
  --gray: #596B7E;
  --muted: #423C4C;
  --border: rgba(29, 31, 19, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Public Sans', sans-serif;
  color: var(--dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navbar ---------- */
.nav-wrap {
  position: sticky; top: 12px; z-index: 100;
  padding: 0 16px;
}
nav {
  max-width: 1360px; margin: 0 auto;
  background: var(--cream);
  border: 1.5px solid var(--dark);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  box-shadow: 0 2px 12px rgba(29,31,19,.06);
}
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 16px; color: var(--dark); font-weight: 400;
  transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--red); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { transform: scaleX(1); }
nav { transition: box-shadow .3s ease; }
.nav-wrap.scrolled nav { box-shadow: 0 10px 30px rgba(29,31,19,.14); }
.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dark); color: #fff;
  padding: 11px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 500;
  transition: background .2s, transform .2s;
}
.btn-dark:hover { background: var(--red); transform: translateY(-1px); }
.btn-dark svg { width: 17px; height: 17px; }
.hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--dark); margin: 5px 0; border-radius: 2px; transition: .3s; }
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 99;
  background: var(--cream); padding: 110px 32px 32px;
  flex-direction: column; gap: 28px; font-size: 22px; font-weight: 600;
}
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center;
  background: var(--dark); color: #fff;
  font-size: 13px; font-weight: 500;
  padding: 7px 18px; border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 22px;
}
.hero h1 .red { color: var(--red); }
.hero p {
  font-family: 'Public Sans', sans-serif;
  font-size: 17px; color: var(--gray); line-height: 1.6;
  max-width: 480px; margin-bottom: 30px;
}
.hero-img { border-radius: 22px; overflow: hidden; }
.hero-img img { width: 100%; height: 420px; object-fit: cover; }

/* ---------- Stats ---------- */
.stats { padding: 28px 0 8px; }
.stats-panel {
  background: var(--cream); border-radius: 22px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 44px 28px; gap: 20px; text-align: center;
}
.stat-num {
  font-size: clamp(30px, 3.2vw, 42px); font-weight: 700;
  color: var(--dark); letter-spacing: -0.5px;
}
.stat-label {
  font-family: 'Public Sans', sans-serif;
  font-size: 13.5px; color: var(--gray); margin-top: 8px; line-height: 1.45;
}

/* ---------- Banner ---------- */
.banner { padding: 40px 0; }
.banner-panel {
  background: var(--cream); border-radius: 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 54px 56px;
}
.banner-panel h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1.3; }
.banner-panel p { font-size: 17px; line-height: 1.6; color: var(--dark); }

/* ---------- Section headers ---------- */
section { padding: 72px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--dark);
  margin-bottom: 18px;
}
.chip svg { width: 18px; height: 18px; color: var(--red); }
.section-title { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 18px; }
.section-sub {
  font-family: 'Public Sans', sans-serif;
  font-size: 16px; color: var(--gray); line-height: 1.65; max-width: 600px;
}
.section-sub b { color: var(--muted); }

/* ---------- Ventajas ---------- */
.ventajas-cards {
  background: var(--cream); border-radius: 22px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 44px; overflow: hidden;
}
.ventaja {
  padding: 40px 34px;
}
.ventaja + .ventaja { border-left: 1px solid var(--border); }
.ventaja-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.ventaja-icon svg { width: 24px; height: 24px; }
.ventaja h3 { font-size: 20px; font-weight: 700; line-height: 1.4; margin-bottom: 14px; }
.ventaja p { font-family: 'Public Sans', sans-serif; font-size: 14.5px; color: var(--gray); line-height: 1.65; }

/* ---------- Servicios ---------- */
.servicios-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px;
}
.servicio {
  background: var(--cream); border: 1px solid var(--border); border-radius: 18px;
  padding: 36px 32px;
  transition: transform .25s, box-shadow .25s;
}
.servicio:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(29,31,19,.08); }
.servicio-icon { color: var(--red); margin-bottom: 22px; }
.servicio-icon svg { width: 44px; height: 44px; stroke-width: 1.4; }
.servicio h3 { font-size: 20px; font-weight: 600; margin-bottom: 16px; line-height: 1.35; }
.servicio p { font-family: 'Public Sans', sans-serif; font-size: 14.5px; color: var(--gray); line-height: 1.65; }

/* ---------- Tecnología + IA ---------- */
.tech { padding: 40px 0 72px; }
.tech-panel {
  background: var(--cream);
  border-radius: 22px; padding: 64px 60px;
}
.tech-panel .section-title { max-width: 720px; }
.tech-intro, .tech-outro {
  font-family: 'Public Sans', sans-serif;
  font-size: 16px; line-height: 1.7; color: var(--gray);
  max-width: 760px;
}
.tech-outro { margin-top: 34px; }
.tech-outro b { color: var(--dark); }
.tech-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 38px;
}
.tech-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px; padding: 30px 30px;
  transition: transform .25s, box-shadow .25s;
}
.tech-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(29,31,19,.08); }
.tech-card-icon { color: var(--red); margin-bottom: 18px; }
.tech-card-icon svg { width: 38px; height: 38px; stroke-width: 1.7; }
.tech-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.tech-card p { font-family: 'Public Sans', sans-serif; font-size: 14.5px; line-height: 1.65; color: var(--gray); }
.btn-red {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: #fff;
  padding: 13px 26px; border-radius: 10px;
  font-size: 15px; font-weight: 500; margin-top: 34px;
  transition: background .2s, transform .2s;
}
.btn-red:hover { background: #a92e33; transform: translateY(-1px); }
.btn-red svg { width: 18px; height: 18px; }

/* ---------- Marcas ---------- */
.marcas { padding: 56px 0; }
.marcas h2 { text-align: center; font-size: clamp(26px, 3vw, 36px); font-weight: 700; margin-bottom: 48px; }
.marquee { position: relative; }
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.carousel {
  overflow-x: auto; cursor: grab;
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; user-select: none; }
.carousel img { -webkit-user-drag: none; user-select: none; }
.marquee-track {
  display: flex; align-items: center; gap: 90px;
  width: max-content;
}
.marquee-track img { height: 74px; width: auto; max-width: 170px; object-fit: contain; }

/* ---------- Testimonios ---------- */
.testimonios { text-align: center; }
.testimonios .section-sub { margin: 0 auto; }
.testi-viewport { margin-top: 48px; position: relative; }
.testi-track {
  display: flex; gap: 24px; width: max-content;
  padding: 6px 4px;
}
.testi-card {
  width: 340px; background: var(--cream); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px 30px; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between;
}
.testi-card blockquote {
  font-family: 'Public Sans', sans-serif; font-style: italic;
  font-size: 15px; line-height: 1.7; color: var(--muted); margin-bottom: 26px;
}
.testi-person { display: flex; align-items: center; gap: 14px; }
.testi-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #fff; }
.testi-name { font-size: 15.5px; font-weight: 700; color: var(--gold); }
.testi-role, .testi-co { font-family: 'Public Sans', sans-serif; font-size: 13.5px; color: var(--gray); line-height: 1.5; }

/* ---------- Contacto ---------- */
.contacto { text-align: center; }
.contacto .eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 4px; color: var(--navy);
  margin-bottom: 22px; text-transform: uppercase;
}
.contacto .section-sub { margin: 0 auto; max-width: 640px; }
.contact-panel {
  background: var(--cream); border-radius: 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  padding: 44px; margin-top: 48px; text-align: left;
}
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 24px; display: flex; align-items: center; gap: 18px;
}
.contact-icon {
  flex-shrink: 0; width: 58px; height: 58px; border-radius: 12px;
  border: 1.5px solid var(--red); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 26px; height: 26px; }
.contact-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 5px; }
.contact-card p, .contact-card a { font-family: 'Public Sans', sans-serif; font-size: 14.5px; color: var(--gray); line-height: 1.6; }
.contact-card a:hover { color: var(--red); text-decoration: underline; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 48px 0 28px; margin-top: 40px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-top img { height: 40px; width: auto; }
.footer-nav { display: flex; gap: 32px; list-style: none; font-size: 15px; }
.footer-nav a:hover { color: var(--red); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--gray);
  transition: color .2s, border-color .2s;
}
.footer-social a:hover { color: var(--red); border-color: var(--red); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 32px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: 'Public Sans', sans-serif; font-size: 13.5px; color: var(--gray);
}
.footer-bottom a:hover { color: var(--red); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Micro-interacciones ---------- */
.hero-grid > div { animation: fadeUp .8s ease both; }
.hero-grid > div:nth-child(2) { animation-delay: .15s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero .btn-dark svg, .btn-red svg { transition: transform .2s ease; }
.hero .btn-dark:hover svg { transform: translate(2px, -2px); }
.btn-red:hover svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-grid > div { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Blog ---------- */
.blog-header { padding: 64px 0 8px; }
.blog-header .section-sub { margin-top: 6px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.post-card {
  background: var(--cream); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(29,31,19,.08); }
.post-card-cover { height: 190px; background: var(--dark); display: flex; align-items: center; justify-content: center; color: var(--red); }
.post-card-cover svg { width: 56px; height: 56px; }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-meta { font-family: 'Public Sans', sans-serif; font-size: 13px; color: var(--gray); display: flex; gap: 10px; align-items: center; }
.post-tag { background: rgba(197,56,61,.1); color: var(--red); font-weight: 600; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; }
.post-card h2 { font-size: 21px; font-weight: 700; line-height: 1.35; }
.post-card h2 a:hover { color: var(--red); }
.post-excerpt { font-family: 'Public Sans', sans-serif; font-size: 14.5px; color: var(--gray); line-height: 1.65; flex: 1; }
.post-link { color: var(--red); font-weight: 600; font-size: 14.5px; }

article.post { max-width: 760px; margin: 0 auto; padding: 56px 24px 40px; }
article.post h1 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; margin: 18px 0 26px; }
.post-cover { margin: 0 0 32px; }
.post-cover img {
  width: 100%; border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(29,31,19,.1);
}
.post-cover figcaption {
  font-family: 'Public Sans', sans-serif; font-size: 13px; color: var(--gray);
  margin-top: 12px; text-align: center;
}
article.post .post-body p, article.post .post-body li {
  font-family: 'Public Sans', sans-serif; font-size: 16.5px; line-height: 1.75; color: var(--muted); margin-bottom: 20px;
}
article.post .post-body ul { margin: 0 0 20px 4px; list-style: none; }
article.post .post-body li { padding-left: 28px; position: relative; margin-bottom: 12px; }
article.post .post-body li::before { content: '◆'; color: var(--red); position: absolute; left: 4px; font-size: 12px; top: 5px; }
article.post .post-body h2 { font-size: 24px; font-weight: 700; margin: 36px 0 16px; }
article.post .post-body b, article.post .post-body strong { color: var(--dark); }
.post-highlight {
  background: var(--cream); border-left: 3px solid var(--red); border-radius: 0 12px 12px 0;
  padding: 22px 26px; margin: 28px 0;
}
.post-highlight p { margin-bottom: 0 !important; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gray); font-size: 14.5px; font-family: 'Public Sans', sans-serif; white-space: nowrap; }
.back-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.back-link:hover { color: var(--red); }
.post-cta {
  background: var(--dark); color: #fff; border-radius: 18px;
  padding: 36px 38px; margin-top: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.post-cta h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.post-cta p { font-family: 'Public Sans', sans-serif; font-size: 14.5px; color: rgba(255,255,255,.75); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links, nav .btn-dark { display: none; }
  .hamburger { display: block; }
  .hero-grid, .banner-panel, .contact-panel { grid-template-columns: 1fr; }
  .stats-panel { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .ventajas-cards, .servicios-grid { grid-template-columns: 1fr; }
  .ventaja + .ventaja { border-left: none; border-top: 1px solid var(--border); }
  .hero { padding-top: 40px; }
  .hero-img img { height: 320px; }
  .banner-panel { padding: 40px 32px; }
  section { padding: 56px 0; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
  .tech-panel { padding: 44px 30px; }
  .tech-cards { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
}
