/* Zoopplier — estilos compartidos (index.html + catalogo.html)
   Tokens = Elementor Site Settings › Global Colors / Global Fonts */
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

/* ── Tokens = Elementor Site Settings › Global Colors / Global Fonts ── */
:root {
  --amarillo: #FFA42C;   /* Primario  */
  --naranja:  #F15A24;   /* Secundario */
  --petroleo: #16697B;   /* Acento    */
  --gris:     #B3B3B3;   /* Gris marca */
  --gris-claro: #F2F2F2; /* fondo de secciones, tomado de presentaciones */
  --tinta:    #1F2A30;   /* texto (el gris de marca no da contraste para lectura) */
  --tinta-suave: #55626A;
  --blanco:   #FFFFFF;

  --radio: 28px;
  --radio-chico: 16px;
  --ancho: 1200px;
  --gutter: 24px;
  --seccion: clamp(64px, 9vw, 120px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--seccion) 0; position: relative; overflow: hidden; }

/* ── Tipografía (manual: Título/Frase destacada ExtraBold · Subtítulo SemiBold · Texto Regular) ── */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--petroleo); margin-bottom: 18px;
}
.h1, .h2 { font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; }
.h1 { font-size: clamp(44px, 6.4vw, 84px); }
.h2 { font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 24px; }
.h3 { font-size: 22px; font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 34em; }
.t-naranja { color: var(--naranja); }
.t-petroleo { color: var(--petroleo); }
.t-blanco { color: var(--blanco); }
.muted { color: var(--tinta-suave); }

/* El punto del logo como acento en títulos de tarjeta */
.dot { display: inline-block; width: .42em; height: .42em; border-radius: 50%; background: var(--amarillo); margin-right: .45em; vertical-align: .2em; }
.dot--naranja { background: var(--naranja); }
.dot--petroleo { background: var(--petroleo); }

/* ── Botones píldora — EL: Button ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 16px/1 "Manrope", sans-serif; text-decoration: none;
  padding: 17px 28px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--naranja { background: var(--naranja); color: var(--blanco); }
.btn--naranja:hover { background: #d94a17; }
.btn--petroleo { background: var(--petroleo); color: var(--blanco); }
.btn--petroleo:hover { background: #0f5361; }
.btn--borde { border-color: currentColor; color: var(--petroleo); }
.btn--borde:hover { background: var(--petroleo); color: var(--blanco); border-color: var(--petroleo); }
.btn--blanco { background: var(--blanco); color: var(--petroleo); }
.btn--chico { padding: 12px 20px; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Recursos gráficos — en Elementor: imagen de fondo SVG del Container */
/* Anillos del flyer 1: 3 círculos concéntricos (r 434/337/240), línea blanca fina,
   centro en el borde derecho. En Elementor: SVG como imagen de fondo del Container. */
