/* ===================
   OPINIONES PAGE
   =================== */

.opiniones-page {
  background: var(--bg);
}

/* Hero Section */
.mp-opiniones-hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 4rem;
}

.mp-opiniones-hero .fondo-scroll {
  height: 100%;
  min-height: 630px;
}

.mp-opiniones-hero__content {
  position: relative;
  z-index: 2;
  padding: 3rem 0 2rem;
}

/* Panel container - matching contacto page spacing */
.mp-opiniones-panel {
  position: relative;
  z-index: 2;
  background: rgba(8, 10, 14, 0.72);
  color: #fff;
  border-radius: 26px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-top: 3rem;
  min-height: 670px;
}

/* Panel header */
.mp-opiniones-panel__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mp-opiniones-panel__titles {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

/* Title styling - matching contacto page */
.mp-opiniones-title {
  font-size: clamp(2.6rem, 6vw, 3rem);
  font-weight: 300;
  font-style: normal;
  margin: 0 0 0.4rem;
  color: #fff;
  text-align: center;
}

.mp-opiniones-subtitle {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 300;
  font-style: normal;
  color: var(--amarillo);
  margin: 0;
  text-align: center;
}

/* CTA Button */
.mp-opiniones-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--amarillo);
  color: #000;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: 0 12px 30px rgba(254, 236, 2, 0.2);
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  grid-column: 3;
  justify-self: end;
  text-decoration: none;
}

.mp-opiniones-cta:hover {
  background: #f7de00;
  color: #000;
  transform: translateY(-1px);
  text-decoration: none;
}

.mp-opiniones-cta.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  box-shadow: none;
}

.mp-opiniones-cta i {
  font-size: 1rem;
}

/* Loading state */
.mp-opiniones-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  padding: 1.4rem 0 2rem;
}

.mp-opiniones-loading::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--amarillo);
  animation: mp-opiniones-spin 0.85s linear infinite;
}

@keyframes mp-opiniones-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Endorsal Widget overrides */
.mp-opiniones-panel .ndrsl-widget,
.mp-opiniones-panel .ndrsl-widget > div {
  background: transparent !important;
}

/* Fallback message for localhost */
.mp-opiniones-fallback {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.mp-opiniones-fallback p {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.mp-opiniones-fallback a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--amarillo);
  color: #000;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mp-opiniones-fallback a:hover {
  background: #f7de00;
}

/* Responsive */
@media (max-width: 768px) {
  .mp-opiniones-panel {
    padding: 1.4rem;
  }

  .mp-opiniones-panel__header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .mp-opiniones-panel__titles {
    grid-column: 1;
  }

  .mp-opiniones-subtitle {
    margin: 0 0 0.2rem;
  }

  .mp-opiniones-cta {
    grid-column: 1;
    justify-self: center;
    margin-bottom: 1.2rem;
  }
}

@media (max-width: 575px) {
  .mp-opiniones-hero__content {
    padding-top: 0;
  }

  .mp-opiniones-panel {
    border-radius: 0;
  }
}
