/* ═══════════════════════════════════════════════════════════
   HOME-NEW.CSS — Brand Reporter Studio
   Organizado por secciones · Mayo 2026
   ═══════════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&display=swap');

/* ── VARIABLES ── */
:root {
  --black:       #0C0B09;
  --coal:        #161412;
  --carbon:      #201D19;
  --paper:       #F2EDE3;
  --warm:        #E8E0CE;
  --mid:         #9A9080;
  --gold:        #C4962A;
  --gold-lt:     #D4A840;
  --white:       #FAF7F2;
  --sidebar-w:   80px;
  --panel-count: 9;
}

.gold-lt {
  color: #D4A840;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:focus-visible {
  outline: 0px;
}

/* ── BODY ── */
body {
  background: var(--black);
  color: var(--paper);
  font-family: 'Raleway', sans-serif;
  overflow-x: hidden;
}
@media (min-width: 992px) { body { margin-left: var(--sidebar-w); } }
@media (max-width: 991px) { body { margin-left: 0; margin-top: 70px; } }


/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
  mix-blend-mode: overlay;
}

/* ── OVERFLOW ── */
@media (min-width: 1025px) { html, body { overflow: hidden; height: 100%; } }
@media (max-width: 1024px) { html, body { overflow: auto; height: auto; } }
@media (max-width: 1024px) { #container { display: block; width: 100%; transform: none !important; flex-direction: column; } }
@media (max-width: 1024px) { footer { display: block !important; } }
@media (max-width: 991px) { :root { --sidebar-w: 0px; } }

/* ── IRIS ── */
#iris-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  pointer-events: none;
  z-index: 2000;
  mask-image: radial-gradient(circle at center, transparent 100%, black 100%);
  -webkit-mask-image: radial-gradient(circle at center, transparent 100%, black 100%);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(12, 11, 9, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(12px);
  padding: 5px 48px 14px;
  border-bottom: 1px solid rgba(196,150,42,0.15);
}
.nav-logo img { height: 50px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,237,227,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(196,150,42,0.5);
  padding: 9px 22px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); color: var(--black); }

.is-ios .nav {
  background: #111 !important;
}

/* ── SIDEBAR ── */
.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}


@media (max-width: 768px) {
  .hero-actions {
    display: block;
  }
}

/* ── UTILITIES ── */
.eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gold); }
.eyebrow-center { justify-content: center; }
.eyebrow-center::before,
.eyebrow-center::after { content: ''; width: 22px; height: 1px; background: var(--gold); }

.section-h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
}
.section-h2 em { font-style: italic; color: var(--gold); }
.section-h2 .thin { font-weight: 100; }
.text-center { text-align: center; }

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  font-weight: 700;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--gold-lt); }

.btn-ghost {
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,237,227,0.65);
  text-decoration: none;
  border-bottom: 1px solid rgba(242,237,227,0.25);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
  margin-top: 32px;
}
.btn-ghost:hover { color: var(--white); border-color: var(--white); }

.divider-gold { width: 40px; height: 1px; background: var(--gold); margin: 24px 0; }

/* ── SALTOS DE LÍNEA CONDICIONALES ── */
.br-mobile        { display: none; }
.br-tablet        { display: none; }
.br-portrait      { display: none; }
.br-landscape     { display: none; }

@media (max-width: 600px) {
  .br-mobile { display: block; }
}
@media (max-width: 991px) and (orientation: portrait) {
  .br-portrait { display: block; }
}
@media (max-width: 991px) and (orientation: landscape) {
  .br-landscape { display: block; }
}
@media (min-width: 601px) {
  .br-tablet { display: block; }
}

/* ── OCULTAR PALABRAS CONDICIONAL ── */
/* .hide-mobile   { }
.hide-tablet   { }
.hide-portrait { }
.hide-landscape{ } */

@media (max-width: 600px) {
  .hide-mobile { display: none; }
}
@media (min-width: 601px) {
  .hide-tablet { display: none; }
}
@media (max-width: 991px) and (orientation: portrait) {
  .hide-portrait { display: none; }
}
@media (min-width: 992px) and (orientation: landscape) {
  .hide-landscape { display: none; }
}

/* ── TICKER — fixed bottom ── */
.ticker-fixed {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w);
  right: 0;
  z-index: 50;
  background: var(--carbon);
  border-top: 1px solid rgba(196,150,42,0.15);
  padding: 11px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.ticker-track {
  display: flex;
  animation: tickerScroll 30s linear infinite;
  flex-shrink: 0;
}
.ticker-item {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242,237,227,0.14);
  white-space: nowrap;
  padding: 0 28px;
}
.ticker-sep {
  color: rgba(196,150,42,0.22);
  padding: 0 6px;
  font-size: 0.75rem;
  font-family: 'Raleway', sans-serif;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── PANEL PROGRESS DOTS ── */
.panel-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.panel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(196,150,42,0.22);
  transition: background 0.3s, transform 0.3s, height 0.3s, border-radius 0.3s;
  cursor: pointer;
}
.panel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
  height: 22px;
  border-radius: 3px;
}

