/**
 * Ficha proveedor — single mp_provider
 */

.mp-profile-page-wrap {
  width: 100%;
  background: var(--mp-bg, #f8fafc);
}

.mp-profile-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.mp-profile-page-wrap {
  padding-bottom: 8px;
}

/* Hero */
.mp-profile-hero {
  margin-bottom: 32px;
  background: linear-gradient(135deg, #08122a 0%, #0a1a3d 55%, #0f2d66 100%);
  border-radius: 14px;
  padding: 40px;
  color: #fff;
  min-height: 220px;
}

.mp-profile-hero__grid {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 28px;
  align-items: center;
}

.mp-profile-hero__logo {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  background: #fff;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--mp-shadow-sm, 0 4px 16px rgba(15, 23, 42, 0.06));
}

.mp-profile-hero__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-profile-hero__logo-fallback {
  font-size: 2rem;
  font-weight: 700;
  color: var(--mp-primary, #1658f2);
}

.mp-profile-hero__bc {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.mp-profile-hero__bc a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.mp-profile-hero__bc a:hover {
  color: #fff;
}

.mp-profile-hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.mp-profile-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mp-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--mp-radius-sm, 5px);
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mp-profile-badge--verified {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.35);
}

.mp-profile-badge--rating .mp-profile-stars__star {
  color: #fbbf24;
}

.mp-profile-hero__tagline {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}

.mp-profile-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.mp-profile-hero__tag {
  padding: 4px 10px;
  border-radius: var(--mp-radius-sm, 5px);
  font-size: 12px;
  background: rgba(0, 102, 255, 0.25);
  border: 1px solid rgba(0, 102, 255, 0.4);
}

.mp-profile-hero__loc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.mp-profile-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}

.mp-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: var(--mp-radius-sm, 5px);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  white-space: nowrap;
}

