/* ============================================================
   DeTechSolutions — Brand Identity v2
   Paleta: Navy #08122e + Azul eléctrico #1565FF
   Tipografía: Syne (display) + Figtree (cuerpo)
   ============================================================ */

:root {
  --navy:        #08122e;
  --navy-2:      #0e1c42;
  --navy-border: rgba(255,255,255,0.07);
  --blue:        #1565FF;
  --blue-mid:    #1e6fff;
  --blue-glow:   rgba(21, 101, 255, 0.14);
  --blue-glow2:  rgba(21, 101, 255, 0.08);

  --ink:         #08122e;
  --ink-mid:     #364059;
  --ink-dim:     #6b7a9a;

  --white:       #ffffff;
  --surface:     #f4f6fb;
  --border:      #dde1ec;

  --amber:       #E07B28;
  --green:       #18b957;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Figtree', sans-serif;

  --maxw:   1160px;
  --pad:    clamp(1.25rem, 5vw, 2.5rem);
  --radius: 12px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
}

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

/* ── Layout ── */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--blue);
  flex-shrink: 0;
  display: block;
}
.on-dark .eyebrow { color: rgba(255,255,255,0.55); }
.on-dark .eyebrow::before { background: rgba(255,255,255,0.35); }

/* ── Navegación ── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 18, 46, 0.96);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--navy-border);
}

.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand em { font-style: normal; color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: white; }
.nav-links .cta {
  color: white !important;
  background: var(--blue);
  padding: 0.5rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}
.nav-links .cta:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(21,101,255,0.38);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  padding: 0.48rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 740px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #08122e;
    border-bottom: 1px solid var(--navy-border);
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.6rem var(--pad); }
  .nav-links .cta { display: inline-block; }
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  padding: 0.82rem 1.65rem;
  border-radius: 9px;
  border: 1.5px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(21,101,255,0.32);
}
.btn-ghost {
  color: white;
  border-color: rgba(255,255,255,0.22);
}
.btn-ghost:hover { border-color: white; }
.btn-outline {
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ── Animaciones ── */
.rise {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.8s cubic-bezier(0.22, 0.7, 0.3, 1) forwards;
}
.d1 { animation-delay: 0.06s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.26s; }
.d4 { animation-delay: 0.38s; }
.d5 { animation-delay: 0.5s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Hero ── */
.hero {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6.5rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Malla de puntos */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(21,101,255,0.2) 1px, transparent 1px);
  background-size: 38px 38px;
}
/* Resplandor lateral */
.hero-bg::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 70%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(21,101,255,0.13) 0%, transparent 60%);
}

/* Marca de agua DT */
.hero-mark {
  position: absolute;
  right: -1%;
  bottom: -8%;
  font-family: var(--font-display);
  font-size: clamp(14rem, 28vw, 26rem);
  font-weight: 800;
  color: rgba(255,255,255,0.022);
  line-height: 1;
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.9rem, 7.5vw, 5.6rem);
  color: white;
  max-width: 14ch;
  margin: 1.2rem 0 1.7rem;
}
.hero h1 .accent { color: var(--blue); }

.hero .lede {
  color: rgba(255,255,255,0.5);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 52ch;
  margin-bottom: 2.6rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-divider {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--navy-border);
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.hero-stat .num span { color: var(--blue); }
.hero-stat .lbl {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.2rem;
}
.hero-vsep {
  width: 1px;
  height: 36px;
  background: var(--navy-border);
}

/* ── Secciones ── */
section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

.section-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0.8rem 0 1rem;
}
.section-head p { color: var(--ink-dim); max-width: 52ch; }

.section-navy { background: var(--navy); }
.section-surface { background: var(--surface); }

/* ── Tarjetas de producto (index) ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(295px, 1fr));
  gap: 1.25rem;
}

.product-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.7rem, 3.5vw, 2.3rem);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22,0.7,0.3,1), border-color 0.28s, box-shadow 0.28s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(8,18,46,0.11);
}
.product-card.soon { background: var(--surface); border-style: dashed; cursor: default; }
.product-card.soon:hover { transform: none; box-shadow: none; }

/* Barra lateral de color */
.product-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}
.product-card.camper::before { background: var(--amber); }
.product-card.garden::before { background: var(--blue); }
.product-card.soon::before  { background: var(--border); }

.product-card.camper:hover { border-color: var(--amber); }
.product-card.garden:hover { border-color: var(--blue); }

.product-icon {
  width: 50px; height: 50px;
  border-radius: 11px;
  display: grid; place-items: center;
  border: 1.5px solid;
}
.camper .product-icon { color: var(--amber); border-color: rgba(224,123,40,0.25); background: rgba(224,123,40,0.07); }
.garden .product-icon { color: var(--blue);  border-color: rgba(21,101,255,0.2);  background: var(--blue-glow2); }
.soon   .product-icon { color: var(--ink-dim); border-color: var(--border); background: var(--surface); }

