/* ==========================================================================
   DuqueIT — Hoja de estilos principal
   Tokens de marca: editar aquí para cambiar toda la web
   ========================================================================== */

:root {
  --bg: #122017;            /* Fondo página */
  --surface: #191E33;       /* Superficie / cards */
  --elevated: #20253C;      /* Elevado */
  --border: #232948;        /* Borde */
  --text: #F6F8F7;          /* Texto */
  --text-muted: #9AA3B2;    /* Texto atenuado */
  --green: #39E079;         /* Verde marca */
  --green-hover: #2BC56A;   /* Verde hover */
  --blue: #2B4BEE;          /* Azul secundario */
  --blue-deep: #1A38CF;     /* Azul profundo */
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --radius: 4px;
  --radius-card: 8px;
  --radius-lg: 12px;
  --font: 'Manrope', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

a { color: var(--green); }
a:hover { color: var(--green-hover); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

::selection { background: rgba(57, 224, 121, 0.3); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(18, 32, 23, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo img { height: 40px; display: block; }

.nav { display: flex; align-items: center; gap: 36px; }

.nav__link {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--green); }
.nav__link--active { color: var(--green); font-weight: 700; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--bg);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 9999px;
  transition: background 0.2s, transform 0.2s;
}
.btn-cta:hover { background: var(--green-hover); color: var(--bg); }

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px 16px;
  border-top: 1px solid var(--border);
  background: rgba(18, 32, 23, 0.97);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 8px;
  border-radius: var(--radius-card);
}
.mobile-menu a:hover, .mobile-menu .nav__link--active { color: var(--green); }
.mobile-menu .btn-cta { justify-content: center; margin-top: 8px; color: var(--bg); }

@media (max-width: 880px) {
  .nav { display: none; }
  .burger { display: flex; }
}

/* ==========================================================================
   Hero (Inicio)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 130px 24px 100px;
}

.hero__conic {
  position: absolute;
  left: 50%; top: 50%;
  width: 165vmax; height: 165vmax;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 180deg at 50% 50%, var(--blue) 0deg, #111422 180deg, var(--blue) 360deg);
  opacity: 0.5;
  will-change: transform;
}

.hero__halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 50% at 50% 42%, rgba(57, 224, 121, 0.12) 0%, transparent 70%);
  will-change: transform, opacity;
}

.hero__circuit { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.hero__circuit--1 { opacity: 0.55; }
.hero__circuit--2 { opacity: 0.5; }

.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 32, 23, 0.2) 0%, rgba(18, 32, 23, 0) 45%, var(--bg) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.tag-mono {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  border: 1px solid rgba(57, 224, 121, 0.3);
  background: rgba(57, 224, 121, 0.08);
  padding: 6px 16px;
  border-radius: 9999px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.hero__subtitle {
  margin: 0;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.6;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--bg);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 9999px;
  box-shadow: var(--shadow);
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--green-hover); color: var(--bg); transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(25, 30, 51, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 9999px;
  transition: border-color 0.2s, transform 0.2s;
}
.btn-secondary:hover { border-color: var(--green); color: var(--text); transform: translateY(-2px); }

/* ==========================================================================
   Secciones
   ========================================================================== */

.section { position: relative; padding: 96px 24px; }

.section-head { margin-bottom: 48px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 9999px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

/* Tarjetas de servicio (Inicio) */

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: var(--shadow); }

.card--service {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  text-decoration: none;
  color: var(--text);
}
.card--service:hover { color: var(--text); }
.card--service h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.card--service p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-muted); }

