:root {
  /* Paleta Dark Corporativa Brodevo – fondo más claro */
  --primary: #cd0046;   /* bordo del logo */
  --secondary: #0170b8;   /* azul letras */
  --background: #1a1d24; /* fondo principal (dark suave) */
  --surface: #222633;    /* secciones / cards */
  --surface-2: #2a2f40;  /* variantes */
  --text: #f1f5f9;       /* texto principal */
  --text-muted: #b6bcc8; /* texto secundario */
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--text);
}

header {
  background: linear-gradient(rgba(26, 29, 36, 0.75), rgba(26, 29, 36, 0.75)), url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 80px 20px;
  text-align: center;
  border-bottom: 2px solid var(--primary);
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.logo {
  height: auto;
}

header h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 30px;
}

.btn {
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

h2 {
  color: var(--primary);
}

.features,
.partners,
.technologies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.card {
  background: var(--surface);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  text-align: center;
}

/* Carrusel clientes */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.client-logo {
  max-width: 220px;
  max-height: 120px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.9);
  opacity: 0.85;
}

.client-logo:hover {
  filter: none;
  opacity: 1;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-controls button {
  background: var(--primary);
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

footer {
  background: var(--surface);
  color: var(--text-muted);
  text-align: center;
  padding: 30px 20px;
  border-top: 2px solid var(--primary);
}

/* Estilos específicos por sección */
#nosotros {
  background: transparent;
}


/* Mejoras en las cards de tecnologías e integraciones */
#tecnologias .card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
}

#tecnologias .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  border-color: var(--primary);
}

#tecnologias .card h3 {
  color: var(--secondary);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

#tecnologias .card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

#clientes {
  background: linear-gradient(135deg, var(--surface) 0%, #1a1d24 100%);
  border-top: 1px solid var(--primary);
  border-bottom: 1px solid var(--primary);
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

#clientes .carousel {
  max-width: 1100px;
  margin: auto;
}

#partners {
  background: transparent;
}