.product-badge {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.camper .product-badge { color: var(--amber); }
.garden .product-badge { color: var(--blue); }
.soon   .product-badge { color: var(--ink-dim); }

.product-card h3 { font-size: clamp(1.4rem, 2.8vw, 1.75rem); }
.product-card .desc { color: var(--ink-dim); flex: 1; }

.product-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.product-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.22rem 0.62rem;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-weight: 700;
  font-size: 0.93rem;
  margin-top: 0.3rem;
}
.camper .product-link { color: var(--amber); }
.garden .product-link { color: var(--blue); }
.product-link .arr { transition: transform 0.22s; }
.product-card:hover .product-link .arr { transform: translateX(5px); }

/* ── Bloque "nosotros" en navy ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

.about-copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: white;
  margin: 0.8rem 0 1.5rem;
}
.about-copy p { color: rgba(255,255,255,0.45); margin-bottom: 1rem; }
.about-copy strong { color: white; }

.values { display: grid; gap: 0; }
.value {
  border-top: 1px solid var(--navy-border);
  padding: 1.25rem 0;
}
.value:last-child { border-bottom: 1px solid var(--navy-border); }
.value h3 {
  font-size: 1rem;
  color: white;
  margin-bottom: 0.35rem;
}
.value p { font-size: 0.93rem; color: rgba(255,255,255,0.4); }

/* ── Contacto ── */
.contact-wrap {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 680px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-wrap h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin: 0.5rem 0 0.85rem;
}
.contact-wrap p { color: var(--ink-dim); max-width: 42ch; }
.contact-btns { display: flex; flex-direction: column; gap: 0.7rem; min-width: 195px; }
.contact-btns .btn { justify-content: center; }

/* ── Footer ── */
footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-border);
  padding: 2rem 0 2.6rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.footer-inner p { font-size: 0.87rem; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.87rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }

/* ============================================================
   PÁGINAS DE PRODUCTO
   ============================================================ */
.product-hero {
  background: var(--navy);
  padding-top: 9rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(21,101,255,0.18) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}
.product-hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 65%;
  height: 90%;
  background: radial-gradient(ellipse, rgba(21,101,255,0.11) 0%, transparent 65%);
  pointer-events: none;
}
.product-hero-inner { position: relative; z-index: 1; }

.product-hero .back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.product-hero .back:hover { color: white; }

.product-hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  color: white;
  max-width: 16ch;
  margin: 0.9rem 0 1.5rem;
}
.product-hero p.lede {
  color: rgba(255,255,255,0.48);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 54ch;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Temas de producto */
.theme-camper .accent         { color: var(--amber); }
.theme-camper .eyebrow        { color: var(--amber); }
.theme-camper .eyebrow::before{ background: var(--amber); }
.theme-camper .btn-primary    { background: var(--amber); border-color: var(--amber); }
.theme-camper .btn-primary:hover { background: #d0721f; box-shadow: 0 10px 28px rgba(224,123,40,0.32); }
.theme-camper .step-num       { color: var(--amber); }
.theme-camper .feat-icon      { color: var(--amber); background: rgba(224,123,40,0.08); border-color: rgba(224,123,40,0.22); }

.theme-garden .accent         { color: var(--green); }
.theme-garden .eyebrow        { color: var(--green); }
.theme-garden .eyebrow::before{ background: var(--green); }
.theme-garden .feat-icon      { color: var(--green); background: rgba(24,185,87,0.08); border-color: rgba(24,185,87,0.22); }

/* ── Grid de características ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  gap: 1px;
  background: var(--border);
}
.feat {
  background: var(--white);
  padding: 1.8rem;
  transition: background 0.2s;
}
.feat:hover { background: var(--surface); }

.feat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  border: 1.5px solid rgba(21,101,255,0.2);
  color: var(--blue);
  background: var(--blue-glow2);
  margin-bottom: 1rem;
}
.feat h3 { font-size: 1.06rem; margin-bottom: 0.4rem; }
.feat p  { font-size: 0.94rem; color: var(--ink-dim); }

/* ── Pasos ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  counter-reset: paso;
}
.step { counter-increment: paso; }
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.8rem;
}
.step-num::before { content: "0" counter(paso); }
.step h3 { font-size: 1.06rem; margin-bottom: 0.4rem; }
.step p  { font-size: 0.93rem; color: var(--ink-dim); }

/* ── Caja de contacto (producto) ── */
.cta-box {
  background: var(--navy);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 680px) { .cta-box { grid-template-columns: 1fr; } }
.cta-box h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: white;
  margin: 0.5rem 0 0.8rem;
}
.cta-box p  { color: rgba(255,255,255,0.45); max-width: 42ch; }
.cta-btns   { display: flex; flex-direction: column; gap: 0.7rem; min-width: 190px; }
.cta-btns .btn { justify-content: center; }
