/* ENGCO EC - DARK INDUSTRIAL (based on V3) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Oswald:wght@500;700;900&display=swap');
:root {
  --e-orange: #FF6700;
  --e-black: #0F0F0F;
  --e-dark: #141414;
  --e-grey: #222;
  --e-text: #e5e5e5;
  --e-border: rgba(255,255,255,0.15);
  --e-glow: 0 0 20px rgba(255,103,0,0.2);
  --radius: 6px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--e-black);
  color: var(--e-text);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
}
h1, h2, h3, h4, .btn-pro, .cat-title, .service-title {
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
a { color: var(--e-text); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--e-orange); }
.container { max-width: 1300px; margin: 0 auto; padding: 0 40px; }
.hero {
  background: linear-gradient(135deg, rgba(15,15,15,0.92) 0%, rgba(20,20,20,0.75) 55%, rgba(15,15,15,0.95) 100%),
              url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 120px 0 100px 0;
  text-align: center;
  border-bottom: 1px solid var(--e-orange);
}
.hero h1 { font-size: 3.4rem; font-weight: 900; margin-bottom: 20px; line-height: 1.05; }
.hero h1 span { color: var(--e-orange); }
.hero p { font-size: 1.2rem; color: #ccc; max-width: 720px; margin: 0 auto 30px; }
.btn-pro, .btn-primary {
  display: inline-block;
  background: var(--e-orange);
  color: #fff;
  padding: 16px 34px;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
  transition: transform 0.3s, background 0.3s;
}
.btn-pro:hover, .btn-primary:hover {
  transform: translateY(-3px);
  background: #e55a00;
}
section { padding: 80px 0; }
section:nth-child(even) { background: var(--e-dark); }
h2 { font-size: 2.4rem; color: #fff; margin-bottom: 30px; border-bottom: 2px solid #333; padding-bottom: 12px; }
h2 span { color: var(--e-orange); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; margin-top: 30px; }
.card {
  background: #161616;
  border: 1px solid #333;
  padding: 28px;
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--e-orange);
  transform: translateY(-6px);
  box-shadow: var(--e-glow);
}
.card h3 { color: #fff; margin-bottom: 12px; font-family: 'Oswald', sans-serif !important; }
.card p { color: #bbb; font-size: 0.95rem; }
.card .btn-pro { margin-top: 14px; padding: 10px 20px; font-size: 0.75rem; }
.contact-form { max-width: 640px; margin: 0 auto; background: #161616; padding: 40px; border-radius: var(--radius); border: 1px solid #333; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: #fff; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px;
  background: #0a0a0a; color: #fff;
  border: 1px solid #333; border-radius: var(--radius);
}
.footer {
  background: #050505;
  border-top: 5px solid var(--e-orange);
  padding: 60px 0 30px 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px;
  max-width: 1300px; margin: 0 auto; padding: 0 40px;
}
.footer-col h4 { color: #fff; font-size: 1.2rem; margin-bottom: 18px; border-bottom: 1px solid #333; padding-bottom: 10px; font-family: 'Oswald', sans-serif !important; }
.footer-col a { display: block; color: #aaa; font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { margin-top: 40px; text-align: center; color: #666; font-size: 0.85rem; border-top: 1px solid #222; padding-top: 20px; }
.footer-bottom .orange { color: var(--e-orange); font-weight: 700; }
.tag { background: var(--e-orange); color: #fff; padding: 5px 12px; font-weight: 700; font-size: 0.75rem; display: inline-block; margin-bottom: 18px; letter-spacing: 1px; text-transform: uppercase; border-radius: 2px; }
.product-card, .service-card {
  background: #161616;
  border: 1px solid #333;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.product-card:hover, .service-card:hover {
  border-color: var(--e-orange);
  transform: translateY(-6px);
  box-shadow: var(--e-glow);
}
.prod-img, .service-img { height: 220px; width: 100%; overflow: hidden; background: #111; }
.prod-img img, .service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .prod-img img, .service-card:hover .service-img img { transform: scale(1.08); }
.prod-content, .service-content { padding: 24px; flex-grow: 1; }
.prod-title, .service-title { color: #fff; font-size: 1.2rem; margin-bottom: 10px; font-family: 'Oswald', sans-serif !important; }
.prod-desc, .service-desc { color: #bbb; font-size: 0.92rem; margin-bottom: 16px; line-height: 1.6; }
.spec-list { list-style: none; padding: 0; margin-bottom: 20px; border-top: 1px solid #333; padding-top: 12px; }
.spec-list li { color: #ccc; font-size: 0.88rem; margin-bottom: 6px; padding-left: 18px; position: relative; }
.spec-list li::before { content: '✓'; color: var(--e-orange); font-weight: 700; position: absolute; left: 0; }
.divider { border: 0; border-top: 1px solid #333; margin: 30px 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.hero h1, .hero p, .hero .btn-pro { animation: fadeUp 0.7s ease-out both; }
.hero p { animation-delay: 0.15s; }
.hero .btn-pro { animation-delay: 0.3s; }

/* ============================================================
   RESPONSIVE OVERRIDES (mobile-first) — ENGCO
   ============================================================ */
