* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: #1f2933;
  line-height: 1.6;
}

.header {
  background: #005baa;
  color: white;
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: bold;
}

.logo img {
  height: 48px;
  width: auto;
}

.menu a {
  color: white;
  text-decoration: none;
  margin-left: 24px;
  font-weight: bold;
}

.hero {
  min-height: 700px;
  background: linear-gradient(rgba(0, 40, 80, 0.55), rgba(0, 40, 80, 0.55)),
              url("imagenes/fondo-ciesa.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: white;
  display: flex;
  align-items: center;
  padding: 80px 8%;
}
.hero-texto {
  max-width: 720px;
}

.hero h1 {
  font-size: 44px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.botones {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 14px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.principal {
  background: #f59e0b;
  color: #111827;
}

.secundario {
  background: white;
  color: #005baa;
}

.seccion {
  padding: 70px 8%;
}

.seccion h2 {
  font-size: 34px;
  margin-bottom: 30px;
  color: #005baa;
}

.fondo-gris {
  background: #f3f4f6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.card {
  background: white;
  padding: 28px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  height: 190px;
  width: 100%;
  overflow: hidden;
}

.card h3 {
  color: #005baa;
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.25;
}

.card p {
  font-size: 17px;
  line-height: 1.45;
}

.card h3 {
  color: #005baa;
  margin-bottom: 12px;
}

.formulario {
  max-width: 700px;
  display: grid;
  gap: 16px;
}

.formulario input,
.formulario select,
.formulario textarea {
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 16px;
}

.formulario textarea {
  min-height: 130px;
}

.formulario button {
  background: #005baa;
  color: white;
  border: none;
  padding: 16px;
  font-size: 17px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.formulario button:hover {
  background: #00457f;
}

.footer {
  background: #111827;
  color: white;
  text-align: center;
  padding: 28px;
}

@media (max-width: 900px) {
  .header {
    flex-direction: column;
    gap: 15px;
  }

  .menu a {
    margin: 8px;
    display: inline-block;
  }

  .hero h1 {
    font-size: 32px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .botones {
    flex-direction: column;
  }
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

.card-link h3 {
  color: #005baa;
}

.card-link p {
  color: #111827;
}/* =========================
   PRODUCTOS PRINCIPALES
========================= */

.seccion {
  padding: 70px 8%;
}

.seccion h2 {
  font-size: 42px;
  color: #005baa;
  margin-bottom: 45px;
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.producto-card {
  background: white;
  min-height: 260px;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #111827;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.producto-card h3 {
  color: #005baa;
  font-size: 25px;
  line-height: 1.25;
  margin-bottom: 18px;
}

.producto-card p {
  font-size: 19px;
  line-height: 1.45;
}

.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Responsive para tablet y celular */
@media (max-width: 1100px) {
  .grid-productos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .grid-productos {
    grid-template-columns: 1fr;
  }

  .seccion h2 {
    font-size: 34px;
  }

  .producto-card {
    min-height: auto;
  }
}/* =========================
   PRODUCTOS PRINCIPALES HOME
========================= */

.seccion {
  padding: 70px 8%;
}

.seccion h2 {
  font-size: 42px;
  color: #005baa;
  margin-bottom: 45px;
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.producto-card {
  background: white;
  min-height: 380px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #111827;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.producto-card h3 {
  color: #005baa;
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 26px;
}

.producto-card p {
  font-size: 22px;
  line-height: 1.45;
}

.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

@media (max-width: 1100px) {
  .grid-productos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .grid-productos {
    grid-template-columns: 1fr;
  }

  .producto-card {
    min-height: auto;
  }

  .seccion h2 {
    font-size: 34px;
  }
}/* =========================
   CATÁLOGO VÁLVULAS CONTROL
========================= */

.catalogo-hero {
  min-height: 360px;
  background:
    linear-gradient(rgba(0, 35, 70, 0.70), rgba(0, 35, 70, 0.70)),
    url("imagenes/fondo-ciesa.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  padding: 80px 8%;
}

.catalogo-hero div {
  max-width: 900px;
}

.catalogo-etiqueta {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  color: #dbeafe;
  margin-bottom: 16px;
}

.catalogo-hero h1 {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.catalogo-hero p {
  font-size: 21px;
  line-height: 1.5;
}

.catalogo-intro {
  padding: 60px 8% 30px;
}

.catalogo-intro h2 {
  color: #005baa;
  font-size: 42px;
  margin-bottom: 14px;
}

.catalogo-intro p {
  font-size: 20px;
  line-height: 1.5;
}

.catalogo-seccion {
  background: #e5e5e5;
  padding: 60px 8%;
}

.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px 34px;
}

.catalogo-card a {
  text-decoration: none;
  color: #111827;
  display: block;
}

.catalogo-img-box {
  background: white;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.catalogo-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.catalogo-card h3 {
  font-size: 21px;
  color: #111827;
  margin-bottom: 8px;
}

.catalogo-card span {
  color: #005baa;
  font-weight: bold;
  font-size: 15px;
}

.catalogo-card span::after {
  content: "  ›";
  font-size: 22px;
}

.catalogo-card:hover .catalogo-img-box {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}

@media (max-width: 1200px) {
  .catalogo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .catalogo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalogo-hero h1 {
    font-size: 40px;
  }
}

@media (max-width: 600px) {
  .catalogo-grid {
    grid-template-columns: 1fr;
  }

  .catalogo-hero {
    padding: 70px 6%;
  }

  .catalogo-hero h1 {
    font-size: 34px;
  }

  .catalogo-img-box {
    height: 250px;
  }
}/* =========================
   PÁGINA DETALLE MODELO
========================= */

.modelo-detalle {
  padding: 80px 8%;
}

.modelo-detalle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}

.modelo-detalle-img {
  background: #f3f4f6;
  padding: 45px;
  border-radius: 14px;
  text-align: center;
}

.modelo-detalle-img img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.modelo-detalle-info h1 {
  color: #005baa;
  font-size: 52px;
  margin-bottom: 22px;
}

.modelo-detalle-info p {
  font-size: 20px;
  line-height: 1.55;
  margin-bottom: 28px;
}

.azul {
  color: #005baa;
}

.modelo-botones {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.modelo-botones a {
  display: inline-block;
  background: #005baa;
  color: white;
  padding: 14px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.modelo-botones a:nth-child(2) {
  background: #f59e0b;
  color: #111827;
}

@media (max-width: 900px) {
  .modelo-detalle-grid {
    grid-template-columns: 1fr;
  }

  .modelo-detalle-info h1 {
    font-size: 38px;
  }
}/* =========================
   CATÁLOGO VÁLVULAS DE BLOQUEO
========================= */

.bloqueo-hero {
  background:
    linear-gradient(rgba(0, 35, 70, 0.72), rgba(0, 35, 70, 0.72)),
    url("imagenes/fondo-ciesa.jpg");
  background-size: cover;
  background-position: center;
}

.bloqueo-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  min-height: 230px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bloqueo-card a {
  display: block;
  height: 100%;
  padding: 30px;
  text-decoration: none;
  color: #111827;
}

.bloqueo-card h3 {
  color: #005baa;
  font-size: 25px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.bloqueo-card p {
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 22px;
}

.bloqueo-card span {
  color: #005baa;
  font-weight: bold;
  font-size: 15px;
}

.bloqueo-card span::after {
  content: "  ›";
  font-size: 22px;
}

.bloqueo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}/* =========================
   DISTRIBUIDORES Y OFICINAS
========================= */

.distribuidores-hero {
  background:
    linear-gradient(rgba(0, 35, 70, 0.72), rgba(0, 35, 70, 0.72)),
    url("imagenes/fondo-ciesa.jpg");
  background-size: cover;
  background-position: center;
}

.distribuidores-intro {
  padding: 60px 8% 30px;
}

.distribuidores-intro h2 {
  color: #005baa;
  font-size: 42px;
  margin-bottom: 14px;
}

.distribuidores-intro p {
  font-size: 20px;
  line-height: 1.5;
}

.distribuidores-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
  padding: 40px 8% 80px;
  background: #f3f4f6;
}

#mapa-distribuidores {
  width: 100%;
  height: 650px;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  overflow: hidden;
}

.lista-distribuidores {
  display: grid;
  gap: 18px;
  max-height: 650px;
  overflow-y: auto;
  padding-right: 8px;
}

.distribuidor-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.distribuidor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.15);
}

.distribuidor-card h3 {
  color: #005baa;
  font-size: 24px;
  margin-bottom: 10px;
}

.distribuidor-card p {
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.distribuidor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.distribuidor-links a {
  background: #005baa;
  color: white;
  padding: 9px 13px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.distribuidor-links a:hover {
  background: #00457f;
}

@media (max-width: 1000px) {
  .distribuidores-layout {
    grid-template-columns: 1fr;
  }

  #mapa-distribuidores {
    height: 480px;
  }

  .lista-distribuidores {
    max-height: none;
  }
}


/* =========================================================
   CORRECCIÓN HOME: PRODUCTOS + HERRAMIENTAS TÉCNICAS
   ========================================================= */

/* Mantiene las cuatro tarjetas de productos del mismo ancho
   y evita que textos largos deformen las columnas. */
#productos .grid-productos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

#productos .producto-card {
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 380px;
  padding: 40px;
}

#productos .producto-card h3 {
  overflow-wrap: break-word;
}

/* Herramientas ya NO está dentro del grid de productos. */
.herramientas-home {
  padding-top: 0;
  background: #f3f4f6;
}

.herramientas-home-card {
  display: block;
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  border: 1px solid #edf1f5;
  text-decoration: none;
  color: #111827;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.herramientas-home-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.herramientas-home-etiqueta {
  color: #64748b;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.herramientas-home .herramientas-home-card h2 {
  color: #005baa;
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.herramientas-home-texto {
  max-width: 950px;
  color: #111827;
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 22px;
}

.herramientas-home-entrar {
  display: inline-block;
  color: #005baa;
  font-size: 16px;
  font-weight: bold;
}

.herramientas-home-card:hover .herramientas-home-entrar {
  color: #00457f;
}

/* Tablet */
@media (max-width: 1100px) {
  #productos .grid-productos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #productos .producto-card {
    min-height: 320px;
  }
}

/* Celular */
@media (max-width: 700px) {
  #productos .grid-productos {
    grid-template-columns: 1fr;
  }

  #productos .producto-card {
    min-height: auto;
    padding: 30px;
  }

  .herramientas-home-card {
    padding: 30px;
  }

  .herramientas-home .herramientas-home-card h2 {
    font-size: 30px;
  }

  .herramientas-home-texto {
    font-size: 17px;
  }
}
