/* ==========================================================================
   Ficha de producto — Trade Solutions
   Plantilla de las páginas individuales de cada producto del catálogo
   (URL /producto/<slug>). Respeta la línea gráfica del sitio: Montserrat,
   azules #0077cc/#005299, navy #162839, tarjeta blanca con sombra.
   Igual que catalogo.css, esta página NO carga el CSS general, así que
   replicamos las reglas base de body/.container para que el header (header.js)
   y el footer queden idénticos al resto del sitio.
   ========================================================================== */

:root {
  --ts-azul: #0077cc;
  --ts-azul-osc: #005299;
  --ts-cyan: #00a2ff;
  --ts-navy: #162839;
  --ts-gris: #5a6b7e;
  --ts-claro: #f7f9fc;
  --ts-borde: #e4eaf1;
  --ts-sombra: 0 10px 30px rgba(22, 40, 57, .10);
}

/* ---- Base (replica de catalogo.css) ---- */
body { margin: 0; font-family: 'Montserrat', sans-serif; color: var(--ts-navy); line-height: 1.6; background: #eef2f7; }
.producto-main { font-family: 'Montserrat', sans-serif; color: var(--ts-navy); }
.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; position: sticky; top: 0; z-index: 999; }
img { max-width: 100%; }

/* ---- Contenedor de la ficha (columna centrada; sin sidebar — estándar e-commerce) ---- */
.prod-shell { max-width: 1100px; margin: 0 auto; padding: 8px 20px 10px; }

/* ---- Breadcrumb ---- */
.prod-breadcrumb {
  max-width: 1100px; margin: 0 auto; padding: 22px 20px 0;
  font-size: .85rem; color: var(--ts-gris);
}
.prod-breadcrumb a { color: var(--ts-gris); text-decoration: none; }
.prod-breadcrumb a:hover { color: var(--ts-azul); }
.prod-breadcrumb .sep { margin: 0 6px; opacity: .6; }
.prod-breadcrumb .actual { color: var(--ts-navy); font-weight: 600; }

/* ---- HERO: imagen + info ---- */
.prod-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 28px 0 40px;
}
.prod-hero-media {
  position: relative; background: #fff; border: 1px solid var(--ts-borde);
  border-radius: 16px; box-shadow: var(--ts-sombra);
  padding: 36px; text-align: center; min-height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.prod-hero-media img { max-height: 360px; width: auto; object-fit: contain; }
.prod-hero-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--ts-azul); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 50px;
}
.prod-hero-ph {
  display: flex; align-items: center; justify-content: center;
  color: #c3cfdd; font-size: 3.4rem;
}

.prod-hero-cat { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--ts-azul); margin: 0 0 8px; }
.prod-hero-info h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; margin: 0 0 6px; line-height: 1.15; }
.prod-sku-tag { display: inline-block; font-size: .8rem; color: var(--ts-gris); background: var(--ts-claro); border: 1px solid var(--ts-borde); padding: 3px 10px; border-radius: 6px; margin: 0 0 16px; }
.prod-hero-lead { font-size: 1.08rem; color: #33424f; margin: 0 0 26px; }

.prod-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-size: .95rem; font-weight: 700;
  padding: 13px 26px; border-radius: 50px; text-decoration: none; cursor: pointer;
  transition: all .18s ease; border: 2px solid var(--ts-azul);
}
.btn-primary { background: var(--ts-azul); color: #fff; }
.btn-primary:hover { background: var(--ts-azul-osc); border-color: var(--ts-azul-osc); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ts-azul); }
.btn-ghost:hover { background: var(--ts-azul); color: #fff; }

.prod-hero-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.prod-hero-trust li { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ts-gris); font-weight: 600; }
.prod-hero-trust i { color: var(--ts-azul); }

/* ---- Secciones de contenido ---- */
.prod-section { padding: 38px 0; border-top: 1px solid var(--ts-borde); }
.prod-section h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 18px; }
.prod-prose p { font-size: 1.02rem; color: #33424f; margin: 0 0 14px; max-width: 820px; }

/* Lista de características / especificaciones */
.prod-feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.prod-feature-list li { position: relative; padding-left: 28px; font-size: .98rem; color: #33424f; }
.prod-feature-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--ts-azul); position: absolute; left: 0; top: 2px; font-size: .9rem; }

