/* ============================================
   CATEGORÍA / LISTADO DE PRODUCTOS
   ============================================ */

/* BANNER DE CATEGORÍA */
.category-banner {
    position: relative;
    height: 380px;
    overflow: hidden;
    background: #333;
}
.category-banner__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.category-banner__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.4) 100%);
}
/* Barra oscura sólida (sin difuminado) en el borde inferior del banner */
.category-banner::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    height: 56px;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
    pointer-events: none;
}.category-banner__label {
  position: absolute;
  left: 0;
  bottom: 5px;
  color: var(--color-white);
  padding: 0 60px 0 112px;
  font-family: Arial,var(--font-display) , sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 29px;
  letter-spacing: 4px;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.category-banner__scroll {
    position: absolute;
    right: 30px;
    bottom: 14px;
    color: var(--color-white);
    width: 32px;
    height: 32px;
    z-index: 2;
    animation: bounce 2.5s infinite;
    display: block;
}
.category-banner__scroll svg {
    width: 100%; height: 100%;
    fill: none;
    stroke: currentColor;
}

/* HEADING DE SECCIÓN (categoría + sub) */
.section-head {
    padding: 36px 0 0;        /* sin padding inferior para que el borde quede pegado a este bloque */
    display: flex;
    align-items: stretch;     /* el texto se estira a la altura del dot */
    gap: 0;                   /* el texto arranca pegado al final del dot */
    padding-left: 0;          /* dot pegado al borde izquierdo de la página */
    margin-bottom: 26px;
}
.section-head__text {
    flex: 1;
    padding: 0 24px 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;   /* el texto alineado al final del cuadrado de puntos */
    border-bottom: 2px solid #717172;   /* línea oscura inferior */
}
.section-head__category {
    font-family: Arial, var(--font-display), sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 36px;            /* Arial Bold Italic 36pt boceto */
    letter-spacing: 1.5px;
    color: var(--color-text);   /* negro 000000 */
    margin-bottom: 8px;
}
.section-head__subcategory {
  font-family: Arial,var(--font-display) , sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 34px;
  letter-spacing: 2px;
  color: #874a22;
  display: inline-block;
}
.section-head__subcategory span {
 
  color: black !important;
 
}
.section-head__subcategory-wrap {
    /* el borde inferior y el margin ahora los gestiona .section-head__text */
}
.section-head__subcategory {
    border-bottom: none;
    padding-bottom: 0;
    display: block;
}

/* FILTRO DE ANIMALES en CATEGORÍA (mismo componente que home) */
.category-page .animal-filter {
    border-bottom: none;
    margin-bottom: 38px;
    padding-bottom: 0;
}

/* GRID PRODUCTOS */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    padding-bottom: 60px;
}
.products-grid .product-card__image-wrap {
    aspect-ratio: 1 / 1;
    background: var(--color-bg-soft);
}

/* ============================================
   DETALLE DE PRODUCTO
   ============================================ */
.product-detail {
    padding: 30px 0 60px;
}
.product-detail__layout {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Thumbnails columna izquierda */
.product-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-thumb {
    width: 80px;
    height: 80px;
   
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: border-color var(--t-fast);
}
.product-thumb img {
    width: 100%;
    height: 100%;
    
     
}
.product-thumb.is-active { border-color: var(--color-bronze); }

.product-thumb-note {
    font-size: 11px;
    color: var(--color-text-soft);
    margin-top: 8px;
    line-height: 1.3;
    font-weight: 600;
}
.product-main-image {
 
  aspect-ratio: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-main-image img {
   
  max-height: 100%;
  object-fit: contain;
  transition: opacity var(--t-base), transform var(--t-base);
  border: none !important;
}
.product-main-image.is-changing img {
    opacity: 0;
    transform: scale(0.96);
}

/* Animales aplicables al producto (debajo de la imagen) */
.product-applicable {
    margin-top: 20px;
    display: flex;
    gap: 26px;
    align-items: center;
}
.product-applicable__icon {
    width: 56px;                  /* icono más grande 96px referencia */
    height: 56px;
    color: var(--color-brown-active);   /* marrón 7f644f boceto */
}
.product-applicable__icon svg { width: 100%; height: 100%; fill: currentColor; }
.product-applicable__img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Lista de repuestos */
.product-resources {
    margin-top: 32px;
    border-top: 1px solid var(--color-text); /* línea visible boceto */
    padding-top: 18px;
}
.resource-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;             /* más separación boceto */
    border-bottom: 1px solid var(--color-border);
    font-family: Arial, var(--font-display), sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--color-text);
    text-transform: uppercase;
}
.resource-row__action {
    width: 32px;
    height: 32px;
    color: var(--color-red);
    display: flex;
    align-items: center;
    justify-content: center;
}
.resource-row__action svg { width: 100%; height: 100%; fill: currentColor; }

.resource-row__play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
}
.resource-row__play svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }

