/* Base Styles & Variables */
:root {
  --primary: #0a2540;
  --accent: #0293a7;
  --bg: #ffffff;
  --text: #333333;
  --light-gray: #e9f1fc;
  /*--light-gray: #f5f7fa;
     --gray: #e6e9ed; */
  --gray: #dddddf;
  --dark-gray: #3d3d3d;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4 {
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #082136;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
}

.btn-accent:hover {
  background-color: #01ecfd;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--primary);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-outline-light {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary);
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.25rem;
  color: var(--dark-gray);
  margin-bottom: 2rem;
}

.main-nav a.active {
    color: var(--accent);
    font-weight: 600;
}

.main-nav a.active::after {
    width: 100%;
    background-color: var(--accent);
}

/* Header Styles */
.header {
  background-color: var(--bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.slogan {
  font-size: 0.85rem;
  color: var(--dark-gray);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 0;
  position: relative;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--accent);
  color: white !important;
  padding: 8px 20px !important;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background-color: #00a5bb;
}

.nav-cta::after {
  display: none !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  z-index: 101;
}

/* Hero Section */
.hero {
  background-color: var(--light-gray);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--dark-gray);
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.hero-image-container {
  flex: 1;
  position: relative;
}

.hero-image {
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Clients Section */
.clients-section {
  padding: 60px 0;
  background-color: white;
  border-top: 1px solid var(--gray);
  border-bottom: 1px solid var(--gray);
}

.clients-title {
  text-align: center;
  color: var(--dark-gray);
  margin-bottom: 30px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  align-items: center;
}

.client-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-gray);
  font-weight: 500;
  opacity: 0.7;
  transition: var(--transition);
}

.client-logo:hover {
  opacity: 1;
}

/* AOI Inspector Section */
.aoi-section {
  background-color: var(--bg);
}
.aoi-section .section-header .btn {
  margin-bottom: 40px;
}

.aoi-content-wrapper {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.aoi-image-container {
  flex: 1;
}

.aoi-image {
  overflow: hidden;
}

.aoi-image img {
  width: 80%;
  height: auto;
  display: block;
}

.aoi-description {
  flex: 1;
}

.lead-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--dark-gray);
  margin-bottom: 30px;
}

.feature-highlights {
  list-style: none;
  margin-top: 30px;
}

.feature-highlights li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.feature-highlights li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--gray);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.feature-card .card-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--dark-gray);
  font-size: 0.95rem;
}

/* Smart Software Section */
.software-section {
  background-color: var(--light-gray);
}

.software-section .section-header .btn {
  margin-bottom: 40px;
}

.software-content-wrapper {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.software-description {
  flex: 1;
  position: sticky;
  top: 100px;
}

.value-prop {
  background-color: var(--bg);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  margin-bottom: 30px;
}

.value-prop h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.value-prop p {
  color: var(--dark-gray);
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  background-color: var(--bg);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.software-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-item {
  display: flex;
  gap: 20px;
  background-color: var(--bg);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  align-items: flex-start;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 5px;
}

.feature-text h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-text p {
  color: var(--dark-gray);
  line-height: 1.6;
}

/* Consulting Services Section */
.consulting-section {
  background-color: var(--bg);
}

.consulting-section .section-header .btn {
  margin-bottom: 40px;
}

.consulting-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.process-step {
  background-color: var(--bg);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--gray);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.process-step h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.process-step p {
  color: var(--dark-gray);
}

/* Why Dexill Section */
.why-section {
  background-color: var(--light-gray);
}

.why-section .section-header .btn {
  margin-bottom: 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.benefit-card {
  background-color: var(--bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.benefit-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.benefit-card h3 i {
  color: var(--accent);
}

.benefit-card p {
  color: var(--dark-gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

.why-list-container {
  display: flex;
  gap: 60px;
}

.why-list {
  flex: 1;
  font-size: 1.12rem;
}

.why-list h3 {
  margin-bottom: 20px;
  color: var(--primary);
  text-align: center;
  font-size: 2rem;
}

.why-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 20px 40px; /* row-gap column-gap */
  padding: 0;
}

.why-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.why-list li i {
  color: var(--accent);
  margin-top: 3px;
}

/* CTA Section */
.cta-section {
  background-color: var(--bg);
  color: var(--primary);
  padding: 10px 0;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 60px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  backdrop-filter: blur(5px);
}

.cta-title {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 2.2rem;
}

.cta-text {
  margin-bottom: 30px;
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Footer base */

.footer {
  background-color: var(--primary);

  color: #ddd;
  padding: 40px 0 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
}
.footer-content.minimal-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* Ajuste para empujar contacto hacia la derecha */
.footer-contact.align-right {
  margin-left: auto;
  text-align: right;
}

/* Container centering */
.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Flex layout for main content */
.footer-content.minimal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 20px;
}

/* Logo and description */
.footer-about {
  flex: 1;
}

.footer-logo {
  width: 100%;
  margin-bottom: 10px;
}

.footer-about p {
  margin-top: 0;
  color: #ccc;
  line-height: 1.6;
  text-align: center;
}

/* Contact section */
.footer-contact {
  flex: 1 1 300px;
}

.footer-contact h3 {
  margin-bottom: 10px;
  color: #fff;
}

.footer-contact p,
.footer-contact i {
  color: #ccc;
  margin: 5px 0;
}

/* Divider */
.footer-divider {
  border: 0;
  height: 1px;
  background-color: #333;
  margin: 20px 0;
}

/* Footer bottom section */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
  color: #aaa;
}

.footer-legal a {
  color: #aaa;
  margin-left: 15px;
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content,
  .aoi-content-wrapper,
  .software-content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .hero-image-container,
  .aoi-image-container {
    margin-top: 30px;
  }

  .hero-text,
  .aoi-description,
  .software-description {
    max-width: 100%;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-description,
  .hero-subtitle {
    font-size: 1rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .main-nav ul {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }
  .footer-content.minimal-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal a {
    margin-left: 0;
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.6rem;
  }

  .btn,
  .nav-cta {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .clients-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }
}
