/* =========================================================
   inlaweb — hoja de estilos
   Tipografías: Quicksand (títulos/logo), Roboto (texto), Roboto Mono (detalles)
   Colores de marca: #333333 (carbón) · #fa6500 (naranja)
   ========================================================= */

/* ---------- Tokens de tema ---------- */
:root,
[data-theme="dark"] {
  --bg: #191a1d;
  --bg2: #202227;
  --surface: #111214;
  --fg: #ffffff;
  --fg-muted: rgba(255, 255, 255, 0.68);
  --fg-faint: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.1);
  --card: #1e2024;
  --nav: rgba(25, 26, 29, 0.82);
  --grid: rgba(255, 255, 255, 0.045);
  --field: #131417;
  --accent: #fa6500;
}

[data-theme="light"] {
  --bg: #faf9f6;
  --bg2: #ffffff;
  --surface: #f2f0ea;
  --fg: #232323;
  --fg-muted: #57534c;
  --fg-faint: #8a857b;
  --border: rgba(0, 0, 0, 0.1);
  --card: #ffffff;
  --nav: rgba(250, 249, 246, 0.85);
  --grid: rgba(0, 0, 0, 0.04);
  --field: #f4f2ec;
  --accent: #fa6500;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Roboto, system-ui, sans-serif;
  overflow-x: hidden;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}
::selection {
  background: var(--accent);
  color: #fff;
}
a {
  text-decoration: none;
  color: var(--accent);
}
img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* ---------- Reveal al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Logo ---------- */
.logo {
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--fg);
}
.logo span {
  color: var(--accent);
}
.logo--sm {
  font-size: 22px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Roboto, sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.btn--solid {
  background: var(--accent);
  color: #fff;
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(250, 101, 0, 0.6);
}
.btn--outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--accent);
}
.btn--outline:hover {
  background: rgba(250, 101, 0, 0.1);
  transform: translateY(-2px);
}
.btn--lg {
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 9px;
}
.btn--block {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
}