/* ── PANEL COUNTER ── */
.panel-counter {
  position: fixed;
  bottom: 54px;
  right: 28px;
  z-index: 100;
  font-family: 'Raleway', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: rgba(242,237,227,0.28);
}
.panel-counter-sep { margin: 0 3px; }

/* ── HORIZONTAL SCROLL WRAPPER ── */
#scroll-outer { height: 100vh; overflow: hidden; position: relative; }
#container {
  display: flex;
  flex-wrap: nowrap;
  width: calc(var(--panel-count) * (100vw - var(--sidebar-w)));
  height: 100vh;
  will-change: transform;
}

/* ── PANEL BASE ── */
.panel {
  width: calc(100vw - var(--sidebar-w));
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.panel-hero     { background: var(--black); }
.panel-problema { background: var(--coal);    border-left: 1px solid rgba(196,150,42,0.1); }
.panel-thqv     { background: var(--black);   border-left: 1px solid rgba(196,150,42,0.1); }
.panel-tccp     { background: var(--carbon);  border-left: 1px solid rgba(196,150,42,0.1); }
.panel-trqm     { background: var(--coal);    border-left: 1px solid rgba(196,150,42,0.1); }
.panel-sistema  { background: var(--black);   border-left: 1px solid rgba(196,150,42,0.1); }
.panel-social   { background: var(--coal);    border-left: 1px solid rgba(196,150,42,0.1); }
.panel-bruno    { background: var(--carbon);  border-left: 1px solid rgba(196,150,42,0.1); }
.panel-contacto { background: var(--black);   border-left: 1px solid rgba(196,150,42,0.1); }

/* ── PANEL INNER ── */
.panel-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 100px 80px 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── DECORATIONS ── */
.film-strip {
  position: absolute;
  top: 0; bottom: 0; right: 8%;
  width: 28px;
  display: flex;
  flex-direction: column;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}
.film-strip-hole {
  flex-shrink: 0;
  height: 22px;
  border: 1px solid var(--paper);
  margin: 3px 4px;
  border-radius: 2px;
}
.light-leak {
  position: absolute;
  top: -10%; right: -5%;
  width: 55%; height: 80%;
  background: radial-gradient(ellipse at 70% 20%, rgba(196,150,42,0.06) 0%, rgba(196,150,42,0.02) 40%, transparent 70%);
  animation: leakPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}
@keyframes leakPulse {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.08); }
}
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-video-bg   { position: absolute; inset: 0; }
.hero-video-bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-video-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(12,11,9,0.55) 0%, transparent 30%, rgba(12,11,9,0.92) 100%),
    linear-gradient(to right,  rgba(12,11,9,0.5)  0%, transparent 60%);
}

/* ═══════════════════════════════════════════════════════════
   PANEL 1: HERO
   ═══════════════════════════════════════════════════════════ */
.hero-edition {
  position: absolute;
  top: 112px; left: 80px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s 0.5s ease forwards;
}
.hero-edition::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.hero-inner { justify-content: center; padding-bottom: 130px; max-width: 920px; }
.hero-h1 {
  font-family: "Libre Baskerville", serif;
  font-weight: 100;
  font-size: clamp(2.6rem, 6.5vw, 4rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
}
.h1-remate {
  font-size: clamp(2.05rem, 4.5vw, 3.15rem); color: rgba(250, 247, 242, 0.65);
}
.hero-h1 .line { display: block;}
.hero-h1 .line-inner { display: block; transform: translateY(110%); opacity: 0; }
.hero-h1 .line-inner.revealed   { animation: slideUp 0.9s cubic-bezier(0.16,1,0.3,1) forwards; }
.hero-h1 .line-inner.revealed-2 { animation: slideUp 0.9s 0.15s cubic-bezier(0.16,1,0.3,1) forwards; }
.hero-h1 .line-inner.revealed-3 { animation: slideUp 0.9s 0.3s cubic-bezier(0.16,1,0.3,1) forwards; }
.hero-h1 .line-inner.revealed-4 { animation: slideUp 0.9s 0.45s cubic-bezier(0.16,1,0.3,1) forwards; }
.hero-h1 .thin { font-weight: 100; }
/* .hero-h1 em    { font-style: italic; color: var(--gold-lt); } */
.h1-small { font-size: 0.75em; }

@keyframes slideUp {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


.hero-sub {
  font-family: 'Raleway', sans-serif;
  /* font-style: italic; */
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(242,237,227,0.6);
  line-height: 1.55;
  max-width: 480px;
  border-left: 2px solid rgba(196,150,42,0.5);
  padding-left: 18px;
  opacity: 0;
  animation: fadeIn 1s 2.8s ease forwards;
}
.panel-scroll-cue {
  position: absolute;
  bottom: 76px; right: 56px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s 2.2s ease forwards;
}
.scroll-text {
  font-family: 'Raleway', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(242,237,227,0.3);
  writing-mode: vertical-rl;
}
.scroll-arrow-h {
  width: 44px; height: 1px;
  background: linear-gradient(to right, rgba(196,150,42,0.6), transparent);
  position: relative;
}
.scroll-arrow-h::after {
  content: '→';
  position: absolute;
  right: -10px; top: -7px;
  font-size: 0.7rem;
  color: rgba(196,150,42,0.6);
}

/* ═══════════════════════════════════════════════════════════
   PANEL 2: EL PROBLEMA
   ═══════════════════════════════════════════════════════════ */
.panel-top { margin-bottom: 48px; }
.panel-top--center { text-align: center; align-items: center; display: flex; flex-direction: column; }

.problema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(196,150,42,0.1);
  max-width: 1100px;
}
.problema-item {
  padding: 44px 36px;
  border-right: 1px solid rgba(196,150,42,0.08);
  position: relative;
  background-color: transparent;
  background-size: cover;
  background-position: center;
  transition: background-color 0.3s;
}
#panel-problema .sistema-item.problema-1 {
  background:
    linear-gradient(rgba(12,11,9,0.55), rgba(12,11,9,0.55)),
    url('../img/home/backgrounds/problema-1a.jpg') center/cover no-repeat;
}

