/* ═══════════════════════════════════════════════════════════════
   PSYPACKS — Single Product Page Styles
   Cargado condicionalmente solo en is_product()
   Prefijo de clases: psy-  (evita conflictos con WC/Elementor)
═══════════════════════════════════════════════════════════════ */

/* ── Reset WooCommerce — anular layout por defecto de div.product ── */
.single-product div.product {
  display: block !important;
  float: none !important;
  clear: both !important;
}
/* Suprimir TODOS los elementos WC por defecto — nuestro template los reemplaza con
   clases propias (psy-*). Este CSS es la capa definitiva independiente de hooks/caché. */
.single-product .woocommerce-product-gallery { display: none !important; }
.single-product .entry-summary.summary       { display: none !important; }
.single-product .woocommerce-tabs            { display: none !important; }
.single-product section.related.products     { display: none !important; }
.single-product .up-sells.upsells.products   { display: none !important; }
.single-product span.onsale                  { display: none !important; }

.woocommerce-page .psy-product-wrapper *,
.single-product .psy-product-wrapper * {
  box-sizing: border-box;
}
.single-product #psy-main,
.single-product .psy-product-wrapper { max-width: 100%; padding: 0; margin: 0; }
.single-product .woocommerce-notices-wrapper { max-width: 1260px; margin: 0 auto; padding: 0 48px; }