/* Columna derecha: información */
.product-info {
    padding-top: 10px;
}
.product-info__title {
    font-family: Arial, var(--font-display), sans-serif;
    font-weight: bold;
 
    font-size: 34px;                /* Arial Bold Italic 34pt boceto - nombre producto */
    letter-spacing: 1.2px;
    color: var(--color-brown-dark); /* 73543b boceto */
    margin-bottom: 4px;
    text-transform: uppercase;
}
.product-info__code {
    font-family: Arial, var(--font-display), sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 18px;                /* Arial Bold Italic 24pt boceto */
    color: var(--color-text);       /* negro */
    margin-bottom: 22px;
    letter-spacing: 1px;
}
.product-info__description p {
    margin-bottom: 14px;
    color: var(--color-text);       /* negro 000000 boceto */
    font-family: Arial, var(--font-body), sans-serif;
    font-size: 15px;                /* Arial Reg 30pt -> escala pantalla */
    line-height: 1.7;
}

/* Acordeón especificaciones */
.spec-accordion {
    margin-top: 32px;
    border-top: 1px solid var(--color-border);
}
.spec-item {
    border-bottom: 1px solid var(--color-border);
}
.spec-item__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 8px;             /* sin separación inferior, el contenido sigue justo abajo */
    background: none;
    border: 0;
    cursor: pointer;
    font-family: Arial, var(--font-display), sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 2px;
    color: var(--color-text);
    text-align: left;
    text-transform: uppercase;
    transition: color var(--t-fast);
}
.spec-item__head:hover { color: var(--color-brown); }

/* Icono +/− dibujado con dos barras. "+" plegado, "−" desplegado. */
.spec-item__toggle {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}
.spec-item__toggle::before,
.spec-item__toggle::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: opacity var(--t-base), transform var(--t-base);
}
.spec-item__toggle::before {           /* barra horizontal */
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}
.spec-item__toggle::after {            /* barra vertical (desaparece al abrir) */
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}
.spec-item.is-open .spec-item__toggle::after {
    opacity: 0;
    transform: translateX(-50%) rotate(90deg);
}

.spec-item__body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height var(--t-base), opacity var(--t-base);
}
.spec-item.is-open .spec-item__body {
    max-height: 1500px;
    opacity: 1;
}
.spec-item__content {
    padding: 0 0 24px;
    font-family: Arial, var(--font-body), sans-serif;
    font-size: 14px;
    line-height: 1.85;
    color: var(--color-text-soft);  /* 636364 boceto */
}
.spec-item__content p { margin-bottom: 8px; }

/* ============================================
   ESPECIFICACIONES / ACCESORIOS ESTRUCTURADOS
   Punto  ->  [característica | valor]
   Las características quedan alineadas entre sí y los valores también,
   porque cada bloque se pinta con una grilla de 2 columnas.
   ============================================ */
.spec-item__content .spec-text {
    word-break: break-word;
}

/* Punto: "1.- Un (1) Motor EVO 3 velocidades de rotación" */
.spec-text .spec-point {
    display: block;
    margin: 16px 0 6px;
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.5;
}
.spec-text > .spec-point:first-child { margin-top: 0; }
.spec-text .spec-point__n { color: var(--color-brown, #6b4423); }

/* Bloque de filas característica / valor */
.spec-text .spec-grid {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 2px;
    align-items: baseline;
    margin: 0 0 4px;
    padding-left: 2px;
}
.spec-text .spec-k {          /* columna 1: característica + " :" */
    color: var(--color-text);
    white-space: nowrap;
}
.spec-text .spec-v {          /* columna 2: valor */
    color: var(--color-text-soft);
}

/* Línea suelta a ancho completo (nota, viñeta, aclaración) */
.spec-text .spec-line {
    margin: 0 0 2px;
    line-height: 1.7;
}

/* Separación cuando el admin dejó una línea en blanco */
.spec-text .spec-gap { height: 10px; }
.spec-text > .spec-gap:last-child { height: 0; }

/* En móvil la etiqueta puede no caber: se apila y el valor se sangra */
@media (max-width: 560px) {
    .spec-text .spec-grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0;
        margin-bottom: 8px;
    }
    .spec-text .spec-k {
        white-space: normal;
        font-weight: 600;
        margin-top: 6px;
    }
    .spec-text .spec-k:empty { display: none; }
    .spec-text .spec-v { padding-left: 12px; }
}
.spec-item__content strong { color: var(--color-text); font-weight: 700; }
.spec-item__content h5 {
    font-size: 13px;
    letter-spacing: 1.5px;
    margin: 14px 0 8px;
    color: var(--color-text);
}

/* Videos del producto - cards apiladas verticalmente bajo el rótulo VIDEOS */
.product-videos {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 420px;
}
.product-videos .promo-card {
    aspect-ratio: 1.35 / 1;
}
/* Variante "label": solo título, sin acción a la derecha (ej: cabecera VIDEOS) */
.resource-row--label {
    justify-content: flex-start;
}

/* ============================================
   RESPONSIVO CATEGORÍA / DETALLE
   ============================================ */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .product-detail__layout { grid-template-columns: 70px 1fr 1fr; gap: 22px; }
}

@media (max-width: 768px) {
    .category-banner { height: 260px; }
    .category-banner__label { font-size: 24px; padding: 10px 30px 10px 24px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .product-detail__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .product-thumbs {
        flex-direction: row;
        overflow-x: auto;
    }
    .product-thumb { width: 64px; height: 64px; flex-shrink: 0; }
    .section-head { gap: 16px; padding-top: 20px; }
    .section-head__category { font-size: 16px; }
    .section-head__subcategory { font-size: 15px; }
}
.nav__soporte-panel.is-visible {
  display: none !important;
}