#panel-problema .sistema-item.problema-2 {
  background:
    linear-gradient(rgba(12,11,9,0.55), rgba(12,11,9,0.55)),
    url('../img/home/backgrounds/problema-2a.jpg') center/cover no-repeat;
}

#panel-problema .sistema-item.problema-3 {
  background:
    linear-gradient(rgba(12,11,9,0.55), rgba(12,11,9,0.55)),
    url('../img/home/backgrounds/problema-3a.jpg') center/cover no-repeat;
}

#panel-problema .sistema-item.problema-1:hover {
  background:
    linear-gradient(rgba(12,11,9,0.72), rgba(12,11,9,0.72)),
    url('../img/home/backgrounds/problema-1b.jpg') center/cover no-repeat;
}

#panel-problema .sistema-item.problema-2:hover {
  background:
    linear-gradient(rgba(12,11,9,0.72), rgba(12,11,9,0.72)),
    url('../img/home/backgrounds/problema-2b.jpg') center/cover no-repeat;
}

#panel-problema .sistema-item.problema-3:hover {
  background:
    linear-gradient(rgba(12,11,9,0.72), rgba(12,11,9,0.72)),
    url('../img/home/backgrounds/problema-3b.jpg') center/cover no-repeat;
}

.problema-item:last-child { border-right: none; }
.problema-item:hover { background-color: rgba(196,150,42,0.04); }
.problema-item::before {
  content: '';
  position: absolute;
  inset: 0;
    background: linear-gradient(rgba(12,11,9,0.55), rgba(12,11,9,0.55));
  z-index: 0;
  transition: background 0.3s;
}
.problema-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}
.problema-item:hover::after { transform: scaleX(1); }
.problema-num {
  font-family: 'Raleway', sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(196,150,42,0.5);
  line-height: 1;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.problema-text {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: rgba(242,237,227,0.7);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.problema-item:hover .problema-num { color: rgba(196,150,42,0.6); transition: color 0.3s ease; }
.problema-item:hover .problema-text { color: rgba(242,237,227,0.9); transition: color 0.3s ease; }

/* ═══════════════════════════════════════════════════════════
   PANELS 3, 4: SERVICIOS (THqV y TCdP)
   ═══════════════════════════════════════════════════════════ */
.service-head { max-width: 700px; margin-bottom: 36px; }
.service-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}
.service-desc {
  font-family: 'Raleway', sans-serif;
  /* font-style: italic; */
  font-size: 1rem;
  color: rgba(242,237,227,0.5);
  line-height: 1.65;
  max-width: 700px;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: rgba(196,150,42,0.07);
  max-width: 1100px;
}
.service-card {
  background: var(--coal);
  padding: 32px 28px;
  border-right: 1px solid rgba(196,150,42,0.08);
  position: relative;
  transition: background 0.3s;
}
.service-card:last-child { border-right: none; }
.service-card:hover { background: var(--carbon); }
.panel-tccp .service-card       { background: var(--black); }
.panel-tccp .service-card:hover { background: var(--coal); }
.service-card-num {
  font-family: 'Raleway', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(196,150,42,0.2);
  line-height: 1;
  margin-bottom: 12px;
}
.service-card-title {
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-card-body {
  font-family: 'Raleway', sans-serif;
  font-style: italic;
  font-size: 0.82rem;
  color: rgba(242,237,227,0.45);
  line-height: 1.6;
}
.card-logo-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 60%;
  max-height: 40%;
  object-fit: contain;
  /* filter: brightness(0) invert(1); */
  z-index: 2;
  opacity: 0.9;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}
.service-card:hover::after { transform: scaleX(1); }

.service-card-visual{
  position:relative;
}

.service-card-visual::after{

  content:"";

  position:absolute;
  inset:0;

  background:
  rgba(10,10,10,.50);

  z-index:2;

  pointer-events:none;

}

.card-logo-overlay{
  position:absolute;
  z-index:3;
}

.sistema-item {
  position: relative;
  overflow: hidden;
}
/* .sistema-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
} */

.sistema-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}
.sistema-item:hover::after { transform: scaleX(1); }


