:root {
  --bg: #07080a;
  --bg-soft: #0c0e0d;
  --bg-elev: #121513;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f6f4;
  --text-dim: #98a19b;
  --accent: #43e08a;
  --accent-deep: #1f7a4d;
  --accent-soft: rgba(67, 224, 138, 0.12);
  --radius: 18px;
  --max-width: 1180px;
  --font-head: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #04120a;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3, .brand-text, .btn { font-family: var(--font-head); }

/* Grain texture overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease-out;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #04160c;
  box-shadow: 0 0 0 0 rgba(67, 224, 138, 0.4);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(67, 224, 138, 0.35); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 11px 20px; font-size: 0.86rem; }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; margin-top: 22px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.brand-logo { width: 38px; height: 38px; object-fit: contain; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.main-nav a span { font-size: 0.7rem; color: var(--accent); font-family: var(--font-head); }
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 0; }
.hero-spotlight {
  position: absolute;
  width: 700px; height: 700px;
  left: var(--sx, 50%); top: var(--sy, 10%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(67,224,138,0.14) 0%, rgba(67,224,138,0) 70%);
  pointer-events: none;
  transition: left 0.3s ease, top 0.3s ease;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  padding-bottom: 64px;
  position: relative;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 22px;
}
.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(67,224,138,0.6);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(67,224,138,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(67,224,138,0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  margin: 0 0 24px;
  font-weight: 600;
  letter-spacing: -1.5px;
}
.hero-sub {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 0 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Chat mockup */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.chat-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: #0f130f; object-fit: contain; padding: 3px; }
.chat-head strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--text-dim); }
.chat-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.bubble {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.45;
}
.bubble-in { align-self: flex-start; background: #1a1f1b; border-bottom-left-radius: 4px; color: var(--text); }
.bubble-out { align-self: flex-end; background: var(--accent); color: #04160c; border-bottom-right-radius: 4px; font-weight: 500; }
.bubble .tick { opacity: 0.6; font-size: 0.7rem; margin-left: 4px; }
.bubble-typing { align-self: flex-start; background: #1a1f1b; padding: 12px 16px; border-radius: 16px; border-bottom-left-radius: 4px; display: flex; gap: 4px; }
.bubble-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); animation: typingDot 1.2s infinite; }
.bubble-typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-caption { color: var(--text-dim); font-size: 0.85rem; text-align: center; }

.hero-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 16px 0;
}
.hero-strip-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: scrollStrip 30s linear infinite;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
  width: max-content;
}
@keyframes scrollStrip {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section { padding: 110px 0; position: relative; z-index: 1; overflow: hidden; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: #050605; }
.section-tight { padding: 0 0 110px; overflow: visible; }

.watermark {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.section-head { max-width: 640px; margin: 0 0 64px; position: relative; z-index: 1; }
.section-head .section-sub { margin: 0; }

.eyebrow.center, .section-title.center, .section-sub.center { text-align: center; margin-left: auto; margin-right: auto; }

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -1px;
}
.section-sub { color: var(--text-dim); max-width: 560px; margin: 0; font-size: 1.02rem; }

/* Service list */
.service-list { display: flex; flex-direction: column; position: relative; z-index: 1; }
.service-row {
  display: grid;
  grid-template-columns: 70px 1fr 24px;
  align-items: center;
  gap: 24px;
  padding: 30px 8px;
  border-top: 1px solid var(--border);
  transition: padding-left 0.25s ease, background 0.25s ease;
}
.service-list .service-row:last-child { border-bottom: 1px solid var(--border); }
.service-row:hover { padding-left: 20px; background: var(--accent-soft); }
.service-index { font-family: var(--font-head); font-size: 1rem; color: var(--text-dim); }
.service-row:hover .service-index { color: var(--accent); }
.service-body h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 600; }
.service-body p { margin: 0; color: var(--text-dim); font-size: 0.95rem; max-width: 560px; }
.service-arrow { color: var(--text-dim); transition: transform 0.25s ease, color 0.25s ease; }
.service-row:hover .service-arrow { transform: translateX(6px); color: var(--accent); }

/* Product bento */
.product-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.p-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.p-2 { grid-column: 3; grid-row: 1; }
.p-3 { grid-column: 4; grid-row: 1; }
.p-4 { grid-column: 3; grid-row: 2; }
.p-5 { grid-column: 4; grid-row: 2; }
.p-6 { grid-column: 1 / 3; grid-row: 3; }
.p-7 { grid-column: 3; grid-row: 3; }
.p-8 { grid-column: 4; grid-row: 3; }

.product-tile {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
}
.product-media { position: relative; flex: 1; overflow: hidden; }
.product-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: transform 0.4s ease;
}
.product-tile:hover .product-media img { transform: scale(1.06); }
.product-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  z-index: 1;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  background: linear-gradient(160deg, #141a15, #0a0c0a);
}
.product-placeholder .icon-lg { color: var(--accent); opacity: 0.7; }
.product-tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
}
.product-tile h3 { margin: 0; font-size: 0.95rem; font-weight: 600; }
.product-tile p { margin: 4px 0 0; color: rgba(255,255,255,0.7); font-size: 0.8rem; }
.p-1 figcaption h3 { font-size: 1.2rem; }

