/* ArTek Landing — Estética del sistema ArTek (modo claro, paleta arte) */

:root {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  /* Paleta ArTek - modo claro */
  --color-palette-1: #5c0010;
  --color-palette-2: #9e3b42;
  --color-palette-3: #e4717a;
  --color-palette-4: #73d9bc;
  --color-palette-5: #9befd7;

  --color-bg: #e8e8e8;
  --color-surface: #ffffff;
  --color-border: #d0d0d0;
  --color-text: #1a1a1a;
  --color-text-muted: #5c0010;
  --color-accent: #9e3b42;
  --color-accent-hover: #5c0010;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 2rem;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  gap: 0;
  align-items: center;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.65rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  color: var(--color-text);
  background-color: rgba(158, 59, 66, 0.06);
}

.nav-links a.nav-cta {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background-color: rgba(158, 59, 66, 0.08);
}

.nav-links a.nav-cta:hover {
  background-color: rgba(158, 59, 66, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 2rem 1.5rem;
  background-color: var(--color-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/artekwebpict02.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 232, 232, 0.92) 0%, rgba(232, 232, 232, 0.75) 50%, rgba(232, 232, 232, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

.hero-logo {
  height: 3.5rem;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.hero-subtitle {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.highlight {
  color: var(--color-accent);
}

.hero-desc {
  color: var(--color-text-muted);
  font-size: clamp(0.9rem, 2vw, 1rem);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background-color: var(--color-surface);
}

.btn-large {
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
}

/* Sections */
.section {
  padding: 3rem 1.5rem;
}

.section-dark {
  background-color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--color-border);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section-tag {
  display: none;
}

.section-title {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--color-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Intro */
.intro-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.intro-block {
  flex: 1;
  min-width: min(280px, 100%);
}

.intro-image {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.intro-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.intro-text strong {
  color: var(--color-text);
}

/* Features simple list */
.features-simple {
  list-style: none;
  max-width: 700px;
}

.features-simple li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.features-simple li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.1rem 1.25rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.feature-icon {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.feature-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.feature-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0;
}

.feature-card ul {
  list-style: none;
}

.feature-card li {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}

.feature-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

/* Benefits wrapper with image */
.benefits-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.benefits-block {
  flex: 1;
  min-width: min(280px, 100%);
}

.benefits-image {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

/* Benefits two columns (default for other uses) */
.benefits-columns {
  list-style: none;
  max-width: 700px;
  columns: 2;
  column-gap: 2rem;
}

/* Benefits: texto en una columna, imagen en la segunda */
.benefits-wrapper .benefits-columns {
  columns: 1;
}

.benefits-columns li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  break-inside: avoid;
}

.benefits-columns li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

/* Benefits grid (legacy) */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.benefit-item code {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  flex-shrink: 0;
}

.benefit-item span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Tech stack */
.tech-stack {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tech-item {
  padding: 0.5rem 1rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.95rem;
}

.tech-bracket {
  color: var(--color-accent);
}

.tech-name {
  color: var(--color-text);
  margin: 0 0.2rem;
}

.tech-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 600px;
}

/* CTA section */
.section-cta {
  text-align: center;
  padding: 3rem 1.5rem;
}

.cta-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.section-cta .btn-primary {
  background-color: var(--color-palette-4);
  color: var(--color-text);
  border-color: var(--color-palette-4);
}

.section-cta .btn-primary:hover {
  background-color: var(--color-palette-5);
  border-color: var(--color-palette-5);
}

/* Footer */
.footer {
  padding: 1.5rem 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  background-color: var(--color-surface);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-icon {
  height: 1.5rem;
  width: auto;
  opacity: 0.7;
  flex-shrink: 0;
}

.footer p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive — Tablet */
@media (max-width: 900px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .intro-wrapper {
    gap: 1.5rem;
  }

  .intro-image {
    max-width: 100%;
  }
}

/* Responsive — Mobile */
@media (max-width: 768px) {
  .nav {
    padding: 0.5rem 1rem;
  }

  .nav-links {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 1rem;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0.25rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 52px);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: block;
    z-index: 101;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-toggle span {
    transition: transform 0.3s, opacity 0.3s;
  }

  .hero {
    min-height: auto;
    padding: 2.5rem 1rem 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-logo {
    height: 2.75rem;
    margin-bottom: 1.25rem;
  }

  .hero-desc:last-of-type {
    margin-bottom: 1.5rem;
  }

  .hero-cta .btn {
    min-width: 140px;
    padding: 0.6rem 1.25rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .feature-card {
    padding: 1rem 1.1rem;
  }

  .benefits-list {
    grid-template-columns: 1fr;
  }

  .benefits-columns {
    columns: 1;
    padding-left: 0;
  }

  .intro-wrapper,
  .benefits-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }

  .benefits-image {
    max-width: 100%;
    order: -1;
  }

  .intro-image {
    max-width: 100%;
    border-radius: 6px;
  }

  .section-cta {
    padding: 2.5rem 1rem;
  }

  .section-cta .btn-large {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .footer {
    padding: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* Responsive — Small phones */
@media (max-width: 480px) {
  .hero {
    padding: 2rem 0.75rem 1.5rem;
  }

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

  .section {
    padding: 1.75rem 0.75rem;
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .intro-text,
  .feature-text {
    font-size: 0.9rem;
  }

  .benefits-columns li {
    font-size: 0.9rem;
  }

  .section-cta .btn-large {
    max-width: 100%;
  }
}
