/* WK Soft - Software a la Medida */
/* Estilos principales - SEO Friendly & Responsive */

:root {
  --primary: #00cfff;
  --primary-dark: #0055d9;
  --secondary: #ffb000;
  --accent: #23f0ff;
  --dark: #040914;
  --darker: #01040a;
  --ink: #08224f;
  --light: #f4f8fb;
  --gray: #5f6f84;
  --surface: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #1d2c3f;
  background: var(--light);
}

/* Header & Navigation */
header {
  background: rgba(255, 255, 255, 0.96);
  padding: 0.7rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 18px rgba(0, 33, 92, 0.12);
  backdrop-filter: blur(16px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo img {
  width: 160px;
  height: auto;
  display: block;
}

.logo-text {
  color: var(--primary-dark);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0;
  display: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.35rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s, background 0.3s;
  padding: 0.5rem 0.7rem;
  border-radius: 5px;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark);
  background: rgba(0, 207, 255, 0.12);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 3px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background:
    linear-gradient(90deg, rgba(1, 4, 10, 0.86) 0%, rgba(2, 20, 46, 0.72) 48%, rgba(0, 67, 120, 0.45) 100%),
    url('../images/wksoft-hero.jpg') center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 120px 2rem 4rem;
  color: white;
  max-width: none;
  margin: 0;
}

.hero-content {
  max-width: 800px;
  width: min(100%, 1200px);
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #d9efff;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 114, 255, 0.34);
}

.btn-secondary {
  background: linear-gradient(135deg, #ff8a00, var(--secondary));
  color: var(--dark);
}

.btn-secondary:hover {
  box-shadow: 0 10px 20px rgba(255, 176, 0, 0.35);
}

/* Sections */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-kicker {
    margin: 0 0 0.55rem;
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 700;
}
.section-title h2 {
  font-size: 2.5rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 85, 217, 0.08);
  box-shadow: 0 10px 28px rgba(4, 30, 67, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--ink);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--gray);
  line-height: 1.7;
}

/* About Section */
.about {
  background: white;
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 12px 32px rgba(4, 30, 67, 0.1);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  color: var(--ink);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-image {
  text-align: center;
}

.about-image img {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 35, 90, 0.18);
}

/* Projects */
.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(4, 30, 67, 0.1);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--primary-dark), var(--dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: 2rem;
}

.project-info h3 {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--gray);
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--ink);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* Contact Form */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(4, 30, 67, 0.1);
}

.contact-info h3 {
  color: var(--ink);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: #000;
  color: white;
  padding: 3rem 2rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-logo {
  display: block;
  width: min(190px, 100%);
  height: auto;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: #f2f6ff;
  line-height: 1.8;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.16);
  text-align: center;
  color: #b7c4d8;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    padding: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero {
    text-align: center;
  }

  .logo img {
    width: 135px;
  }

  .hero .btn {
    margin: 0.4rem 0 !important;
  }

  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* SEO: Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--dark);
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Page-specific styles */
.page-header {
  background:
    linear-gradient(90deg, rgba(1, 4, 10, 0.9), rgba(0, 47, 94, 0.72)),
    url('../images/business-automation.jpg') center/cover no-repeat;
  padding: 150px 2rem 4rem;
  text-align: center;
  color: white;
  max-width: none;
  margin: 0;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  color: #d9efff;
  max-width: 600px;
  margin: 0 auto;
}

/* Shared landing pages, products and blog */
.breadcrumb-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  color: var(--gray);
  font-size: 0.95rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: #91a0b3;
}

.breadcrumbs a,
.text-link {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 800;
}

.breadcrumbs a:hover,
.text-link:hover {
  text-decoration: underline;
}

.landing-hero {
  max-width: none;
  min-height: 680px;
  margin: 0;
  padding: 145px 2rem 5rem;
  display: flex;
  align-items: center;
  color: white;
  background-position: center;
  background-size: cover;
}

