/*
 * Sistema de diseño Caprino (auditoría 2026).
 * Se carga al final en las dos plantillas (component/file_site.php y
 * 2017/component/file_sitenew.php) para unificar paleta, tipografía y
 * componentes sin reescribir las hojas heredadas.
 */
:root {
  --rojo: #92151b;
  --rojo-oscuro: #741016;
  --tinta: #363636;
  --texto-secundario: #595959;
  --borde: #d9d9d9;
  --fondo-suave: #f5f5f5;
  --fondo-calido: #f7f2ec;
  --blanco: #fff;
  --exito: #1e7b45;
  --aviso: #7a5a00;
  --aviso-fondo: #fff7e4;
  --pie-fondo: #fff;
  --radio-boton: 2px;
  --fuente-titulo: 'Roboto Condensed', 'Roboto', Arial, sans-serif;
  --fuente-texto: 'Roboto', Arial, sans-serif;
  --t-h1: 48px;
  --t-h2: 36px;
  --t-h3: 28px;
  --t-tarjeta: 22px;
  --t-destacado: 18px;
  --t-lectura: 16px;
  --t-pequeno: 14px;
  --t-legal: 12px;
  /* Pesos suaves (auditoría 22-oct): sin 600/700, la jerarquía va por tamaño y contraste */
  --peso-titulo: 500;
  --peso-fuerte: 500;
  --peso-texto: 400;
  --peso-suave: 300;
}

/* Solo se cargan 300/400/500: un 700 heredado cae en 500 sin negrita sintética */
html { overflow-x: hidden; font-synthesis: style; }
body { background: var(--blanco); color: var(--tinta); font-family: var(--fuente-texto); }
h1, h2, h3, h4, h5, h6, th, legend { font-weight: var(--peso-titulo); }
b, strong { font-weight: var(--peso-fuerte); }

/* Enlaces: sin el azul por defecto de Bootstrap */
a { color: var(--rojo-oscuro); }
a:hover, a:focus { color: var(--rojo); }

/* Títulos de página (Contacto, Encuentre una tienda, Mujer...) */
.titsecc, .titsecc > a, .titulosecc, .titulo > h2, .carrito-titulo {
  font-family: var(--fuente-titulo);
  font-weight: var(--peso-titulo);
  color: var(--tinta);
  letter-spacing: 0;
}
.titsecc, .titsecc > a, .titulosecc { font-size: 36px; line-height: 1.2; }
.titulosecc > a, .titsecc > a { color: var(--tinta); text-decoration: none; }
.titulosecc > a:hover, .titsecc > a:hover { color: var(--rojo); }
.titulo > h2 { font-size: var(--t-h2); }
h3.boxosecc, .box-infocap h4, .box-infocapsig h4, .footer h5, .caprino-footer h5 {
  font-family: var(--fuente-titulo);
  font-size: var(--t-destacado);
  font-weight: var(--peso-titulo);
  color: var(--tinta);
}

/* Texto de lectura */
.txt-cont p, .calidadc p, .descripcion-producto, .descripcion-producto li, .descripcion-producto p {
  font-family: var(--fuente-texto);
  font-size: var(--t-lectura);
  line-height: 1.6;
  color: var(--tinta);
}

/* Precios */
.p-price, .p-now, .ahora, .priceval, .boxprodval, .boxrescar .itemval, .view-second .boxvalor h3 {
  font-family: var(--fuente-titulo);
}
.p-price > span, .p-now > span { color: var(--rojo); }
.p-before, .antes { color: var(--texto-secundario); }

/* Menú lateral del catálogo y filtros */
.filtro { font-family: var(--fuente-titulo); font-size: var(--t-pequeno); }
.filtro li > ul { font-family: var(--fuente-texto); font-size: var(--t-pequeno); font-weight: 400; }
.cleanfiltros {
  width: auto;
  padding: 0;
  background: none;
  color: var(--rojo-oscuro);
  font-family: var(--fuente-texto);
  font-size: var(--t-pequeno);
  text-decoration: underline;
  text-transform: none;
  letter-spacing: 0;
}
.cleanfiltros:hover, .cleanfiltros:focus { color: var(--rojo); background: none; }

