:root {
  --bg: #0a0a11;
  --ink: #f0f0f6;
  --muted: #a2a0b8;
  --line: #262536;
  --violet: #7c3aed;
  --violet-b: #8b5cf6;
  --violet-2: #a855f7;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --indigo: #5646e5;
  --wrap: 1140px;
  --r: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(124, 58, 237, .16), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(168, 85, 247, .12), transparent 55%);
  background-attachment: fixed;
}
h1, h2, h3, .brand-word { font-family: "Sora", "Inter", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--violet); color: #fff; padding: 8px 14px; border-radius: 0 0 10px 0; z-index: 100; }
.skip:focus { left: 0; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(10, 10, 17, .72); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 0 14px rgba(124, 58, 237, .5)); }
.brand-word { font-weight: 800; letter-spacing: .16em; font-size: 21px; background: linear-gradient(90deg, var(--violet-b), var(--violet-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-word.small { font-size: 16px; letter-spacing: .2em; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.nav-links a { color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { color: #fff !important; background: linear-gradient(90deg, var(--violet), var(--violet-2)); padding: 9px 17px; border-radius: 999px; font-weight: 600; box-shadow: 0 6px 18px rgba(124, 58, 237, .35); }

/* SECTIONS */
.section { padding: 34px 0; }
.section:first-of-type { padding-top: 30px; }
.eyebrow { color: var(--violet-2); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; margin: 0 0 14px; }
.kicker { color: var(--violet-2); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; margin: 0 0 8px; }
.section-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin: 0; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.section-lead { color: var(--muted); font-size: 16px; max-width: 52ch; margin: 0; }
.sec-head { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-end; justify-content: space-between; margin: 0 0 20px; }

/* BENTO grid */
.bento { display: grid; gap: 16px; }
.bento-hero { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
.cell {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, #15141f, #121019); padding: 26px; display: flex; flex-direction: column;
  min-height: 168px;
}
.cell h3 { margin: 12px 0 6px; font-size: 19px; }
.cell > p { margin: 0; color: var(--muted); }
.cell-ico { font-size: 26px; }
.cell-hero { grid-column: span 2; grid-row: span 2; justify-content: center; padding: 34px; }
.cell-mission { grid-column: span 2; }
.mission-lead { color: var(--muted); font-size: 15.5px; margin: 0; }

/* tones (bento colors) */
.tone-violet { background: linear-gradient(160deg, rgba(124,58,237,.20), rgba(168,85,247,.06)); border-color: rgba(139,92,246,.35); }
.tone-cyan   { background: linear-gradient(160deg, rgba(34,211,238,.16), rgba(34,211,238,.03)); border-color: rgba(34,211,238,.3); }
.tone-amber  { background: linear-gradient(160deg, rgba(245,158,11,.16), rgba(245,158,11,.03)); border-color: rgba(245,158,11,.3); }
.tone-ink    { background: linear-gradient(180deg, #17151f, #131019); }
.tone-violet h3 { color: #d7cbff; } .tone-cyan h3 { color: #bff3fb; } .tone-amber h3 { color: #ffe6bd; }
.cell:hover { transform: translateY(-2px); transition: transform .18s; }

.glow { position: absolute; inset: -40% -10% auto -10%; height: 240px; pointer-events: none; background: radial-gradient(420px 200px at 25% 20%, rgba(124,58,237,.35), transparent 60%); }
.hero-title { font-size: clamp(36px, 5.6vw, 66px); line-height: 1.04; font-weight: 800; margin: 0 0 18px; letter-spacing: -.02em; text-wrap: balance; }
.grad { background: linear-gradient(90deg, var(--violet-b), var(--violet-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(16px, 1.7vw, 19px); color: var(--muted); margin: 0 0 20px; max-width: 52ch; }
/* Sectores / gremios (nichos) que atiende LOTIC — chips del hero. */
.sectors { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 4px auto 30px; max-width: 760px; }
.sectors li { font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #cbbef7; background: rgba(124,58,237,.09); border: 1px solid rgba(139,92,246,.26); border-radius: 999px; padding: 8px 15px; white-space: nowrap; }
/* Logo LOTIC GRANDE y protagonista del hero (este sitio es la FUENTE de la marca).
   Es la imagen oficial (assets/lotic-logo.png). El PNG trae fondo oscuro; con
   mix-blend-mode: screen ese negro desaparece sobre el fondo oscuro del sitio. */
/* inline-block + parent text-align:center = logo CENTRADO (antes era block de ancho
   completo y la imagen quedaba pegada a la izquierda → "cargado a un lado"). */
.hero-logo { display: inline-block; margin: 0 auto 18px; text-decoration: none; max-width: 100%; }
.hero-logo-img { width: min(460px, 78vw); height: auto; display: block; margin: 0 auto; object-fit: contain; mix-blend-mode: screen; filter: drop-shadow(0 12px 44px rgba(124,58,237,.35)); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
/* Formulario de contacto (LOTIC). */
.contact-form { max-width: 560px; margin: 18px auto 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.contact-form .cf-row { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-form .cf-row input { flex: 1 1 200px; }
.contact-form input, .contact-form textarea { width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(139,92,246,.35); border-radius: 12px; padding: 12px 14px; color: var(--ink); font: inherit; font-size: 15px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #8b8ba3; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--violet-2); }
.contact-form button { align-self: flex-start; }
.contact-form #cfMsg { margin: 2px 0 0; min-height: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform .12s, filter .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(90deg, var(--violet), var(--violet-2)); color: #fff; box-shadow: 0 10px 26px rgba(124, 58, 237, .35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--violet); }

/* PROJECTS bento */
.bento-projects { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, #15141f, #121019); padding: 24px; }
.project { display: flex; flex-direction: column; transition: transform .16s, border-color .16s; }
.project:hover { transform: translateY(-3px); border-color: var(--violet); }
.project-top { display: flex; align-items: center; gap: 12px; }
.project-ico { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; font-size: 23px; background: rgba(124, 58, 237, .14); border: 1px solid var(--line); }
.project h3 { margin: 0; font-size: 21px; }
.project .cat { color: var(--muted); font-size: 13px; }
.badge { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(139, 92, 246, .16); color: var(--violet-b); border: 1px solid rgba(139, 92, 246, .32); white-space: nowrap; }
.project .tagline { font-weight: 600; margin: 14px 0 4px; }
.project .ps { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.project .ps b { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.chip { font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.project-cta { margin-top: auto; }
.project-link { display: inline-flex; align-items: center; gap: 6px; color: var(--violet-b); font-weight: 600; }
.project-link:hover { text-decoration: underline; }

/* TEAM bento */
.bento-team { grid-template-columns: repeat(3, 1fr); }
.member { text-align: left; display: flex; flex-direction: column; }
.avatar { width: 78px; height: 78px; border-radius: 50%; overflow: hidden; position: relative; background: linear-gradient(135deg, var(--violet), var(--violet-2)); display: grid; place-items: center; margin-bottom: 15px; box-shadow: 0 8px 22px rgba(124, 58, 237, .3); }
.avatar::after { content: attr(data-initials); color: #fff; font-family: "Sora", sans-serif; font-weight: 800; font-size: 28px; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.member h3 { margin: 0 0 2px; font-size: 21px; }
.role { color: var(--violet-b); font-weight: 600; margin: 0 0 12px; }
.bio { color: var(--muted); margin: 0 0 16px; font-size: 14.5px; }
.member-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; margin-top: auto; }
.member-links a { color: var(--violet-b); font-weight: 600; }
.member-links a:hover { text-decoration: underline; }

/* CONTACT cell */
.cell-contact { text-align: center; align-items: center; padding: 44px 26px; }
.cell-contact .section-lead { margin: 12px auto 20px; }

/* FOOT */
.foot { border-top: 1px solid var(--line); padding: 26px 0; margin-top: 20px; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-inner a:hover { color: var(--violet-b); }
.foot-logo { height: 40px; width: auto; mix-blend-mode: screen; }
.brand-logo { height: 34px; width: auto; display: block; mix-blend-mode: screen; }

/* HERO SECTION */
.hero-sec { padding-top: 30px; }
/* Hero CENTRADO y premium: logo, título, sub, sectores y CTAs alineados al centro. */
.hero-sec .cell-hero { width: 100%; grid-column: auto; grid-row: auto; min-height: 260px; align-items: center; text-align: center; }
.hero-sec .hero-logo { margin-left: auto; margin-right: auto; }
.hero-sec .hero-sub { margin-left: auto; margin-right: auto; }

/* CARRUSEL */
.carousel { position: relative; }
.car-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 4px 2px 12px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--violet) transparent;
}
.car-track::-webkit-scrollbar { height: 6px; }
.car-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.car-slide, .car-track > .card {
  flex: 0 0 min(420px, 86%); scroll-snap-align: center; min-height: 220px;
}
.car-track > .member { flex: 0 0 min(340px, 82%); }
.car-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(20,19,30,.9); color: var(--ink); font-size: 22px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: border-color .15s, background .15s;
}
.car-nav:hover { border-color: var(--violet); background: rgba(124,58,237,.25); }
.car-nav.prev { left: -6px; }
.car-nav.next { right: -6px; }
@media (max-width: 560px) { .car-nav { display: none; } }

/* ÁLBUM (apps pequeñas) */
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.app-small {
  display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line);
  border-radius: 18px; background: linear-gradient(180deg, #15141f, #121019); transition: transform .15s, border-color .15s;
}
.app-small:hover { transform: translateY(-2px); border-color: var(--violet); }
.app-small .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(124,58,237,.14); border: 1px solid var(--line); }
.app-small h3 { margin: 4px 0 0; font-size: 17px; }
.app-small p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; }
.app-small a { color: var(--violet-b); font-weight: 600; font-size: 13px; margin-top: 4px; }
.app-small a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { *, .car-track { transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 900px) {
  .bento-team { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .sec-head { align-items: flex-start; }
}