.icon-box {
  width: 52px; height: 52px;
  background: rgba(57, 224, 121, 0.12);
  border: 1px solid rgba(57, 224, 121, 0.3);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box--sm { width: 44px; height: 44px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  margin-top: auto;
}

/* Tarjetas de proyecto */

.grid-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.card--project { overflow: hidden; display: flex; flex-direction: column; }

.card__thumb {
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(45deg, var(--surface) 0 14px, var(--elevated) 14px 28px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__thumb span { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3, .card__body h2 { margin: 0; font-size: 18px; font-weight: 700; }
.card__body p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); flex: 1; }

.badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  background: rgba(57, 224, 121, 0.1);
  border: 1px solid rgba(57, 224, 121, 0.25);
  padding: 4px 10px;
  border-radius: 9999px;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 6px;
}

/* Proceso */

.card--step { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.card--step:hover { transform: none; box-shadow: none; border-color: var(--border); }
.card--step__top { display: flex; align-items: center; justify-content: space-between; }
.card--step__num { font-family: var(--mono); font-size: 13px; color: var(--text-muted); }
.card--step h3 { margin: 0; font-size: 18px; font-weight: 700; }
.card--step p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* CTA final */

.cta-block {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.cta-block__conic {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg at 50% 50%, var(--blue) 0deg, #111422 180deg, var(--blue) 360deg);
  opacity: 0.5;
}
.cta-block__halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(57, 224, 121, 0.12) 0%, transparent 70%);
}
.cta-block__content {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 8vw, 96px) 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.cta-block h2 {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 640px;
}
.cta-block p { margin: 0; font-size: 17px; color: var(--text-muted); max-width: 520px; line-height: 1.6; }

/* ==========================================================================
   Cabecera de página interior
   ========================================================================== */

.page-hero {
  position: relative;
  padding: 160px 24px 56px;
  overflow: hidden;
}
.page-hero__conic {
  position: absolute;
  left: 50%; top: -60vmax;
  width: 120vmax; height: 120vmax;
  transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 50%, var(--blue) 0deg, #111422 180deg, var(--blue) 360deg);
  opacity: 0.25;
  border-radius: 9999px;
}
.page-hero__halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 50% 0%, rgba(57, 224, 121, 0.1) 0%, transparent 70%);
}
.page-hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.page-hero p {
  margin: 0;
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}

/* ==========================================================================
   Filtros (Trabajos)
   ========================================================================== */

.pills { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.pill {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.pill:hover { border-color: var(--green); color: var(--green); }
.pill.is-active {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
  font-weight: 800;
}

.is-hidden { display: none !important; }

/* ==========================================================================
   Servicios (detalle)
   ========================================================================== */

.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

.service-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.service-block .icon-box { width: 56px; height: 56px; }
.service-block h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.service-block > div > p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-muted); }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
}
.check-list svg { flex-shrink: 0; margin-top: 1px; }

.budget-note {
  margin-top: auto;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.budget-note p { margin: 0; font-size: 15px; line-height: 1.6; }
.budget-note .btn-primary { align-self: flex-start; font-size: 15px; padding: 12px 26px; }

/* ==========================================================================
   Contacto
   ========================================================================== */

.grid-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; }

.field input,
.field select,
.field textarea {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(57, 224, 121, 0.18);
}
.field select { cursor: pointer; }
.field select option { background: var(--elevated); color: var(--text); }
.field textarea { resize: vertical; min-height: 130px; }

.form-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: var(--radius-card);
  padding: 16px;
}
.form-msg[hidden] { display: none; }
.form-msg p { margin: 0; font-size: 14px; line-height: 1.5; }
.form-msg--ok { background: rgba(57, 224, 121, 0.1); border: 1px solid rgba(57, 224, 121, 0.3); }
.form-msg--error { background: rgba(43, 75, 238, 0.12); border: 1px solid rgba(43, 75, 238, 0.4); }
.form-msg svg { flex-shrink: 0; margin-top: 1px; }

.contact-form .btn-primary {
  align-self: flex-start;
  border: none;
  font-family: var(--font);
  cursor: pointer;
}
.contact-form .btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }

.aside-cards { display: flex; flex-direction: column; gap: 24px; }

.aside-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aside-card h2 { margin: 0; font-size: 18px; font-weight: 700; }
.aside-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.aside-card .mono-link { font-family: var(--mono); font-size: 15px; color: var(--green); text-decoration: none; }
.aside-card .mono-link:hover { color: var(--green-hover); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { border-top: 1px solid var(--border); background: var(--bg); }

.footer__inner {
  padding: 48px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.footer__logo img { height: 34px; display: block; }
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.footer__nav a:hover { color: var(--green); }
.footer__email { font-family: var(--mono); font-size: 14px; color: var(--green); text-decoration: none; }
.footer__email:hover { color: var(--green-hover); }
.footer__copy { border-top: 1px solid var(--border); }
.footer__copy div { padding: 20px 24px; font-size: 13px; color: var(--text-muted); }

/* ==========================================================================
   Animaciones de aparición (scroll reveal)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Accesibilidad: sin movimiento si el usuario lo pide */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__conic, .hero__halo, .hero__circuit { transform: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