/* ---------- Eyebrow / encabezados de sección ---------- */
.eyebrow {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.section {
  padding-top: 110px;
  padding-bottom: 110px;
}
.section__head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section__head--center {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.section__title {
  font-family: Quicksand, sans-serif;
  font-weight: 600;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 16px;
  color: var(--fg);
}
.section__lead {
  font-weight: 300;
  font-size: 19px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
}
.accent {
  color: var(--accent);
}

.prose {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin: 0 0 18px;
}
.prose--narrow {
  max-width: 380px;
  margin-bottom: 36px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}
.nav.is-scrolled {
  background: var(--nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}
.nav__links a:hover {
  color: var(--fg);
}
.theme-toggle {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: none;
}
.icon-moon {
  display: none;
}
[data-theme="light"] .icon-sun {
  display: none;
}
[data-theme="light"] .icon-moon {
  display: block;
}

/* ---------- Imágenes editables con variante claro/oscuro ----------
   Mismo patrón que icon-sun/icon-moon: se renderizan ambas variantes
   en el DOM (ver inc/theme-image.php) y se alterna por CSS según el
   atributo data-theme del <html>, sin recargar la página. */
[data-theme="dark"] .img--light {
  display: none;
}
[data-theme="dark"] .img--dark {
  display: block;
}
[data-theme="light"] .img--light {
  display: block;
}
[data-theme="light"] .img--dark {
  display: none;
}

.burger {
  display: none;
}
.burger,
.nav__mobile {
  color: var(--fg);
}
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px 0 12px;
  border-top: 1px solid var(--border);
  background: var(--nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav__mobile.is-open {
  display: flex;
}
.nav__mobile a {
  color: var(--fg);
  font-weight: 500;
  font-size: 16px;
  padding: 14px 40px;
}
.nav__mobile .btn {
  margin: 10px 40px 4px;
  justify-content: center;
  padding: 13px;
  font-size: 15px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  top: 0;
  overflow: hidden;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 54px 54px;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 78% at 82% -4%,
    rgba(250, 101, 0, 0.16),
    transparent 55%
  );
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding-top: 148px;
  padding-bottom: 108px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  font-size: 70px;
  line-height: 1.05;
  letter-spacing: -1.4px;
  margin: 0 0 24px;
  color: var(--fg);
}
.hero__lead {
  font-weight: 300;
  font-size: 20px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 490px;
  margin: 0 0 38px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Mockup de ventana */
.window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}
.dot--accent {
  background: var(--accent);
}
.window__url {
  margin-left: 12px;
  flex: 1;
  height: 22px;
  background: var(--surface);
  border-radius: 6px;
}
.window__body {
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--surface);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 13px,
    var(--border) 13px,
    var(--border) 14px
  );
}
.mock-block {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--accent);
}
.mock-caption {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  color: var(--fg-faint);
  letter-spacing: 0.05em;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
}
.grid--2 {
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid--empresa {
  grid-template-columns: 1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.grid--contacto {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

/* ---------- Bandas ---------- */
.band {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band__inner {
  padding-top: 110px;
  padding-bottom: 110px;
}
.band__inner--pad {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* ---------- Cards de servicios ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 38px 34px;
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(250, 101, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}
.card__title {
  font-family: Quicksand, sans-serif;
  font-weight: 600;
  font-size: 27px;
  margin: 0 0 12px;
  color: var(--fg);
}
.card__text {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin: 0 0 24px;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--fg);
}
.feature-list li::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

/* ---------- Empresa ---------- */
.chips {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.chip {
  font-weight: 500;
  font-size: 14px;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 18px;
}
.empresa__media {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 15px,
    var(--border) 15px,
    var(--border) 16px
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ---------- Slider infinito (proyectos / clientes) ---------- */
.slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}
.slider__viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  margin: -10px 0;
}
.slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(1, 1fr);
  gap: 26px;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.slider__track.no-transition {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .slider__track {
    transition: none;
  }
}
.slider__arrow {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}
.slider__arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.slider__arrow[disabled] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ---------- Proyectos ---------- */
.slider--projects .slider__track {
  grid-auto-columns: calc((100% - 2 * 26px) / 3);
}
.project {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.project:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 101, 0, 0.4);
}
.project__thumb {
  height: 190px;
  background: var(--surface);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    var(--border) 12px,
    var(--border) 13px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.project__body {
  padding: 22px;
}
.tag {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.project__title {
  font-family: Quicksand, sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--fg);
}
.project__text {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}

/* ---------- Clientes ---------- */
.slider--clients .slider__track {
  gap: 16px;
  grid-auto-columns: calc((100% - 3 * 16px) / 4);
}
.client {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  height: 82px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  font-family: Quicksand, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
}

/* ---------- Contacto ---------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-info__label {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  color: var(--fg-faint);
  margin: 0 0 5px;
}
.contact-info__value {
  font-family: Quicksand, sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--fg);
}

.form-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 38px;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--fg);
  margin-bottom: 9px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--fg);
  font-family: Roboto, sans-serif;
}
.field textarea {
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-faint);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  min-height: 380px;
}
.form-thanks[hidden] {
  display: none;
}
.form-thanks .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(250, 101, 0, 0.15);
  position: relative;
}
.form-thanks .check::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 11px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
  top: 18px;
  left: 18px;
}
.form-thanks h3 {
  font-family: Quicksand, sans-serif;
  font-weight: 600;
  font-size: 26px;
  margin: 0;
  color: var(--fg);
}
.form-thanks p {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
  max-width: 300px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.footer__inner {
  padding-top: 44px;
  padding-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.footer__links a {
  color: var(--fg-muted);
  font-weight: 400;
  font-size: 14px;
}
.footer__links a:hover {
  color: var(--fg);
}
.footer__copy {
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  color: var(--fg-faint);
  margin: 0;
}

/* ---------- Glyphs decorativos (placeholders) ---------- */
.glyph {
  display: block;
}
.glyph--rect {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
}
.glyph--circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
}
.glyph--diamond {
  width: 40px;
  height: 40px;
  background: var(--accent);
  transform: rotate(45deg);
}
.glyph--pill {
  width: 46px;
  height: 20px;
  border-radius: 100px;
  background: var(--accent);
}
.glyph--frame {
  width: 44px;
  height: 32px;
  border-radius: 6px;
  border: 3px solid var(--accent);
}
.glyph--frame.glyph--tall {
  width: 34px;
  height: 44px;
  border-radius: 8px;
}
.glyph--ring {
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.glyph--lg {
  width: 56px;
  height: 56px;
  border-radius: 15px;
}
/* dentro de las cards de servicio los glyphs van en contorno */
.card__icon .glyph--rect {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  background: transparent;
  border: 2px solid var(--accent);
}
.card__icon .glyph--circle {
  width: 16px;
  height: 16px;
  background: transparent;
  border: 2px solid var(--accent);
}
/* logos de cliente en tamaño reducido */
.glyph--sm {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}
.glyph--sm.glyph--pill {
  width: 22px;
  height: 12px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .nav__links {
    display: none;
  }
  .nav__cta {
    display: none;
  }
  .burger {
    display: flex;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid--empresa {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .grid--contacto {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .empresa__media {
    aspect-ratio: 16 / 10;
  }
  .slider--projects .slider__track {
    grid-auto-columns: calc((100% - 26px) / 2);
  }
  .slider--clients .slider__track {
    grid-auto-columns: calc((100% - 16px) / 2);
  }
}

@media (max-width: 620px) {
  .wrap {
    padding-left: 22px;
    padding-right: 22px;
  }
  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .band__inner {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .band__inner--pad {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .hero__inner {
    padding-top: 56px;
    padding-bottom: 60px;
  }
  .hero__title {
    font-size: 44px;
  }
  .section__title {
    font-size: 34px;
  }
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .slider--projects .slider__track {
    grid-auto-columns: 100%;
  }
  .slider--clients .slider__track {
    grid-auto-columns: 100%;
  }
  .slider__arrow {
    width: 36px;
    height: 36px;
  }
  .section__head--row {
    align-items: flex-start;
  }
}
