/* wksoft - 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);
}

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: 2rem;
}

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

.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-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;
}