/* THqV — luz cálida desde la izquierda */
.sistema-item:nth-child(1)::before {
  background:
    radial-gradient(ellipse at -10% 60%, rgba(196,150,42,0.12) 0%, transparent 65%),
    radial-gradient(ellipse at 110% 20%, rgba(196,150,42,0.04) 0%, transparent 60%);
}

/* TCdP — luz desde arriba centrada */
.sistema-item:nth-child(3)::before {
  background:
    radial-gradient(ellipse at 50% -20%, rgba(196,150,42,0.1) 0%, transparent 65%);
}

/* TRqM — luz desde la derecha */
.sistema-item:nth-child(5)::before {
  background:
    radial-gradient(ellipse at 110% 50%, rgba(196,150,42,0.12) 0%, transparent 65%),
    radial-gradient(ellipse at -10% 80%, rgba(196,150,42,0.04) 0%, transparent 60%);
}

/* asegurar que el contenido queda encima */
.sistema-item > * { position: relative; z-index: 1; }

  /* ── SERVICE CARD VISUAL — cover + hover vídeo (THqV / TCdP) ── */
  .service-card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--black);
  }
  .sc-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.45s;
  }
  .sc-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s;
  }
  .service-card:hover .sc-video { opacity: 1; }
  .service-card:hover .sc-cover { opacity: 0; }

  /* ── TRqM CAROUSEL ── */
  .trqm-photos {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--black);
  }
  .trqm-photos img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.55s;
  }
  .trqm-photos img.trqm-active { opacity: 1; }
  .trqm-nav {
    display: flex;
    gap: 7px;
    margin-bottom: 14px;
  }
  .trqm-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(196,150,42,0.22);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
  }
  .trqm-dot.trqm-active {
    background: var(--gold);
    transform: scale(1.4);
  }

/* ═══════════════════════════════════════════════════════════
   PANEL 5: TU RETRATO QUE MARCA
   ═══════════════════════════════════════════════════════════ */
.panel-trqm .panel-inner {
  /* justify-content: flex-start; */
  padding-top: 120px;
  padding-bottom: 100px;
}

.trqm-gallery {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 26px;
}

.trqm-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  height: 180px;
  align-items: stretch;
}

.trqm-item {
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
}

.trqm-item[style*="3/2"] { width: calc(180px * 3 / 2); }
.trqm-item[style*="2/3"] { width: calc(180px * 2 / 3); }
.trqm-item[style*="5/4"] { width: calc(180px * 5 / 4); }
.trqm-item[style*="4/5"] { width: calc(180px * 4 / 5); }

.trqm-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


@media (orientation: portrait) and (min-width: 992px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  .trqm-row { height: 140px; }
  .trqm-item[style*="3/2"] { width: calc(140px * 3 / 2); }
  .trqm-item[style*="2/3"] { width: calc(140px * 2 / 3); }
  .trqm-item[style*="5/4"] { width: calc(140px * 5 / 4); }
  .trqm-item[style*="4/5"] { width: calc(140px * 4 / 5); }
}

@media (max-width: 1180px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  .trqm-row { height: 130px; }
  .trqm-item[style*="3/2"] { width: calc(130px * 3 / 2); }
  .trqm-item[style*="2/3"] { width: calc(130px * 2 / 3); }
  .trqm-item[style*="5/4"] { width: calc(130px * 5 / 4); }
  .trqm-item[style*="4/5"] { width: calc(130px * 4 / 5); }
}

@media (max-width: 820px) and (orientation: portrait) and (hover: none) and (pointer: coarse) {
  .trqm-row { height: 100px; }
  .trqm-item[style*="3/2"] { width: calc(100px * 3 / 2); }
  .trqm-item[style*="2/3"] { width: calc(100px * 2 / 3); }
  .trqm-item[style*="5/4"] { width: calc(100px * 5 / 4); }
  .trqm-item[style*="4/5"] { width: calc(100px * 4 / 5); }
}
/* ═══════════════════════════════════════════════════════════
   PANEL 6: SISTEMA
   ═══════════════════════════════════════════════════════════ */