@media (max-width: 900px) {
  /* NAV → ocultar menú en móvil */
  .nav-links { display: none !important; }
  .top-bar-info { display: none !important; }
  .main-header-nav { padding: 8px 12px !important; }
  .main-header-inner { padding: 6px 0 !important; }
  .logo a img { height: 32px !important; }

  /* HERO → padding reducido */
  .hero-section, [class*="hero"], .intro-section {
    padding: 120px 20px 80px !important;
  }

  /* HERO H1 → tipografía fluida */
  .hero-section h1, .intro-section h1, main h1, h1 {
    font-size: clamp(2rem, 7vw, 3.5rem) !important;
    line-height: 1 !important;
  }

  /* SUB-HERO text */
  .hero-section p, .intro-section p, main > div p {
    font-size: clamp(1rem, 3vw, 1.2rem) !important;
    padding: 0 16px !important;
    max-width: 100% !important;
  }

  /* CARDS → 1 columna */
  .cards {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 20px !important;
  }
  .cards > .card { max-width: 100% !important; }

  /* BOTONES → ancho completo en móvil */
  .btn-pro, .btn-secondary, .btn-nav, a[class*="btn"], button {
    display: block !important;
    width: 100% !important;
    max-width: 480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    padding: 14px 28px !important;
    font-size: 0.85rem !important;
  }

  /* SECTIONS → padding reducido */
  section, [class*="section"] {
    padding: 60px 20px !important;
  }

  /* CONTAINER → menos padding lateral */
  main, .container, div[style*="max-width"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* PADDING LATERAL agresivo de contenedores inline → 20px en móvil */
  div[style*="padding:0 40px"], div[style*="padding:0 30px"], div[style*="padding:0 20px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* IMÁGENES → responsive */
  img { max-width: 100% !important; height: auto !important; }
  .card img { height: 240px !important; object-fit: cover !important; }

  /* IFRAMES → responsive en móvil */
  iframe { max-width: 100% !important; }
  iframe[id^="sticky-sidebar-left-"] { height: 480px !important; }
  iframe[src*="google.com/maps"] { height: 180px !important; }
  .ghl-frame { padding: 0 !important; }

  /* CONTACT-2COLS → apilar */
  .contact-2cols { flex-direction: column !important; gap: 30px !important; }

  /* FOOTER → apilar columnas */
  footer .footer-grid, .footer-columns, footer > div:not([class]) > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    text-align: center !important;
  }

  /* TITULOS → escala fluida */
  h2 { font-size: clamp(1.4rem, 5.5vw, 2rem) !important; }
  h3 { font-size: clamp(1.1rem, 4vw, 1.5rem) !important; }

  /* TAGS → centrar */
  .tag { display: inline-block; text-align: center; }

  /* DROPDOWN menús */
  .dropdown-menu, .menu-dropdown { display: none !important; }
}

/* Mobile muy pequeño (320-380px) */
@media (max-width: 380px) {
  .hero-section h1, main h1, h1 { font-size: 1.7rem !important; }
  section, [class*="section"] { padding: 40px 16px !important; }
  div[style*="max-width"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  div[style*="padding:0 40px"], div[style*="padding:0 30px"], div[style*="padding:0 20px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  /* IFRAMES aún más pequeños */
  iframe[id^="sticky-sidebar-left-"] { height: 420px !important; }
  iframe[src*="google.com/maps"] { height: 150px !important; }
}

/* Tablet landscape (768-1024) */
@media (min-width: 769px) and (max-width: 1024px) {
  .cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 80px 0 60px 0; }
  .cards, .catalog-grid, .product-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .container { padding: 0 20px; }
  section { padding: 60px 0; }
}
