/* Página de Paneles Acústicos — ver includes/class-oce-paneles.php */
.oce-pa-hero,
.oce-pa-gal,
.oce-pa-shapes {
  --oce-pa-accent: var(--e-global-color-primary, #e60918);
  --oce-pa-text: var(--e-global-color-text, #333);
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}
.oce-pa-hero *,
.oce-pa-gal *,
.oce-pa-shapes * { box-sizing: border-box; }

/* ---------- Flechas y puntos (officeclass.css fuerza estilos con !important en todos los botones) ---------- */
.oce-pa-hero button.oce-pa-arrow,
.oce-pa-gal button.oce-pa-arrow,
.oce-pa-shapes button.oce-pa-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 56px;
  height: 56px;
  margin: -28px 0 0;
  padding: 10px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #fff !important;
  cursor: pointer;
  line-height: 0;
  transition: transform .2s, opacity .2s;
}
.oce-pa-arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.oce-pa-prev { left: 12px; }
.oce-pa-next { right: 12px; }
.oce-pa-hero button.oce-pa-arrow:hover,
.oce-pa-gal button.oce-pa-arrow:hover,
.oce-pa-shapes button.oce-pa-arrow:hover { transform: scale(1.12); }
.oce-pa-arrow[hidden] { display: none; }
.oce-pa-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.oce-pa-dots { display: flex; justify-content: center; gap: 8px; margin: 18px 0 0; }
.oce-pa-gal .oce-pa-dots button.oce-pa-dot {
  width: 8px;
  height: 8px;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #c9bfc3 !important;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.oce-pa-gal .oce-pa-dots button.oce-pa-dot[aria-current="true"] { background: #333 !important; transform: scale(1.15); }

/* Fotos que se cruzan */
.oce-pa-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.oce-pa-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }
.oce-pa-hero .oce-pa-slide img,
.oce-pa-gal .oce-pa-slide img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; border-radius: 0; }