.sistema-header { text-align: center; margin-bottom: 48px; }
.sistema-desc {
  font-family: 'Raleway', sans-serif;
  /* font-style: italic; */
  font-size: 1rem;
  color: rgba(242,237,227,0.7);
  text-align:justify;
  max-width: 540px;
  margin: -8px auto 0;
  line-height: 1.6;
}
.sistema-grid {
  display: flex;
  align-items: stretch;
  max-width: 1300px;
  width: 100%;
  margin-bottom: 28px;
}
.sistema-item {
  flex: 1;
  background: var(--coal);
  border: 1px solid rgba(196,150,42,0.12);
  padding: 36px 32px;
  transition: border-color 0.3s;
}

#panel-sistema .sistema-item:nth-child(1) {
  background:
    linear-gradient(rgba(12,11,9,0.45), rgba(12,11,9,0.45)),
    url('../img/home/backgrounds/panel6-01.jpg') center/cover no-repeat;
}

#panel-sistema .sistema-item:nth-child(3) {
  background:
    linear-gradient(rgba(12,11,9,0.45), rgba(12,11,9,0.45)),
    url('../img/home/backgrounds/panel6-02.jpg') center/cover no-repeat;
}

#panel-sistema .sistema-item:nth-child(5) {
  background:
    linear-gradient(rgba(12,11,9,0.65), rgba(12,11,9,0.65)),
    url('../img/home/backgrounds/panel6-03.jpg') center/cover no-repeat;
}

.sistema-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12,11,9,0.72);
  z-index: 0;
}

.sistema-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.sistema-item > *:not(.sistema-svg) {
  position: relative;
  z-index: 1;
}
.sistema-item:hover { border-color: rgba(196,150,42,0.4); }
.sistema-num {
  font-family: 'Raleway', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(196,150,42,0.58);
  line-height: 1;
  margin-bottom: 12px;
}
.sistema-tag {
  font-family: 'Raleway', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sistema-item-desc {
  font-family: 'Raleway', sans-serif;
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(242,237,227,0.7);
  line-height: 1.6;
}
.sistema-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  flex-shrink: 0;
  gap: 6px;
}

.sistema-line { width: 1px; height: 36px; background: rgba(196,150,42,0.18); }
.sistema-arrow { font-size: 1.1rem; color: rgba(196,150,42,0.35); line-height: 1; }
.sistema-conclusion {
  font-family: 'Raleway', sans-serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(242,237,227,0.5);
  max-width: 560px;
  align-self: center;
  text-align: center;
  line-height: 1.65;
}

a.sistema-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  outline: none;
}

a.sistema-item:hover {
  border-color: rgba(196,150,42,0.4);
}

a.sistema-item:hover .sistema-tag {
  color: var(--gold-lt);
}

@media (max-width: 420px) {
  .sistema-item {
  margin-bottom: 15px;
}
  
}

/* ═══════════════════════════════════════════════════════════
   PANEL 7: TESTIMONIOS
   ═══════════════════════════════════════════════════════════ */

/* Logos ticker */
.logos-ticker-wrap {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid rgba(196,150,42,0.1);
  border-bottom: 1px solid rgba(196,150,42,0.1);
  margin-bottom: 48px;
}
.logos-ticker-track {
  display: flex;
  align-items: center;
  gap: 64px;
  animation: logosTicker 84s linear infinite;
  width: max-content;
}
.logos-ticker-track img {
  height: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.logos-ticker-track img:hover { opacity: 0.6; }
@keyframes logosTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Carrusel */
.testi-carousel { width: 100%; }
.testi-stage { overflow: hidden; margin-bottom: 32px; position: relative; }
.testi-track { display: flex; gap: 20px; will-change: transform; }
.testi-card-wrap {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0.6;
  transform: scale(0.93);
}
.testi-card-wrap.active { opacity: 1; transform: scale(1); }
.testi-card {
  background: var(--carbon);
  border-top: 1px solid rgba(196,150,42,0.15);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-top-color 0.3s, background 0.3s;
  height: 100%;
}
.testi-card-wrap.active .testi-card { border-top-color: var(--gold); background: var(--coal); }
.testi-card-top { display: flex; align-items: center; gap: 14px; }
.testi-photo {
  width: 75px; height: 75px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(196,150,42,0.2);
  background: var(--coal);
}
.testi-photo img { width: 100%; height: 100%; object-fit: cover; }
.testi-meta strong {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
  margin-bottom: 3px;
}
.testi-meta span { font-family: 'Raleway', sans-serif; font-size: 0.62rem; color: var(--mid); }
.testi-quote {
  font-family: 'Raleway', sans-serif;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(242,237,227,0.55);
  line-height: 1.75;
}
.testi-card-wrap.active .testi-quote { font-size: 1rem; color: rgba(242,237,227,0.85); }

/* Controles */
.testi-controls { display: flex; align-items: center; gap: 20px; }
.testi-prev,
.testi-next {
  background: none;
  border: 1px solid rgba(196,150,42,0.25);
  color: rgba(242,237,227,0.45);
  font-size: 1rem;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.testi-prev:hover,
.testi-next:hover { border-color: var(--gold); color: var(--gold); }
.testi-dots { display: flex; gap: 8px; align-items: center; }
.testi-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(196,150,42,0.22);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.testi-dot.active { background: var(--gold); transform: scale(1.4); }
.testi-vermas { display: none; }

/* ═══════════════════════════════════════════════════════════
   PANEL 8: BRUNO
   ═══════════════════════════════════════════════════════════ */
.panel-bruno-inner {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 80px;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 2; 
}

.bruno-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bruno-h2 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}
.bruno-text p {
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  color: rgba(242,237,227,0.6);
  line-height: 1.75;
}

/* vídeo */
.bruno-video-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  position: relative;
}