/* ── Breadcrumbs ── */
.psy-bc-bar {
  max-width: 1260px;
  margin: 0 auto;
  padding: 16px 48px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #AAAAAA;
}
.psy-bc-bar a { color: #AAAAAA; text-decoration: none; transition: color 0.15s; }
.psy-bc-bar a:hover { color: #1A1A1A; }
.psy-bc-sep { color: #DDD; font-size: 11px; }
.psy-bc-current { color: #555; }

/* ── Layout 2 columnas ── */
.psy-product-page {
  max-width: 1260px;
  margin: 0 auto;
  padding: 24px 48px 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: start;
}

/* ════════════════════════
   GALERÍA
════════════════════════ */
.psy-gallery { position: sticky; top: 88px; }

.psy-gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F8F8F8;
  border: 1px solid #E8E8E8;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.psy-gallery-main-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.psy-gallery-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

.psy-badge-discount {
  position: absolute;
  top: 14px; left: 14px;
  background: #FEE2E2;
  color: #DC2626;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #FECACA;
  z-index: 2;
}
.psy-badge-lang {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #E5E5E5;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 5px 12px 5px 8px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #555;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.psy-lang-flag {
  width: 18px; height: 13px;
  object-fit: cover; border-radius: 2px;
  display: block; border: 1px solid #E0E0E0;
  flex-shrink: 0;
}
.psy-expand-btn {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #DEDEDE;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s, background 0.15s;
  z-index: 3;
}
.psy-gallery-main:hover .psy-expand-btn { opacity: 1; }
.psy-expand-btn:hover { background: rgba(255,255,255,1); color: #1A1A1A; }
@media (hover: none), (pointer: coarse) {
  .psy-expand-btn { opacity: 1; }
  .psy-gallery-main { cursor: pointer; }
}

.psy-thumbs-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.psy-thumb {
  width: 92px; height: 92px;
  border-radius: 8px;
  border: 1.5px solid #E8E8E8;
  background: #F8F8F8;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: border-color 0.2s;
}
.psy-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.psy-thumb.active { border-color: #1A1A1A; }
.psy-thumb:hover:not(.active) { border-color: #CCCCCC; }

/* ════════════════════════
   INFO DEL PRODUCTO
════════════════════════ */
.psy-info { padding-top: 2px; }

.psy-set-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.psy-set-code {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px;
  color: #AAAAAA;
  background: #F4F4F4;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid #EBEBEB;
}
.psy-set-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px;
  color: #AAAAAA;
  text-transform: uppercase;
}

.psy-product-name {
  font-family: 'Quattrocento Sans', Georgia, serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1.1;
  color: #1A1A1A;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  text-transform: none !important; /* anula text-transform de Elementor/WC */
}

.psy-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.psy-stars { display: flex; gap: 1px; }
.psy-star { font-size: 15px; color: #FFB2EF; }
.psy-star-empty { color: #E0E0E0; }
.psy-rating-num { font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700; color: #1A1A1A; }
.psy-rating-sep { color: #DDD; }
.psy-rating-reviews { font-family: 'Rajdhani', sans-serif; font-size: 15px; color: #888; font-weight: 500; }
.psy-rating-reviews a { color: #888; text-decoration: underline; text-underline-offset: 2px; }
.psy-rating-reviews a:hover { color: #1A1A1A; }
.psy-no-reviews { font-family: 'Rajdhani', sans-serif; font-size: 15px; color: #AAAAAA; font-weight: 500; }

.psy-price-block {
  padding: 18px 0;
  border-top: 1px solid #EFEFEF;
  border-bottom: 1px solid #EFEFEF;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.psy-price-main {
  font-family: 'Quattrocento Sans', serif;
  font-weight: 700;
  font-size: 34px;
  color: #1A1A1A;
  letter-spacing: -0.5px;
}
.psy-price-old {
  font-family: 'Imprima', sans-serif;
  font-size: 17px;
  color: #B07575;
  text-decoration: line-through;
}
.psy-price-pct {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #C0392B;
  background: #FEECEB;
  border: 1px solid #FAD0CC;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.3px;
}

.psy-best-price-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px;
  color: #27AE60;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 16px;
  margin-top: -4px;
}

.psy-short-desc-wrap { margin-bottom: 14px; }
.psy-short-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  font-family: 'Imprima', sans-serif;
  text-transform: none !important;
}
.psy-short-desc strong { color: #1A1A1A; font-weight: 700; }
.psy-short-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.psy-short-clamped.expanded {
  display: block;
  -webkit-line-clamp: unset;
}
.psy-desc-toggle {
  background: none; border: none; padding: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12.5px; font-weight: 700;
  color: #888; letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.psy-desc-toggle:hover { color: #1A1A1A; }

.psy-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}
.psy-ftag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.5px;
  color: #555;
  background: #F4F4F4;
  border: 1px solid #E8E8E8;
  padding: 4px 11px;
  border-radius: 100px;
}

.psy-stock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.psy-stock-indicator {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.psy-stock-indicator.green { background: #27AE60; box-shadow: 0 0 0 3px rgba(39,174,96,0.15); }
.psy-stock-indicator.orange { background: #E67E22; box-shadow: 0 0 0 3px rgba(230,126,34,0.15); }
.psy-stock-indicator.red { background: #E74C3C; box-shadow: 0 0 0 3px rgba(231,76,60,0.15); }
.psy-stock-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 600;
  color: #444; letter-spacing: 0.2px;
}
.psy-stock-text em { font-style: normal; color: #E67E22; font-weight: 700; }

.psy-add-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.psy-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1.5px solid #E0E0E0;
  border-radius: 8px;
  overflow: hidden;
  height: 50px;
  flex-shrink: 0;
}
.psy-qty-btn {
  width: 42px; height: 100%;
  border: none; background: none;
  font-size: 20px; color: #1A1A1A;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.1s;
  user-select: none; line-height: 1;
  cursor: pointer;
}
.psy-qty-btn:hover { background: #F5F5F5; }
.psy-qty-btn:active { background: #EEEEEE; }
.psy-qty-n {
  width: 44px; height: 100%;
  border: none;
  border-left: 1px solid #EBEBEB;
  border-right: 1px solid #EBEBEB;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 16px;
  color: #1A1A1A;
  background: none; outline: none;
  -moz-appearance: textfield;
}
.psy-qty-n::-webkit-outer-spin-button,
.psy-qty-n::-webkit-inner-spin-button { -webkit-appearance: none; }

.psy-btn-cart {
  flex: 1; height: 50px;
  background: #1A1A1A; color: #fff;
  border: none; border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 13.5px;
  letter-spacing: 2px; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.18s ease;
}
.psy-btn-cart:hover {
  background: #2D2D2D;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}
.psy-btn-cart:active { background: #111; transform: translateY(1px); box-shadow: none; transition: transform 0.07s, background 0.07s; }
.psy-btn-cart.added { background: #27AE60; }
.psy-btn-cart:disabled { background: #CCCCCC; cursor: not-allowed; transform: none; }

.psy-btn-wishlist {
  height: 50px;
  padding: 0 16px;
  flex-shrink: 0;
  border: 1.5px solid #E0E0E0;
  border-radius: 8px;
  background: none;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  color: #888;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 12px;
  letter-spacing: 1px;
  transition: border-color 0.2s, color 0.2s, background 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.psy-btn-wishlist:hover { border-color: #CCCCCC; background: #F9F9F9; color: #555; }
.psy-btn-wishlist.saved { color: #E8799F; border-color: rgba(232,121,159,0.35); background: rgba(232,121,159,0.05); }

.psy-payment-icons-wrap {
  margin-bottom: 18px;
}
.psy-payment-icons-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #BBBBBB;
  margin-bottom: 7px;
}
.psy-payment-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.psy-pay-icon {
  width: 54px; height: 28px;
  background: #F8F8F8;
  border: 1px solid #E8E8E8;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  flex-shrink: 0;
  overflow: hidden;
}
.psy-pay-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

.psy-points-compact {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #F7F7F8;
  border: 1px solid #EBEBEB;
  border-radius: 8px;
  padding: 10px 13px;
  margin-bottom: 18px;
  cursor: pointer;
  text-decoration: none;
  cursor: default;
}
.psy-points-compact-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #FFB2EF, #73DEF1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.psy-points-compact-text {
  flex: 1;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 600;
  color: #444; line-height: 1.3;
}
.psy-points-compact-text strong { color: #1A1A1A; }
.psy-points-compact-sub { color: #AAA; font-weight: 500; }
.psy-points-compact-arrow { color: #CCC; font-size: 15px; flex-shrink: 0; }

.psy-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
  border-top: 1px solid #EFEFEF;
  border-bottom: 1px solid #EFEFEF;
}
.psy-trust-cell {
  padding: 16px 10px;
  display: flex; flex-direction: column;
  align-items: center; gap: 7px;
  position: relative;
}
.psy-trust-cell:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: #EFEFEF;
}
.psy-trust-icon {
  width: 38px; height: 38px;
  background: #F5F5F5;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #333;
  flex-shrink: 0;
}
.psy-trust-ttl {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 13px;
  color: #1A1A1A; text-align: center;
  line-height: 1.2; letter-spacing: 0.3px;
}
.psy-trust-sub {
  font-size: 11px; color: #888;
  font-family: 'Imprima', sans-serif;
  text-align: center; line-height: 1.3;
}

.psy-shipping-est {
  background: #F0FBF5;
  border: 1px solid #C3E8D4;
  border-radius: 8px;
  padding: 11px 14px;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.psy-shipping-est-icon { color: #27AE60; flex-shrink: 0; }
.psy-shipping-est-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px; font-weight: 600;
  color: #1A5C35; line-height: 1.4;
}
.psy-shipping-est-text span { color: #27AE60; font-weight: 700; }

.psy-meta {
  border-top: 1px solid #F0F0F0;
  padding-top: 16px;
  display: flex; flex-direction: column; gap: 7px;
}
.psy-meta-row { display: flex; align-items: flex-start; gap: 8px; }
.psy-meta-key {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 12px;
  color: #888; letter-spacing: 1px;
  text-transform: uppercase;
  min-width: 85px; padding-top: 1px;
}
.psy-meta-val {
  font-family: 'Imprima', sans-serif;
  color: #555; font-size: 13px; line-height: 1.4;
}
.psy-meta-val a { color: #555; text-decoration: underline; text-underline-offset: 2px; }
.psy-meta-val a:hover { color: #1A1A1A; }

/* ════════════════════════
   STICKY BAR
════════════════════════ */
.psy-sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: #fff;
  border-top: 1px solid #E0E0E0;
  padding: 14px 48px;
  display: flex; align-items: center; gap: 20px;
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}
.psy-sticky-bar.visible { transform: translateY(0); }
.psy-sticky-thumb {
  width: 48px; height: 48px;
  border: 1px solid #EBEBEB;
  border-radius: 8px; background: #F8F8F8;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 6px; overflow: hidden;
}
.psy-sticky-thumb img { width: 100%; height: 100%; object-fit: contain; }
.psy-sticky-info { flex: 1; min-width: 0; }
.psy-sticky-name {
  font-family: 'Quattrocento Sans', serif;
  font-weight: 700; font-size: 13.5px;
  color: #1A1A1A;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.psy-sticky-price {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 13px; color: #555; margin-top: 2px;
}
.psy-sticky-price del { color: #BBB; font-weight: 400; }
.psy-sticky-btn {
  height: 44px; padding: 0 28px;
  background: #1A1A1A; color: #fff;
  border: none; border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.2s; cursor: pointer;
}
.psy-sticky-btn:hover { background: #2D2D2D; }

/* ════════════════════════
   TABS
════════════════════════ */
.psy-tabs-wrap {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 48px 72px;
}
.psy-tabs-nav {
  display: flex;
  border-bottom: 1.5px solid #E8E8E8;
  margin-bottom: 44px; gap: 0;
}
.psy-tab {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase;
  color: #AAAAAA; padding: 14px 26px 12px;
  border: none; background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.psy-tab.active { color: #1A1A1A; border-bottom-color: #1A1A1A; }
.psy-tab:hover:not(.active) { color: #666; }

.psy-panel { display: none; }
.psy-panel.active { display: block; }

/* Panel descripción */
.psy-desc-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 52px; align-items: start;
}
.psy-desc-body h1,
.psy-desc-body h2,
.psy-desc-body h3,
.psy-desc-body h4 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: #1A1A1A;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  margin-top: 24px;
}
.psy-desc-body h1 { font-size: 26px; }
.psy-desc-body h2 { font-size: 22px; }
.psy-desc-body h3 { font-size: 19px; }
.psy-desc-body h4 { font-size: 16px; }
.psy-desc-body p {
  font-size: 15px; color: #555;
  line-height: 1.8; margin-bottom: 14px;
  font-family: 'Imprima', sans-serif;
}
.psy-desc-body p:last-child { margin-bottom: 0; }
.psy-desc-body ul { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.psy-desc-body ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: #555; line-height: 1.5;
  font-family: 'Imprima', sans-serif;
}
.psy-desc-body ul li::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: #1A1A1A;
  flex-shrink: 0; margin-top: 7px;
}

.psy-specs-box {
  background: #F7F7F8;
  border: 1px solid #E8E8E8;
  border-radius: 10px; padding: 24px;
}
.psy-specs-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase;
  color: #AAAAAA; margin-bottom: 18px;
}
.psy-spec-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 11px 0; border-bottom: 1px solid #EEEEEE; gap: 16px;
}
.psy-spec-row:last-child { border-bottom: none; padding-bottom: 0; }
.psy-spec-k { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 13px; color: #777; flex-shrink: 0; }
.psy-spec-v { font-family: 'Imprima', sans-serif; font-size: 13.5px; color: #1A1A1A; text-align: right; }

/* Cartas destacadas */
.psy-featured-cards-wrap { margin-top: 28px; }
.psy-featured-ttl {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: #AAAAAA; margin-bottom: 14px;
}
.psy-featured-cards-row { display: flex; gap: 10px; flex-wrap: wrap; }
.psy-featured-card {
  width: 100px; height: 140px;
  border-radius: 8px; border: 1px solid #E8E8E8;
  background: #F8F8F8;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
  cursor: pointer;
}
.psy-featured-card:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 10px 28px rgba(0,0,0,0.14); }
.psy-featured-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Panel valoraciones */
.psy-reviews-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 52px; align-items: center;
  padding-bottom: 36px;
  border-bottom: 1px solid #EEEEEE;
  margin-bottom: 36px;
}
.psy-rev-score-n {
  font-family: 'Quattrocento Sans', serif;
  font-weight: 700; font-size: 68px;
  color: #1A1A1A; line-height: 1; margin-bottom: 6px;
}
.psy-rev-stars-lg { display: flex; gap: 3px; margin-bottom: 6px; }
.psy-rev-stars-lg span { font-size: 19px; color: #FFB2EF; }
.psy-rev-total { font-family: 'Rajdhani', sans-serif; font-size: 13px; color: #AAA; font-weight: 500; }
.psy-bars { display: flex; flex-direction: column; gap: 9px; }
.psy-bar-row { display: flex; align-items: center; gap: 10px; }
.psy-bar-lbl { font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 600; color: #666; width: 18px; text-align: right; flex-shrink: 0; }
.psy-bar-track { flex: 1; height: 6px; background: #EEEEEE; border-radius: 3px; overflow: hidden; }
.psy-bar-fill { height: 100%; background: #FFB2EF; border-radius: 3px; }
.psy-bar-n { font-family: 'Rajdhani', sans-serif; font-size: 12px; color: #AAA; width: 18px; flex-shrink: 0; }

.psy-review { padding: 22px 0; border-bottom: 1px solid #F2F2F2; }
.psy-review:last-child { border-bottom: none; }
.psy-rev-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.psy-rev-avatar {
  width: 38px; height: 38px;
  border-radius: 50%; background: #F0F0F0;
  border: 1px solid #E8E8E8;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 15px;
  color: #888; flex-shrink: 0;
}
.psy-rev-meta { flex: 1; }
.psy-rev-name { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 14px; color: #1A1A1A; }
.psy-rev-date { font-size: 12px; color: #AAA; font-family: 'Imprima', sans-serif; margin-top: 1px; }
.psy-rev-stars { display: flex; gap: 1px; }
.psy-rev-stars span { font-size: 12px; color: #FFB2EF; }
.psy-rev-text { font-size: 14.5px; color: #555; line-height: 1.7; font-family: 'Imprima', sans-serif; }
.psy-rev-verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11.5px; font-weight: 700;
  color: #27AE60; letter-spacing: 0.3px; margin-top: 8px;
}
.psy-write-review {
  margin-top: 32px; padding: 20px 24px;
  background: #F7F7F8; border: 1px solid #E8E8E8;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.psy-write-review-text { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 14px; color: #444; letter-spacing: 0.3px; }
.psy-write-review-sub { font-size: 12.5px; color: #999; font-family: 'Imprima', sans-serif; margin-top: 3px; }
.psy-btn-write {
  height: 40px; padding: 0 22px;
  background: #1A1A1A; color: #fff;
  border: none; border-radius: 7px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.2s; cursor: pointer;
}
.psy-btn-write:hover { background: #2D2D2D; }

/* ════════════════════════
   PRODUCTOS RELACIONADOS
════════════════════════ */
.psy-related {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 80px;
}
.psy-related-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 48px;
}
.psy-section-hd {
  display: flex; align-items: baseline;
  justify-content: space-between; margin-bottom: 20px;
}
.psy-section-ttl {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 20px;
  letter-spacing: 2.5px; text-transform: uppercase; color: #1A1A1A;
}
.psy-section-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: #1A1A1A;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 30px;
  border: 2px solid #1A1A1A;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.psy-section-all::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #FFB2EF, #73DEF1);
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: -1;
  pointer-events: none;
}
.psy-section-all:hover::before { opacity: 1; }
.psy-section-all:hover { border-color: transparent; color: #1A1A1A; box-shadow: 0 4px 18px rgba(255,178,239,0.35); }
.psy-section-all svg {
  width: 13px; height: 13px;
  fill: none; stroke: currentColor;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.3s ease; flex-shrink: 0;
}
.psy-section-all:hover svg { transform: translateX(3px); }

.psy-cards-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 48px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.psy-cards-scroll::-webkit-scrollbar { display: none; }
.psy-cards-scroll .psy-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

/* Tarjeta de producto — idéntica al catálogo */
.psy-card {
  border: 1px solid #E8E8E8;
  border-radius: 10px; overflow: hidden;
  background: #fff; cursor: pointer;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  opacity: 0; transform: translateY(16px);
  text-decoration: none; color: #1A1A1A;
}
.psy-card.visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.2s, box-shadow 0.2s;
}
.psy-card:hover { border-color: #D5D5D5; box-shadow: 0 6px 24px rgba(0,0,0,0.07); transform: translateY(-2px); }
.psy-card-img-wrap {
  aspect-ratio: 1 / 1; background: #F8F8F8;
  position: relative; display: flex;
  align-items: center; justify-content: center;
  padding: 20px; overflow: hidden;
}
.psy-card-img-wrap img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.psy-card:hover .psy-card-img-wrap img { transform: scale(1.05); }
.psy-card-discount-badge {
  position: absolute; top: 10px; left: 10px;
  background: #FEE2E2; color: #DC2626;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 10.5px;
  padding: 3px 8px; border-radius: 5px; letter-spacing: 0.3px;
  border: 1px solid #FECACA;
}
.psy-card-lang-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.92); border: 1px solid #E5E5E5;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 10px;
  letter-spacing: 1px; padding: 4px 9px 4px 6px;
  border-radius: 50px;
  display: flex; align-items: center; gap: 4px; color: #555;
  backdrop-filter: blur(4px);
}
.psy-card-lang-flag { width: 16px; height: 11px; object-fit: cover; border-radius: 2px; display: block; border: 1px solid #E0E0E0; flex-shrink: 0; }
.psy-card-agotado-badge {
  position: absolute; top: 10px; left: 10px;
  background: #F2F2F2; color: #888;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 10.5px;
  padding: 3px 8px; border-radius: 5px; letter-spacing: 0.5px;
}
.psy-card-body { padding: 12px 14px 14px; border-top: 1px solid #F0F0F0; display: flex; flex-direction: column; flex: 1; }
.psy-card-chips { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.psy-card-chip-code {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 1px; color: #AAAAAA;
  background: #F4F4F4; padding: 2px 7px;
  border-radius: 4px; border: 1px solid #EBEBEB;
}
.psy-card-chip-series {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 1.5px; color: #AAAAAA; text-transform: uppercase;
}
.psy-card-name {
  font-family: 'Quattrocento Sans', serif;
  font-weight: 700; font-size: 13.5px;
  color: #1A1A1A; line-height: 1.3; margin-bottom: 4px;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.psy-card-prices {
  display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
}
.psy-card-price-main {
  font-family: 'Quattrocento Sans', serif;
  font-weight: 700; font-size: 15.5px; color: #1A1A1A;
}
.psy-card-price-old {
  font-family: 'Imprima', sans-serif;
  font-size: 13px; color: #B07575; text-decoration: line-through;
}
.psy-card-btn {
  width: 100%; height: 40px;
  background: #1A1A1A; color: #fff;
  border: none; border-radius: 7px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 11.5px;
  letter-spacing: 2px; text-transform: uppercase;
  transition: background 0.2s; cursor: pointer;
  margin-top: auto;
}
.psy-card-btn:hover { background: #2D2D2D; }
.psy-card-btn.agotado { background: #F2F2F2; color: #AAAAAA; cursor: default; letter-spacing: 1.5px; }

/* ════════════════════════
   RESPONSIVE — TABLET GRANDE (≤1100px)
════════════════════════ */
@media (max-width: 1100px) {
  .psy-product-page { gap: 48px; padding: 20px 32px 60px; }
  .psy-bc-bar { padding: 14px 32px 0; }
  .psy-tabs-wrap { padding-left: 32px; padding-right: 32px; }
  .psy-related-inner { padding: 0 32px; }
  .psy-cards-scroll { padding-left: 32px; padding-right: 32px; }
  .psy-sticky-bar { padding: 14px 32px; }
  .psy-desc-layout { grid-template-columns: 1fr 320px; gap: 32px; }
  .psy-product-name { font-size: 44px; }
  .single-product .woocommerce-notices-wrapper { padding: 0 32px; }
}

/* ════════════════════════
   RESPONSIVE — TABLET / MÓVIL (≤860px)
════════════════════════ */
@media (max-width: 860px) {
  /* Layout */
  .psy-product-page {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px 16px 48px;
  }
  .psy-gallery { position: static; margin-bottom: 20px; }
  .psy-bc-bar { padding: 10px 16px 0; font-size: 12px; gap: 5px; }
  .psy-tabs-wrap { padding-left: 16px; padding-right: 16px; padding-bottom: 48px; }
  .psy-related-inner { padding: 0 16px; }
  .psy-cards-scroll { padding-left: 16px; padding-right: 16px; }
  .psy-cards-scroll .psy-card { flex: 0 0 210px; }
  .psy-sticky-bar { padding: 10px 16px; gap: 12px; }
  .single-product .woocommerce-notices-wrapper { padding: 0 16px; }

  /* Galería */
  .psy-gallery-main { border-radius: 8px; }
  .psy-thumbs-row { gap: 6px; }
  .psy-thumb { width: 72px; height: 72px; }

  /* Info */
  .psy-info { padding-top: 0; }
  .psy-product-name { font-size: 36px; letter-spacing: -0.3px; margin-bottom: 10px; }
  .psy-price-main { font-size: 28px; }
  .psy-price-block { padding: 14px 0; margin-bottom: 8px; }

  /* Add to cart row — todo en una fila en móvil */
  .psy-add-row { gap: 8px; }
  .psy-qty-ctrl { height: 46px; }
  .psy-btn-cart { height: 46px; font-size: 12.5px; min-width: 0; flex: 1; }
  .psy-btn-wishlist { height: 46px; padding: 0 12px; }
  .psy-wish-label { display: none; } /* solo icono en tablet/móvil */

  /* Trust badges — reducir padding */
  .psy-trust-cell { padding: 12px 6px; gap: 5px; }
  .psy-trust-icon { width: 32px; height: 32px; }
  .psy-trust-ttl { font-size: 11.5px; }
  .psy-trust-sub { font-size: 10px; }

  /* Envío estimado */
  .psy-shipping-est { padding: 9px 12px; }
  .psy-shipping-est-text { font-size: 12px; }

  /* PsyPoints */
  .psy-points-compact { padding: 8px 11px; gap: 7px; }
  .psy-points-compact-text { font-size: 12px; }
  .psy-points-compact-sub { display: none; }

  /* Tabs */
  .psy-tabs-nav { overflow-x: auto; scrollbar-width: none; gap: 0; }
  .psy-tabs-nav::-webkit-scrollbar { display: none; }
  .psy-tab { padding: 12px 18px 10px; font-size: 11.5px; white-space: nowrap; }
  .psy-tabs-nav { margin-bottom: 28px; }

  /* Descripción — specs box va debajo */
  .psy-desc-layout { grid-template-columns: 1fr; gap: 24px; }
  .psy-specs-box { order: 2; }

  /* Valoraciones */
  .psy-reviews-head { grid-template-columns: 140px 1fr; gap: 20px; }
  .psy-rev-score-n { font-size: 52px; }

  /* Sticky bar */
  .psy-sticky-thumb { width: 40px; height: 40px; }
  .psy-sticky-name { font-size: 12px; }
  .psy-sticky-price { font-size: 11.5px; }
  .psy-sticky-btn { height: 38px; padding: 0 18px; font-size: 11.5px; }

  /* Related products */
  .psy-section-ttl { font-size: 17px; letter-spacing: 2px; }
  .psy-section-all { padding: 7px 14px; font-size: 11px; }
}

/* ════════════════════════
   RESPONSIVE — MÓVIL PEQUEÑO (≤480px)
════════════════════════ */
@media (max-width: 480px) {
  .psy-product-page { padding: 12px 14px 40px; }
  .psy-bc-bar { display: none; } /* Ocultar breadcrumbs en móvil muy pequeño — demasiado ruido */
  .psy-tabs-wrap { padding-left: 14px; padding-right: 14px; }
  .psy-related-inner { padding: 0 14px; }
  .psy-cards-scroll { padding-left: 14px; padding-right: 14px; }
  .psy-cards-scroll .psy-card { flex: 0 0 185px; }

  .psy-product-name { font-size: 30px; }
  /* En móvil muy pequeño el qty ctrl ocupa su ancho natural, no fuerza wrapping */
  .psy-qty-ctrl { flex-shrink: 0; }
  .psy-price-main { font-size: 26px; }
  .psy-price-old { font-size: 14px; }

  .psy-btn-cart { flex: 1; }

  /* Trust */
  .psy-trust { grid-template-columns: repeat(3, 1fr); }
  .psy-trust-cell { padding: 10px 4px; gap: 4px; }
  .psy-trust-icon { width: 28px; height: 28px; }
  .psy-trust-ttl { font-size: 10.5px; }
  .psy-trust-sub { display: none; }

  /* Tabs */
  .psy-tab { padding: 10px 14px 9px; font-size: 11px; }

  /* Valoraciones */
  .psy-reviews-head { grid-template-columns: 1fr; gap: 16px; }
  .psy-bars { display: none; }

  /* Payment icons */
  .psy-pay-icon { width: 46px; height: 26px; }

  /* Write review */
  .psy-write-review { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ════════════════════════
   LIGHTBOX
════════════════════════ */
.psy-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.psy-lightbox.active { opacity: 1; visibility: visible; }
.psy-lb-img-wrap {
  display: flex; align-items: center; justify-content: center;
  max-width: 90vw; max-height: 90vh;
}
.psy-lb-img-wrap img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain; border-radius: 4px;
  user-select: none;
  transition: opacity 0.2s;
}
.psy-lb-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.psy-lb-close:hover { background: rgba(255,255,255,0.22); }
.psy-lb-prev, .psy-lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 2;
}
.psy-lb-prev { left: 20px; }
.psy-lb-next { right: 20px; }
.psy-lb-prev:hover, .psy-lb-next:hover { background: rgba(255,255,255,0.22); }
.psy-lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.5); letter-spacing: 1px;
}

/* ════════════════════════
   ANIMACIONES BOTONES
════════════════════════ */
@keyframes psy-heartbeat {
  0%   { transform: scale(1); }
  15%  { transform: scale(1.35); }
  30%  { transform: scale(1); }
  45%  { transform: scale(1.18); }
  60%  { transform: scale(1); }
}
.psy-btn-wishlist.saved svg { animation: psy-heartbeat 0.55s ease forwards; }

.psy-btn-write {
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.psy-btn-write:hover { background: #2D2D2D; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.18); }

@keyframes psy-pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(26,26,26,0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(26,26,26,0); }
}
.psy-sticky-btn {
  transition: background 0.2s, transform 0.15s;
  animation: psy-pulse-glow 2.8s ease infinite;
}
.psy-sticky-btn:hover { background: #2D2D2D; transform: translateY(-1px); animation: none; }

.psy-card-btn {
  margin-top: auto;
  transition: background 0.15s ease, transform 0.15s ease, letter-spacing 0.2s ease;
}
.psy-card-btn:hover:not(.agotado) {
  background: #2A2A2A;
  transform: translateY(-1px);
  letter-spacing: 2.8px;
}

.psy-qty-btn { transition: background 0.1s, transform 0.1s; }
.psy-qty-btn:active { transform: scale(0.82); background: #EBEBEB !important; }

/* ════════════════════════
   FORMULARIO VALORACIONES WC
════════════════════════ */
#psy-reviews .comment-respond {
  margin-top: 32px;
  background: #F7F7F8;
  border: 1px solid #E8E8E8;
  border-radius: 10px;
  padding: 28px;
}
#psy-reviews #reply-title,
#psy-reviews .comment-reply-title {
  font-family: 'Quattrocento Sans', serif !important;
  font-weight: 700 !important; font-size: 17px !important;
  color: #1A1A1A !important; letter-spacing: -0.1px;
  margin-bottom: 22px !important; display: block !important;
}
#psy-reviews .comment-reply-title small { display: none; }
#psy-reviews .comment-form-rating label,
#psy-reviews .comment-form-comment label,
#psy-reviews .comment-form-author label,
#psy-reviews .comment-form-email label {
  font-family: 'Rajdhani', sans-serif !important;
  font-weight: 700 !important; font-size: 11px !important;
  letter-spacing: 2px !important; text-transform: uppercase !important;
  color: #888 !important; display: block !important; margin-bottom: 8px !important;
}
/* Estrellas — formulario propio usa .psy-review-stars (evita que WC JS las intercepte) */
#review_form .psy-review-stars > span { display: flex; gap: 6px; margin-bottom: 6px; }
#review_form .psy-review-stars > span a {
  font-size: 26px; color: #DDD;
  text-decoration: none; line-height: 1;
  cursor: pointer;
  transition: color 0.12s;
}
#review_form .psy-review-stars > span a:hover { color: #FFB2EF; }

/* Estrellas en panel de reseñas existentes (#psy-reviews) */
#psy-reviews .stars span { display: flex; gap: 4px; margin-bottom: 4px; }
#psy-reviews .stars span a {
  font-size: 24px; color: #DDD;
  text-decoration: none; line-height: 1;
  transition: color 0.15s;
}
#psy-reviews .stars span a::before,
#psy-reviews .stars span a::after { display: none !important; content: none !important; }
#psy-reviews .stars span a:hover,
#psy-reviews .stars span a.active { color: #FFB2EF !important; }
#psy-reviews .comment-form-comment textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #E0E0E0 !important; border-radius: 8px !important;
  font-family: 'Imprima', sans-serif; font-size: 14px;
  color: #1A1A1A; background: #fff !important;
  outline: none; resize: vertical; min-height: 100px;
  transition: border-color 0.2s; box-shadow: none !important;
}
#psy-reviews .comment-form-author input[type="text"],
#psy-reviews .comment-form-email input[type="email"] {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid #E0E0E0 !important; border-radius: 8px !important;
  font-family: 'Imprima', sans-serif; font-size: 14px;
  color: #1A1A1A; background: #fff !important;
  outline: none; transition: border-color 0.2s; box-shadow: none !important;
}
#psy-reviews .comment-form-comment textarea:focus,
#psy-reviews .comment-form-author input:focus,
#psy-reviews .comment-form-email input:focus {
  border-color: #1A1A1A !important; outline: none !important;
}
#psy-reviews .comment-form p { margin-bottom: 16px !important; }
#psy-reviews .form-submit { margin-top: 4px !important; }
#psy-reviews .submit {
  height: 44px; padding: 0 28px !important;
  background: #1A1A1A !important; color: #fff !important;
  border: none !important; border-radius: 8px !important;
  font-family: 'Rajdhani', sans-serif !important;
  font-weight: 700 !important; font-size: 12px !important;
  letter-spacing: 2px !important; text-transform: uppercase !important;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center;
}
#psy-reviews .submit:hover { background: #2D2D2D !important; transform: translateY(-1px); }
#psy-reviews .comment-form-cookies-consent { display: none !important; }
#psy-reviews .woocommerce-Reviews-title { display: none !important; }
#psy-reviews .logged-in-as {
  font-family: 'Imprima', sans-serif; font-size: 13px; color: #888;
  margin-bottom: 16px !important;
}
#psy-reviews .logged-in-as a { color: #888; text-decoration: underline; text-underline-offset: 2px; }
#psy-reviews p.must-log-in {
  font-family: 'Imprima', sans-serif; font-size: 14px; color: #888; padding: 12px 0;
}
#psy-reviews p.must-log-in a { color: #1A1A1A; font-weight: 700; text-decoration: underline; }

/* ════════════════════════
   FORMULARIO #review_form (nuestro form propio, distinto del .comment-respond de WC)
════════════════════════ */
#review_form { margin-top: 28px; }
#review_form .comment-reply-title {
  font-family: 'Quattrocento Sans', serif;
  font-weight: 700; font-size: 17px; color: #1A1A1A;
  display: block; margin-bottom: 18px;
}
#review_form .logged-in-as {
  font-family: 'Imprima', sans-serif; font-size: 13px; color: #888;
  margin-bottom: 18px;
}
#review_form .logged-in-as strong { color: #1A1A1A; }
#review_form label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  color: #888; display: block; margin-bottom: 8px;
}
#review_form .required { color: #C07575; }
#review_form .comment-form-rating { margin-bottom: 16px; }
#review_form .comment-form-comment { margin-bottom: 16px; }
#review_form textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #E0E0E0; border-radius: 8px;
  font-family: 'Imprima', sans-serif; font-size: 14px;
  color: #1A1A1A; background: #fff;
  outline: none; resize: vertical; min-height: 100px;
  transition: border-color 0.2s; box-shadow: none;
  box-sizing: border-box;
}
#review_form textarea:focus { border-color: #1A1A1A; }
#review_form select[name="rating"] { display: none !important; }
#review_form .form-submit { margin-top: 4px; }
#review_form .submit {
  height: 44px; padding: 0 28px;
  background: #1A1A1A; color: #fff;
  border: none; border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
  display: inline-flex; align-items: center;
}
#review_form .submit:hover { background: #2D2D2D; transform: translateY(-2px); }
#review_form .submit:active { background: #111; transform: translateY(1px); transition: transform 0.07s; }

/* ════════════════════════
   FOTOS EN VALORACIONES
════════════════════════ */
.psy-rev-photos {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.psy-rev-photo {
  width: 80px; height: 80px;
  object-fit: cover; border-radius: 7px;
  border: 1px solid #E8E8E8;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
}
.psy-rev-photo:hover { transform: scale(1.08); box-shadow: 0 6px 16px rgba(0,0,0,0.14); }

/* ════════════════════════
   CAMPO SUBIDA FOTO EN FORM
════════════════════════ */
.psy-review-photo-field { margin-bottom: 16px !important; }
.psy-review-photo-field > label {
  font-family: 'Rajdhani', sans-serif !important;
  font-weight: 700 !important; font-size: 11px !important;
  letter-spacing: 2px !important; text-transform: uppercase !important;
  color: #888 !important; display: flex !important; align-items: center; gap: 8px;
  margin-bottom: 8px !important;
}
.psy-review-photo-optional { font-weight: 400 !important; color: #BBB !important; font-size: 10px !important; letter-spacing: 1px !important; text-transform: none !important; }
.psy-review-file-input { display: none !important; }
.psy-review-photo-label-btn {
  display: inline-flex !important; align-items: center; gap: 7px;
  height: 36px; padding: 0 16px;
  border: 1.5px solid #DEDEDE; border-radius: 7px;
  background: #fff;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: 1px; color: #555;
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.psy-review-photo-label-btn:hover { border-color: #1A1A1A; color: #1A1A1A; }
.psy-review-photo-hint {
  display: block !important; font-family: 'Imprima', sans-serif !important;
  font-size: 11px !important; color: #CCC !important; margin-top: 6px !important;
  font-style: normal !important;
}
.psy-review-photo-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.psy-review-photo-thumb {
  position: relative;
  width: 72px; height: 72px;
  flex-shrink: 0;
}
.psy-review-photo-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #E0E0E0;
  display: block;
}
.psy-review-photo-del {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  background: #1A1A1A;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.psy-review-msg {
  padding: 12px 16px;
  border-radius: 7px;
  font-family: 'Imprima', sans-serif;
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.4;
}
.psy-review-msg--success {
  background: #F0FAF3;
  border: 1px solid #C3E6CB;
  color: #276438;
}
.psy-review-msg--error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
}
