/* =========================================
   EtyK Soft — Desarrollo Web
   ========================================= */

/* =========================================
   HERO WEB
   ========================================= */
.web-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.web-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.web-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 180, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 180, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.web-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.web-glow-1 {
  width: 500px;
  height: 500px;
  top: -60px;
  left: 5%;
  background: radial-gradient(circle, rgba(244,180,0,0.15) 0%, transparent 70%);
}
.web-glow-2 {
  width: 350px;
  height: 350px;
  bottom: -40px;
  right: 8%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
}

.web-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-block: 80px;
}

.web-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.2s;
}
.web-back svg { width: 16px; height: 16px; }
.web-back:hover { color: var(--accent); }

.web-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  margin-top: 16px;
}

.web-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.web-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Code window ---- */
.code-window {
  background: #0d0d0d;
  border: 1px solid rgba(244,180,0,0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(244,180,0,0.06);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.code-bar {
  background: #181818;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.c-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.c-red    { background: #ff5f57; }
.c-yellow { background: #febc2e; }
.c-green  { background: #28c840; }

.c-filename {
  font-size: 0.72rem;
  color: var(--text-faint);
  font-family: var(--font);
  margin-left: 6px;
  display: none;
}

.c-tabs {
  display: flex;
  gap: 2px;
  margin-left: 12px;
}

.c-tab {
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--text-faint);
  padding: 4px 12px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  border: 1px solid transparent;
  border-bottom: none;
}
.c-tab:hover { color: var(--text-muted); }
.c-tab.active {
  color: var(--accent);
  background: rgba(244,180,0,0.07);
  border-color: rgba(244,180,0,0.15);
}

.code-body { padding: 20px; min-height: 230px; }

.code-content {
  display: none;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
}
.code-content.active { display: block; }

/* syntax colors */
.c-kw  { color: #c792ea; }
.c-mod { color: #82aaff; }
.c-cls { color: #ffcb6b; }
.c-fn  { color: #82aaff; }
.c-str { color: #c3e88d; }
.c-num { color: #f78c6c; }
.c-op  { color: #89ddff; }

/* =========================================
   TECNOLOGIAS
   ========================================= */
.web-tecnologias { background: var(--bg-2); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.tech-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(244,180,0,0.08);
}

.tech-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tech-icon svg { width: 30px; height: 30px; }

.python  { background: rgba(55, 118, 171, 0.15); color: #4b8bbe; }
.react   { background: rgba(97, 218, 251, 0.12); color: #61dafb; }
.django  { background: rgba(9, 121, 74, 0.15);   color: #44b78b; }
.node    { background: rgba(104, 160, 99, 0.15);  color: #68a063; }
.html    { background: rgba(227, 79, 38, 0.12);   color: #e34f26; }
.js      { background: rgba(247, 223, 30, 0.12);  color: #f7df1e; }

.tech-info h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.tech-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.tech-uses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tech-uses span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(244,180,0,0.08);
  border: 1px solid rgba(244,180,0,0.2);
  padding: 2px 10px;
  border-radius: 100px;
}

/* =========================================
   TIPOS DE PROYECTO
   ========================================= */
.web-tipos { background: var(--bg); }

.tipos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tipo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.tipo-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.tipo-icon {
  width: 44px;
  height: 44px;
  background: rgba(244,180,0,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.tipo-icon svg { width: 22px; height: 22px; color: var(--accent); }

.tipo-card h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.tipo-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* =========================================
   PROCESO
   ========================================= */
.web-proceso { background: var(--bg-2); }

.web-steps {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin-inline: auto;
}

.web-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: start;
}

.ws-num {
  width: 56px;
  height: 56px;
  background: var(--surface);
  border: 2px solid rgba(244,180,0,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.web-step.active .ws-num {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.ws-body {
  padding-bottom: 32px;
  padding-top: 12px;
}
.ws-body h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.ws-body p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

.ws-connector {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(244,180,0,0.3), rgba(244,180,0,0.08));
  margin-left: 26px;
}

/* =========================================
   CTA
   ========================================= */
.web-cta {
  background: var(--bg);
  padding-block: 80px;
  border-top: 1px solid var(--border);
}

.web-cta-inner {
  background: linear-gradient(135deg, rgba(244,180,0,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(244,180,0,0.2);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}
.web-cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.web-cta-inner p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 32px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .tipos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .web-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 60px;
  }
  .web-subtitle { max-width: 100%; }
  .tech-grid  { grid-template-columns: 1fr; }
  .tipos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .tipos-grid  { grid-template-columns: 1fr; }
  .web-cta-inner { padding: 36px 24px; }
  .code-body { padding: 14px; }
  .code-content { font-size: 0.7rem; }
}