/* Mensajes de confirmación y avisos */
.check-producto, .carrobox .agregart { color: var(--exito); font-family: var(--fuente-texto); }

/* Campos: buscador del encabezado y boletín con el mismo aspecto */
.footin .ph, .caprino-footer .footin .ph, .navsup input[type="text"], .navsup input[type="search"], .searchform input[type="text"] {
  box-sizing: border-box;
  height: 40px;
  border: 1px solid var(--borde);
  border-radius: var(--radio-boton);
  font-family: var(--fuente-texto);
  font-size: var(--t-pequeno);
  color: var(--tinta);
}

/* Pie de página y notas legales: nunca por debajo de 12 px */
.footer, .caprino-footer { background: var(--pie-fondo); font-family: var(--fuente-texto); font-size: var(--t-pequeno); }
body .footer .ten, body .caprino-footer .ten, body .footer ul li, body .footer ul li a, body .caprino-footer ul li, body .caprino-footer ul li a,
body .footer .cont, body .caprino-footer .cont, body .footer .cont .contacfoot, body .caprino-footer .cont .contacfoot,
body .footer .pincorreo, body .caprino-footer .pincorreo {
  font-size: var(--t-pequeno);
  line-height: 1.5;
}
body .red-social span, body .fotp, body .fotp a { font-size: var(--t-legal); }
body .footer .red, body .caprino-footer .red { font-family: var(--fuente-titulo); font-size: var(--t-tarjeta); font-style: normal; white-space: nowrap; }