.mp-profile-btn--primary {
  background: var(--mp-primary, #1658f2);
  color: #fff;
}

.mp-profile-btn--primary:hover {
  background: var(--mp-primary-hover, #1248d4);
}

.mp-profile-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.mp-profile-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.mp-profile-btn--dark {
  background: #fff;
  border-color: var(--mp-border, #e2e8f0);
  color: var(--mp-dark, #0f172a);
}

/* Layout */
.mp-profile-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.mp-profile-nav,
.mp-profile-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.mp-profile-nav__inner {
  background: var(--mp-white, #fff);
  border: 1px solid var(--mp-border, #e2e8f0);
  border-radius: var(--mp-radius-md, 12px);
  padding: 8px;
}

.mp-profile-nav__link {
  display: flex;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #334155;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s;
}

.mp-profile-nav__link:hover {
  background: #f8fafc;
  color: var(--mp-primary, #1658f2);
}

.mp-profile-nav__link.is-active {
  background: #eff6ff;
  color: var(--mp-primary, #1658f2);
  border-left-color: var(--mp-primary, #1658f2);
}

.mp-profile-section {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

.mp-profile-section__title {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 600;
}

.mp-profile-section__subtitle {
  margin: 24px 0 12px;
  font-size: 1rem;
  font-weight: 600;
}

.mp-profile-section__lead {
  margin: -12px 0 20px;
  color: var(--mp-muted, #64748b);
}

.mp-profile-card {
  background: var(--mp-white, #fff);
  border: 1px solid var(--mp-border, #e2e8f0);
  border-radius: var(--mp-radius-md, 12px);
  padding: 20px;
  margin-bottom: 16px;
}

.mp-profile-card__title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 600;
}

.mp-profile-info {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-profile-info li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--mp-border, #e2e8f0);
  font-size: 14px;
}

.mp-profile-info li:last-child {
  border-bottom: none;
}

.mp-profile-info__lbl {
  color: var(--mp-muted, #64748b);
}

.mp-profile-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mp-profile-about__img {
  width: 100%;
  border-radius: var(--mp-radius-md, 12px);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.mp-profile-about__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.mp-profile-about__thumb {
  position: relative;
  border: none;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  width: 72px;
  height: 56px;
}

.mp-profile-about__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-profile-about__thumb-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.mp-profile-cards-grid {
  display: grid;
  gap: 16px;
}

.mp-profile-cards-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mp-profile-svc {
  background: var(--mp-white, #fff);
  border: 1px solid var(--mp-border, #e2e8f0);
  border-radius: var(--mp-radius-md, 12px);
  padding: 18px;
}

.mp-profile-svc__icon {
  color: var(--mp-primary, #1658f2);
  margin-bottom: 10px;
}

.mp-profile-svc__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.mp-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-profile-tags__item {
  padding: 6px 12px;
  background: #eff6ff;
  color: var(--mp-primary, #1658f2);
  border-radius: 999px;
  font-size: 13px;
}

.mp-profile-why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mp-profile-why__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--mp-white, #fff);
  border: 1px solid var(--mp-border, #e2e8f0);
  border-radius: var(--mp-radius-md, 12px);
  padding: 16px;
}

.mp-profile-why__icon {
  color: var(--mp-primary, #1658f2);
  flex-shrink: 0;
}

.mp-profile-why__item p {
  margin: 0;
  font-size: 14px;
}

.mp-profile-reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--mp-white, #fff);
  border: 1px solid var(--mp-border, #e2e8f0);
  border-radius: var(--mp-radius-md, 12px);
}

.mp-profile-reviews-summary__num {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.mp-profile-stars__star.is-full,
.mp-profile-stars__star.is-half {
  color: #fbbf24;
}

.mp-profile-reviews-bars__row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 4px;
}

.mp-profile-reviews-bars__track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.mp-profile-reviews-bars__fill {
  display: block;
  height: 100%;
  background: var(--mp-primary, #1658f2);
  border-radius: 4px;
}

.mp-profile-reviews-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mp-profile-review {
  background: var(--mp-white, #fff);
  border: 1px solid var(--mp-border, #e2e8f0);
  border-radius: var(--mp-radius-md, 12px);
  padding: 18px;
}

.mp-profile-review__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.mp-profile-review__company,
.mp-profile-review__service,
.mp-profile-review__date {
  font-size: 13px;
  color: var(--mp-muted, #64748b);
}

.mp-profile-review__reply {
  margin-top: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 14px;
}

.mp-profile-network-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mp-profile-network-card {
  background: var(--mp-white, #fff);
  border: 1px solid var(--mp-border, #e2e8f0);
  border-radius: var(--mp-radius-md, 12px);
}

.mp-profile-network-card__link {
  display: flex;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}

.mp-profile-network-card__link:hover {
  border-color: var(--mp-primary, #1658f2);
}

.mp-profile-network-card__logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
}

.mp-profile-network-card__logo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: var(--mp-primary, #1658f2);
  font-weight: 700;
  font-size: 14px;
}

.mp-profile-network-card__title {
  margin: 0 0 4px;
  font-size: 15px;
}

.mp-profile-network-card__meta {
  margin: 0;
  font-size: 13px;
  color: var(--mp-muted, #64748b);
}

.mp-profile-network-card__type {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  padding: 2px 8px;
  background: #f1f5f9;
  border-radius: 4px;
}

.mp-profile-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-profile-contact a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  text-decoration: none;
  color: var(--mp-primary, #1658f2);
}

.mp-profile-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
  border: 1px solid var(--mp-border, #e2e8f0);
  border-radius: var(--mp-radius-md, 12px);
}

.mp-profile-cta__text h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.mp-profile-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Lightbox */
.mp-profile-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
}

.mp-profile-lightbox.is-open {
  display: flex;
}

.mp-profile-lightbox__body {
  max-width: min(92vw, 1100px);
  text-align: center;
}

.mp-profile-lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.mp-profile-lightbox__counter {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.mp-profile-lightbox__close,
.mp-profile-lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px;
}

.mp-profile-lightbox__close {
  top: 20px;
  right: 20px;
}

.mp-profile-lightbox__nav--prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.mp-profile-lightbox__nav--next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 1100px) {
  .mp-profile-layout {
    grid-template-columns: 1fr;
  }

  .mp-profile-nav,
  .mp-profile-sidebar {
    position: static;
  }

  .mp-profile-nav__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .mp-profile-nav__link {
    border-left: none;
    padding: 8px 12px;
  }
}

/* Quote form — Alpha 5.5 */
.mp-form-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.mp-form-alert.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.mp-form-alert.is-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.mp-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .mp-profile-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mp-profile-hero__logo {
    margin: 0 auto;
  }

  .mp-profile-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .mp-profile-about__grid,
  .mp-profile-cards-grid--3,
  .mp-profile-why,
  .mp-profile-network-grid {
    grid-template-columns: 1fr;
  }

  .mp-profile-reviews-summary {
    grid-template-columns: 1fr;
  }
}
