:root {
  /* Fresh Industrial Palette (Light Theme) */
  --av-charcoal: #2D3436;
  /* Text color */
  --av-blue: #0066CC;
  /* Bright Tech Blue */
  --av-dark-blue: #003366;
  /* Deep Navy for headings */
  --av-light-grey: #F8F9FA;
  /* Section backgrounds */
  --av-white: #FFFFFF;
  --av-text-main: #333333;
  --av-text-light: #666666;
  --av-accent: #00A3E0;
  /* Cyan accent */

  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Spacing */
  --spacing-lg: 6rem;
  --spacing-md: 3rem;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 40px rgba(0, 102, 204, 0.15);
  --shadow-nav: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: var(--font-primary);
  color: var(--av-text-main);
  line-height: 1.6;
  background-color: var(--av-white);
  overflow-x: hidden;
}

/* Typography styles */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--av-dark-blue);
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  color: var(--av-text-light);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

/* Geometric Accents */
.chevron-down {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid var(--av-blue);
  margin: 0 auto;
}

/* Navigation - Fresh & Clean */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--av-dark-blue);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--av-blue);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

/* Hide hamburger menu on desktop */
.menu-toggle {
  display: none;
  cursor: pointer;
}

.nav-links a {
  text-decoration: none;
  color: var(--av-text-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--av-blue);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--av-blue);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1001;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.5rem !important;
  color: var(--av-text-main) !important;
  text-transform: none !important;
  font-size: 0.9rem !important;
  transition: background 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--av-light-grey);
  color: var(--av-blue) !important;
}

.dropdown-menu a::after {
  display: none;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  font-weight: 600;
  color: var(--av-dark-blue);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--av-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group select {
  cursor: pointer;
  background: white;
}

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

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 51, 102, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--av-text-light);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--av-dark-blue);
}

/* Hero Section - Light & Fresh */
.hero {
  position: relative;
  height: 85vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--av-white);
}

.hero-bg-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  /* Softer angle */
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
}

.hero-bg-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  pointer-events: none;
}

.hero-text-box {
  max-width: 650px;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 3.5rem 3rem;
  border-left: 6px solid var(--av-blue);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-radius: 0 8px 8px 0;
}

.hero h1 {
  color: var(--av-dark-blue);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--av-text-light);
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  background: var(--av-blue);
  color: white;
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
  background: var(--av-dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
}

/* Stats Section - Light Grey */
.stats-bar {
  background: var(--av-light-grey);
  padding: 4rem 0;
  color: var(--av-text-main);
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  color: var(--av-blue);
  font-size: 3rem;
  margin-bottom: 0.2rem;
}

.stat-item p {
  color: var(--av-text-light);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* Feature Strips (Business Lines) - White & Light Grey */
.feature-strip {
  padding: var(--spacing-lg) 0;
  position: relative;
}

.feature-strip:nth-child(even) {
  background-color: var(--av-light-grey);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.strip-content h2 {
  position: relative;
  padding-bottom: 1.5rem;
  color: var(--av-dark-blue);
}

.strip-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--av-blue);
}

.strip-image {
  position: relative;
  height: 550px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.strip-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 4px;
}

.strip-image:hover img {
  transform: scale(1.03);
}

/* Solution Cards - Clean White */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.solution-card {
  background: white;
  padding: 2rem;
  border-top: 4px solid var(--av-blue);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  border-radius: 0 0 8px 8px;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.solution-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--av-dark-blue);
}

.solution-card p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--av-text-light);
}

