/*
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.6.2
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: #07131c; }
.op-hero__track {
  position: relative;
  display: grid;
  isolation: isolate;
}
.op-hero__slide {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.012);
  transition:
    opacity 1.55s cubic-bezier(.4, 0, .2, 1),
    transform 2.2s cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear 1.55s;
  will-change: opacity, transform;
}
.op-hero__slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition-delay: 0s;
}
.op-hero__slide img { width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  .op-hero__slide {
    transform: none;
    transition-duration: .01ms;
  }
}

.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;
  height: auto;
  margin-bottom: 14px;
  padding: 0;
  background: transparent;
  filter: brightness(0) invert(1);
}

.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; }
}

/* ============================================================
   Experiencia movil Pantera
   ============================================================ */
@media (max-width: 767px) {
  body { background: #f4f5f6; }
  .op-container { width: auto; margin: 0; padding-left: 16px; padding-right: 16px; }

  /* Cabecera compacta y controles tactiles */
  .op-topbar { min-height: 38px; }
  .op-topbar .op-container { min-height: 38px; justify-content: center; }
  .op-topbar__welcome { display: none; }
  .op-topbar__links {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
  }
  .op-topbar__links a { min-height: 38px; display: inline-flex; align-items: center; }

  .op-header { padding: 12px 0 14px; }
  .op-header .op-container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 14px;
    align-items: center;
  }
  .op-logo { grid-column: 1; grid-row: 1; }
  .op-logo img { width: 96px; }
  .op-contact {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    text-align: right;
    font-size: 11.5px;
    line-height: 1.55;
  }
  .op-contact a { overflow-wrap: anywhere; }
  .op-shoplink {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 42px;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #e3e3e3;
    background: #fafafa;
    font-size: 12px;
  }
  .op-shoplink small { font-size: 12px; }
  .op-search {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin: 0;
  }
  .op-search form { width: 100%; }
  .op-search input[type="search"] { height: 46px; font-size: 16px; border-radius: 4px 0 0 4px; }
  .op-search button {
    position: relative;
    width: 54px;
    min-width: 54px;
    height: 46px;
    border-radius: 0 4px 4px 0;
    font-size: 0;
  }
  .op-search button::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 13px;
    width: 13px;
    height: 13px;
    border: 2px solid #fff;
    border-radius: 50%;
  }
  .op-search button::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 27px;
    width: 8px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
    transform-origin: left center;
  }

  .op-nav { position: sticky; top: 0; z-index: 900; box-shadow: 0 5px 18px rgba(0,0,0,.16); }
  .op-nav .op-container { padding: 0; }
  .op-nav__toggle {
    min-height: 50px;
    padding: 0 18px;
    text-align: center;
    font-size: 13px;
  }
  .op-menu { max-height: min(68vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
  .op-menu li a { min-height: 48px; display: flex; align-items: center; padding: 12px 18px; }

  /* Slider legible, tactil y con indicadores premium */
  .op-hero { touch-action: pan-y; }
  .op-hero__slide img { min-height: 0; object-fit: cover; }
  .op-hero__dots { bottom: 8px; gap: 6px; }
  .op-hero__dot {
    width: 22px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,.48);
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
  }
  .op-hero__dot.is-active { width: 34px; background: #fff; }

  /* Portada y listado pensados para lectura con una mano */
  .op-home-intro {
    margin: 10px 0 12px;
    padding: 15px 14px 13px;
    gap: 13px;
    border-left-width: 3px;
    border-radius: 0 10px 10px 0;
  }
  .op-home-intro h1 {
    max-width: 28ch;
    font-size: clamp(18px, 5.2vw, 21px);
    line-height: 1.22;
  }
  .op-home-intro__eyebrow { margin-bottom: 5px; font-size: 9px; }
  .op-home-intro__copy > p:last-child { margin-top: 7px; font-size: 12.5px; line-height: 1.42; }
  .op-home-intro__features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .op-home-intro__features > div {
    display: flex;
    min-width: 0;
    min-height: 60px;
    padding: 8px 5px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    border-radius: 8px;
  }
  .op-home-intro__features svg { width: 22px; height: 22px; flex: 0 0 auto; }
  .op-home-intro__features strong { font-size: 10px; line-height: 1.15; }
  .op-home-intro__features span { display: none; }
  .op-section-title { margin: 28px 0 17px; }
  .op-section-title h1, .op-section-title h2 { font-size: 18px; line-height: 1.3; }

  .op-layout { gap: 28px; padding-bottom: 30px; }
  .op-grid { gap: 12px; }
  .op-card {
    border: 0;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 136px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,.96);
    box-shadow: 0 6px 20px rgba(19,28,38,.095);
  }
  .op-card:hover { transform: none; }
  .op-card__thumb { height: 100%; min-height: 136px; }
  .op-card__thumb img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
  .op-card__body { padding: 13px 13px 12px; }
  .op-card__meta { margin-bottom: 5px; font-size: 10.5px; line-height: 1.35; }
  .op-card__title {
    display: -webkit-box;
    margin-bottom: 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 15.5px;
    line-height: 1.28;
  }
  .op-card__excerpt { display: none; }
  .op-btn {
    width: auto;
    min-height: 32px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 10px;
  }
  .op-pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

  /* Articulos sin saltos ni elementos estrechos */
  .op-breadcrumb { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .op-breadcrumb::-webkit-scrollbar { display: none; }
  .op-entry { padding-bottom: 26px; }
  .op-entry__header { margin-bottom: 18px; }
  .op-entry__title { font-size: clamp(24px, 7.2vw, 30px); line-height: 1.18; }
  .op-entry__thumb { width: 100%; padding: 6px; border-radius: 10px; }
  .op-entry__content { font-size: 16px; line-height: 1.75; }
  .op-entry__content h2 { font-size: 21px; line-height: 1.3; }
  .op-entry__content h3 { font-size: 18px; line-height: 1.35; }
  .op-entry__content table { display: block; overflow-x: auto; white-space: nowrap; }
  .op-entry__content pre { overflow-x: auto; }
  .op-entry__content a { overflow-wrap: anywhere; }

  .op-sidebar { margin-top: 4px; }
  .op-sidebar .widget, .op-sidebar .wp-block-group, .op-widget { border-radius: 9px; overflow: hidden; margin-bottom: 16px; background: #fff; }
  .op-latest-guides { margin-top: 32px; padding: 22px 16px; border-radius: 10px; }
  .op-latest-guides h2 { font-size: 21px; }
  .op-latest-guides__grid a { min-height: 82px; border-radius: 7px; }

  .op-footer { margin-top: 0; }
  .op-footer__top {
    display: block;
    padding: 25px 0 12px;
    text-align: center;
  }
  .op-footer__top > div:nth-child(1) > p,
  .op-footer__top > div:nth-child(2) > h4,
  .op-footer__top > div:nth-child(2) > p:first-of-type,
  .op-footer__top > div:nth-child(2) > p:last-of-type,
  .op-footer__top > div:nth-child(3),
  .op-footer__top > div:nth-child(4) { display: none; }
  .op-footer__logo img { width: 140px; margin: 0 auto 12px; }
  .op-footer__top > div:nth-child(2) { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
  .op-footer__top > div:nth-child(2) p { margin: 0; }
  .op-footer__top > div:nth-child(2) p a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 12px;
  }
  .op-footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
    padding: 13px 0 17px;
    font-size: 11px;
  }
}

@media (max-width: 374px) {
  .op-container { padding-left: 12px; padding-right: 12px; }
  .op-logo img { width: 84px; }
  .op-contact { font-size: 10.5px; }
  .op-topbar__links { font-size: 10.5px; }
  .op-home-intro { padding: 13px 11px 12px; }
  .op-card { grid-template-columns: 102px minmax(0, 1fr); min-height: 128px; }
  .op-card__thumb { min-height: 128px; }
  .op-card__body { padding: 11px 12px 10px; }
  .op-card__title { font-size: 14.5px; }
}
