:root {
  /* Colores Industriales (Estilo Salscl) */
  --primary: #0056b3;       /* Azul industrial más serio */
  --primary-dark: #004494;  /* Oscuro para hover */
  --accent: #ff6a00;
  --bg: #f8f9fa;            /* Fondo muy suave */
  --text: #333333;
  --muted: #666666;
  --card: #ffffff;
  --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* --- 1. TOP BAR (NUEVO: Estilo Salscl) --- */
.top-bar {
  background-color: var(--primary-dark);
  color: white;
  font-size: 0.85rem;
  padding: 8px 0;
  text-align: right;
}
.top-bar-content {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  align-items: center;
}
.top-bar span { display: inline-flex; align-items: center; gap: 6px; }

/* --- HEADER --- */
.site-header {
  background: var(--card);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px; /* Altura fija para consistencia */
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { height: 50px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-weight: 800; color: var(--primary); font-size: 1.5rem; line-height: 1.1; }
.brand-sub { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.5px; }

/* Navegación */
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav a:hover { color: var(--primary); }

/* Menú hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
}

/* --- BOTONES --- */
.btn-cta {
  background: var(--primary);
  color: #fff !important; /* Forzar blanco */
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: background .2s ease;
  display: inline-block;
  border: 1px solid var(--primary);
}
.btn-cta:hover { background: var(--primary-dark); }

/* Botón secundario (Borde azul) */
.btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--primary);
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--primary); color: white; }

/* --- HERO SECTION --- */
.hero { padding: 40px 0; }
.hero-card {
  background: var(--card);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  text-align: center;
  border: 1px solid var(--border);
}
.hero-card h1 { margin: 0 0 15px; color: var(--primary); font-size: 2.2rem; font-weight: 800; }
.lead { color: var(--muted); margin-bottom: 1.5rem; font-size: 1.1rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* --- CARRUSEL --- */
.carousel-section { padding-bottom: 40px; }
.carousel.centered {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.carousel .slides { display: flex; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.carousel .slide { min-width: 100%; flex-shrink: 0; position: relative; }
/* Ajuste para que las imágenes se vean profesionales (cover en vez de contain si es foto real) */
.carousel .slide img {
  width: 100%;
object-fit: contain;
  height: 400px;

  display: block;
}
.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  padding: 30px 20px 15px;
  font-weight: 600;
  text-align: center;
}

/* Controles Carrusel */
.ctrl {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.8); color: var(--primary);
  border: none; width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; font-size: 24px; display: flex; align-items: center; justify-content: center;
  transition: 0.2s;
}
.ctrl:hover { background: white; color: var(--primary-dark); }
.ctrl.prev { left: 15px; }
.ctrl.next { right: 15px; }
.dots { text-align: center; margin-top: 10px; }

/* --- SECCIONES GENERALES --- */
.section { padding: 50px 0; }
.section h2 { color: var(--primary); font-size: 2rem; text-align: center; margin-bottom: 10px; }
.section p { text-align: center; color: var(--muted); margin-bottom: 30px; }

/* --- PRODUCTOS (Grid Industrial) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}
.prod-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: var(--primary); }
.prod-card img { width: 100%; height: 200px; object-fit: cover; background: #fff; border-bottom: 1px solid #f0f0f0; }
.prod-card h4 { color: var(--primary); margin: 15px 15px 5px; font-size: 1.1rem; text-align: center; }
.prod-card p { padding: 0 15px 15px; font-size: 0.9rem; text-align: center; color: var(--muted); margin-bottom: 0; flex-grow: 1; }
.prod-btn {
  margin: 0 15px 15px;
  text-align: center;
  display: block;
  padding: 8px;
  background: #f1f5f9;
  color: var(--primary);
  font-weight: 600;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: 0.2s;
}
.prod-card:hover .prod-btn { background: var(--primary); color: white; }

/* --- CONTACTO --- */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.card { background: var(--card); padding: 30px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid var(--border); }
.card h3 { margin-bottom: 20px; color: var(--text); }
.form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.form-row input { width: 100%; }
input, textarea {
  width: 100%; padding: 12px; border-radius: 6px;
  border: 1px solid #cbd5e1; background: #fff; font-family: inherit;
  margin-bottom: 15px; transition: border 0.2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); }
.form-actions { display: flex; gap: 15px; align-items: center; }
.info p { margin-bottom: 12px; font-size: 0.95rem; }
.info strong { color: var(--primary); }

/* --- FOOTER --- */
.site-footer { background: #1e293b; color: #94a3b8; padding: 30px 0; text-align: center; font-size: 0.9rem; margin-top: 40px; }

/* --- BOTÓN WHATSAPP --- */
.floating-contact {
  position: fixed; right: 20px; bottom: 20px;
  background: #25D366; color: #fff;
  width: 60px; height: 60px; border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; transition: transform .2s;
}
.floating-contact:hover { transform: scale(1.1); }
.floating-contact .icon { width: 35px; height: 35px; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .top-bar-content { justify-content: center; font-size: 0.75rem; }
  .menu-toggle { display: block; }
  .nav {
    display: none; flex-direction: column;
    position: absolute; top: 80px; left: 0; width: 100%;
    background: var(--card); padding: 20px;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  .nav.active { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; margin-bottom: 0; }
  .carousel .slide img { height: 250px; }
  .hero-card h1 { font-size: 1.8rem; }
}