/* Reset y Variables Industriales */
:root {
  --primary: #2c3e50;
  --accent: #ed1c24;
  --bg-light: #f4f6f8;
  --text: #333333;
  --white: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Header */
.header { padding: 10px 0; background: var(--white); border-bottom: 1px solid #ddd; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header__inner { display: flex; justify-content: space-between; align-items: center; }
.header__logo img { display: block; height: 55px; object-fit: contain; }
.header__nav-list { display: flex; list-style: none; gap: 20px; }
.header__nav-list a { text-decoration: none; color: var(--primary); font-weight: 600; font-size: 1rem; transition: color 0.2s; }
.header__nav-list a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 80px 0; background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.95)), url('assets/images/calibracion-iso-9000-balanza-de-camiones-pesas-patron.jpg') center/cover; color: var(--white); text-align: center; }
.hero__title { font-size: 2.8rem; font-weight: 800; margin-bottom: 20px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero__subtitle { font-size: 1.3rem; margin-bottom: 30px; color: #d5dce2; }

/* Botones */
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 12px 24px; font-weight: 700; text-decoration: none; border-radius: 4px; transition: all 0.3s ease; text-align: center; cursor: pointer; }
.btn--primary { background: var(--accent); color: var(--white); border: 2px solid var(--accent); }
.btn--primary:hover { background: #c0131a; border-color: #c0131a; }
.btn--secundario { background: var(--white); color: var(--primary); border: 2px solid var(--primary); }
.btn--secundario:hover { background: var(--primary); color: var(--white); }
.btn--outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--white); }

/* Grilla de Casos (Silos) */
.casos { padding: 60px 0; background: var(--bg-light); }
.section__title { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin-bottom: 50px; text-align: center; }
.casos__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.caso { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); display: flex; flex-direction: column; transition: transform 0.2s; }
.caso:hover { transform: translateY(-5px); }
.caso__images img { width: 100%; height: 220px; object-fit: cover; display: block; border-bottom: 3px solid var(--accent); }
.caso__title { font-size: 1.25rem; color: var(--primary); font-weight: 800; margin: 20px 20px 10px; }
.caso__desc { font-size: 1rem; color: #555; margin: 0 20px 20px; flex-grow: 1; }
.caso__actions { display: flex; flex-direction: column; gap: 10px; margin: 0 20px 25px; }

/* Silo Pages (Detalle) */
.silo-hero { padding: 60px 0; color: var(--white); text-align: center; }
.silo-content { padding: 60px 0; background: var(--white); }
.silo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 768px) { .silo-grid { grid-template-columns: 1fr; } }

/* Slider Galeria */
.silo-gallery { width: 100%; height: 400px; position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 1px solid #ddd; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease-in-out; }
.slide.active { opacity: 1; }

.silo-info h2 { font-size: 1.8rem; color: var(--primary); margin-bottom: 20px; border-bottom: 3px solid var(--accent); display: inline-block; padding-bottom: 5px; }
.silo-info p { font-size: 1.1rem; color: #444; margin-bottom: 30px; line-height: 1.8; }
.silo-actions { display: flex; gap: 15px; flex-wrap: wrap; }

/* Contacto y Footer */
.contacto { padding: 60px 0; text-align: center; background: var(--white); border-top: 1px solid #eee; }
.contacto__text { margin-bottom: 25px; color: #666; font-size: 1.15rem; }
.contacto__email, .contacto__telefono { margin-top: 15px; font-size: 1.2rem; color: var(--primary); font-weight: 700; }
.footer { padding: 25px 0; background: var(--primary); color: var(--white); text-align: center; font-size: 0.95rem; }

/* WhatsApp Flotante */
.whatsapp-float { position: fixed; bottom: 25px; right: 25px; width: 65px; height: 65px; z-index: 9999; transition: transform 0.2s ease; }
.whatsapp-float img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.3)); }
.whatsapp-float:hover { transform: scale(1.1); }

@media (max-width: 768px) {
  .header__inner { flex-direction: column; gap: 15px; }
  .header__nav-list { flex-wrap: wrap; justify-content: center; }
  .hero__title { font-size: 2rem; }
  .silo-gallery { height: 300px; }
}


/* ==========================================================================
   SISTEMA DE CAPTURA B2B (FORMULARIO E INDUSTRIALIZACIÓN DE CONTACTO)
   ========================================================================== */
.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 40px;
  text-align: left;
  margin-top: 20px;
}
.contacto__directo {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.contacto__card {
  background: var(--bg-light);
  padding: 30px 25px;
  border-radius: 6px;
  border-left: 5px solid var(--accent);
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.contacto__card h4 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
}
.contacto__card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.4;
}
.contacto__card .btn {
  display: block;
  text-align: center;
}
.contacto__info-links {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  padding: 0 5px;
}
.contacto__info-links strong {
  color: var(--primary);
}
.form-b2b {
  background: #ffffff;
  padding: 35px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f5;
}
.form-b2b__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-b2b__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-b2b label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-b2b input[type="text"],
.form-b2b input[type="email"],
.form-b2b input[type="tel"],
.form-b2b select,
.form-b2b textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.form-b2b input:focus,
.form-b2b select:focus,
.form-b2b textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
}
.form-b2b textarea {
  resize: vertical;
}
.form-b2b__file-label {
  cursor: pointer;
  background: var(--bg-light);
  border: 2px dashed #cbd5e1;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.form-b2b__file-label:hover {
  background: #f1f5f9;
  border-color: var(--primary);
}
.form-b2b__file-label span:first-child {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}
.form-b2b__file-hint {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
  font-weight: 400;
  text-transform: none;
}
.form-b2b input[type="file"] {
  display: none;
}
.form-b2b__submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 15px;
}
.form-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  padding: 30px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6;
}
.form-b2b__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
@media (max-width: 992px) {
  .contacto__grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 576px) {
  .form-b2b__row { grid-template-columns: 1fr; gap: 0; }
  .form-b2b { padding: 20px; }
}
