/* OficiosYa — página pública (base.css carga variables y reset) */
:root {
  --step-bg: #e0f2fe;
  --step-icon: #0369a1;
  --star: #fbbf24;
  --star-empty: #cbd5e1;
  --assistant-bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --step-bg: #1e3a5f;
    --step-icon: #7dd3fc;
    --star-empty: #475569;
    --assistant-bg: #1e293b;
  }
}

body.modal-open {
  overflow: hidden;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.site-header .container {
  position: relative;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: var(--header-h);
  width: 100%;
  flex-wrap: wrap;
}

.site-header__yasi {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 146, 60, 0.55);
  background: rgba(249, 115, 22, 0.18);
  color: #ffedd5;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 6;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.site-header__yasi .material-symbols-rounded {
  font-size: 1.15rem;
}

.site-header__yasi:hover {
  background: rgba(249, 115, 22, 0.3);
  color: #fff;
}

.site-header__auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.site-header__auth a {
  position: relative;
  z-index: 6;
}

.site-header__auth .btn--sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.site-header__auth-login {
  color: #e2e8f0 !important;
}

.site-header__auth-login:hover {
  color: #fff !important;
}

/* Mi panel y botones outline en barra oscura */
.site-header__auth .btn--outline {
  color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.5);
}

.site-header__auth .btn--outline:hover:not(:disabled) {
  color: #fff !important;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.site-header__inner > nav {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.95;
}

.logo__img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav {
  display: none;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover {
  color: #fff;
}

.nav .nav-cta {
  color: var(--accent);
}


.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 20;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .site-header__yasi {
    order: 2;
    margin-left: auto;
  }

  .site-header__auth {
    order: 3;
    margin-left: 0;
  }

  .site-header__inner > nav {
    margin-left: auto;
    order: 2;
  }

  .nav {
    display: flex;
    align-items: center;
  }
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 899px) {
  .site-header__yasi {
    order: 2;
    margin-left: auto;
    padding: 0.45rem;
  }

  .site-header__yasi-label {
    display: none;
  }

  .site-header__auth {
    order: 3;
    margin-left: 0;
  }

  .nav-toggle {
    order: 4;
    margin-left: 0;
  }

  .site-header__inner > nav {
    flex: 1 1 100%;
    order: 5;
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    background: var(--navy);
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0.25rem;
    z-index: 15;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  }

  .nav.is-open a {
    display: block;
    padding: 0.65rem 0;
    min-height: 44px;
  }
}

.category-card.is-active {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

[data-favorite].is-favorited .material-symbols-rounded {
  color: #ef4444;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  width: 100%;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(15, 23, 42, 0.72) 45%,
    rgba(15, 23, 42, 0.85) 100%
  );
}

.hero-carousel__track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.hero-slide.is-active .hero-slide__bg {
  animation: heroKenBurns 14s ease-out forwards;
}

@keyframes heroKenBurns {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-slide__caption {
  position: absolute;
  left: max(1rem, 4vw);
  bottom: 5.5rem;
  max-width: min(420px, 90vw);
  z-index: 2;
  text-align: left;
  pointer-events: none;
}

.hero-slide__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.25);
  border: 1px solid rgba(249, 115, 22, 0.45);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.hero-slide__caption strong {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.hero-slide__caption p {
  margin: 0;
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.4;
}

.hero-slide__sponsor {
  font-weight: 600;
}

.hero-slide__cta {
  position: absolute;
  left: max(1rem, 4vw);
  bottom: 2.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, transform 0.2s;
}

.hero-slide__cta:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.hero-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.45rem;
}

.hero-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero-carousel__dot.is-active {
  background: #f97316;
  transform: scale(1.15);
}

.hero-carousel__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .hero-slide__caption,
  .hero-slide__cta {
    display: none;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 3rem 0 4rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.5);
  color: #fed7aa;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  max-width: 20em;
  width: 100%;
}

.hero__sub {
  color: #e2e8f0;
  font-size: 1.05rem;
  max-width: 38em;
  width: 100%;
  margin: 0 auto 1.75rem;
}

.search-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  text-align: left;
}

.search-box__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 560px) {
  .search-box__row {
    flex-direction: row;
    align-items: center;
  }
}

.search-box__input-wrap {
  flex: 1;
  display: flex;
  position: relative;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  color: var(--text-muted);
}

.search-suggest {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 30;
  max-height: 240px;
  overflow: auto;
}

.search-suggest:empty {
  display: none;
}

.search-suggest__item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.search-suggest__item:hover {
  background: var(--bg-soft);
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  padding: 0.85rem 0;
  min-width: 0;
}

.search-box input::placeholder {
  color: var(--text-soft);
}

.popular {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  width: 100%;
  max-width: 560px;
}

.popular span {
  color: #cbd5e1;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.chip:hover,
.chip--active {
  border-color: var(--accent);
  background: rgba(249, 115, 22, 0.25);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  width: 100%;
  max-width: 520px;
}

.hero__stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.hero__stat span {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
}

.hero__scroll {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 2rem;
  color: #94a3b8;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

/* Sections */
.section {
  padding: 4rem 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section > .container {
  width: 100%;
}

.section--soft {
  background: var(--bg-soft);
}

.section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__header h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}

.section__header p {
  color: var(--text-muted);
  margin: 0;
  max-width: 42ch;
  margin-inline: auto;
}

.section__badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.section__more {
  margin-top: 1.75rem;
  text-align: center;
}

.section__more .btn {
  min-width: min(100%, 16rem);
}

/* Steps */
.steps {
  display: grid;
  gap: 2.5rem;
  max-width: 900px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step {
  text-align: center;
}

.step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  color: #0284c7;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  .step__num {
    border-color: #38bdf8;
    color: #7dd3fc;
  }
}

.step__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 20px;
  background: var(--step-bg);
  display: grid;
  place-items: center;
}