/* Tarjeta de producto única para inicio y catálogo */
.tarjeta-producto { margin-bottom: 30px; }
.tarjeta-producto__foto {
  display: block;
  background: var(--fondo-calido);
}
.tarjeta-producto__foto img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.tarjeta-producto__info {
  padding: 12px 4px 0;
  text-align: left;
  font-family: var(--fuente-texto);
}
.tarjeta-producto__nombre {
  display: block;
  overflow: hidden;
  color: var(--tinta);
  font-size: var(--t-pequeno);
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}
a.tarjeta-producto__nombre:hover, a.tarjeta-producto__nombre:focus { color: var(--rojo); text-decoration: none; }
.tarjeta-producto__ref {
  color: var(--texto-secundario);
  font-size: var(--t-legal);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tarjeta-producto__precios {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.tarjeta-producto__precio {
  color: var(--rojo);
  font-family: var(--fuente-titulo);
  font-size: var(--t-tarjeta);
  font-weight: var(--peso-fuerte);
}
.tarjeta-producto__antes {
  color: var(--texto-secundario);
  font-size: var(--t-pequeno);
  text-decoration: line-through;
}
.visualmente-oculto {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Catálogo: el bloque de información deja de tener alto fijo */
.producto-hs { height: auto; }
.boximg-det { background: var(--fondo-calido); }
.boximg-det img { mix-blend-mode: multiply; }
.boxinfoproducto-hs.tarjeta-producto__info { height: auto; margin: 0; padding: 12px 12px 16px; }
/* Cada fila empieza debajo de la anterior aunque las tarjetas tengan altos distintos */
.listnewhome { clear: both; }
/* Listado del catálogo: fotos sobre fondo blanco */
li.produ .boximg-det { background: var(--blanco); }

/* Inicio: los indicadores del carrusel no deben salirse de la pantalla */
.carousel-indicators { left: auto; right: 16px; width: auto; margin: 0; padding: 0; }
.puro > .row, .box-rojo > .row { margin-left: 0; margin-right: 0; }

/* Íconos de la franja roja del inicio en blanco */
.puro [class^="icon-"], .puro [class*=" icon-"] { color: var(--blanco); }

/* Catálogo: "Compra rápida" como botón principal, oculto hasta pasar el mouse */
.view a.boxcomprar {
  box-sizing: border-box;
  height: 48px;
  padding: 0;
  border-radius: var(--radio-boton);
  font: var(--peso-fuerte) 15px/48px var(--fuente-titulo);
  font-style: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: translate(0, 400px);
}
.view:hover a.boxcomprar, .view a.boxcomprar:focus { margin: 103px 10px 0; width: calc(100% - 20px); transform: translate(0, 0); }
.view a.boxcomprar:hover { background: var(--rojo-oscuro); color: var(--blanco); }

/* Inicio: menú, titulares sobre foto y bloque de calidad dentro de la escala */
.navbar-default .navbar-nav > li > a { font-size: var(--t-pequeno); }
.box-texto > h4 { font-family: var(--fuente-titulo); font-size: var(--t-h2); font-weight: var(--peso-titulo); }
.puro div > h2 { font-size: var(--t-destacado); line-height: 1.5; }
body .caprino-footer .red-social span, body .footer .red-social span { font-size: var(--t-legal); }
body .footer .red a, body .caprino-footer .red a { font-size: inherit; }

/* Encabezado de páginas internas */
.navbar .nav > li > a, body > .navbar .nav > li > a { color: var(--texto-secundario); }
.navbar .nav > li > a:hover, .navbar .nav > li.active > a { color: var(--rojo); }
.navsup a.btn-header, a.btn-header { font-size: var(--t-legal); }

/* Formularios */
.form-horizontal .control-label { color: var(--tinta); font-family: var(--fuente-texto); font-size: var(--t-legal); font-weight: 500; }
.box-infocap span, .box-infocapsig span { font-size: var(--t-pequeno); }

/* Botón principal (formularios, carrito y pago): mismas medidas que en la ficha */
.btn-frmint, .btn-irpagar, .btn-datos, .btn-drcarrito, .carboton a.btn-vercar, body .footin .add-on, body .caprino-footer .footin .add-on {
  border: 1px solid var(--rojo);
  border-radius: var(--radio-boton);
  background: var(--rojo);
  color: var(--blanco);
  font-family: var(--fuente-titulo);
  font-size: 15px;
  font-weight: var(--peso-fuerte);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: none;
}
.btn-frmint, .btn-irpagar, .btn-datos, .btn-drcarrito { height: 48px; line-height: 46px; }
.btn-frmint:hover, .btn-irpagar:hover, .btn-datos:hover, .btn-drcarrito:hover, .carboton a.btn-vercar:hover,
body .footin .add-on:hover, body .caprino-footer .footin .add-on:hover {
  border-color: var(--rojo-oscuro);
  background: var(--rojo-oscuro);
  color: var(--blanco);
}
body .footin .add-on, body .caprino-footer .footin .add-on { height: 40px; padding: 0 16px; font-size: var(--t-pequeno); }
.ssTwo, .ssTwo a { font-family: var(--fuente-texto); font-size: var(--t-legal); line-height: 1.4; }
a.btn-car { font-size: var(--t-legal); }
body .box-infocap .btnredes a span, body .btnredes span { font-size: var(--t-pequeno); }

/* Ficha de producto */
.descripcion-producto h4, .descrip h4 { font-family: var(--fuente-titulo); font-size: var(--t-pequeno); font-weight: var(--peso-titulo); color: var(--tinta); }
/* La descripción viene del administrador con estilos pegados: se normaliza la letra */
.descripcion-producto p, .descripcion-producto li, .descripcion-producto span, .descripcion-producto font {
  font-family: var(--fuente-texto) !important;
  font-size: var(--t-lectura) !important;
  color: var(--tinta) !important;
  line-height: 1.6;
}
body .box-redesp, body .box-redesp span { font-size: var(--t-pequeno); }
.accordion-heading .accordion-toggle { font-family: var(--fuente-titulo); font-size: var(--t-pequeno); color: var(--tinta); }
.accordion-inner p, .descrip p { font-size: var(--t-pequeno); color: var(--tinta); line-height: 1.6; }
.boxvieron > h3 { font-family: var(--fuente-titulo); font-size: var(--t-tarjeta); font-weight: var(--peso-titulo); color: var(--tinta); }

/* Celular: escala reducida para titulares y tarjetas en dos columnas */
@media (max-width: 767px) {
  .titsecc, .titsecc > a, .titulosecc, .titulo > h2 { font-size: var(--t-h3); }
  a.brand img[src*="LogoCaprino"] { max-width: 180px; }
  .box-texto > h4 { font-size: var(--t-h3); }
  .resumen-producto .nombre-producto { font-size: var(--t-tarjeta); }
  .tarjeta-producto { padding-left: 8px; padding-right: 8px; }
  .tarjeta-producto__precio { font-size: var(--t-destacado); }
  .tarjeta-producto__nombre { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
  .tarjeta-producto:nth-child(2n+1) { clear: left; }
}

/* Celular: catálogo en cuadrícula de dos columnas */
@media (max-width: 767px) {
  .span9:has(> .listnewhome) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .span9:has(> .listnewhome) > * { grid-column: 1 / -1; min-width: 0; }
  .org-por, .org-porint, .org-porint select { max-width: 100%; box-sizing: border-box; }
  .span9:has(> .listnewhome) > .listnewhome, .listnewhome > ul.thumbnailshome { display: contents; }
  .span9:has(> .listnewhome) li.produ { grid-column: auto; float: none; width: auto; margin: 0 0 20px; list-style: none; }
  li.produ > div, li.produ .boxBackBlue, li.produ .producto-hs, li.produ .main, li.produ .view { display: block; width: 100%; margin: 0; }
  .org-por { float: none; width: 100%; } .org-por .btn-group, .org-porint { float: none; width: auto; }
  li.produ .boximg-det { display: flex; align-items: center; justify-content: center; width: 100%; height: auto; aspect-ratio: 1 / 1; line-height: normal; }
  li.produ .boximg-det img { width: 100%; max-height: 100%; object-fit: contain; }
  li.produ .boxinfoproducto-hs.tarjeta-producto__info { padding: 10px 4px 0; }
  .view a.boxcomprar { display: none; }
}

/* Ajustes finales de escala en páginas internas */
body .sf-menu a, body .sf-menu li { font-family: var(--fuente-titulo); }
body .btn-verms { font-size: var(--t-legal); }
body .footer .more ul li, body .footer .more ul li a { font-size: var(--t-pequeno); }
.org-porint span { font-size: var(--t-pequeno); }
.pagination ul > li > a, .pagination ul > li > span { font-family: var(--fuente-texto); font-size: var(--t-pequeno); }
.thumbnailshome li.cc p { font-size: var(--t-lectura); line-height: 1.6; }
.locales li .local, .locales li .dir, .locales li .tel { font-size: var(--t-pequeno); }
.accordion-inner h4 { font-family: var(--fuente-titulo); font-size: var(--t-pequeno); }
.form-horizontal .controls { font-family: var(--fuente-texto); font-size: var(--t-pequeno); }
.box-number p, .boxbtnir p, .out-producto, .table th { font-size: var(--t-pequeno); }
.pagination ul > .disabled > a, .pagination ul > .disabled > span { color: var(--texto-secundario); }
.boxrescar .itemval .btn-vercar { color: var(--rojo-oscuro); }
.garan { font-size: var(--t-lectura); line-height: 1.6; }
body .sf-menu, body .sf-menu a, body .sf-menu li, body .sf-menu span { font-family: var(--fuente-titulo) !important; }
.pagination ul > li > a, .pagination ul > li > span { color: var(--texto-secundario); } .pagination ul > .active > a, .pagination ul > .active > span, .pagination ul > li > a:hover { color: var(--rojo); }

/* Sello de pago seguro (carrito): «Pagos procesados por» + logo oficial de Wompi, 29 de octubre de 2026. */
.pago-seguro { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0 0; padding: 0 0 10px; font-size: 13px; color: var(--texto-secundario); text-transform: none; letter-spacing: 0; }
.pago-seguro img { height: 30px; width: auto; }