.bruno-video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(196,150,42,0.15);
}
.bruno-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(12,11,9,0.3) 0%, transparent 40%);
  pointer-events: none;
}

/* botón de sonido */
.bruno-sound-btn {
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: 40px;
  height: 40px;
  background: rgba(12,11,9,0.65);
  border: 1px solid rgba(196,150,42,0.3);
  color: rgba(242,237,227,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  z-index: 3;
  padding: 0;
}
.bruno-sound-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(12,11,9,0.85);
}
.bruno-sound-btn svg {
  width: 16px;
  height: 16px;
}
.bruno-click-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}
.bruno-sound-btn { z-index: 3; }

.bruno-play-btn {
  display: none;
}

/* ── MÓVIL ── */
@media (max-width: 991px) {
  .panel-bruno-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    height: auto;
  }
  .bruno-video-wrap {
    height: 55vw;
    max-height: 320px;
    margin-top: 6rem;
  }
  .bruno-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: contain;
  }

  .bruno-sound-btn { display: none; }

  .bruno-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: rgba(12,11,9,0.7);
    border: 1px solid rgba(196,150,42,0.5);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    z-index: 3;
    transition: background 0.2s, border-color 0.2s;
  }
  .bruno-play-btn:hover { background: rgba(196,150,42,0.2); border-color: var(--gold); }
  }


  /* ── FONDO PRENSA PANEL BRUNO ── */
.bruno-prensa {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bruno-prensa img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(40%) brightness(0.55);
  opacity: 0.5;
}
.bruno-prensa::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(12,11,9,0.85) 0%,
    rgba(12,11,9,0.55) 50%,
    rgba(12,11,9,0.75) 100%
  );
  z-index: 1;
}
/* ═══════════════════════════════════════════════════════════
   PANEL 9: CONTACTO
   ═══════════════════════════════════════════════════════════ */
#panel-contacto { overflow-y: auto; display: flex; flex-direction: column; }
.panel-contacto .panel-inner { align-items: center; }
.contact-h2 {font-size: clamp(2rem, 3.8vw, 2.4rem);}
.contacto-desc {
  font-family: 'Raleway', sans-serif;
  /* font-style: italic; */
  font-size: 1rem;
  color: rgba(242,237,227,0.45);
  margin-bottom: 40px;
  line-height: 1.6;
  text-align: center;
  max-width: 460px;
}
.contact-form { max-width: 680px; width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-row .form-group { margin-bottom: 0; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,237,227,0.75);
}
.form-group input,
.form-group textarea {
  background: rgba(242,237,227,0.04);
  border: 1px solid rgba(196,150,42,0.18);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); background: rgba(196,150,42,0.04); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(242,237,227,0.18); font-style: italic; }

  /* ── Texto legal ── */
    .legal-layer {
      font-family: 'Raleway', sans-serif;
      font-size: 0.72rem;
      color: rgba(242,237,227,0.4);
      line-height: 1.6;
      margin: 16px 0 12px;
    }

    .legal-layer a {
      color: var(--gold);
      text-decoration: none;
    }

    .legal-layer a:hover { text-decoration: underline; }

    .legal-checkbox {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-family: 'Raleway', sans-serif;
      font-size: 0.78rem;
      color: rgba(242,237,227,0.55);
      line-height: 1.5;
      cursor: pointer;
      margin-bottom: 12px;
    }

    .legal-checkbox input[type="checkbox"] {
      margin-top: 2px;
      flex-shrink: 0;
      accent-color: var(--gold);
      width: 14px;
      height: 14px;
      cursor: pointer;
    }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
