/* ============================================================
   FixAFix — Mobile-first CSS
   Base: 16px mobile, scales up for desktop
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:     #1a56db;
  --primary-dk:  #1239a1;
  --primary-lt:  #eef2ff;
  --wa:          #25d366;
  --wa-dk:       #128c4e;
  --danger:      #c81e1e;
  --danger-lt:   #fde8e8;
  --success:     #057a55;
  --success-lt:  #def7ec;
  --warning:     #b45309;
  --warning-lt:  #fef3c7;
  --info-lt:     #e1effe;
  --text:        #111928;
  --muted:       #4b5563;
  --border:      #d1d5db;
  --bg:          #f3f4f6;
  --card:        #ffffff;
  --radius:      14px;
  --radius-lg:   20px;
  --shadow:      0 2px 8px rgba(0,0,0,.09);
  --shadow-md:   0 4px 16px rgba(0,0,0,.12);
}

/* ---- Base ---- */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: var(--primary); }

/* ---- Layout ---- */
.container    { width: 100%; max-width: 1100px; margin: 0 auto; padding: 1rem; }
.main-content { min-height: calc(100vh - 60px); }

/* ============================================================
   NAVBAR — fixed top, mobile-first
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.navbar-brand {
  font-weight: 800; font-size: 1.3rem; color: #fff;
  text-decoration: none; display: flex; align-items: center; gap: 6px;
}
.navbar-brand i { font-size: 1.4rem; }

/* Hamburger (mobile) */
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px; transition: all .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav menu (hidden on mobile, shown when toggled) */
.navbar-menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--primary-dk);
  padding: .5rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.navbar-menu.open { display: block; }
.navbar-menu a, .navbar-menu button {
  display: flex; align-items: center; gap: 8px;
  padding: .75rem 1.25rem;
  color: #fff; text-decoration: none; font-size: 1rem; font-weight: 500;
  width: 100%; background: none; border: none; cursor: pointer;
}
.navbar-menu a:hover, .navbar-menu button:hover { background: rgba(255,255,255,.1); }
.navbar-menu .divider { border-top: 1px solid rgba(255,255,255,.15); margin: .25rem 0; }
.navbar-menu .nav-badge {
  background: #fff; color: var(--primary); font-size: .75rem;
  font-weight: 700; padding: 1px 8px; border-radius: 20px; margin-left: auto;
}

