/* Scoped homepage Maestros refinement - Pintura Presente */

/* Base 2-column strip layout: copy | portrait (column 2) */
.maestros-section .maestro-strip {
  grid-template-columns: minmax(0, 1fr) 126px;
  padding-right: 22px;
  overflow: hidden;
}

.maestros-section .maestro-strip-copy {
  grid-column: 1;
  min-width: 0;
  transform: none;
  transition-property: transform;
  transition-duration: 0s;
}

.maestros-section .maestro-strip figure {
  grid-column: 2;
  transform: rotate(2.5deg);
  transition-property: transform;
  transition-duration: 0s;
}

.maestros-section .maestro-strip:nth-child(even) figure {
  transform: rotate(-2.5deg);
}

.maestros-section .maestro-strip::before,
.maestros-section .maestro-strip::after {
  transform: none;
  transition-property: transform;
  transition-duration: 0s;
}

.maestros-section .maestro-strip-status {
  display: none !important;
}

/* Inset currentColor focus ring, no keyboard movement */
.maestros-section a.maestro-strip:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

.maestros-section a.maestro-strip:focus:not(:hover) .maestro-strip-copy,
.maestros-section a.maestro-strip:focus:not(:hover) figure,
.maestros-section a.maestro-strip:focus:not(:hover)::before,
.maestros-section a.maestro-strip:focus:not(:hover)::after {
  transform: none;
}

.maestros-section a.maestro-strip:focus:not(:hover) figure {
  transform: rotate(2.5deg);
}

.maestros-section a.maestro-strip:nth-child(even):focus:not(:hover) figure {
  transform: rotate(-2.5deg);
}

/* Inert hover states overriding legacy uncontrolled hover on touch/reduced motion */
.maestros-section a.maestro-strip:hover figure {
  transform: rotate(2.5deg);
}

.maestros-section a.maestro-strip:nth-child(even):hover figure {
  transform: rotate(-2.5deg);
}

.maestros-section a.maestro-strip:hover .maestro-strip-copy {
  transform: none;
}

.maestros-section a.maestro-strip:hover::before {
  transform: none;
}

.maestros-section a.maestro-strip:hover::after {
  transform: none;
}

/* Responsive strip tracks */
@media (max-width: 1180px) {
  .maestros-section .maestro-strip {
    grid-template-columns: minmax(0, 1fr) 112px;
    padding-right: 22px;
  }
}

@media (max-width: 760px) {
  .maestros-section .maestro-strip {
    grid-template-columns: minmax(0, 1fr) 84px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .maestros-section .maestro-strip figure {
    grid-column: 2;
  }

  .maestros-section .maestro-strip-copy {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

@media (max-width: 420px) {
  .maestros-section .maestro-strip {
    grid-template-columns: minmax(0, 1fr) 74px;
    padding-left: 12px;
    padding-right: 12px;
    gap: 10px;
  }

  .maestros-section .maestro-strip figure {
    grid-column: 2;
  }

  .maestros-section .maestro-strip-copy {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

/* Safe pointer hover animation */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .maestros-section .maestro-strip-copy,
  .maestros-section .maestro-strip figure,
  .maestros-section .maestro-strip::before,
  .maestros-section .maestro-strip::after {
    transition-property: transform;
    transition-duration: 180ms;
    transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
  }

  .maestros-section a.maestro-strip:hover .maestro-strip-copy,
  .maestros-section a.maestro-strip:hover figure,
  .maestros-section a.maestro-strip:hover::before,
  .maestros-section a.maestro-strip:hover::after {
    transition-duration: 240ms;
  }

  .maestros-section a.maestro-strip:hover .maestro-strip-copy {
    transform: translateX(12px);
  }

  .maestros-section a.maestro-strip:hover figure,
  .maestros-section a.maestro-strip:nth-child(even):hover figure {
    transform: translate(-12px, -4px) rotate(0deg) scale(1.07);
  }

  .maestros-section a.maestro-strip:hover::before {
    transform: translate(-18px, 12px) scale(1.08);
  }

  .maestros-section a.maestro-strip:hover::after {
    transform: translate(24px, -12px) rotate(-8deg);
  }
}

/* Reduced motion neutralizer */
@media (prefers-reduced-motion: reduce) {
  .maestros-section .maestro-strip-copy,
  .maestros-section .maestro-strip figure,
  .maestros-section .maestro-strip::before,
  .maestros-section .maestro-strip::after {
    transition: none !important;
  }

  .maestros-section a.maestro-strip:hover figure {
    transform: rotate(2.5deg) !important;
  }

  .maestros-section a.maestro-strip:nth-child(even):hover figure {
    transform: rotate(-2.5deg) !important;
  }

  .maestros-section a.maestro-strip:hover .maestro-strip-copy,
  .maestros-section a.maestro-strip:hover::before,
  .maestros-section a.maestro-strip:hover::after {
    transform: none !important;
  }
}