footer {
  display: none;
  background: var(--black);
  padding: 60px 48px 72px;
  border-top: 1px solid rgba(196,150,42,0.15);
}
#panel-contacto footer { width: 100%; margin-top: auto; }
.footer-top {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(196,150,42,0.1);
}
.footer-brand-logo img { height: 32px; filter: brightness(0) invert(1); opacity: 0.7; margin-bottom: 16px; display: block; }
.footer-brand p { font-family: 'Raleway', sans-serif; font-size: 0.75rem; color: var(--mid); line-height: 1.65; max-width: 240px; }
.footer-col-title {
  font-family: 'Raleway', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,237,227,0.25);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(196,150,42,0.1);
}
.footer-col a { display: block; font-family: 'Raleway', sans-serif; font-size: 0.75rem; color: var(--mid); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  max-width: 1300px;
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Raleway', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(242,237,227,0.38);
}

.cta-secundario {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.5);
  letter-spacing: 0.04em;
}

.cta-secundario a {
  color: rgba(250, 247, 242, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-secundario a:hover {
  color: var(--gold);
}
@media (max-width: 600px) {
  .footer-col-title{
    font-size: 0.85rem;;
  }
  .footer-col a {
    font-size: 0.75rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}
/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════ */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12,11,9,0.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.lb-overlay.active { opacity: 1; pointer-events: auto; }
.lb-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  opacity: 0;
}

.lb-overlay.active .lb-content {
  transform: scale(1);
  opacity: 1;
}
.lb-img {
  max-width: 80vw;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  border: 1px solid rgba(242,237,227,0.08);
  transition: opacity 0.4s ease;
}
.lb-info { text-align: start; display: flex; flex-direction: column; gap: 4px; }
.lb-name {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
}
.lb-role { font-family: 'Raleway', sans-serif; font-size: 0.65rem; color: var(--mid); letter-spacing: 0.06em; }
.lb-close {
  position: absolute;
  top: 28px; right: 28px;
  background: none;
  border: none;
  color: rgba(242,237,227,0.45);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}
.lb-close:hover { color: var(--white); }
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(196,150,42,0.25);
  color: rgba(242,237,227,0.45);
  font-size: 1rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  z-index: 10;
}
.lb-prev { left: 28px; }
.lb-next { right: 28px; }
.lb-prev:hover,
.lb-next:hover { border-color: var(--gold); color: var(--gold); }
.lb-nav-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}
.lb-nav-mobile .lb-prev,
.lb-nav-mobile .lb-next {
  position: static;
  transform: none;
  background: rgba(12,11,9,0.7);
  border: 1px solid rgba(196,150,42,0.25);
}
.lb-counter { font-family: 'Raleway', sans-serif; font-size: 0.65rem; letter-spacing: 0.12em; color: rgba(242,237,227,0.35); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1430px) {
     .nav-links li:has(a[href="#panel-bruno"]) {
    display: none;} 
    }
@media (max-width: 1200px) {
  .nav-links { display: none; }
}

@media (max-width: 991px) {
  #scroll-outer { height: auto; overflow: visible; }
  #container    { flex-direction: column; width: 100%; height: auto; }

  .panel { width: 100%; height: auto; }
  .panel-inner { padding: 80px 60px 60px; }
  .hero-inner  { padding-bottom: 80px; max-width: 100%; }
  .hero-edition { left: 24px; }

  .problema-grid,
  .service-cards  { grid-template-columns: 1fr; }
  .sistema-grid   { flex-direction: column; }
  .sistema-grid   {padding: 0 10%;}
  .sistema-grid a {min-height: 250px; margin-top: 1rem;}
  .sistema-connector { display: none; }
  .panel-bruno-inner { grid-template-columns: 1fr; }
  .form-row          { grid-template-columns: 1fr; }

  .panel-dots,
  .panel-counter  { display: none; }
  .ticker-fixed   { display: none; }
  footer          { padding: 48px 24px 32px; }
  .footer-top     { grid-template-columns: 1fr 1fr; }
  .nav            { padding: 16px 24px; }
  .nav-links      { display: none; }

  /* Testimonios móvil */
  .testi-stage { overflow: visible; }
  .testi-track { flex-direction: column; transform: none !important; gap: 16px; }
  .testi-card-wrap { flex: none; width: 100%; opacity: 1; transform: none; transition: none; }
  .testi-card-wrap:nth-child(n+5) { display: none; }
  .testi-card-wrap:nth-child(n+5).visible { display: flex; }
  .testi-controls { display: none; }
  .testi-vermas {
    display: block;
    margin-top: 32px;
    background: none;
    border: 1px solid rgba(196,150,42,0.25);
    color: var(--gold);
    font-family: 'Raleway', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 14px 32px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 100%;
  }
  .testi-vermas:hover { background: var(--gold); color: var(--black); }
  .testi-vermas.hidden { display: none; }

  /* TRqM móvil */
  .panel-trqm .panel-inner { padding-top: 80px; overflow-y: auto; height: auto; justify-content: flex-start; }
  .trqm-gallery { gap: 6px; overflow: visible; }
  .trqm-row { height: auto; flex-wrap: wrap; gap: 6px; }
  /* .trqm-item { height: auto; width: calc(50% - 3px) !important; } */
  .trqm-item img { width: 100%; height: auto; object-fit: unset; }

  /* Lightbox móvil */
  .lb-prev:not(.lb-nav-mobile .lb-prev),
  .lb-next:not(.lb-nav-mobile .lb-next) { display: none; }
  .lb-nav-mobile { display: flex; }
  .lb-img { max-width: 92vw; max-height: 60vh; }
}