/* Tabla de especificaciones técnicas (para productos cuyo "Description" trae specs) */
.prod-spec-table { width: 100%; border-collapse: collapse; max-width: 760px; }
.prod-spec-table th, .prod-spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--ts-borde); font-size: .95rem; vertical-align: top; }
.prod-spec-table th { width: 38%; color: var(--ts-navy); font-weight: 700; background: var(--ts-claro); }
.prod-spec-table td { color: #33424f; }

/* ---- CTA de cierre ---- */
.prod-cta {
  margin: 46px auto; max-width: 1200px;
  background: linear-gradient(135deg, var(--ts-navy), #0f1d2b);
  color: #fff; border-radius: 18px; text-align: center;
  padding: 46px 24px;
}
.prod-cta h2 { font-size: 1.55rem; font-weight: 800; margin: 0 0 10px; color: #fff; border: 0; }
.prod-cta p { opacity: .85; margin: 0 auto 24px; max-width: 540px; }
.prod-cta a {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ts-cyan); color: var(--ts-navy); font-weight: 700;
  padding: 14px 32px; border-radius: 50px; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.prod-cta a:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 162, 255, .35); }

/* ---- Productos relacionados (estándar e-commerce: al pie de la ficha) ---- */
.prod-related { padding: 38px 0; border-top: 1px solid var(--ts-borde); }
.prod-related-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.prod-related-head h2 { font-size: 1.4rem; font-weight: 800; margin: 0; }
.prod-related-all { font-size: .9rem; font-weight: 700; color: var(--ts-azul); text-decoration: none; white-space: nowrap; }
.prod-related-all:hover { color: var(--ts-azul-osc); }
.prod-related-all i { font-size: .8rem; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.rel-card {
  position: relative; background: #fff; border: 1px solid var(--ts-borde); border-radius: 12px;
  overflow: hidden; text-decoration: none; color: var(--ts-navy);
  box-shadow: 0 6px 18px rgba(22, 40, 57, .07);
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.rel-card:hover { transform: translateY(-5px); box-shadow: var(--ts-sombra); }
.rel-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--ts-azul); color: #fff; font-size: .68rem; font-weight: 700;
  padding: 4px 10px; border-radius: 50px;
}
.rel-img { height: 150px; background: var(--ts-claro); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rel-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rel-img--ph { color: #c3cfdd; font-size: 2rem; }
.rel-name { font-size: .95rem; font-weight: 700; line-height: 1.3; margin: 0; padding: 14px 16px 18px; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .prod-hero { grid-template-columns: 1fr; gap: 26px; }
  .prod-hero-media { order: -1; min-height: 240px; padding: 26px; }
  .prod-feature-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FOOTER (los estilos base viven en argentina.css; se replican acá porque la
   ficha de producto no carga ese CSS. header.js solo inyecta ajustes encima.)
   ========================================================================== */
.main-footer { background: #162839; color: #ecf0f1; padding: 40px 0 0; font-size: 0.95rem; }
.footer-contact h3, .footer-links h3, .footer-social h3 { color: #ffffff; }
.footer-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px;
}
.footer-brand img { width: 180px; margin-bottom: 15px; filter: brightness(0) invert(1); }
.footer-brand p { opacity: 0.8; line-height: 1.5; }
.footer-contact ul, .footer-links ul { list-style: none; margin-top: 15px; padding: 0; }
.footer-contact li, .footer-links li { margin-bottom: 12px; display: flex; align-items: center; }
.footer-contact a { color: #fff !important; text-decoration: none; transition: color 0.3s; }
.footer-contact a:hover { color: #0077cc !important; text-decoration: underline; }
.footer-contact i { margin-right: 10px; color: #0077cc; width: 20px; }
.footer-links a { color: #bdc3c7; transition: color 0.3s; text-decoration: none; }
.footer-links a:hover { color: #0077cc; }
.footer-social h3 { margin-bottom: 15px; }
.social-icons { display: flex; gap: 15px; margin-bottom: 20px; }
.social-icons a {
  color: #fff; background: rgba(255,255,255,0.1); width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: all 0.3s; text-decoration: none;
}
.social-icons a:hover { background: #0077cc; transform: translateY(-3px); }
.contact-btn {
  background: #0077cc; color: #fff; border: none; padding: 10px 20px; border-radius: 4px;
  cursor: pointer; transition: background 0.3s; font-weight: 600; text-decoration: none; display: inline-block;
}
.contact-btn:hover { background: #005299; }
.footer-bottom { background: #1a252f; padding: 20px 0; margin-top: 40px; text-align: center; font-size: 0.85rem; }
.legal-links { margin-top: 10px; }
.legal-links a { color: #7f8c8d; margin: 0 10px; text-decoration: none; }
.legal-links a:hover { color: #0077cc; }

@media (max-width: 768px) {
  .main-footer { padding: 18px 0 0; font-size: 0.85rem; }
  .footer-container { padding: 0 8px; gap: 16px; }
  .footer-brand img { width: 140px; margin-bottom: 8px; }
  .footer-bottom { padding: 10px 0; margin-top: 16px; font-size: 0.8rem; }
}