/* Desktop nav */
@media(min-width: 768px) {
  .nav-toggle { display: none; }
  .navbar-menu {
    display: flex !important; position: static;
    background: none; padding: 0; box-shadow: none;
    align-items: center; gap: .25rem;
  }
  .navbar-menu a, .navbar-menu button {
    padding: .4rem .75rem; border-radius: 8px;
    font-size: .9rem; width: auto;
  }
  .navbar-menu .divider { display: none; }
  .navbar-menu .btn-register {
    background: #fff; color: var(--primary); font-weight: 700;
    border-radius: 8px; padding: .4rem 1rem;
  }
  .navbar-menu .btn-register:hover { background: #e8edff; }
}

/* ---- Lang switcher ---- */
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  font-size: .8rem; padding: 3px 8px; border-radius: 6px;
  text-decoration: none; color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.3);
}
.lang-btn.active { background: rgba(255,255,255,.25); color: #fff; font-weight: 700; }

/* ============================================================
   HOME — hero + search + category grid
   ============================================================ */
.home-hero {
  background: var(--primary);
  color: #fff;
  padding: 2rem 1rem 2.5rem;
  text-align: center;
}
.home-hero h1  { font-size: 1.75rem; font-weight: 800; line-height: 1.2; margin-bottom: .5rem; }
.home-hero p   { font-size: 1rem; opacity: .88; margin-bottom: 1.25rem; }

/* Search box on hero */
.hero-search {
  display: flex; gap: 0;
  max-width: 480px; margin: 0 auto;
  background: #fff; border-radius: 12px;
  overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.hero-search input {
  flex: 1; border: none; padding: .85rem 1rem;
  font-size: 1rem; color: var(--text);
  outline: none; border-radius: 0; width: 100%;
}
.hero-search button {
  background: var(--primary-dk); color: #fff; border: none;
  padding: .85rem 1.1rem; font-size: 1.25rem; cursor: pointer;
  flex-shrink: 0;
}

/* Category grid */
.section-title {
  font-size: 1.1rem; font-weight: 700; color: var(--muted);
  text-align: center; margin: 1.5rem 0 .75rem;
  text-transform: uppercase; letter-spacing: .05em; font-size: .85rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 3 col mobile */
  gap: .6rem;
  padding: 0 1rem 1.5rem;
}
@media(min-width: 480px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }
@media(min-width: 768px) { .category-grid { grid-template-columns: repeat(5, 1fr); gap: .85rem; padding: 0 0 2rem; } }
@media(min-width: 1024px){ .category-grid { grid-template-columns: repeat(6, 1fr); } }

.cat-card {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .4rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem .5rem;
  text-decoration: none; color: var(--text);
  font-size: .82rem; font-weight: 600;
  text-align: center; line-height: 1.25;
  transition: all .15s; box-shadow: var(--shadow);
  min-height: 90px;
}
.cat-card i { font-size: 2rem; color: var(--primary); }
.cat-card:active, .cat-card:hover {
  border-color: var(--primary);
  background: var(--primary-lt);
  box-shadow: var(--shadow-md);
}
@media(min-width:768px) {
  .cat-card { padding: 1.5rem .75rem; font-size: .9rem; min-height: 110px; }
  .cat-card i { font-size: 2.4rem; }
}

/* How it works */
.how-strip {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
  background: var(--card); border-top: 1px solid var(--border);
  padding: 1.5rem 1rem;
}
.how-step { text-align: center; max-width: 140px; }
.how-num  {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .4rem;
}
.how-step p { font-size: .85rem; color: var(--muted); font-weight: 500; }
.how-arrow  { font-size: 1.5rem; color: #9ca3af; align-self: center; }
@media(max-width:500px) { .how-arrow { display:none; } }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-hero {
  background: var(--primary); color: #fff;
  padding: 1rem; text-align: center;
}
.search-hero h1 { font-size: 1.3rem; font-weight: 700; }

/* Filter bar — horizontal scroll on mobile */
.search-controls {
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: .6rem 1rem; overflow-x: auto; white-space: nowrap;
  display: flex; gap: .6rem; align-items: center;
  -webkit-overflow-scrolling: touch;
}
.search-controls select {
  flex-shrink: 0; min-width: 0; width: auto;
  padding: .5rem .75rem; font-size: .9rem;
  border: 2px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text); white-space: normal;
}
.search-controls label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; font-weight: 600; color: var(--text);
  flex-shrink: 0; white-space: nowrap; margin: 0;
}
.search-controls input[type=checkbox] { width: 20px; height: 20px; cursor: pointer; }

/* Map */
#map-search {
  border-radius: 0;          /* full-width on mobile */
  border: none; border-bottom: 1px solid var(--border);
}
@media(min-width:768px) {
  #map-search { border-radius: var(--radius); border: 1px solid var(--border); }
}

/* Tech results grid */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;       /* single col mobile */
  gap: .85rem;
  padding: .85rem 1rem;
}
@media(min-width: 600px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 960px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }

/* Tech card */
.tech-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .6rem;
}
.tc-header  { display: flex; align-items: flex-start; gap: 10px; }
.tc-avatar  { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); flex-shrink: 0; }
.tc-info    { flex: 1; min-width: 0; }
.tc-name    { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.tc-specs   { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.tc-rating  { font-size: .85rem; color: var(--warning); font-weight: 600; margin-top: 2px; }
.tc-bio     { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.tc-meta    { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }

.badge-avail   { background: var(--success-lt); color: var(--success); padding: 3px 10px; border-radius: 20px; font-size: .8rem; font-weight: 700; }
.badge-unavail { background: var(--danger-lt); color: var(--danger); padding: 3px 10px; border-radius: 20px; font-size: .8rem; font-weight: 700; }
.badge-neutral { background: #f1f5f9; color: #64748b; padding: 3px 10px; border-radius: 20px; font-size: .8rem; font-weight: 700; }
.tc-badge-company { font-size: .75rem; background: var(--info-lt); color: var(--primary); padding: 2px 8px; border-radius: 20px; }
.tc-dist, .tc-exp { font-size: .8rem; color: var(--muted); }

.empty-state   { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3rem; display: block; margin-bottom: .6rem; }
.empty-state p { font-size: 1rem; line-height: 1.5; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary, .btn-secondary, .btn-wa, .btn-danger-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: .65rem 1.1rem; border-radius: 10px;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; border: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;   /* Apple HIG touch target */
}
.btn-primary     { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); }
.btn-primary:active { transform: scale(.97); }
.btn-primary-sm  { background: var(--primary); color: #fff; padding: .4rem .9rem; font-size: .85rem; min-height: 36px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-weight: 600; }
.btn-secondary   { background: var(--card); color: var(--text); border: 2px solid var(--border); }
.btn-secondary:hover { background: var(--bg); }
.btn-wa          { background: var(--wa); color: #fff; font-size: 1rem; }
.btn-wa:hover    { background: var(--wa-dk); }
.btn-wa.btn-disabled { background: #9ca3af; cursor: not-allowed; pointer-events: none; }
.btn-danger-sm   { background: var(--danger-lt); color: var(--danger); padding: .35rem .75rem; font-size: .82rem; border-radius: 8px; min-height: 36px; }
.btn-full        { width: 100%; justify-content: center; }
.btn-sm          { padding: .4rem .85rem; font-size: .82rem; min-height: 36px; }
.btn-lg          { padding: .85rem 1.75rem; font-size: 1.05rem; }

/* ============================================================
   FORMS
   ============================================================ */
label {
  display: block; font-size: .95rem; font-weight: 600;
  color: var(--muted); margin-bottom: 4px; margin-top: .85rem;
}
input[type=text], input[type=email], input[type=tel], input[type=url],
input[type=number], input[type=password], input[type=time],
select, textarea {
  width: 100%; padding: .7rem 1rem;
  border: 2px solid var(--border); border-radius: 10px;
  font-size: 1rem; background: #fff; color: var(--text);
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
textarea  { resize: vertical; min-height: 90px; }
small     { font-size: .82rem; color: var(--muted); }
hr        { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: .9rem 1.1rem; border-radius: 10px;
  font-size: .95rem; margin-bottom: 1rem; font-weight: 500; line-height: 1.4;
}
.alert-danger  { background: var(--danger-lt); color: #9b1c1c; border: 1px solid #f8b4b4; }
.alert-success { background: var(--success-lt); color: #03543f; border: 1px solid #84e1bc; }
.alert-warning { background: var(--warning-lt); color: #78350f; border: 1px solid #fcd34d; }
.alert-info    { background: var(--info-lt); color: #1e429f; border: 1px solid #a4cafe; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem;
  box-shadow: var(--shadow);
}
@media(min-width:768px) { .card { padding: 1.4rem; } }
.mb-2 { margin-bottom: 1.25rem; }

/* ============================================================
   AUTH
   ============================================================ */
.auth-wrapper   { display: flex; justify-content: center; padding: 1.5rem 1rem 2rem; }
.auth-card      { width: 100%; max-width: 440px; }
.auth-card h1   { font-size: 1.5rem; margin-bottom: 1.25rem; }
.auth-links     { margin-top: 1rem; font-size: .95rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.auth-links a   { color: var(--primary); font-weight: 600; }
.role-toggle    { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1rem; }
.role-option input { display: none; }
.role-option span {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: .75rem; border: 2px solid var(--border); border-radius: 10px;
  cursor: pointer; font-size: .95rem; font-weight: 600; min-height: 52px;
  transition: all .15s;
}
.role-option input:checked + span { border-color: var(--primary); background: var(--primary-lt); color: var(--primary); }

/* ============================================================
   STATS GRID
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem; margin-bottom: 1.25rem;
}
@media(min-width:600px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; }
.stat-num  { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-label{ display: block; font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: .1rem; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard h1 { font-size: 1.4rem; }
.dash-header  {
  display: flex; flex-direction: column; gap: .75rem;
  margin-bottom: 1.25rem;
}
@media(min-width:600px) {
  .dash-header { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.dash-profile-row { display: flex; align-items: center; gap: .75rem; }
.dash-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.dash-cols { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.25rem; }
@media(min-width:768px) { .dash-cols { display: grid; grid-template-columns: 1fr 1fr; } }

.contact-list   { display: flex; flex-direction: column; }
.contact-row    {
  display: flex; align-items: center; gap: 10px;
  padding: .75rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.contact-row:last-child { border-bottom: none; }
.contact-info   { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.contact-actions{ display: flex; gap: 6px; flex-wrap: wrap; }
.tc-avatar      { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); flex-shrink: 0; }

.text-muted     { color: var(--muted); }
.btn-review     {
  background: var(--warning-lt); color: #78350f;
  border: 2px solid #fcd34d; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none; cursor: pointer;
  padding: .35rem .8rem; font-size: .82rem; font-weight: 600;
  min-height: 36px;
}
.btn-review:hover { background: #fde68a; }
.badge-reviewed { font-size: .82rem; color: var(--success); font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.rating-pill    { background: var(--warning-lt); color: #92400e; padding: 2px 10px; border-radius: 20px; font-size: .82rem; font-weight: 700; display: inline-block; }

.quick-links    { display: flex; flex-wrap: wrap; gap: .6rem; }
.quick-links a  {
  display: flex; align-items: center; gap: 5px;
  font-size: .9rem; color: var(--primary); text-decoration: none;
  padding: .45rem .9rem; background: var(--primary-lt); border-radius: 20px; font-weight: 600;
  min-height: 36px;
}
.quick-links a:hover { background: #e0e7ff; }

.review-list { display: flex; flex-direction: column; gap: 1rem; }
.review-item { border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.review-item:last-child { border-bottom: none; padding-bottom: 0; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: .4rem; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.review-comment { font-size: .9rem; color: #374151; padding-left: 48px; }
.stars { color: #d97706; font-size: 1rem; letter-spacing: 1px; }

/* ============================================================
   PUBLIC PROFILE
   ============================================================ */
.pub-header { display: flex; flex-direction: column; gap: 1rem; }
@media(min-width:600px) {
  .pub-header { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.pub-header-left  { display: flex; gap: 1rem; }
.pub-avatar-wrap  { position: relative; flex-shrink: 0; }
.pub-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); }
.avail-dot  { position: absolute; bottom: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; }
.avail-on   { background: var(--success); }
.avail-off  { background: #9ca3af; }
.pub-info h1 { font-size: 1.3rem; }
.rating-large { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: .3rem; }
.rating-num   { font-size: 1.4rem; font-weight: 800; color: #b45309; }
.stars-large i { color: #d97706; font-size: 1.1rem; }
.spec-pills   { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .4rem; }
.spec-pill-sm { font-size: .8rem; background: var(--primary-lt); color: var(--primary); padding: 3px 12px; border-radius: 20px; display: flex; align-items: center; gap: 4px; font-weight: 600; }
.company-badge { display: flex; align-items: center; gap: 6px; font-size: .9rem; margin-top: .4rem; flex-wrap: wrap; }
.badge-info  { background: var(--info-lt); color: #1e429f; font-size: .78rem; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.pub-cta     { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; }
@media(min-width:600px) { .pub-cta { align-items: center; min-width: 180px; } }
.avail-label  { font-size: .9rem; font-weight: 600; text-align: center; }
.avail-on-txt  { color: var(--success); }
.avail-off-txt { color: #9ca3af; }

.profile-cols { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
@media(min-width:768px) { .profile-cols { display: grid; grid-template-columns: 1fr 280px; } }
.profile-main h2, .profile-sidebar h2 { font-size: 1.1rem; margin-bottom: .85rem; }

.work-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media(min-width:480px) { .work-gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
.work-photo { position: relative; cursor: zoom-in; }
.work-photo img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
@media(min-width:480px) { .work-photo img { height: 110px; } }
.work-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; padding: 3px 6px; border-radius: 0 0 8px 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 10px; }

.avail-display { display: flex; flex-direction: column; gap: 5px; }
.avail-day { display: flex; align-items: center; gap: 8px; font-size: .9rem; padding: 4px 0; }
.avail-day-name { width: 38px; font-weight: 700; flex-shrink: 0; }
.avail-day-off .avail-day-name { color: #9ca3af; }
.avail-times span { font-size: .82rem; color: var(--muted); }

/* ============================================================
   PROFILE EDITOR
   ============================================================ */
.profile-editor h1 { font-size: 1.4rem; margin-bottom: 1.25rem; }
.form-row  { display: flex; flex-direction: column; gap: .5rem; }
@media(min-width:600px) { .form-row { flex-direction: row; gap: 1.25rem; } }
.form-row > div { flex: 1; }
.avatar-upload { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.avatar-preview { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); }
.avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--muted); flex-shrink: 0; }
.spec-grid  { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .4rem; }
.spec-check {
  display: flex; align-items: center; gap: 5px;
  font-size: .88rem; cursor: pointer;
  background: var(--bg); border: 2px solid var(--border);
  padding: 6px 12px; border-radius: 25px; user-select: none;
  min-height: 36px;
}
.spec-check input { display: none; }
.spec-check:has(input:checked) { background: var(--primary-lt); border-color: var(--primary); color: var(--primary); }
.toggle-label { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 500; cursor: pointer; margin-top: .85rem; }
.toggle-label input[type=checkbox] { width: 20px; height: 20px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 1rem; }
.photo-item img { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.photo-item span { font-size: .75rem; color: var(--muted); display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.photo-upload-form { display: flex; flex-direction: column; gap: 8px; }
@media(min-width:480px) { .photo-upload-form { flex-direction: row; align-items: center; flex-wrap: wrap; } }
.avail-row {
  display: grid; grid-template-columns: 90px auto 1fr 1fr;
  align-items: center; gap: 8px;
  padding: .6rem 0; border-bottom: 1px solid var(--border);
}
.avail-row input[type=time] { width: 100%; }
.day-label { font-size: .9rem; font-weight: 700; }

/* ============================================================
   ADMIN TABLE
   ============================================================ */
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.data-table th { text-align: left; padding: 7px 8px; border-bottom: 2px solid var(--border); color: var(--muted); font-weight: 600; }
.data-table td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.badge-status { font-size: .78rem; padding: 2px 9px; border-radius: 20px; font-weight: 700; }
.badge-trial   { background: var(--info-lt); color: #1e429f; }
.badge-active  { background: var(--success-lt); color: #03543f; }
.badge-expired { background: var(--danger-lt); color: #9b1c1c; }
.badge-paid    { background: var(--success-lt); color: #03543f; }
.badge-pending { background: var(--warning-lt); color: #78350f; }
.badge-failed  { background: var(--danger-lt); color: #9b1c1c; }
.row-suspended { opacity: .5; }

/* ============================================================
   SUBSCRIPTION PAGE
   ============================================================ */
.sub-status-row { display: flex; flex-direction: column; gap: 1rem; }
.payment-info { margin-top: .75rem; }
.payment-info table { font-size: .9rem; }

/* ============================================================
   REVIEWS
   ============================================================ */
.star-picker { display: flex; gap: 8px; margin: .5rem 0; }
.star-pick   { font-size: 2.5rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.review-target { display: flex; align-items: center; gap: 12px; padding: .85rem; background: var(--bg); border-radius: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border); padding: 1rem;
  margin-top: 2rem; background: var(--card);
}
.footer-inner {
  display: flex; flex-direction: column; gap: .75rem;
  font-size: .85rem; color: var(--muted); text-align: center;
}
@media(min-width:600px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
}
.footer-links { display: flex; gap: 1rem; justify-content: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--primary); }

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ============================================================
   Review gate
   ============================================================ */
.review-gate-alert {
  background: #fef3c7; border: 2px solid #fcd34d;
  border-radius: 10px; padding: .75rem 1rem;
  font-size: .88rem; font-weight: 500; color: #78350f;
  display: flex; flex-direction: column; gap: .4rem;
  text-align: center; line-height: 1.4;
}
.review-gate-alert i { font-size: 1.4rem; color: #d97706; }
.gate-link {
  display: inline-block; background: var(--primary); color: #fff;
  padding: .45rem 1rem; border-radius: 8px; text-decoration: none;
  font-weight: 700; font-size: .9rem; margin-top: .25rem;
}
.gate-link:hover { background: var(--primary-dk); }

.review-gate-banner {
  background: #fef3c7; border: 2px solid #fcd34d;
  border-radius: 10px; padding: 1rem 1.1rem;
  display: flex; align-items: flex-start; gap: .75rem;
  margin-bottom: 1.25rem;
}
.review-gate-banner i { font-size: 1.6rem; color: #d97706; flex-shrink: 0; margin-top: 2px; }
.review-gate-banner .gate-body { flex: 1; }
.review-gate-banner strong { display: block; font-size: 1rem; color: #78350f; margin-bottom: .25rem; }
.review-gate-banner p { font-size: .88rem; color: #92400e; margin-bottom: .5rem; }
.pending-names { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .5rem; }
.pending-names span {
  background: #fff; border: 1px solid #fcd34d; border-radius: 20px;
  padding: 2px 10px; font-size: .82rem; color: #78350f;
  display: flex; align-items: center; gap: 5px;
}
.pending-names img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

/* Review extras */
.review-extras {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 1rem; margin-top: 1rem;
}
.extras-title { font-size:.88rem; font-weight:700; color:var(--muted); margin-bottom:.6rem; }
.check-opt {
  display:flex; align-items:center; gap:8px;
  font-size:.95rem; font-weight:500; cursor:pointer;
  margin-bottom:.5rem; color:var(--text);
}
.check-opt input[type=checkbox] { width:20px; height:20px; cursor:pointer; flex-shrink:0; }

/* ============================================================
   Disclaimer / Terms checkbox
   ============================================================ */
.disclaimer-box {
  background: #fffbeb;
  border: 2px solid #fcd34d;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-top: 1.25rem;
}
.disclaimer-title {
  font-size: .9rem; font-weight: 700; color: #78350f;
  margin-bottom: .5rem; display: flex; align-items: center; gap: 6px;
}
.disclaimer-title i { font-size: 1.1rem; color: #d97706; }
.disclaimer-body {
  font-size: .88rem; color: #92400e; line-height: 1.65;
  margin: 0 0 .85rem 0;
}
.disclaimer-check {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; padding-top: .75rem;
  border-top: 1px solid #fcd34d;
}
.disclaimer-check input[type=checkbox] {
  width: 22px; height: 22px; flex-shrink: 0;
  margin-top: 2px; cursor: pointer; accent-color: var(--primary);
}
.disclaimer-check span {
  font-size: .88rem; color: #78350f; line-height: 1.55; font-weight: 500;
}
.disclaimer-check a { color: var(--primary); font-weight: 700; }

/* Disabled submit state */
.btn-primary:disabled {
  background: #9ca3af; cursor: not-allowed; opacity: .7;
}

/* Content responsibility declaration */
.content-disclaimer-box {
  background: #f8faff;
  border: 2px solid #c7d7fd;
  border-radius: 10px;
  padding: .85rem 1rem;
  margin-top: 1rem;
}
.content-disclaimer-box .disclaimer-check {
  border-top: none;
  padding-top: 0;
}
.content-disclaimer-box .disclaimer-check span {
  color: #1e3a8a;
  font-size: .85rem;
}

/* Emergency notice in terms */
.emergency-notice {
  display: flex; gap: .85rem; align-items: flex-start;
  background: #fde8e8; border: 2px solid #f8b4b4;
  border-radius: 10px; padding: 1rem 1.1rem;
  margin-bottom: 1.75rem;
}
.emergency-notice i  { font-size: 1.5rem; color: var(--danger); flex-shrink: 0; margin-top: 2px; }
.emergency-notice div { font-size: .9rem; color: #9b1c1c; line-height: 1.6; }
.emergency-notice strong { display: block; margin-bottom: .2rem; font-size: .95rem; }

/* Captcha de suma */
.captcha-box {
  margin-top: 1rem;
}
.captcha-box label {
  display: block;
  margin-bottom: .35rem;
  font-size: .9rem;
  color: var(--clr-muted, #555);
}
.captcha-box input[name=captcha] {
  max-width: 140px;
}

/* Nota informativa (registro técnico, etc.) */
.info-note {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: .75rem .9rem;
  border-radius: 8px;
  font-size: .85rem;
  line-height: 1.5;
  margin: .25rem 0 1rem;
}
.info-note i { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* Pills de servicios (puntos seleccionables) */
.service-pills { display:flex; flex-wrap:wrap; gap:6px; }
.service-pill {
  font-size: 12px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-pill i { font-size: 13px; }

/* Barra de aviso superior (marquee configurable) */
.announce-bar { overflow:hidden; white-space:nowrap; width:100%; }
.announce-track {
  display:inline-flex;
  align-items:center;
  animation-name: announce-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
.announce-track span {
  display:inline-block;
  padding: .45rem 2.5rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .2px;
}
@keyframes announce-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .announce-track { animation: none; }
  .announce-track span:nth-child(2) { display:none; }
  .announce-track { justify-content:center; width:100%; }
}
