/* ============================================
   SoporTek — Estética TakTek (tech, geek, hacker)
   ============================================ */

:root {
  --bg-dark: #0a0a0b;
  --bg-card: #121214;
  --bg-elevated: #1a1a1e;
  --accent-blue: #29334f;
  --accent-blue-light: #3d4a6b;
  --text-white: #ffffff;
  --text-muted: #a0a0a8;
  --text-dim: #6b6b72;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --glow-blue: rgba(41, 51, 79, 0.4);
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-white);
  background-color: var(--bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grid background - tech aesthetic */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(41, 51, 79, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 51, 79, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent-blue-light);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 140px;
  min-width: 0;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text-white);
}

/* Main content */
main {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
}

/* Hero */
.hero {
  padding: 1.5rem 0 3rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1 1 320px;
  text-align: left;
  min-width: 0;
}

.hero-image {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-white);
  max-width: min(560px, 100%);
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: min(560px, 100%);
  margin: 0 0 0.5rem;
}

.hero-subtitle:last-of-type {
  margin-bottom: 2rem;
}

.hero-cta {
  margin-top: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  color: var(--bg-dark);
  background: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-white);
}

.btn-secondary {
  color: var(--text-white);
  background: transparent;
  border: 2px solid var(--accent-blue-light);
}

.btn-secondary:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* Resuelve section */
.resuelve {
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
}

.resuelve-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resuelve-list li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.resuelve-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  color: var(--accent-blue-light);
}

/* Beneficios section */
.beneficios {
  padding: 2rem 0;
}

.beneficios-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.beneficios-list li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.beneficios-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  color: var(--accent-blue-light);
}

/* Section titles */
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 3rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  word-wrap: break-word;
}

.section-title .mono {
  font-size: 0.9rem;
  color: var(--accent-blue-light);
}

/* Features grid */
.features-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 24px var(--glow-blue);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  color: var(--accent-blue-light);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  overflow-wrap: break-word;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* CTA section */
.cta {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-align: center;
}

.cta-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: min(560px, 100%);
  margin-inline: auto;
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.footer-icon {
  opacity: 0.9;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0;
  text-align: center;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: break-word;
}

.footer-copy a {
  color: var(--accent-blue-light);
  text-decoration: none;
  font-weight: 500;
}

.footer-copy a:hover {
  color: var(--text-white);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 0.875rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .logo-img {
    height: 36px;
  }

  .nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 1.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    font-size: 0.85rem;
    white-space: nowrap;
  }

  main {
    padding: 2rem 1.25rem 3rem;
    max-width: 100%;
  }

  .hero {
    padding: 1rem 0 2rem;
  }

  .hero-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-content {
    order: 2;
    text-align: center;
  }

  .hero-image {
    order: 1;
    justify-content: center;
  }

  .hero-lead,
  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-lead,
  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.1rem;
    margin: 2rem 0 1rem;
    flex-wrap: wrap;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .cta {
    margin-top: 3rem;
    padding: 2rem 1.25rem;
  }

  .footer {
    margin-top: 3rem;
    padding: 1.5rem 1.25rem;
  }

  .footer-copy {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.75rem 1rem;
  }

  .logo-img {
    height: 32px;
  }

  main {
    padding: 1rem 1rem 2.5rem;
  }

  .hero {
    padding: 0.75rem 0 1.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-lead,
  .hero-subtitle {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 1rem;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
  }

  .feature-icon svg {
    width: 20px;
    height: 20px;
  }

  .cta {
    padding: 1.5rem 1rem;
  }

  .footer-icon {
    width: 28px;
    height: 28px;
  }

  .footer-copy {
    font-size: 0.75rem;
  }

  .footer {
    padding: 1.25rem 1rem;
  }

  .resuelve-list li,
  .beneficios-list li {
    padding-left: 1.25rem;
  }
}