.arcos { position: absolute; pointer-events: none; width: 880px; height: 880px; color: #fff; }
.cuarto { position: absolute; width: 260px; height: 260px; border-radius: 50%; pointer-events: none; }

/* ════════ HEADER — EL: Theme Builder Header (Pro) o Container con position sticky ════════ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid #ececec;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.header__logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 28px; list-style: none; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--tinta); }
.nav a:hover { color: var(--naranja); }

/* ════════ 1. HERO ════════ */
.hero { background: var(--amarillo); padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 88px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero .h1 { color: var(--petroleo); margin-bottom: 26px; }
.hero .lead { color: var(--tinta); margin-bottom: 36px; }
.hero__img { position: relative; }
.hero__img img { width: 100%; filter: drop-shadow(0 30px 40px rgba(120,60,0,.25)); }
/* En el hero los anillos salen del equipo, como en el flyer */
.hero__img img { position: relative; z-index: 1; }
.hero__img .arcos { width: 108%; height: auto; aspect-ratio: 1; left: 64%; top: 50%; transform: translateY(-50%); }
/* ════════ 1b. FRANJA ZOOPPLIER × MINDRAY ════════
   EL: Container grid 3 col, fondo petróleo — Image (Zoopplier blanco) + Image (Mindray blanco) + Text Editor */
.respaldo { background: var(--petroleo); color: var(--blanco); padding: 26px 0; }
.respaldo .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.respaldo__item { display: flex; align-items: center; justify-content: center; padding: 10px 24px; min-height: 72px; text-align: center; }
.respaldo__item + .respaldo__item { border-left: 1px solid rgba(255,255,255,.5); }
.respaldo__item--texto { justify-content: flex-start; text-align: left; padding-left: 40px; }
.respaldo__item img { height: 52px; width: auto; }
.respaldo__item .zp { height: 56px; }
.respaldo p { font-weight: 600; font-size: 18px; line-height: 1.4; max-width: 19em; }
.respaldo p strong { font-weight: 800; }

/* ════════ 3. SOLUCIONES — layout del manual (pág. 17) ════════ */
.soluciones { background: var(--naranja); }
.soluciones .eyebrow, .soluciones .h2 { color: var(--blanco); }
.soluciones .arcos { right: -440px; top: -200px; }
.soluciones .wrap { position: relative; }
.soluciones__head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.lineas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
/* EL: Container con link; fondo gris con radio solo arriba-izq + Container petróleo superpuesto (margen negativo) */
.linea { display: flex; flex-direction: column; text-decoration: none; transition: transform .25s ease; }
.linea:hover { transform: translateY(-6px); }
.linea__media {
  background: var(--blanco); border-radius: 180px var(--radio-chico) 0 0;
  aspect-ratio: 1 / 1.02; padding: 40px 18px 56px;
  display: grid; place-items: center;
}
.linea__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.linea:hover .linea__media img { transform: scale(1.04); }
.linea__media .ph { background: none; }
.linea__info {
  background: var(--petroleo); color: var(--blanco); border-radius: var(--radio);
  padding: 22px 26px 26px; margin-top: -40px; position: relative; flex: 1;
}
.linea__titulo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; line-height: 1.15; margin-bottom: 8px; }
.linea__titulo svg { width: 26px; height: 26px; flex: none; color: var(--amarillo); transition: transform .2s ease; }
.linea:hover .linea__titulo svg { transform: translateX(4px); }
.linea__info p { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.88); }

/* ════════ 3. SERVICIOS ════════ */
.servicios { background: var(--petroleo); color: var(--blanco); }
.servicios .eyebrow { color: var(--amarillo); }
.servicios .arcos { color: rgba(255,255,255,.4); right: -440px; top: -140px; }
.servicios__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; position: relative; }
.servicio { background: var(--blanco); color: var(--tinta); border-radius: var(--radio); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; }
.servicio > p { color: var(--tinta-suave); margin-bottom: 24px; }
.servicio { position: relative; }
.servicio__cta { position: absolute; right: clamp(28px, 4vw, 44px); bottom: 0; transform: translateY(50%); }
.servicio__cta .btn { box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.incluye { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--petroleo); margin-bottom: 12px; }
.checks { list-style: none; display: grid; gap: 10px; align-content: start; margin-bottom: 30px; flex: 1; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--naranja); margin-top: 2px; }

/* ════════ 4. NOSOTROS ════════ */
/* La foto se estira al alto de la columna de texto: el recuadro destacado cierra alineado con su base.
   EL: Container fila con "Align items: stretch"; la imagen como fondo del Container izquierdo (cover). */
#nosotros { padding-bottom: clamp(48px, 6vw, 80px); }
.historia { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: stretch; }
.historia__foto { border-radius: var(--radio); overflow: hidden; min-height: 420px; position: relative; }
.historia__texto { display: flex; flex-direction: column; }
.historia__texto p { margin-bottom: 16px; color: var(--tinta-suave); }
.callout {
  background: var(--amarillo); color: var(--tinta); border-radius: var(--radio);
  padding: 22px 26px; font-size: 17px; font-weight: 700; line-height: 1.45; margin-top: auto;
  display: flex; gap: 14px; align-items: flex-start;
}
.callout svg { width: 28px; height: 28px; flex: none; color: var(--petroleo); margin-top: -1px; }
.mvp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(56px, 7vw, 88px); }
.mvp article { background: var(--gris-claro); border-radius: var(--radio); padding: 34px 32px; }
.mvp p { color: var(--tinta-suave); }
/* Banda full width — EL: Container ancho completo, fondo petróleo, contenido en grid de 4 columnas */
.valores { background: var(--petroleo); color: var(--blanco); padding: clamp(48px, 6vw, 72px) 0; }
.valores .wrap { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 24px 40px; align-items: start; }
.valores h2 { margin: 0; padding-right: 16px; }
.valores p { color: rgba(255,255,255,.82); font-size: 15.5px; }
.valores strong { display: block; color: var(--blanco); font-size: 18px; margin-bottom: 4px; }