/* ---------- Hero ---------- */
.oce-pa-hero {
  position: relative;
  width: 100%;
  min-height: clamp(760px, calc(100vh - 150px), 950px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111;
  color: #fff;
}
.oce-pa-hero-media { position: absolute; inset: 0; }
/* Degradado oscuro a la izquierda para que el texto se lea sobre cualquier foto */
.oce-pa-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .88) 0, rgba(0, 0, 0, .7) 28%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}
.oce-pa-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 470px;
  margin-left: 7.5%;
  padding: 70px 0;
}
.oce-pa-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}
.oce-pa-eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--oce-pa-accent); }
.oce-pa-hero .oce-pa-hero-title {
  margin: 0 0 22px;
  font-family: "Poppins", sans-serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
}
.oce-pa-hero-text { max-width: 360px; font-size: 15px; line-height: 1.6; color: #fff; }
.oce-pa-hero-text p { margin: 0 0 10px; }
.oce-pa-hero-text strong { color: #fff; }
.oce-pa-hero .oce-pa-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  padding: 9px 22px 9px 26px;
  border: 1.5px solid #fff;
  border-radius: 30px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: background .2s, color .2s;
}
.oce-pa-hero-btn svg { width: 30px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.oce-pa-hero .oce-pa-hero-btn:hover,
.oce-pa-hero .oce-pa-hero-btn:focus-visible { background: #fff; color: #111; }

@media (max-width: 1024px) {
  .oce-pa-hero { min-height: 620px; }
  .oce-pa-hero .oce-pa-hero-title { font-size: 46px; }
  .oce-pa-hero-content { margin-left: 70px; }
}
@media (max-width: 767px) {
  .oce-pa-hero { min-height: 640px; align-items: flex-end; }
  .oce-pa-hero-media::after { background: linear-gradient(0deg, rgba(0, 0, 0, .9) 0, rgba(0, 0, 0, .7) 50%, rgba(0, 0, 0, .2) 100%); }
  .oce-pa-hero-content { margin: 0; padding: 120px 24px 40px; max-width: none; }
  .oce-pa-hero .oce-pa-hero-title { font-size: 38px; margin-bottom: 16px; }
  .oce-pa-hero-text { max-width: none; font-size: 14px; }
  .oce-pa-hero button.oce-pa-arrow { top: 90px; width: 44px; height: 44px; }
  .oce-pa-prev { left: 4px; }
  .oce-pa-next { right: 4px; }
}

/* ---------- Galería de panel (muestra + texto | foto) ---------- */
.oce-pa-gal {
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: stretch;
  width: 100%;
  min-height: 680px;
  background: #fff;
}
.oce-pa-gal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 6%;
  text-align: center;
  color: var(--oce-pa-text);
}
.oce-pa-gal-swatches { position: relative; width: 100%; max-width: 340px; height: 280px; }
.oce-pa-swatch { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .7s ease; }
.oce-pa-swatch.is-active { opacity: 1; }
.oce-pa-gal .oce-pa-swatch img.oce-pa-swatch-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.oce-pa-gal .oce-pa-gal-title {
  margin: 34px 0 14px;
  font-family: "Poppins", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}
.oce-pa-gal-text { max-width: 460px; font-size: 16px; line-height: 1.6; }
.oce-pa-gal-text p { margin: 0 0 14px; }
.oce-pa-gal-text p:last-child { margin-bottom: 0; }
/* Listas del texto como renglones (sin <li>, ver nota del PHP) */
.oce-pa-gal-text .oce-pa-lista { display: inline-block; text-align: left; margin: 0; }
.oce-pa-gal-text .oce-pa-lista span { display: block; }
.oce-pa-gal-text .oce-pa-lista span::before { content: "•"; margin-right: 8px; }
.oce-pa-gal-media { position: relative; min-height: 680px; overflow: hidden; background: #eee; }
/* lado="derecha": foto a la izquierda y texto a la derecha */
.oce-pa-gal--derecha { grid-template-columns: 58% 42%; }
.oce-pa-gal--derecha .oce-pa-gal-media { order: -1; }

/* Miniaturas bajo el texto (p. ej. Prints disponibles) */
.oce-pa-gal-extras { margin-top: 26px; }
.oce-pa-gal .oce-pa-gal-extras-title { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #111; }
.oce-pa-gal-extras-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; }
.oce-pa-gal-extras-list a { display: block; line-height: 0; border-radius: 10px; overflow: hidden; transition: transform .2s; }
.oce-pa-gal-extras-list a:hover,
.oce-pa-gal-extras-list a:focus-visible { transform: translateY(-2px); }
.oce-pa-gal .oce-pa-gal-extras-list img { width: 48px; height: 48px; object-fit: cover; display: block; border-radius: 10px; }

@media (max-width: 1024px) {
  .oce-pa-gal, .oce-pa-gal--derecha { grid-template-columns: 1fr; min-height: 0; }
  .oce-pa-gal-media { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .oce-pa-gal-info { padding: 40px 24px 50px; }
  .oce-pa-gal-swatches { height: 220px; }
  .oce-pa-gal .oce-pa-gal-title { font-size: 28px; margin-top: 24px; }
}
@media (max-width: 767px) {
  .oce-pa-gal-swatches { height: 180px; }
  .oce-pa-gal button.oce-pa-arrow { width: 44px; height: 44px; margin-top: -22px; }
  .oce-pa-prev { left: 4px; }
  .oce-pa-next { right: 4px; }
}

/* ---------- Shapes ---------- */
.oce-pa-shapes { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; text-align: center; color: #222; }
.oce-pa-shapes .oce-pa-shapes-title {
  margin: 0 0 14px;
  font-family: "Poppins", sans-serif;
  font-size: 46px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  color: #111;
}
.oce-pa-shapes-text { max-width: 1020px; margin: 0 auto; font-size: 16px; line-height: 1.55; }
.oce-pa-shapes-text p { margin: 0; }
.oce-pa-shapes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 200px)); justify-content: center; gap: 22px; margin: 26px 0 0; }
.oce-pa-shape-panel { margin: 0; }
.oce-pa-shapes .oce-pa-shape-panel img { width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; display: block; border-radius: 0; }
.oce-pa-shapes figcaption { font-style: normal; }
.oce-pa-shape-panel figcaption { margin-top: 12px; font-size: 19px; color: #111; }

.oce-pa-strip { position: relative; margin: 40px auto 0; padding: 0 56px; }
.oce-pa-strip-viewport { overflow: hidden; touch-action: pan-y; }
.oce-pa-strip-track { display: flex; gap: 20px; transition: transform .45s ease; will-change: transform; }
.oce-pa-strip.is-static .oce-pa-strip-track { justify-content: center; }
.oce-pa-strip-item { flex: 0 0 calc((100% - 4 * 20px) / 5); margin: 0; }
.oce-pa-shapes .oce-pa-strip-item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; display: block; border-radius: 0; }
.oce-pa-strip-item figcaption { margin-top: 6px; font-size: 15px; color: #444; }
.oce-pa-shapes button.oce-pa-arrow { color: #222 !important; }
.oce-pa-shapes .oce-pa-arrow svg { filter: none; }
.oce-pa-shapes .oce-pa-prev { left: 0; }
.oce-pa-shapes .oce-pa-next { right: 0; }

@media (max-width: 1024px) {
  .oce-pa-strip-item { flex-basis: calc((100% - 2 * 20px) / 3); }
}
@media (max-width: 767px) {
  .oce-pa-shapes .oce-pa-shapes-title { font-size: 34px; }
  .oce-pa-shapes-text { font-size: 14px; }
  .oce-pa-shapes-grid { grid-template-columns: repeat(2, minmax(0, 160px)); gap: 18px; }
  .oce-pa-shape-panel figcaption { font-size: 16px; }
  .oce-pa-strip { padding: 0 40px; }
  .oce-pa-strip-item { flex-basis: calc((100% - 20px) / 2); }
  .oce-pa-shapes button.oce-pa-arrow { width: 40px; height: 40px; margin-top: -20px; }
}
