/* Vision English: navegador visual del inicio. */
.home-experience-showcase {
  --ag-accent: #ffffff;
  --ag-overlay: #120726;
  margin: 28px 0 34px;
}

.experience-showcase-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.experience-showcase-kicker {
  display: block;
  margin-bottom: 3px;
  color: #7c3aed;
  font-size: .72rem;
  font-weight: 900;
}

.experience-showcase-heading h2 {
  margin: 0;
  font: 800 clamp(1.45rem, 2.4vw, 2rem)/1.1 "Outfit", sans-serif;
  color: var(--text);
}

.experience-showcase-heading p {
  margin: 5px 0 0;
  font-size: .88rem;
}

.experience-showcase-hint {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.accordion-gallery {
  display: flex;
  width: 100%;
  height: clamp(330px, 34vw, 440px);
  gap: 10px;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.ag-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 16px;
  background: #120c20;
  color: #fff;
  cursor: pointer;
  text-align: left;
  transform: rotateY(var(--ag-tilt, 0deg));
  transform-style: preserve-3d;
  transform-origin: center;
  box-shadow: 0 18px 36px -24px rgba(24, 10, 55, .72);
  transition: flex-grow .6s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1), border-color .25s ease, box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}

.ag-panel--active {
  flex-grow: 5.2;
  --ag-tilt: 0deg;
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 24px 48px -24px rgba(56, 22, 104, .82);
}

.ag-panel:focus-visible {
  outline: 3px solid #8b5cf6;
  outline-offset: 3px;
}

.ag-panel__frame,
.ag-panel__media,
.ag-panel__overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.ag-panel__frame { overflow: hidden; }

.ag-panel__media {
  transform: scale(1.08) translate3d(var(--ag-x, 0), var(--ag-y, 0), 0);
  filter: grayscale(1) saturate(.65);
  transition: filter .55s ease, transform .7s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}

.ag-panel--active .ag-panel__media {
  filter: grayscale(0) saturate(1.05);
  transform: scale(1.02) translate3d(var(--ag-x, 0), var(--ag-y, 0), 0);
}

.ag-panel__media img,
.ag-panel__media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.ag-panel__overlay {
  background:
    linear-gradient(180deg, rgba(6,0,16,.05) 20%, rgba(6,0,16,.84) 100%),
    rgba(6,0,16,.32);
  transition: background .45s ease;
}

.ag-panel--active .ag-panel__overlay {
  background: linear-gradient(180deg, rgba(6,0,16,.02) 30%, rgba(6,0,16,.86) 100%);
}

.ag-panel__label {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease .1s, transform .45s cubic-bezier(.22,1,.36,1) .1s;
}

.ag-panel--active .ag-panel__label {
  opacity: 1;
  transform: translateY(0);
}

.ag-panel__bar {
  width: 3px;
  height: 54px;
  border-radius: 4px;
  background: var(--ag-accent);
  box-shadow: 0 0 16px rgba(255,255,255,.58);
}

.ag-panel__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ag-panel__copy small {
  margin-bottom: 2px;
  color: rgba(255,255,255,.76);
  font-size: .64rem;
  font-weight: 900;
}

.ag-panel__copy strong {
  overflow: hidden;
  color: #fff;
  font: 800 clamp(1.12rem, 1.7vw, 1.55rem)/1.15 "Outfit", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 3px 16px rgba(0,0,0,.65);
}

.ag-panel__copy > span {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-panel__action {
  min-width: 62px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(10px);
}

body.dark .experience-showcase-kicker { color: #c084fc; }
body.dark .ag-panel {
  border-color: rgba(192,132,252,.22);
  box-shadow: 0 18px 42px -24px rgba(0,0,0,.9);
}
body.dark .ag-panel--active {
  border-color: rgba(192,132,252,.7);
  box-shadow: 0 24px 54px -24px rgba(124,58,237,.72);
}

@media (max-width: 780px) {
  .experience-showcase-hint { display: none; }
  .accordion-gallery { height: 380px; }
  .ag-panel--active { flex-grow: 4.4; }
  .ag-panel__label { right: 14px; bottom: 14px; left: 14px; }
  .ag-panel__action { display: none; }
}

@media (max-width: 520px) {
  .home-experience-showcase { margin: 22px 0 28px; }
  .experience-showcase-heading p { font-size: .8rem; }
  .accordion-gallery {
    height: auto;
    flex-direction: column;
    perspective: none;
  }
  .ag-panel,
  .ag-panel--active {
    flex: none;
    width: 100%;
    min-height: 76px;
    transform: none;
    transition: min-height .45s cubic-bezier(.22,1,.36,1), border-color .25s ease, box-shadow .25s ease;
  }
  .ag-panel--active { min-height: 230px; }
  .ag-panel__media { transform: scale(1.04); }
  .ag-panel--active .ag-panel__media { transform: scale(1); }
  .ag-panel__label { grid-template-columns: 3px minmax(0, 1fr); }
  .ag-panel__copy strong { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-panel,
  .ag-panel__media,
  .ag-panel__label { transition-duration: .01ms !important; }
  .ag-panel__media { transform: none !important; will-change: auto; }
}
