/*
Theme Name: Obturadores Pantera
Theme URI: https://obturadores.net/blog/
Author: Suministros Pantera
Description: Tema del blog de Obturadores.net, adaptado para que coincida con la tienda PrestaShop (tema Juvento 5). Mismos colores de marca (rojo, blanco y negro), misma cabecera, mismo slider hero y mismo pie de pagina.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: obturadores-pantera
Tags: blog, e-commerce, red, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   Variables de marca (muestreadas del render real de la tienda)
   ============================================================ */
:root {
  --op-red-nav: #e54a38;   /* barra de navegacion */
  --op-red-cta: #e02020;   /* botones / precios / acentos */
  --op-dark: #3b3b3b;      /* boton "Categorias", textos fuertes */
  --op-black: #111111;     /* pie de pagina / banner cookies */
  --op-topbar: #ececec;    /* barra superior */
  --op-border: #e5e5e5;
  --op-text: #333333;
  --op-muted: #777777;
  --op-max: 1600px;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--op-text);
  background: #ffffff;
}

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

a { color: var(--op-red-cta); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #222222;
  line-height: 1.25;
}

.op-container {
  width: 92%;
  max-width: var(--op-max);
  margin: 0 auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ============================================================
   Barra superior
   ============================================================ */
.op-topbar {
  background: var(--op-topbar);
  font-size: 12px;
  border-bottom: 1px solid #dedede;
}
.op-topbar .op-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
}
.op-topbar__welcome { color: #555; }
.op-topbar__welcome strong { color: var(--op-red-cta); font-weight: 700; }
.op-topbar__links { display: flex; gap: 22px; flex-wrap: wrap; }
.op-topbar__links a { color: #555; }
.op-topbar__links a:hover { color: var(--op-red-cta); text-decoration: none; }

/* ============================================================
   Cabecera
   ============================================================ */
.op-header { background: #fff; padding: 18px 0; }
.op-header .op-container {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.op-logo img { width: 134px; height: auto; display: block; }

.op-contact { font-size: 13px; line-height: 1.35; color: #555; }
.op-contact a { color: #555; }
.op-contact a:hover { color: var(--op-red-cta); text-decoration: none; }
.op-contact__mail { display: block; }
.op-contact__tel { display: block; }

.op-search { flex: 1 1 320px; min-width: 220px; margin-left: auto; }
.op-search form { display: flex; }
.op-search input[type="search"] {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dcdcdc;
  border-right: 0;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.op-search input[type="search"]:focus { border-color: #bdbdbd; }
.op-search button {
  width: 64px;
  border: 0;
  background: var(--op-red-cta);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.op-search button:hover { background: #c81a1a; }

.op-shoplink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--op-dark);
  white-space: nowrap;
}
.op-shoplink small { display: block; color: var(--op-red-cta); font-weight: 700; }
.op-shoplink:hover { text-decoration: none; color: var(--op-red-cta); }

/* ============================================================
   Navegacion roja
   ============================================================ */
.op-nav { background: var(--op-red-nav); }
.op-nav .op-container { display: flex; align-items: center; gap: 6px; }

.op-nav__toggle {
  display: none;
  background: var(--op-dark);
  color: #fff;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 14px 20px;
  cursor: pointer;
}

.op-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.op-menu li { position: relative; }
.op-menu li a {
  display: block;
  padding: 16px 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.op-menu li a:hover { background: rgba(0,0,0,.12); text-decoration: none; }
.op-menu li.current-menu-item > a,
.op-menu li.current_page_item > a { background: rgba(0,0,0,.18); }

/* submenus */
.op-menu ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  list-style: none;
  margin: 0; padding: 6px 0;
  z-index: 500;
}
.op-menu li:hover > ul.sub-menu { display: block; }
.op-menu ul.sub-menu li a {
  color: var(--op-text);
  text-transform: none;
  font-weight: 600;
  padding: 10px 16px;
}
.op-menu ul.sub-menu li a:hover { background: #f6f6f6; color: var(--op-red-cta); }

/* ============================================================
   Hero slider
   ============================================================ */
.op-hero { position: relative; overflow: hidden; background: #f2f2f2; }
.op-hero__track { position: relative; }
.op-hero__slide {
  display: none;
  width: 100%;
}
.op-hero__slide.is-active { display: block; }
.op-hero__slide img { width: 100%; display: block; }

.op-hero__dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 9px;
  z-index: 5;
}
.op-hero__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(0,0,0,.28);
  cursor: pointer;
}
.op-hero__dot.is-active { background: var(--op-red-cta); }

.op-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 0;
  background: rgba(0,0,0,.32);
  color: #fff;
  font-size: 22px;
  line-height: 44px;
  cursor: pointer;
  z-index: 5;
}
.op-hero__arrow:hover { background: var(--op-red-cta); }
.op-hero__arrow--prev { left: 14px; }
.op-hero__arrow--next { right: 14px; }

/* ============================================================
   Titulos de seccion (como "NUESTRAS CATEGORIAS" en la tienda)
   ============================================================ */
.op-section-title {
  margin: 34px 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--op-border);
  position: relative;
}
.op-section-title h1,
.op-section-title h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.op-section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 190px; height: 2px;
  background: var(--op-red-cta);
}

/* ============================================================
   Listado de entradas
   ============================================================ */
.op-layout {
  display: flex;
  gap: 34px;
  align-items: flex-start;
  padding-bottom: 50px;
}
.op-main { flex: 1 1 auto; min-width: 0; }
.op-sidebar { flex: 0 0 290px; }

.op-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.op-card {
  border: 1px solid var(--op-border);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.op-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.10); transform: translateY(-2px); }
.op-card__thumb { display: block; overflow: hidden; background: #f7f7f7; }
.op-card__thumb img { width: 100%; display: block; }
.op-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.op-card__meta { font-size: 12px; color: var(--op-muted); margin-bottom: 8px; }
.op-card__title { margin: 0 0 10px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.op-card__title a { color: #222; }
.op-card__title a:hover { color: var(--op-red-cta); text-decoration: none; }
.op-card__excerpt { font-size: 13px; color: #666; margin: 0 0 16px; }

/* Portada editorial */
.op-home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 34px;
  align-items: center;
  margin: 34px 0 18px;
  padding: 34px 38px;
  background: linear-gradient(120deg, #151515 0%, #252525 68%, #3a1717 100%);
  border-left: 5px solid var(--op-red-cta);
}
.op-home-intro__eyebrow { margin: 0 0 9px; color: #ff9999; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.op-home-intro h1 { margin: 0 0 13px; color: #fff; font-size: 30px; line-height: 1.15; }
.op-home-intro__copy > p:last-child { margin: 0; color: #d0d0d0; font-size: 15px; line-height: 1.65; }
.op-home-intro__features { display: grid; gap: 9px; }
.op-home-intro__features > div { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; padding: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.op-home-intro__features svg { grid-row: span 2; width: 30px; height: 30px; fill: none; stroke: #ff7777; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.op-home-intro__features strong { color: #fff; font-size: 13px; }
.op-home-intro__features span { color: #bdbdbd; font-size: 12px; margin-top: 3px; }
.op-home-intro + .op-section-title { margin-top: 25px; }
.op-home-intro + .op-section-title h1 { font-size: 17px; }

/* Archivo de las ultimas veinte guias en portada */
.op-latest-guides {
  margin: 54px 0 10px;
  padding: 30px;
  background: linear-gradient(135deg, #1d1d1d 0%, #353535 100%);
  border-top: 4px solid var(--op-red-cta);
}
.op-latest-guides__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}
.op-latest-guides__eyebrow {
  margin: 0 0 5px;
  color: #ff9999;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.op-latest-guides h2 { margin: 0; color: #fff; font-size: 23px; }
.op-latest-guides__heading > a { color: #fff; font-size: 13px; font-weight: 700; }
.op-latest-guides__heading > a:hover { color: #ff9999; text-decoration: none; }
.op-latest-guides__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.op-latest-guides__grid a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0 10px;
  padding: 12px;
  min-height: 74px;
  color: #e8e8e8;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
}
.op-latest-guides__grid a:hover { background: rgba(224,32,32,.22); border-color: var(--op-red-cta); }
.op-latest-guides__number { grid-row: span 2; color: #ff7777; font-size: 12px; font-weight: 800; }
.op-latest-guides__text { font-size: 13px; font-weight: 700; line-height: 1.35; }
.op-latest-guides__date { color: #aaa; font-size: 11px; margin-top: 5px; }

.op-btn {
  display: inline-block;
  background: var(--op-red-cta);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 10px 20px;
  border: 0;
  cursor: pointer;
  align-self: flex-start;
  margin-top: auto;
}
.op-btn:hover { background: #c81a1a; text-decoration: none; }

/* ============================================================
   Entrada individual / pagina
   ============================================================ */
.op-entry { padding-bottom: 40px; }
.op-entry__header { margin-bottom: 22px; }
.op-entry__title { font-size: 28px; margin: 0 0 10px; }
.op-entry__meta { font-size: 12.5px; color: var(--op-muted); }
.op-entry__thumb {
  float: left;
  width: min(38%, 360px);
  margin: 0 30px 18px 0;
  padding: 10px;
  border: 1px solid var(--op-border);
  background: #fff;
}
.op-entry__thumb img { display: block; width: 100%; height: auto; }
.op-entry::after { content: ""; display: table; clear: both; }
.op-entry__content { font-size: 15px; line-height: 1.75; }
.op-entry__content h2 { font-size: 21px; margin-top: 32px; }
.op-entry__content h3 { font-size: 18px; margin-top: 26px; }
.op-entry__content img { height: auto; }
.op-entry__content blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--op-red-cta);
  background: #fafafa;
  color: #555;
}
.op-entry__content a { text-decoration: underline; }

.op-breadcrumb {
  font-size: 12.5px;
  color: var(--op-muted);
  padding: 16px 0;
}
.op-breadcrumb a { color: var(--op-muted); }
.op-breadcrumb a:hover { color: var(--op-red-cta); text-decoration: none; }
.op-breadcrumb span.sep { margin: 0 8px; color: #bbb; }

/* ============================================================
   Barra lateral
   ============================================================ */
.op-widget {
  border: 1px solid var(--op-border);
  margin-bottom: 24px;
}
.op-widget__title {
  margin: 0;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--op-dark);
  color: #fff;
}
.op-widget__inner { padding: 14px 16px; }
.op-widget ul { list-style: none; margin: 0; padding: 0; }
.op-widget li { padding: 7px 0; border-bottom: 1px solid #f0f0f0; font-size: 13.5px; }
.op-widget li:last-child { border-bottom: 0; }
.op-widget a { color: #444; }
.op-widget a:hover { color: var(--op-red-cta); text-decoration: none; }

.op-cta-box {
  background: var(--op-black);
  color: #fff;
  padding: 22px 18px;
  text-align: center;
}
.op-cta-box h3 { color: #fff; margin: 0 0 8px; font-size: 16px; }
.op-cta-box p { color: #c9c9c9; font-size: 13px; margin: 0 0 16px; }

/* ============================================================
   Paginacion
   ============================================================ */
.op-pagination { margin: 34px 0 0; display: flex; gap: 7px; flex-wrap: wrap; }
.op-pagination .page-numbers {
  display: inline-block;
  min-width: 38px;
  text-align: center;
  padding: 9px 11px;
  border: 1px solid var(--op-border);
  color: #444;
  font-size: 13px;
  font-weight: 600;
}
.op-pagination .page-numbers:hover { border-color: var(--op-red-cta); color: var(--op-red-cta); text-decoration: none; }
.op-pagination .page-numbers.current {
  background: var(--op-red-cta);
  border-color: var(--op-red-cta);
  color: #fff;
}

/* ============================================================
   Pie de pagina
   ============================================================ */
.op-footer { background: var(--op-black); color: #c9c9c9; margin-top: 10px; }
.op-footer a { color: #c9c9c9; }
.op-footer a:hover { color: #fff; text-decoration: none; }

.op-footer__top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  padding: 44px 0 36px;
}
.op-footer h4 {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.op-footer ul { list-style: none; margin: 0; padding: 0; }
.op-footer li { padding: 6px 0; font-size: 13px; }
.op-footer p { font-size: 13px; margin: 0 0 8px; }
.op-footer__logo img { width: 150px; margin-bottom: 14px; background: #fff; padding: 8px; }

.op-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1199px) {
  .op-container { width: 95%; }
  .op-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .op-layout { flex-direction: column; }
  .op-sidebar { flex: 1 1 auto; width: 100%; }
  .op-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .op-logo img { width: 100px; }
  .op-header .op-container { gap: 14px; }
  .op-search { flex: 1 1 100%; margin-left: 0; order: 5; }
  .op-contact { font-size: 12px; }

  .op-nav .op-container { flex-direction: column; align-items: stretch; }
  .op-nav__toggle { display: block; width: 100%; text-align: left; }
  .op-menu { display: none; flex-direction: column; width: 100%; }
  .op-menu.is-open { display: flex; }
  .op-menu li a { padding: 13px 16px; border-top: 1px solid rgba(255,255,255,.16); }
  .op-menu ul.sub-menu {
    display: block;
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,.14);
    padding: 0;
  }
  .op-menu ul.sub-menu li a { color: #fff; padding-left: 32px; }
  .op-menu ul.sub-menu li a:hover { background: rgba(0,0,0,.2); color: #fff; }

  .op-grid { grid-template-columns: 1fr; }
  .op-entry__title { font-size: 22px; }
  .op-home-intro { grid-template-columns: 1fr; margin-top: 20px; padding: 25px 20px; gap: 22px; }
  .op-home-intro h1 { font-size: 24px; }
  .op-latest-guides { margin-top: 38px; padding: 22px 18px; }
  .op-latest-guides__heading { align-items: flex-start; flex-direction: column; }
  .op-latest-guides__grid { grid-template-columns: 1fr; }
  .op-entry__thumb {
    float: none;
    width: min(100%, 460px);
    margin: 0 auto 22px;
  }
  .op-hero__arrow { display: none; }
}

@media (max-width: 479px) {
  .op-logo img { width: 78px; }
  .op-footer__top { grid-template-columns: 1fr; }
  .op-topbar__links { gap: 14px; }
}

/* ============================================================
   Widgets de bloque (WP 5.8+). Los widgets por defecto ya no
   usan before_title/after_title, asi que se estilan aparte para
   que sigan pareciendose a los bloques de la tienda.
   ============================================================ */
.op-sidebar .widget,
.op-sidebar .wp-block-group {
  border: 1px solid var(--op-border);
  margin-bottom: 24px;
  padding: 0 0 14px;
}
.op-sidebar .widget > *,
.op-sidebar .wp-block-group > * { padding-left: 16px; padding-right: 16px; }

.op-sidebar .widget h2,
.op-sidebar .widget h3,
.op-sidebar .wp-block-heading {
  margin: 0 0 14px;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--op-dark);
  color: #fff;
}

.op-sidebar .widget ul,
.op-sidebar .wp-block-latest-posts,
.op-sidebar .wp-block-latest-comments,
.op-sidebar .wp-block-categories {
  list-style: none;
  margin: 0;
  padding-left: 16px;
  padding-right: 16px;
}
.op-sidebar .widget li,
.op-sidebar .wp-block-latest-posts li,
.op-sidebar .wp-block-latest-comments li,
.op-sidebar .wp-block-categories li {
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13.5px;
  list-style: none;
}
.op-sidebar .widget li:last-child { border-bottom: 0; }
.op-sidebar .widget a { color: #444; }
.op-sidebar .widget a:hover { color: var(--op-red-cta); text-decoration: none; }

/* Buscador del widget, con el mismo aspecto que el de la cabecera */
.op-sidebar .wp-block-search__inside-wrapper { display: flex; }
.op-sidebar .wp-block-search__input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dcdcdc;
  border-right: 0;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
}
.op-sidebar .wp-block-search__button {
  border: 0;
  background: var(--op-red-cta);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 0 18px;
  cursor: pointer;
  margin: 0;
}
.op-sidebar .wp-block-search__button:hover { background: #c81a1a; }

/* ============================================================
   Correccion 2026-07-29: desbordamiento horizontal en movil.
   Detectado con captura real a 390px: el contenido se salia por
   la derecha y se cortaban textos. Se corrige la causa (elementos
   que no encogian) y ademas se pone una red de seguridad.
   ============================================================ */
html, body { max-width: 100%; overflow-x: hidden; }

/* Ningun hijo de un contenedor flex debe poder desbordar por su
   contenido minimo: por defecto min-width es auto y eso es lo que
   provoca la mayoria de desbordes en flexbox. */
.op-topbar .op-container > *,
.op-header .op-container > *,
.op-nav .op-container > *,
.op-layout > * { min-width: 0; }

img, iframe, table, pre, video { max-width: 100%; }

@media (max-width: 767px) {
  /* La barra superior se apila en vez de intentar caber en una linea */
  .op-topbar .op-container { justify-content: flex-start; }
  .op-topbar__welcome { flex: 1 1 100%; }
  .op-topbar__links { flex: 1 1 100%; gap: 16px; font-size: 11.5px; }

  /* Cabecera: logo y contacto en una fila, buscador debajo a lo ancho */
  .op-header .op-container { gap: 12px; }
  .op-contact { flex: 1 1 auto; }
  .op-shoplink { font-size: 12px; white-space: normal; }
  .op-search { flex: 1 1 100%; min-width: 0; }
  .op-search input[type="search"] { min-width: 0; }
}

@media (max-width: 479px) {
  .op-container { width: auto; margin: 0; padding: 0 14px; }
  .op-topbar__links { gap: 12px; }
  .op-shoplink small { display: inline; }
}

/* Causa REAL del desborde en movil: los items de CSS Grid tienen
   min-width:auto por defecto, asi que su ancho minimo lo marcaba el
   tamano intrinseco de la foto de producto (800px+) y reventaban la
   rejilla de 1 columna. */
.op-grid { min-width: 0; }
.op-grid > *,
.op-card,
.op-card__body,
.op-card__thumb { min-width: 0; }
.op-card__thumb img { width: 100%; height: auto; }
.op-card__title,
.op-card__excerpt { overflow-wrap: break-word; word-wrap: break-word; }

/* ============================================================
   Diseno premium del contenido de las entradas
   ============================================================ */
.op-entry__content { font-size: 16px; line-height: 1.8; color: #3a3a3a; }
.op-entry__content > p { margin: 0 0 20px; }

/* Entradilla destacada */
.op-entry__content .op-lead {
  font-size: 18px;
  line-height: 1.7;
  color: #222;
  padding: 20px 24px;
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f4 100%);
  border-left: 4px solid var(--op-red-cta);
  margin: 0 0 30px;
}

/* Titulos de seccion con numeracion sutil */
.op-entry__content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 42px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--op-border);
  position: relative;
  scroll-margin-top: 20px;
}
.op-entry__content h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 70px; height: 2px;
  background: var(--op-red-cta);
}

/* Indice */
.op-toc {
  background: #fbfbfb;
  border: 1px solid var(--op-border);
  border-radius: 3px;
  padding: 20px 24px;
  margin: 0 0 34px;
}
.op-toc__title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--op-dark);
}
.op-toc ol { margin: 0; padding-left: 20px; }
.op-toc li { margin: 7px 0; font-size: 14.5px; }
.op-toc a { color: #444; text-decoration: none; }
.op-toc a:hover { color: var(--op-red-cta); text-decoration: underline; }

/* Bloque de idea clave */
.op-keybox {
  display: block;
  background: #fff8f8;
  border: 1px solid #f3d4d4;
  border-left: 4px solid var(--op-red-cta);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #4a3838;
}
.op-keybox strong { color: var(--op-red-cta); }

/* Preguntas frecuentes */
.op-faq { margin: 0 0 30px; }
.op-faq__item {
  border: 1px solid var(--op-border);
  border-left: 3px solid var(--op-dark);
  padding: 18px 22px;
  margin-bottom: 12px;
  background: #fff;
}
.op-faq__q {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}
.op-faq__a { margin: 0; font-size: 15px; color: #555; }

/* Articulos relacionados */
.op-related { list-style: none; margin: 0 0 30px; padding: 0; }
.op-related li {
  border: 1px solid var(--op-border);
  margin-bottom: 10px;
}
.op-related a {
  display: block;
  padding: 15px 20px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  position: relative;
  padding-right: 44px;
}
.op-related a::after {
  content: "\203A";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--op-red-cta);
  font-size: 22px;
  line-height: 1;
}
.op-related a:hover { background: #fafafa; color: var(--op-red-cta); }

/* Panel final de catalogo */
.op-shop-panel {
  background: var(--op-black);
  color: #d6d6d6;
  padding: 30px 32px;
  margin: 40px 0 10px;
  border-top: 4px solid var(--op-red-cta);
}
.op-shop-panel h2 {
  color: #fff;
  margin: 0 0 14px;
  border: 0;
  padding: 0;
  font-size: 21px;
}
.op-shop-panel h2::after { display: none; }
.op-shop-panel p { font-size: 15px; margin: 0 0 16px; }
.op-shop-panel a { color: #ff8a8a; }
.op-shop-panel a:hover { color: #fff; }
.op-shop-panel__links { list-style: none; margin: 0 0 18px; padding: 0; }
.op-shop-panel__links li { margin-bottom: 10px; }
.op-shop-panel__links a {
  display: block;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 14px 18px;
  color: #eaeaea;
  text-decoration: none;
  font-size: 14.5px;
}
.op-shop-panel__links a strong { color: #fff; }
.op-shop-panel__links a:hover {
  background: rgba(224,32,32,.16);
  border-color: var(--op-red-cta);
  color: #fff;
}

@media (max-width: 767px) {
  .op-entry__content { font-size: 15px; }
  .op-entry__content .op-lead { font-size: 16px; padding: 16px 18px; }
  .op-entry__content h2 { font-size: 19px; margin-top: 32px; }
  .op-toc, .op-shop-panel { padding: 18px; }
  .op-keybox { padding: 15px 16px; }
}

/* ============================================================
   Mobile app experience
   ============================================================ */
@media (max-width: 767px) {
  body { background: #f4f5f7; font-size: 13px; }
  .op-container { width: calc(100% - 24px); }

  .op-topbar .op-container { min-height: 32px; flex-wrap: nowrap; }
  .op-topbar__welcome { display: none; }
  .op-topbar__links { width: 100%; justify-content: space-between; gap: 8px; font-size: 10px; }

  .op-header { padding: 8px 0; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
  .op-header .op-container { display: grid; grid-template-columns: 72px 1fr; gap: 8px 12px; }
  .op-logo img { width: 68px; }
  .op-contact, .op-shoplink { display: none; }
  .op-search { grid-column: 2; grid-row: 1; min-width: 0; width: 100%; order: initial; }
  .op-search input[type="search"] { height: 38px; min-width: 0; border-radius: 12px 0 0 12px; font-size: 12px; }
  .op-search button { width: 44px; border-radius: 0 12px 12px 0; }

  .op-nav { position: sticky; top: 0; z-index: 100; box-shadow: 0 3px 12px rgba(0,0,0,.12); }
  .op-nav__toggle { height: 42px; padding: 0 14px; border-radius: 0; }
  .op-menu li a { padding: 11px 14px; }

  .op-hero { height: 142px; background: #111; }
  .op-hero__track, .op-hero__slide, .op-hero__slide a { height: 100%; }
  .op-hero__slide img { height: 100%; object-fit: cover; object-position: center; }
  .op-hero__dots { bottom: 8px; gap: 6px; }
  .op-hero__dot { width: 7px; height: 7px; }

  .op-breadcrumb { padding: 9px 0; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .op-home-intro {
    display: block;
    margin: 10px 0 8px;
    padding: 13px 14px 11px;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
  }
  .op-home-intro__eyebrow { margin-bottom: 3px; font-size: 8px; }
  .op-home-intro h1 { margin: 0 0 10px; font-size: 17px; line-height: 1.12; }
  .op-home-intro__copy > p:last-child { display: none; }
  .op-home-intro__features { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .op-home-intro__features > div {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 4px;
    border-radius: 10px;
    text-align: center;
  }
  .op-home-intro__features svg { flex: 0 0 18px; width: 18px; height: 18px; }
  .op-home-intro__features strong { font-size: 9px; line-height: 1.15; }
  .op-home-intro__features span { display: none; }

  .op-section-title { margin: 12px 0 10px; padding-bottom: 8px; }
  .op-section-title h1, .op-section-title h2, .op-home-intro + .op-section-title h1 { font-size: 14px; }
  .op-section-title::after { width: 92px; }
  .op-layout { gap: 0; padding-bottom: 18px; }
  .home .op-sidebar { display: none; }

  .op-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .op-card { border: 0; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 16px rgba(28,31,35,.09); }
  .op-card__thumb { aspect-ratio: 3 / 2; }
  .op-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .op-card__body { padding: 9px 9px 10px; }
  .op-card__meta { margin-bottom: 4px; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .op-card__title { margin: 0; font-size: 12px; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .op-card__excerpt, .op-card .op-btn { display: none; }

  .op-entry { padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 4px 18px rgba(28,31,35,.07); }
  .op-entry__header { margin-bottom: 12px; }
  .op-entry__title { font-size: 21px; }
  .op-entry__thumb { float: left; width: 42%; margin: 0 13px 7px 0; padding: 4px; border-radius: 12px; overflow: hidden; }
  .op-entry__thumb img { aspect-ratio: 3 / 2; object-fit: cover; }
  .op-entry__content { font-size: 15px; line-height: 1.72; }

  .op-latest-guides { margin-top: 18px; padding: 15px 12px; border-radius: 16px; }
  .op-latest-guides__heading { margin-bottom: 10px; }
  .op-latest-guides h2 { font-size: 17px; }
  .op-latest-guides__grid { grid-template-columns: 1fr; }
  .op-latest-guides__grid a { min-height: 56px; padding: 9px; }

  .op-footer { margin-top: 8px; }
  .op-footer__top { display: none; }
  .op-footer__bottom { min-height: 48px; padding: 10px 0; justify-content: center; text-align: center; font-size: 10px; }
  .op-footer__bottom > div:last-child { display: none; }
}

@media (max-width: 359px) {
  .op-grid { grid-template-columns: 1fr; }
  .op-card { display: grid; grid-template-columns: 112px 1fr; }
  .op-card__thumb { height: 100%; aspect-ratio: auto; }
}