.step__icon .material-symbols-rounded {
  font-size: 2.2rem;
  color: var(--step-icon);
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Grids */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--categories {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.grid--workers {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid--companies {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.category-card--more {
  border-style: dashed;
  background: var(--bg-soft);
}

.category-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.category-card__icon {
  font-size: 2rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.category-card__name {
  font-weight: 700;
  display: block;
}

.category-card__count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Worker cards */
.worker-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  transition: box-shadow 0.2s;
}

.worker-card:hover {
  box-shadow: var(--shadow);
}

.worker-card__avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}

.worker-card__avatar--lg {
  width: 72px;
  height: 72px;
}

.worker-card__avatar .material-symbols-rounded {
  font-size: 1.75rem;
  color: var(--accent);
}

.worker-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.worker-card__body {
  flex: 1;
  min-width: 0;
}

.worker-card__name {
  margin: 0;
  font-size: 1.05rem;
}

.worker-card__trade {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.worker-card__zone {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.worker-card__zone .material-symbols-rounded {
  font-size: 1rem;
}

.worker-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.worker-card__rating {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.star {
  color: var(--star-empty);
  font-size: 0.9rem;
}

.star--full,
.star--half {
  color: var(--star);
}

.worker-card__price {
  color: var(--text-muted);
}

.worker-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Filters */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.filters-bar label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.filters-bar select {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
}

.empty-state {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state.is-visible {
  display: block;
}

.empty-state .material-symbols-rounded {
  font-size: 3rem;
  opacity: 0.5;
}

/* Companies */
.company-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
}

.company-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

.company-card h3 {
  margin: 0 0 0.35rem;
  padding-right: 5rem;
}

.company-card p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.company-card__zone {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 1rem !important;
}

/* Register CTA */
.register {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .register {
    grid-template-columns: 1fr 1fr;
  }
}

.register__benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.register__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
}

.register__benefits .material-symbols-rounded {
  color: #22c55e;
  font-size: 1.25rem;
}

.register-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.register-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.register-form input,
.register-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 1rem;
  background: var(--bg);
  color: var(--text);
}

.register-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: #16a34a;
  font-weight: 600;
}

.register-success.is-visible {
  display: block;
}

/* Personalized banner */
.personalized-banner {
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.personalized-banner__text {
  margin: 0;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  width: 100%;
  background: var(--navy);
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal__panel {
  position: relative;
  background: var(--bg-card);
  color: var(--text);
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.modal.is-open .modal__panel {
  transform: translateY(0);
}

@media (min-width: 600px) {
  .modal {
    align-items: center;
    padding: 1rem;
  }
  .modal__panel {
    border-radius: var(--radius-lg);
    max-height: 85vh;
  }
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-soft);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--text);
}

.modal-profile__header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}

.modal-profile__trade {
  color: var(--text-muted);
  margin: 0.25rem 0;
}

.modal-list,
.modal-reviews {
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.review-item {
  margin-bottom: 0.75rem;
  list-style: none;
  padding: 0;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.6rem;
}

.modal-gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.modal-company__desc {
  color: var(--text-muted);
  margin: 0.35rem 0 1rem;
}

.modal-company__location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s;
}

.modal-company__location:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.modal-company__location-arrow {
  font-size: 1rem !important;
  opacity: 0.65;
  margin-left: 0.15rem;
}

.modal-company__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

@media (min-width: 400px) {
  .modal-company__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .modal-company__actions .btn--block {
    flex: 1 1 auto;
    width: auto;
    min-width: 7.5rem;
  }
}

/* Scroll top */
.scroll-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-2);
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 90;
  box-shadow: var(--shadow);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Assistant */
.assistant-fab {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 150;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.45);
  display: grid;
  place-items: center;
  transition: transform 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.assistant-fab:hover {
  transform: scale(1.05);
}

.assistant-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  width: min(380px, calc(100vw - 2rem));
  height: min(520px, 70vh);
  background: var(--assistant-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 149;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.assistant-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

body.assistant-open .assistant-panel {
  z-index: 160;
}

body.assistant-open .assistant-fab {
  z-index: 161;
}

.assistant-panel__header {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.assistant-panel__header h2 {
  margin: 0;
  font-size: 1rem;
}

.assistant-panel__header p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overscroll-behavior: contain;
}

.assistant-msg {
  display: flex;
}

.assistant-msg--user {
  justify-content: flex-end;
}

.assistant-msg__bubble {
  max-width: 88%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.assistant-msg--user .assistant-msg__bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.assistant-msg--assistant .assistant-msg__bubble {
  background: var(--bg-soft);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.assistant-quick {
  padding: 0 1rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.assistant-quick-btn {
  font-size: 0.72rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}

.assistant-quick-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.assistant-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
}

.assistant-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font: inherit;
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}

.dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  margin: 0 2px;
  animation: dot 1.2s infinite;
}

.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