/* ════════ 5. MINDRAY + POR QUÉ ════════ */
.porque { background: var(--gris-claro); padding-top: clamp(40px, 5vw, 64px); }
.mindray {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: var(--blanco); border-radius: var(--radio); padding: clamp(32px, 5vw, 56px);
  margin-bottom: clamp(48px, 6vw, 72px); position: relative; overflow: hidden;
}
.mindray .cuarto { background: var(--amarillo); right: -130px; top: -130px; }
.mindray__logo { font-weight: 800; color: #C8102E; line-height: .95; font-size: clamp(38px, 4vw, 52px); letter-spacing: -0.02em; }
.mindray__logo small { display: block; color: #6b6b6b; font-weight: 600; font-size: .5em; letter-spacing: 0; margin-top: 4px; }
.mindray__logo em { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: var(--tinta-suave); margin-top: 14px; letter-spacing: .1em; text-transform: uppercase; }
.mindray p { color: var(--tinta-suave); margin-top: 12px; }
/* EL: Icon Box ×4 */
/* EL: Container 2 columnas — izq: Heading + grid 2×2 de Icon Box · der: Image (mapa) */
.porque__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.porque__mapa img { width: 100%; max-width: 560px; margin: 0 auto; }
.razones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.porque__titulo { font-size: clamp(32px, 3.6vw, 50px); margin-bottom: 0; }
.razon { background: var(--blanco); border-radius: var(--radio); padding: 22px 22px 24px; }
.razon__icono { width: 44px; height: 44px; border-radius: 50%; background: var(--amarillo); display: grid; place-items: center; margin-bottom: 14px; color: var(--blanco); }
.razon:nth-child(2) .razon__icono { background: var(--naranja); }
.razon:nth-child(3) .razon__icono { background: var(--petroleo); }
.razon:nth-child(4) .razon__icono { background: var(--tinta); }
.razon__icono svg { width: 22px; height: 22px; }
.razon .h3 { font-size: 18px; margin-bottom: 6px; }
.razon p { color: var(--tinta-suave); }

/* ════════ 6. USADOS ════════ */
/* Nota al pie de la grilla — EL: Icon List o Text Editor chico */
.aviso {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 24px; font-size: 14.5px; line-height: 1.5; color: var(--tinta-suave);
}
.aviso { align-items: center; gap: 12px; }
/* Mismo recurso que los íconos de "¿Por qué elegirnos?", en chico */
.aviso__icono { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--naranja); color: var(--blanco); display: grid; place-items: center; }
.aviso__icono svg { width: 16px; height: 16px; }
.aviso strong { color: var(--tinta); font-weight: 700; }
/* EL: Container grid + Image Box / Loop Grid (Pro) */
.usados { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.usado { background: var(--blanco); border: 1px solid #e7e7e7; border-radius: var(--radio-chico); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease; }
.usado:hover { box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.usado__img { aspect-ratio: 4/3; background: var(--gris-claro); display: grid; place-items: center; }
.usado__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.usado h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.estado.estado--linea { background: #FFE9D1; color: #A8400F; }
.catalogo .usado h3 { margin-bottom: 0; }
.catalogo__cta { display: flex; justify-content: center; margin-top: 40px; }
.usado__desc { font-size: 15px; line-height: 1.5; color: var(--tinta-suave); margin-bottom: 6px; }
.estado { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #E3F0F2; color: var(--petroleo); }
.precio { font-weight: 800; font-size: 19px; color: var(--tinta); margin-top: auto; }
.usado a { font-weight: 700; color: var(--naranja); text-decoration: none; font-size: 15px; }

/* ════════ 7. NOVEDADES — EL: Basic Gallery + Lightbox ════════ */
.novedades { background: var(--gris-claro); }
/* Carrusel 4×1 (maqueta estática; se desplaza con scroll/trackpad, flechas decorativas).
   EL: Loop Carousel (Pro) o Image Carousel (free) con "Slides to show: 4", flechas y puntos. */
.novedades__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.novedades__head .h2 { margin-bottom: 0; }
.carrusel__nav { display: flex; gap: 10px; flex: none; }
.carrusel__btn { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--petroleo); color: var(--petroleo); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.carrusel__btn svg { width: 20px; height: 20px; }
.carrusel__btn--prev svg { transform: rotate(180deg); }
.carrusel__btn:hover, .carrusel__btn--activo { background: var(--petroleo); color: var(--blanco); }
.carrusel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carrusel::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; }
.slide__img { aspect-ratio: 4 / 3; border-radius: var(--radio-chico); overflow: hidden; background: #e3e3e3; }
.slide__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.slide:hover .slide__img img { transform: scale(1.04); }
.slide h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin-top: 14px; }
.carrusel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.carrusel__dots span { width: 8px; height: 8px; border-radius: 999px; background: #cfcfcf; }
.carrusel__dots .activo { width: 26px; background: var(--naranja); }

/* Placeholder de foto pendiente */
.ph { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; color: #8d8d8d; font-size: 13.5px; font-weight: 600; padding: 16px; background: repeating-linear-gradient(135deg, #ebebeb 0 14px, #e4e4e4 14px 28px); }
.ph svg { width: 34px; height: 34px; margin: 0 auto 6px; opacity: .6; }

/* ════════ 8. CONTACTO ════════ */
.contacto { background: var(--naranja); }
.contacto .arcos { color: rgba(255,255,255,.55); left: -440px; bottom: -380px; }
.contacto__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 64px); align-items: start; position: relative; }
.contacto .h2 { color: var(--blanco); }
.contacto .lead { color: var(--blanco); }
/* Filas iguales: canales, datos y mapa miden lo mismo — EL: Container grid con filas de igual alto */
.canales { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 20px; }
.canal { background: var(--blanco); border-radius: var(--radio); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.canal p { color: var(--tinta-suave); font-size: 15.5px; margin-bottom: 14px; flex: 1; }
.datos { grid-column: 1 / -1; background: var(--blanco); border-radius: var(--radio); padding: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; }
.dato { display: flex; gap: 14px; align-items: flex-start; }
.dato svg { width: 22px; height: 22px; flex: none; color: var(--naranja); margin-top: 3px; }
.dato small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--petroleo); }
.dato span, .dato a { font-weight: 600; text-decoration: none; }
.mapa { grid-column: 1 / -1; border-radius: var(--radio); overflow: hidden; min-height: 220px; background: #f6f6f6; }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ════════ FOOTER ════════ */
.footer { background: var(--petroleo); color: rgba(255,255,255,.85); padding: 56px 0 40px; font-size: 15px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.2); }
.footer__top img { height: 46px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { text-decoration: none; font-weight: 600; color: var(--blanco); }
.footer nav a:hover { color: var(--amarillo); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; }

/* ════════ WhatsApp flotante — EL: Floating Buttons ════════ */
.wa-flotante {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.22);
  transition: transform .2s ease;
}
.wa-flotante:hover { transform: scale(1.07); }
.wa-flotante svg { width: 32px; height: 32px; }


/* ════════ Responsive (Elementor: Tablet ≤1024 · Mobile ≤767) ════════ */
@media (max-width: 1024px) {
  .nav { display: none; }
  .usados { grid-template-columns: repeat(2, 1fr); }
  .carrusel { grid-auto-columns: calc((100% - 20px) / 2); }
  .porque__grid { grid-template-columns: 1fr; }
  .porque__mapa img { max-width: 440px; }
  .contacto__grid { grid-template-columns: 1fr; }
  .lineas { gap: 18px; }
  .linea__titulo { font-size: 19px; }
  .valores .wrap { grid-template-columns: repeat(3, 1fr); }
  .valores h2 { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .header .wrap { height: 66px; }
  .header__logo img { height: 32px; }
  .hero__grid, .lineas, .servicios__grid, .historia, .mvp, .mindray, .canales, .datos { grid-template-columns: 1fr; }
  .hero__img { margin: 0 -12px; }
  .razones { grid-template-columns: 1fr; }
  .lineas { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; gap: 28px; }
  .usados { grid-template-columns: 1fr 1fr; gap: 14px; }
  .usado__body { padding: 14px; }
  .valores .wrap { grid-template-columns: 1fr; }
  .historia__foto { aspect-ratio: 4/3; min-height: 0; }
  .callout { margin-top: 12px; }
  .btns .btn { flex: 1 1 100%; justify-content: center; }
  .respaldo { padding: 18px 0; }
  .respaldo .wrap { grid-template-columns: 1fr 1fr; }
  .respaldo__item { padding: 10px 12px; min-height: 60px; }
  .respaldo__item img { height: 38px; }
  .respaldo__item .zp { height: 42px; }
  .respaldo__item--texto { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid rgba(255,255,255,.5); margin-top: 8px; padding: 16px 12px 6px; }
  .respaldo p { font-size: 15.5px; }
  .wa-flotante { width: 56px; height: 56px; right: 16px; bottom: 16px; }
  .carrusel { grid-auto-columns: 80%; gap: 14px; }
  .carrusel__nav { display: none; }
  .aviso { align-items: flex-start; }
  .aviso__icono { margin-top: -2px; }
  .servicios .arcos, .contacto .arcos { width: 560px; height: 560px; }
  .servicios .arcos { right: -280px; top: -80px; }
  .contacto .arcos { left: -280px; bottom: -240px; }
  .canales { grid-auto-rows: auto; }
  .mapa { height: 260px; }
  .mindray .cuarto { width: 120px; height: 120px; right: -60px; top: -60px; }
}

/* ══════════════════════════════════════════════════════════════════
   PÁGINA CATÁLOGO (catalogo.html)
   Reutiliza: .header, .btn, .estado, .usado (tarjeta), .checks, .callout, .arcos, .footer
   EL: Archive/Loop Grid de productos + Search + Taxonomy Filter; cada tarjeta lleva a producto.html.
   ══════════════════════════════════════════════════════════════════ */
.nav a[aria-current="page"] { color: var(--naranja); }

/* Título + controles en una fila — fija bajo el header al hacer scroll */
.controles { position: sticky; top: 76px; z-index: 40; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid #ececec; padding: 22px 0; }
.controles .wrap { display: flex; gap: 12px; align-items: center; }
.controles__titulo { flex: none; margin-right: 20px; font-size: clamp(28px, 2.6vw, 38px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--petroleo); }
.campo { position: relative; flex: 1 1 auto; }
.campo svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--tinta-suave); pointer-events: none; }
.campo input, .selector select {
  width: 100%; height: 50px; border-radius: 999px; border: 1.5px solid #dcdcdc; background: var(--blanco);
  font: 600 15px/1 "Manrope", sans-serif; color: var(--tinta);
}
.campo input { padding: 0 20px 0 48px; font-weight: 500; font-size: 16px; }
.campo input::placeholder { color: #8a949a; }
.selector { position: relative; flex: 0 0 280px; }
.selector select { appearance: none; padding: 0 44px 0 20px; cursor: pointer; }
.selector::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--petroleo); border-bottom: 2px solid var(--petroleo); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.campo input:focus, .selector select:focus { outline: none; border-color: var(--petroleo); box-shadow: 0 0 0 3px rgba(22,105,123,.18); }

/* Resultados */
.catalogo-pagina { padding: 32px 0 var(--seccion); }
.resultados { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; min-height: 28px; }
.resultados__total { font-weight: 700; }
.resultados__total span { color: var(--tinta-suave); font-weight: 500; }
.limpiar { font: 700 15px "Manrope", sans-serif; color: var(--naranja); text-decoration: none; }
.cargar-mas { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 40px; color: var(--tinta-suave); font-size: 15px; }

/* Tarjeta de producto = tarjeta .usado + link que cubre toda la tarjeta */
.usado--producto { position: relative; cursor: pointer; }
.usado--producto .usado__img { position: relative; background: var(--blanco); border-bottom: 1px solid #f0f0f0; }
.usado--producto .usado__img img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; transition: transform .35s ease; }
.usado--producto:hover .usado__img img { transform: scale(1.05); }
.usado--producto h3 a { text-decoration: none; color: var(--tinta); font-size: inherit; }
.usado--producto h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.usado--producto h3 a:focus-visible { outline: none; }
.usado--producto:has(a:focus-visible) { box-shadow: 0 0 0 3px var(--petroleo); }
.usado__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.usado__ver { margin-top: auto; font-weight: 700; font-size: 15px; color: var(--naranja); }

.sin-resultados { text-align: center; padding: 72px 0; }
.sin-resultados .h3 { margin-bottom: 8px; }
.sin-resultados p { color: var(--tinta-suave); margin-bottom: 24px; }

/* ══════════ PÁGINA DE PRODUCTO (producto.html) ══════════
   EL: plantilla Single del Theme Builder (Pro) con campos dinámicos. */
.migas { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; font-weight: 600; padding: 24px 0 8px; color: var(--tinta-suave); }
.migas a { text-decoration: none; color: var(--tinta-suave); }
.migas a:hover { color: var(--naranja); }
.migas [aria-current="page"] { color: var(--tinta); }
.ficha { padding: 16px 0 clamp(56px, 7vw, 96px); }
.ficha__cuerpo { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ficha__galeria { position: sticky; top: 100px; }
.ficha__principal { aspect-ratio: 1; border: 1px solid #eee; border-radius: var(--radio-chico); display: grid; place-items: center; padding: 24px; overflow: hidden; }
.ficha__principal img { width: 100%; height: 100%; object-fit: contain; }
.ficha__thumbs { display: flex; gap: 10px; margin-top: 14px; }
.ficha__thumbs span { width: 84px; height: 84px; padding: 6px; border-radius: 12px; border: 2px solid #e6e6e6; background: var(--blanco); cursor: pointer; }
.ficha__thumbs span img { width: 100%; height: 100%; object-fit: contain; }
.ficha__thumbs .activo { border-color: var(--petroleo); }

.ficha__titulo { font-size: clamp(34px, 4vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--petroleo); margin-bottom: 10px; }
.ficha__bajada { font-size: 19px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.ficha__desc { color: var(--tinta-suave); margin-bottom: 20px; }
.ficha__datos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; list-style: none; }
.ficha__datos li { background: var(--gris-claro); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; }
.ficha__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.ficha__seccion { border-top: 1px solid #ececec; padding-top: 22px; margin-top: 4px; }
.ficha .checks { margin-bottom: 20px; }
.ficha .checks li { font-weight: 500; }
.ficha .callout { margin-top: 0; margin-bottom: 24px; font-size: 16px; font-weight: 600; }
.relacionados { background: var(--gris-claro); }

@media (max-width: 1180px) {
  .controles .wrap { flex-wrap: wrap; }
  .controles__titulo { flex: 1 1 100%; margin: 0 0 6px; }
}
@media (max-width: 1024px) {
  .selector { flex-basis: 260px; }
  .ficha__cuerpo { grid-template-columns: 1fr; }
  .ficha__galeria { position: static; }
  .ficha__principal { aspect-ratio: 4 / 3; }
}
@media (max-width: 767px) {
  .controles { top: 66px; padding: 16px 0 12px; }
  .controles .wrap { flex-wrap: wrap; gap: 8px; }
  .campo { flex: 1 1 100%; }
  .selector { flex: 1 1 100%; }
  .campo input, .selector select { height: 46px; font-size: 14px; }
  .selector select { padding: 0 34px 0 16px; }
  .selector::after { right: 16px; }
  .migas { padding-top: 16px; font-size: 13px; }
  .ficha__thumbs span { width: 64px; height: 64px; }
  .ficha__acciones .btn { flex: 1 1 100%; justify-content: center; }
}
