:root {
  --azul: #1e3a8e;
  --azul-oscuro: #1d1f47;
  --claro: #f5f6fa;
  --acento: #ffa500;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: var(--claro);
  color: #333;
}

/* ---------------- Header ---------------- */
header {
  background: var(--azul);
  color: white;
  padding: 1rem;
  text-align: center;
}

header img {
  max-height: 80px;
  background: white;
  border-radius: 10px;
  padding: 5px;
}

/* ---------------- Navbar ---------------- */
nav {
  background: var(--azul-oscuro);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  flex-wrap: wrap; /* Permite que los enlaces bajen en móvil */
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  text-align: center;
  flex: 0 1 auto;
  transition: all 0.3s ease;
  white-space: nowrap;
}

nav a:hover {
  color: var(--acento);
   background: rgba(255, 255, 255, 0.1); /* fondo sutil en hover */
}

/* ---------------- Secciones ---------------- */
section {
  padding: 2rem;
  max-width: 1100px;
  margin: auto;
}

h2 {
  color: var(--azul);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta {
  background: var(--azul);
  color: white;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
}

.cta:hover {
  background: var(--azul-oscuro);
}

/* ---------------- Footer ---------------- */
footer {
  background: var(--azul-oscuro);
  color: white;
  text-align: center;
  padding: 1rem;
}

.rrss a {
  color: white;
  margin: 0 10px;
  font-size: 1.6rem;
}

/* ---------------- Hero ---------------- */
.hero {
  background: url('../img/banner_clean.png') center/cover no-repeat;
  color: white;
  padding: 5rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
}

/* ---------------- Imágenes ---------------- */
img {
  max-width: 100%;
  height: auto;
}

.img-tecno {
  max-height: 400px;
  border-radius: 15px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.img-ciclo {
  max-height: 400px;
  border-radius: 200px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.img-services {
  max-height: 328px;
  border-radius: 15px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* ---------------- Clientes ---------------- */
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  align-items: center;
  justify-items: center;
  padding: 1rem;
}

.clientes-grid img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: transform 0.3s, filter 0.3s;
}

.clientes-grid img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* ---------------- Hero pequeno ---------------- */
.small-hero {
  background: url('../img/hero_banner.jpg') center/cover no-repeat;
  padding: 3rem 1rem;
  text-align: center;
  color: #fff;
}

/* ---------------- Lista de desarrollos ---------------- */
.desarrollos-list {
  margin: 2rem 0;
  padding-left: 1.5rem;
  line-height: 1.6;
}

.desarrollos-list li {
  margin-bottom: 1rem;
}

/* ---------------- Asistente N8N ---------------- */
#n8n-chat {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 90%;
  max-width: 400px;
  height: 70%;
  z-index: 9999;
}

/* ---------------- Media Queries ---------------- */
@media screen and (max-width: 1024px) {


  nav {
    gap: 0.3rem; /* AÚN MÁS CERCA en desktop grande */
  }
  
  nav a {
    padding: 0.5rem 0.8rem; /* un poco menos de padding */
    font-size: 0.95rem; /* texto ligeramente más compacto */
  }

  .img-services {
    max-height: 200px;
  }
  .img-tecno {
    max-height: 150px;
  }
  .img-ciclo {
    max-height: 200px;
    border-radius: 100px;
  }
  .clientes-grid img {
    max-width: 60%;
  }
}

@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
  }
  section {
    padding: 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

@media screen and (max-width: 480px) {
  #n8n-chat {
    width: 95%;
    height: 80%;
    right: 2.5%;
    bottom: 5%;
  }
  .hero {
    padding: 3rem 1rem;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

#n8n-chat {
  pointer-events: none; /* evita bloquear clics del resto de la página */
  z-index: 10 !important; /* baja la prioridad visual */
}

#n8n-chat * {
  pointer-events: auto; /* pero permite clics dentro del chat */
}

/* ========== NUEVOS ESTILOS PARA DESARROLLOS.HTML ========== */

/* Estilos para los grupos de industria */
.industria-grupo {
  background: #ffffff;
  padding: 25px;
  margin: 20px 0;
  border: 1px solid #e0e0e0;  /* Marco completo sutil */
  border-radius: 8px;
}

.caso-destacado {
  background: #e3f2fd;  /* Celeste agua suave */
  padding: 30px;
  margin: 30px 0;
  border: 2px solid #007bff;  /* Marco azul más destacado */
  border-radius: 10px;
}

/* Botones CTA principales - COLORES INVERTIDOS */
.cta {
  display: inline-block;
  background: #0056b3;  /* Azul oscuro por defecto */
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin: 10px 0;
  transition: background 0.3s;
}

.cta:hover {
  background: #007bff;  /* Azul claro en hover */
}

/* Contenedor para CTA final */
.cta-container {
  text-align: center;
  margin: 40px 0;
  padding: 30px;
  background: #f8f9fa;  /* Gris muy claro */
  border-radius: 8px;
  border: 1px solid #dee2e6;  /* Marco completo sutil */
}