:root {
  --primary: #D32F2F;
  --primary-dark: #B71C1C;
  --primary-light: #FFCDD2;
  --dark: #212121;
  --light: #FAF9F6;
  --cream: #FDFCFA;
  --gray: #616161;
  --white: #FFFFFF;
  --red-accent: #C62828;
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: #FDFCFA;
  background-image: url('assets/pattern-bg.png');
  background-size: 900px auto;
  background-position: right -100px top 40%;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(253, 252, 250, 0.97) 0%, rgba(253, 252, 250, 0.94) 55%, rgba(253, 252, 250, 0.85) 100%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary);
}

.logo, .nav a, .nav .dropdown > a {
  color: var(--dark) !important;
}

.nav a:hover, .nav .dropdown > a:hover {
  color: var(--primary) !important;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 260px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-radius: 0 0 8px 8px;
  padding: 8px 0;
  z-index: 1001;
  border-top: 3px solid var(--primary);
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: var(--primary) !important;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}

.dropdown-content a:hover {
  background: #fff5f5;
  color: var(--primary-dark) !important;
}

.arrow {
  font-size: 0.75rem;
  margin-left: 5px;
  opacity: 1;
  color: var(--primary);
  font-weight: bold;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #000;
  cursor: pointer;
}

.lang-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #ffffff;
  min-width: 70px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-radius: 8px;
  z-index: 1002;
  border: 1px solid #eee;
  margin-top: 4px;
}

.lang-dropdown-content.show {
  display: block;
}

.lang-dropdown-content button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 8px 12px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: #000;
  cursor: pointer;
}

.lang-dropdown-content button:hover {
  background: #f5f5f5;
  color: var(--primary);
}

.lang-switch button:hover {
  background: #f5f5f5;
}

.lang-switch button.active {
  background: var(--primary);
  color: #ffffff;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--primary);
  opacity: 0.5;
  margin: 0 4px;
}

.arrow {
  font-size: 0.65rem;
  margin-left: 4px;
  opacity: 0.8;
}

.nav a, .nav .dropdown > a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  padding: 8px 0;
}

.nav a:hover, .nav .dropdown > a:hover {
  color: var(--primary);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 240px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 1001;
  border-top: 3px solid var(--primary);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: var(--dark);
  font-size: 0.9rem;
}

.dropdown-content a:hover {
  background: #f8f8f8;
  color: var(--primary);
}

.btn-contact {
  background: var(--primary);
  color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-contact:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.lang-switch {
  background: #333;
}

.lang-switch button {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  transition: all 0.2s;
}

.lang-switch button.active {
  background: var(--primary);
  color: white;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--dark);
}

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

.hero p.tagline {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 30px;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-cotiza {
  background: var(--primary);
  color: white;
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-cotiza:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
}

.sticky-cotiza {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(211, 47, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Sections */
section {
  padding: 80px 0;
  position: relative;
}

section .container {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.04);
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 700;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #333;
}

/* Mission Vision */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mv-card {
  background: var(--light);
  padding: 40px;
  border-radius: 12px;
  border-left: 5px solid var(--primary);
}

.mv-card h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

/* Clients */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.client-card {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Value / Why / Services */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-top: 4px solid var(--primary);
  transition: transform 0.2s;
}

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

.card h3 {
  margin-bottom: 10px;
  color: var(--dark);
}

.card ul {
  list-style: none;
  padding-left: 0;
}

.card ul li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.card ul li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Equipment */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.eq-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.eq-card:hover {
  transform: translateY(-8px);
}

.eq-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: #f8f8f8;
  padding: 12px;
}

.eq-card-content {
  padding: 25px;
}

.eq-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

.eq-card .tags {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info p {
  margin: 12px 0;
  font-size: 1.05rem;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-form {
  background: var(--light);
  padding: 40px;
  border-radius: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

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

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 40px 0 20px;
  text-align: center;
}

footer .logo {
  color: white;
  justify-content: center;
  margin-bottom: 20px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.faq-item {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border-top: 4px solid var(--primary);
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .mv-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .nav {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--dark);
  padding: 5px 10px;
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav {
    display: none;
  }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 999;
    gap: 15px;
  }
@media (max-width: 900px) {
  .dropdown:hover .dropdown-content {
    display: none;
  }
  .nav.open .dropdown-content {
    position: static;
    display: block;
    box-shadow: none;
    border-top: none;
    background: #f8f8f8;
    margin-top: 5px;
  }
}
  .nav-divider {
    display: none;
  }
  .header-inner {
    flex-wrap: wrap;
  }
}