.products-note { text-align: center; margin-top: 44px; color: var(--text-dim); position: relative; z-index: 1; }
.products-note a { color: var(--accent); font-weight: 600; }

/* Educacion */
.educacion-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-dim); font-weight: 500; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 16px; height: 2px;
  background: var(--accent);
}
.educacion-visual { display: flex; justify-content: center; align-items: center; }
.big-number {
  font-family: var(--font-head);
  font-size: clamp(8rem, 16vw, 13rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  line-height: 1;
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.trust-item { padding: 34px 26px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-num { display: block; font-family: var(--font-head); color: var(--accent); font-size: 0.85rem; margin-bottom: 22px; }
.trust-item h3 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 600; }
.trust-item p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

/* Location */
.location-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: stretch; position: relative; z-index: 1; }
.location-map { min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); filter: grayscale(0.4) invert(0.92) contrast(0.9); }
.location-info { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.info-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.info-list strong { display: block; font-size: 0.9rem; margin-bottom: 3px; font-family: var(--font-head); }
.info-list span { color: var(--text-dim); font-size: 0.9rem; }
.info-list a { color: var(--accent); }

/* Breadcrumb */
.breadcrumb { color: var(--text-dim); font-size: 0.85rem; margin: 0 0 26px; position: relative; z-index: 1; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }

/* Hero meta chips */
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.hero-meta span, .hero-meta li {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
}
.hero-meta strong { color: var(--text); font-family: var(--font-head); font-weight: 600; }

/* Panel / price table */
.panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 28px;
  position: relative;
  z-index: 1;
  overflow-x: auto;
}
.price-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.price-table th, .price-table td { text-align: left; padding: 18px 4px; font-size: 0.94rem; }
.price-table thead th {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.72rem;
  font-family: var(--font-head);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.price-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.2s ease; }
.price-table tbody tr:last-child { border-bottom: none; }
.price-table tbody tr:hover { background: var(--accent-soft); }
.price-table td:last-child, .price-table th:last-child { text-align: right; }
.price-table td:last-child { color: var(--accent); font-weight: 600; font-family: var(--font-head); }

/* Inline CTA band (used between sections) */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px;
  position: relative;
  z-index: 1;
}
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 600; letter-spacing: -0.5px; }
.cta-band p { margin: 0; color: var(--text-dim); }

/* Active nav link */
.main-nav a.active { color: var(--accent); }
.main-nav a.active span { color: var(--accent); }

/* CTA final */
.cta-final { background: var(--bg-soft); border-top: 1px solid var(--border); position: relative; z-index: 1; }
.cta-final-inner { text-align: center; padding: 100px 24px; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.cta-final h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; font-weight: 600; letter-spacing: -1px; }

/* Footer */
.site-footer { background: #050605; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 60px 24px 40px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-brand p { color: var(--text-dim); font-size: 0.88rem; max-width: 300px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 0.88rem; margin-top: 6px; }
.footer-col h4 { margin: 0 0 16px; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); font-family: var(--font-head); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--text-dim); font-size: 0.88rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; }
.footer-bottom p { margin: 0; text-align: center; color: var(--text-dim); font-size: 0.8rem; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: var(--accent); color: #04160c;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(67, 224, 138, 0.4);
  z-index: 400;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float .icon-lg { width: 28px; height: 28px; fill: #04160c; stroke: none; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .educacion-inner { grid-template-columns: 1fr; }
  .educacion-visual { order: -1; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .product-bento { grid-auto-rows: 130px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav a { padding: 14px 0; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 40px 1fr; }
  .service-arrow { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .product-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .p-1, .p-2, .p-3, .p-4, .p-5, .p-6, .p-7, .p-8 { grid-column: auto; grid-row: auto; }
  .p-1 { grid-column: span 2; grid-row: span 2; }
  .trust-strip { grid-template-columns: 1fr; }
  .hero-spotlight { display: none; }
}
