/* catalogo.css – Estilo Electrocable + SERVIELECTRICPLOM */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #222;
}

/* ============================
   HEADER COMPACTO
============================ */
.catalogo-header {
  text-align: center;
  padding: 15px 12px;
  background: linear-gradient(90deg, #414b57, #0056b3);
  color: white;
  border-radius: 0 0 14px 14px;
}

.catalogo-header .logo-servicios {
  width: 70px;
  height: auto;
  margin-bottom: 8px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.catalogo-header h1 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.catalogo-header p {
  font-size: 0.85rem;
  margin-top: 4px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  line-height: 1.3;
}

/* Móvil */
@media (max-width: 480px) {
  .catalogo-header {
    padding: 12px 10px;
  }
  .catalogo-header .logo-servicios {
    width: 60px;
  }
  .catalogo-header h1 {
    font-size: 1.2rem;
  }
  .catalogo-header p {
    font-size: 0.78rem;
  }
}

/* ============================
   ICONOS PRINCIPALES
============================ */
.iconos-principales {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 20px;
  background: #fff;
}

.icono {
  text-align: center;
  width: 150px;
}

.icono img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: 4px solid #7a3cff;
  object-fit: cover;
}

.icono span {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  color: #333;
}

/* ============================
   BANNERS
============================ */
.banner {
  background: linear-gradient(90deg, #414b57, #00cccc);
  margin-top: 40px;
  text-align: center;
  padding: 25px 15px;
  color: #222;
  border-radius: 12px;
}

.banner h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.banner-servicios {
  background: linear-gradient(90deg, #414b57, #00cccc);
  margin-top: 20px;
  text-align: center;
  padding: 25px 15px;
  color: #222;
  border-radius: 12px;
}

.banner-servicios h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

/* ============================
   CATÁLOGO GRID
============================ */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 40px 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  border: 1px solid #e5e5e5;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-color: #414b57;
}

.card img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.card p {
  font-size: 15px;
  color: #555;
}

/* ============================
   FOOTER
============================ */

footer {
  background: #14171d;
  padding: 25px 15px;
  color: #fff;
  text-align: center;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.footer-desc {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Redes sociales */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.3rem;
}

.social-links a svg {
  width: 24px;
  height: 24px;
  transition: 0.3s ease;
}

.social-links a:hover svg {
  transform: scale(1.18);
  opacity: 0.85;
}

/* BOTÓN VOLVER (lado derecho) */
.btn-volver {
  position: fixed;
  top: 15px;
  right: 15px;
  background: #414b57;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: 0.25s ease;
  backdrop-filter: blur(4px);
}

.btn-volver:hover {
  background: #0056b3;
  transform: translateX(3px);
}

/* VERSIÓN RESPONSIVE */
@media (max-width: 480px) {
  .btn-volver {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .btn-volver::after {
    content: "Regresar";
  }

  .btn-volver {
    font-size: 0;
  }

  .btn-volver::before {
    content: "← ";
    font-size: 0.78rem;
  }

  .btn-volver::after {
    font-size: 0.78rem;
  }
}
