/* Serpengas — responsive refresh of the 2009 stylesheet. Same palette/branding. */

* { box-sizing: border-box; }

/* On <html> rather than <body>: a body background is tiled across the canvas at
   the root box's height, so it repeats on pages taller than the viewport. */
html {
  min-height: 100%;
  background: linear-gradient(#cacccd, #ffffff, #cacccd) no-repeat;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  margin: 0;
  color: #222;
}

a { color: #4d4e82; }
a:hover { color: #f04e4d; }

#container {
  margin: 0 auto;
  width: 92%;
  max-width: 960px;
}

/* ---------- Header ---------- */
#header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(#dcddde, #828386);
}

#header-img { flex: 0 0 auto; }

#header h1 {
  margin: 0;
  font-weight: bold;
  font-size: 22px;
  text-transform: uppercase;
  color: #f04d4d;
}

#header .header-text ul {
  margin: 4px 0 0;
  padding: 0;
  list-style-position: inside;
  line-height: 1.4;
}

#header .header-text li {
  font-size: 12px;
  color: #404042;
  font-weight: bold;
}

.wa-link {
  position: absolute;
  top: 10px;
  right: 12px;
}

.wa-link img { display: block; }

/* ---------- Menu ---------- */
#menu {
  background-color: #5f5f5f;
  font-size: 13px;
  font-weight: bold;
  padding: 10px 0;
}

#menu ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
  list-style: none;
}

#menu li { text-transform: uppercase; }

#menu a {
  text-decoration: none;
  color: white;
  padding: 4px 2px;
  display: inline-block;
}

#menu a:hover, #menu .selected a { color: #f04d4d; }

/* ---------- Content ---------- */
#content {
  background-color: white;
  padding: 12px 16px 24px;
  min-height: 380px;
}

#content h1 {
  font-size: 18px;
  font-weight: bold;
  color: #9b9b9b;
  margin: 10px 0;
}

.content-inner { text-align: justify; }
.content-inner p { margin: 10px 0; }

/* Home collage */
.content-home { position: relative; }

/* Decorative watermark, reading bottom-to-top down the left edge. Tracking is
   tightened to match the footprint .home-collage's left padding reserves. */
.content-home::before {
  content: "SERPENGAS";
  position: absolute;
  top: 15px;
  left: 6px;
  transform-origin: 0 0;
  transform: rotate(-90deg) translateX(-100%);
  font-size: 59.4px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: -0.036em;
  color: #dbdbdb;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.home-collage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0 20px 90px;
}

.home-collage img { max-width: 100%; height: auto; }

.home-texto {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 18px;
  line-height: 1.3;
}

.home-texto .texto-gris { color: #9b9b9b; }
.home-texto .texto-rojo { color: #d63c3b; }

/* Clientes */
.clientes-box { background: #fbfbfb; padding: 10px; }

.clientes-list {
  columns: 3;
  column-gap: 30px;
  margin: 10px 0;
  padding: 0 0 0 20px;
  text-transform: uppercase;
  font-size: 12px;
  color: #666666;
}

.clientes-list li { list-style: square; margin-bottom: 6px; }

/* ---------- Tabs (productos) ---------- */
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 2px solid #5f5f5f;
}

.tab {
  padding: 8px 14px;
  background: #cccccc;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 4px 4px 0 0;
}

.tab.selected { background: #5f5f5f; color: white; }

.tab-panel { padding: 15px 0; }

/* Brand link lists */
.brand-lists {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0 20px;
}

.lista_productos {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lista_productos li { padding-bottom: 12px; }
.lista_productos a { color: #4d4e82; }
.lista_productos a:hover { color: #f04e4d; }

.nuevos-btn {
  display: inline-block;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  border: 1px solid red;
  border-radius: 3px;
  padding: 6px 10px;
  background-color: #f04d4d;
  color: #fff;
  text-decoration: none;
}

.nuevos-btn:hover { color: #fff; background-color: #d63c3b; }

.radiadores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.radiadores img { max-width: 100%; height: auto; }

.aviso-rojo { margin: 15px 5px; font-size: 12px; color: red; }

.seo-text { text-align: center; margin: 8px 0; }

/* ---------- Product pages ---------- */
.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.volver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-decoration: none;
}

.volver img { border: 0; }

.product-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}

.product-cols .lista_productos {
  flex: 1 1 220px;
  cursor: pointer;
}

.product-cols .lista_productos.two-col { columns: 2; }

.producto-item-selected a { color: #ff0000; }

.product-view { flex: 1 1 260px; }

.product-photo {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  padding: 10px;
  width: fit-content;
  margin-bottom: 14px;
}

#imgProd { max-width: 162px; max-height: 232px; }

.producto_details { border-collapse: collapse; }

.producto_details td {
  font-size: 11px;
  background: #cccccc;
  padding: 3px 8px;
  text-align: center;
}

.details-title {
  background: #888888 !important;
  color: #ffffff;
  text-align: left !important;
}

/* ---------- Contacto ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 18px 16px;
  background: #fbfbfb;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  text-decoration: none;
  color: #222;
}

.contact-card:hover {
  border-color: #f04d4d;
  color: #222;
}

.contact-label {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: #f04d4d;
}

.contact-value { font-size: 15px; }

.contact-address {
  margin: 10px 0;
  font-size: 13px;
  color: #666666;
}

/* ---------- Footer ---------- */
#footer {
  background-color: #5c5c5c;
  color: white;
  font-size: 12px;
  padding: 10px 20px;
}

#footer a, #footer a:hover { color: white; }

#footer ul { margin: 0; padding: 0; list-style: none; }
#footer li { margin: 2px 0; }
#footer .brand { font-weight: bold; color: #f04e4d; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; }

  #header {
    flex-direction: column;
    text-align: center;
    padding: 16px 16px 10px;
  }

  #header-img { margin: 0; }
  #header .header-text ul { list-style: none; padding: 0; }

  #menu ul { gap: 4px 16px; }

  #container { width: 100%;  }
  #content { min-height: 0; padding: 10px 12px 20px; }

  .content-home::before { display: none; }
  .home-collage { padding: 10px 0; }

  .clientes-list { columns: 2; }

  .lista_productos li { padding-bottom: 0; }
  .lista_productos li a,
  .lista_productos li { line-height: 2.2; } /* tap targets */

  .product-cols { flex-direction: column; }
  .product-view { width: 100%; }
  .product-photo { margin: 0 auto 14px; }

  .producto_details { width: 100%; }

  .wa-link {
    position: fixed;
    top: auto;
    right: 16px;
    bottom: 16px;
    z-index: 100;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  }
}
