:root {
  --blue-main: #0088cc;
  --blue-dark: #0f4c81;
  --green-bright: #7cb342;
  --green-dark: #2e7d32;
  --dark-bg: #0d1b2a;
  --card-bg: #1b263b;
  --light-bg: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Ajusta el valor al alto aproximado de tu header */
section[id] {
  scroll-margin-top: 90px;
}

body {
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
}

.brand-logo-img {
  max-height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--blue-main);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-main) 0%, var(--blue-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 136, 204, 0.35);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--blue-main);
  color: var(--blue-main);
}

.hero {
  padding: 5.5rem 0 5rem;
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f5e9 100%);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(0, 136, 204, 0.1);
  color: var(--blue-main);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.18;
  color: var(--dark-bg);
  margin-bottom: 1.2rem;
  font-weight: 800;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--blue-main), var(--green-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-card {
  background: var(--dark-bg);
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 30px -10px rgba(13, 27, 42, 0.3);
  border-left: 4px solid var(--green-bright);
}

.hero-card code {
  color: var(--green-bright);
  font-family: monospace;
  font-size: 0.9rem;
}

section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--dark-bg);
  margin-bottom: 0.8rem;
  font-weight: 800;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
  border-color: var(--blue-main);
}

.service-card.ai-card {
  border: 2px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, var(--blue-main), var(--green-bright)) border-box;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: #e1f5fe;
  color: var(--blue-main);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.3rem;
}

.service-card.ai-card .service-icon {
  background: #e8f5e9;
  color: var(--green-dark);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--dark-bg);
  font-weight: 700;
}

.service-card p.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.service-card ul {
  list-style: none;
  margin-top: auto;
}

.service-card ul li {
  margin-bottom: 0.6rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.service-card ul li i {
  color: var(--green-dark);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.corporate-benefits {
  background: var(--light-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.benefit-box {
  background: var(--white);
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.benefit-box i {
  font-size: 2.2rem;
  color: var(--blue-main);
  margin-bottom: 1rem;
}

.benefit-box h4 {
  font-size: 1.1rem;
  color: var(--dark-bg);
  margin-bottom: 0.5rem;
}

.benefit-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stats {
  background: var(--dark-bg);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.8rem;
  color: var(--green-bright);
  margin-bottom: 0.3rem;
  font-weight: 800;
}

.stat-item p {
  color: #a0aec0;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.3rem;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--blue-main);
  color: var(--white);
  border-color: var(--blue-main);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
}

.portfolio-item.hide {
  display: none;
}

.portfolio-img {
  height: 190px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-main);
  font-size: 2.5rem;
}

.portfolio-info {
  padding: 1.3rem;
}

.portfolio-info h4 {
  font-size: 1.1rem;
  color: var(--dark-bg);
  margin-bottom: 0.3rem;
}

.portfolio-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.testimonials {
  background: var(--light-bg);
}

.testimonial-card {
  background: var(--white);
  padding: 2.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.client-info h5 {
  color: var(--dark-bg);
  font-size: 1rem;
}

.client-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-item i {
  width: 42px;
  height: 42px;
  background: #e1f5fe;
  color: var(--blue-main);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-main);
}

#formStatus {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  display: none;
  padding: 0.75rem;
  border-radius: 8px;
}

.status-success {
  background-color: #dcfce7;
  color: var(--green-dark);
  border: 1px solid #bbf7d0;
}

.status-error {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

footer {
  background: var(--dark-bg);
  color: #a0aec0;
  padding: 4rem 0 2rem;
  border-top: 1px solid #1b263b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #1b263b;
  font-size: 0.88rem;
}

.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  .services-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .portfolio-grid,
  .stats-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}