.landing-hero-content {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.landing-hero h1 {
  max-width: 850px;
  margin-bottom: 1.25rem;
  font-size: 3.25rem;
  line-height: 1.12;
}

.landing-hero p {
  max-width: 720px;
  margin-bottom: 2rem;
  color: #e4f5ff;
  font-size: 1.25rem;
}

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.content-copy h2,
.article-body h2 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.25;
}

.content-copy h3,
.article-body h3 {
  margin: 1.75rem 0 0.75rem;
  color: var(--ink);
}

.content-copy p,
.article-body p {
  margin-bottom: 1.25rem;
  color: var(--gray);
}

.media-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(4, 30, 67, 0.16);
}

.feature-grid,
.process-grid,
.product-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-item,
.process-step,
.content-card {
  padding: 1.75rem;
  background: white;
  border: 1px solid rgba(0, 85, 217, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(4, 30, 67, 0.07);
}

.feature-item h3,
.process-step h3,
.content-card h3 {
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.feature-item p,
.process-step p,
.content-card p {
  color: var(--gray);
}

.feature-list {
  margin: 1.25rem 0 1.75rem;
  list-style: none;
}

.feature-list li {
  position: relative;
  margin-bottom: 0.8rem;
  padding-left: 1.75rem;
  color: var(--gray);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-dark);
  font-weight: 900;
}

.process-step strong {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--primary-dark);
  font-size: 1.4rem;
}

.stat-strip {
  max-width: none;
  padding: 3rem 2rem;
  background: var(--ink);
  color: white;
}

.stat-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-strip h2,
.stat-strip h3 {
  color: var(--accent);
}

.product-card,
.article-card {
  overflow: hidden;
  background: white;
  border: 1px solid rgba(0, 85, 217, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(4, 30, 67, 0.08);
}

.product-card img,
.article-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.product-card-body,
.article-card-body {
  padding: 1.75rem;
}

.product-card h2,
.product-card h3,
.article-card h2,
.article-card h3 {
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.product-card p,
.article-card p {
  margin-bottom: 1.25rem;
  color: var(--gray);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 1fr);
  gap: 3rem;
  align-items: start;
}

.article-body {
  padding: 2.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(4, 30, 67, 0.08);
}

.article-body > img {
  display: block;
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem 1.3rem;
  color: var(--gray);
}

.article-body li {
  margin-bottom: 0.65rem;
}

.article-meta {
  margin-bottom: 1.5rem;
  color: var(--gray);
  font-size: 0.95rem;
}

.article-aside {
  position: sticky;
  top: 110px;
}

.callout {
  padding: 2rem;
  background: #eaf8ff;
  border-left: 5px solid var(--primary-dark);
  border-radius: 6px;
}

.callout h2,
.callout h3 {
  color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.gallery-grid figure {
  overflow: hidden;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(4, 30, 67, 0.08);
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 1rem;
  color: var(--gray);
}

.cta-band {
  max-width: none;
  padding: 4rem 2rem;
  background: var(--secondary);
  text-align: center;
}

.cta-band-inner {
  max-width: 850px;
  margin: 0 auto;
}

.cta-band h2 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.cta-band p {
  margin-bottom: 1.5rem;
  color: #332500;
}

@media (max-width: 980px) {
  .nav-links a {
    padding: 0.5rem;
    font-size: 0.88rem;
  }

  .feature-grid,
  .process-grid,
  .product-grid,
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .landing-hero {
    min-height: 620px;
    text-align: center;
  }

  .landing-hero h1 {
    font-size: 2.35rem;
  }

  .split-section,
  .feature-grid,
  .process-grid,
  .product-grid,
  .article-grid,
  .article-layout,
  .gallery-grid,
  .stat-strip-inner {
    grid-template-columns: 1fr;
  }

  .article-body {
    padding: 1.5rem;
  }

  .article-aside {
    position: static;
  }
}