/* Industries Section - Light Blue Accent */
.industries {
  padding: var(--spacing-lg) 0;
  /* Light gradient background */
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  color: var(--av-text-main);
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.industries h2 {
  color: var(--av-dark-blue);
  margin-bottom: 3rem;
}

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

.industry-item {
  background: white;
  padding: 2.5rem 2rem;
  border: 1px solid #e1e8ed;
  transition: all 0.3s ease;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.industry-item h4 {
  color: var(--av-dark-blue);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.industry-item p {
  color: var(--av-text-light);
  line-height: 1.5;
}

.industry-item:hover {
  border-color: var(--av-blue);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.industry-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* Footer - Light Theme */
footer {
  background: var(--av-light-grey);
  color: var(--av-text-main);
  padding: 5rem 0 2rem;
  border-top: 1px solid #e0e0e0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--av-dark-blue);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--av-text-light);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--av-blue);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  border-top: 1px solid #e0e0e0;
  padding-top: 2rem;
  font-size: 0.9rem;
  color: var(--av-text-light);
}

/* Legal Pages Content */
.legal-content h2 {
  color: var(--av-dark-blue);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  color: var(--av-text-main);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--av-text-light);
  line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .hero-bg-container {
    width: 100%;
    clip-path: none;
    opacity: 0.15;
  }

  .strip-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .strip-image {
    order: -1;
    height: 350px;
  }

  .hero-text-box {
    margin: 0 auto;
    text-align: center;
    border-left: none;
    border-top: 6px solid var(--av-blue);
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    color: var(--av-dark-blue);
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
    gap: 0;
  }

  .nav-links.active li {
    border-bottom: 1px solid #eee;
  }

  .nav-links.active li:last-child {
    border-bottom: none;
    margin-top: 1rem;
  }

  .nav-links.active a {
    padding: 1rem 0;
    display: block;
  }

  /* Dropdown móvil */
  .nav-links.active .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--av-light-grey);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    border-radius: 4px;
  }

  .nav-links.active .dropdown-menu a {
    padding: 0.8rem 1.5rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-form>div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .modal-content {
    padding: 1.5rem;
    max-height: 95vh;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }
}

/* Tablet pequeño y móvil grande */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 4rem;
    --spacing-md: 2rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    height: auto;
    min-height: 600px;
    padding-top: 100px;
  }

  .hero-text-box {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .stats-bar {
    padding: 2.5rem 1rem;
  }

  .stats-container {
    gap: 1.5rem;
  }

  .stat-item h3 {
    font-size: 2.2rem;
  }

  .stat-item p {
    font-size: 0.8rem;
  }

  .container {
    padding: 0 1rem;
  }

  .strip-image {
    height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-col:first-child {
    margin-bottom: 1rem;
  }

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

  .industry-item {
    padding: 1.5rem 1rem;
  }

  .industry-icon {
    font-size: 2.5rem;
  }

  .industry-item h4 {
    font-size: 1rem;
  }

  .industry-item p {
    font-size: 0.9rem;
  }

  /* Sección de contacto CTA */
  section[id="contacto"] {
    padding: 3rem 1rem !important;
  }

  /* Mining banner */
  div[style*="height: 300px"] {
    height: 200px !important;
  }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  nav {
    height: 70px;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .logo img {
    height: 35px !important;
  }

  .nav-links.active {
    top: 70px;
    padding: 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    min-height: 550px;
    padding-top: 90px;
  }

  .hero-text-box {
    padding: 1.5rem 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .btn-primary {
    padding: 0.9rem 1.8rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }

  .stats-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .solution-card {
    padding: 1.5rem;
  }

  .solution-card h4 {
    font-size: 1rem;
    flex-wrap: wrap;
  }

  .solution-card p {
    font-size: 0.9rem;
  }

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

  /* Modal en móvil */
  .modal-overlay {
    padding: 0.5rem;
  }

  .modal-content {
    padding: 1.2rem;
    border-radius: 8px;
  }

  .modal-content h2 {
    font-size: 1.3rem;
    padding-right: 2rem;
  }

  .modal-content p {
    font-size: 0.9rem;
  }

  .modal-close {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  /* Footer móvil */
  footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  .footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .footer-links li {
    margin-bottom: 0.6rem;
  }

  .copyright {
    padding-top: 1.5rem;
    font-size: 0.85rem;
  }

  /* Strip image más pequeña en móvil */
  .strip-image {
    height: 220px;
    padding: 5px;
  }

  /* Mining banner en móvil */
  div[style*="height: 300px"] {
    height: 180px !important;
    margin-top: 2rem !important;
  }

  div[style*="height: 300px"] div[style*="padding: 2rem"] {
    padding: 1rem !important;
  }

  div[style*="height: 300px"] h3 {
    font-size: 1.1rem !important;
  }

  div[style*="height: 300px"] p {
    font-size: 0.9rem !important;
  }
}