@media (max-width: 600px) {
  .panel-inner { padding: 70px 20px 50px; }
  .footer-top  { grid-template-columns: 1fr; gap: 32px; }
  .trqm-item   { width: 100% !important; }
  .sistema-grid {padding: 0 0;}
}

@media (max-width: 480px) {
  .trqm-item { width: 100% !important; }
}


/* ── COOKIES ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: var(--carbon);
  border-top: 1px solid rgba(196,150,42,0.2);
  padding: 20px 48px;
}
.cookie-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  color: rgba(242,237,227,0.6);
  line-height: 1.6;
  flex: 1;
  min-width: 280px;
  margin: 0;
}
.cookie-banner-link { color: var(--gold); text-decoration: none; }
.cookie-banner-link:hover { text-decoration: underline; }
.cookie-banner-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Raleway', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid rgba(196,150,42,0.3);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.cookie-btn-settings {
  background: none;
  color: rgba(242,237,227,0.5);
  border-color: rgba(242,237,227,0.2);
}
.cookie-btn-settings:hover { color: var(--white); border-color: rgba(242,237,227,0.5); }
.cookie-btn-reject {
  background: none;
  color: rgba(242,237,227,0.65);
  border-color: rgba(242,237,227,0.25);
}
.cookie-btn-reject:hover { color: var(--white); border-color: var(--white); }
.cookie-btn-accept {
  background: none;
  color: rgba(242,237,227,0.65);
  border-color: rgba(242,237,227,0.25);
}
.cookie-btn-accept:hover { color: var(--white); border-color: var(--white); }

/* panel personalizar */
.cookie-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9001;
  background: var(--coal);
  border-top: 1px solid rgba(196,150,42,0.2);
  padding: 32px 48px 40px;
  max-height: 80vh;
  overflow-y: auto;
}
.cookie-panel-inner { max-width: 600px; margin: 0 auto; position: relative; }
.cookie-panel-close {
  position: absolute; top: 0; right: 0;
  background: none; border: none;
  color: rgba(242,237,227,0.4); font-size: 1rem; cursor: pointer;
  transition: color 0.2s;
}
.cookie-panel-close:hover { color: var(--white); }
.cookie-panel-title {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 28px;
}
.cookie-panel-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid rgba(196,150,42,0.08);
  gap: 24px;
}
.cookie-panel-item-info { flex: 1; }
.cookie-panel-item-info strong {
  display: block; font-family: 'Raleway', sans-serif;
  font-size: 0.8rem; color: var(--paper); margin-bottom: 4px;
}
.cookie-panel-item-info span {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem; color: rgba(242,237,227,0.4); line-height: 1.5;
}
.cookie-toggle-fixed {
  font-family: 'Raleway', sans-serif; font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
  white-space: nowrap;
}
.cookie-toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(242,237,227,0.12); border-radius: 22px;
  transition: background 0.2s;
}
.cookie-toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(242,237,227,0.5); bottom: 3px; left: 3px;
  transition: transform 0.2s, background 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: rgba(196,150,42,0.4); }
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px); background: var(--gold);
}
.cookie-panel-btns { display: flex; gap: 12px; margin-top: 28px; justify-content: flex-end; }

/* botón flotante */
.cookie-floating-btn {
  position: fixed; bottom: 100px; right: 20px; left: auto; z-index: 8999;
  width: 36px; height: 36px;
  background: var(--carbon); border: 1px solid rgba(196,150,42,0.2);
  color: rgba(242,237,227,0.4); cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.cookie-floating-btn:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 600px) {
  .cookie-banner { padding: 16px 20px; }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cookie-panel { padding: 24px 20px 32px; }
}


@media (hover: none) and (pointer: coarse) {
  html,
  body {
    overflow: auto !important;
    height: auto !important;
  }

  body {
    margin-left: 0 !important;
    margin-top: 70px;
  }

  section#panel-hero {
    height: 100vh !important;
  }
  .hero-h1 {
    padding-top: 6rem;
  }

  #scroll-outer {
    height: auto !important;
    overflow: visible !important;
  }

  #container {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }

  .panel {
    width: 100% !important;
    height: auto !important;
    /* min-height: 100vh; */
  }

  .panel-dots,
  .panel-counter,
  .ticker-fixed {
    display: none !important;
  }

  footer {
    display: block !important;
  }
}