:root {
  --accent: #1F4E5F;
  --accent-dark: #163a47;
  --teal: #2FB6A3;
  --teal-light: #E6F7F4;
  --bg: #F7F9FA;
  --card: #FFFFFF;
  --text: #1B2529;
  --muted: #64767C;
  --border: #E3E9EB;
  --danger: #C0392B;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(20, 40, 50, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 20px; color: var(--accent-dark);
}
.logo-img { height: 34px; width: auto; display: block; }
.logo:hover { text-decoration: none; }
.navlinks { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.navlink { color: var(--muted); font-weight: 600; }
.navlink.active, .navlink:hover { color: var(--accent); }
.nav-user { color: var(--text); font-weight: 600; font-size: 14px; }
.badge-role {
  background: var(--teal-light); color: var(--accent-dark);
  font-size: 11px; padding: 2px 8px; border-radius: 999px; margin-left: 4px;
  font-weight: 700; letter-spacing: .02em;
}

main { max-width: 1100px; margin: 0 auto; padding: 32px 20px 80px; }

.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px;
  align-items: center; padding: 40px 0 56px;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero.hero-single { grid-template-columns: 1fr; text-align: left; padding-bottom: 40px; }
.hero.hero-single > div { max-width: 640px; }
.hero.hero-with-art { grid-template-columns: 1.15fr 0.85fr; }
.hero-illustration { position: relative; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.hero-blob { position: absolute; width: 100%; max-width: 480px; height: auto; animation: heroBlobFloat 7s ease-in-out infinite; }
.hero-icon { position: relative; width: 62%; max-width: 300px; filter: drop-shadow(0 12px 24px rgba(20,40,50,0.18)); }
@keyframes heroBlobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}
@media (max-width: 860px) { .hero-illustration { margin-top: 20px; } .hero-blob { max-width: 320px; } }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 16px; color: var(--accent-dark); }
.hero p.lead { font-size: 17px; color: var(--muted); margin: 0 0 28px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-art {
  background: linear-gradient(155deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 20px; padding: 30px; color: white; box-shadow: var(--shadow);
}
.hero-art .report-mock { background: rgba(255,255,255,0.08); border-radius: 14px; padding: 18px; }
.report-mock h4 { margin: 0 0 10px; font-size: 14px; opacity: .85; font-weight: 600; }
.report-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 14px; }
.report-row:last-child { border-bottom: none; }
.ok-tag { color: #7BE8D6; font-weight: 700; }
.warn-tag { color: #F3C969; font-weight: 700; }

.section-title { font-size: 24px; margin: 0 0 6px; color: var(--accent-dark); }
.section-sub { color: var(--muted); margin: 0 0 26px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 56px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 10px 0 8px; font-size: 17px; color: var(--accent-dark); }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.icon-circle {
  width: 42px; height: 42px; border-radius: 50%; background: var(--teal-light);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border-radius: 9px; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-secondary { background: var(--teal); color: white; }
.btn-secondary:hover { background: #269685; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.btn-ghost:hover { background: var(--teal-light); text-decoration: none; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1EBE59; text-decoration: none; }
.btn-whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 50;
  border-radius: 999px; padding: 13px 18px; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.form-card {
  max-width: 520px; margin: 0 auto; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.form-card h2 { margin-top: 0; color: var(--accent-dark); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--text);
}
.field textarea { resize: vertical; min-height: 80px; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.filters-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 900px) { .filters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .filters-grid { grid-template-columns: 1fr; } }

.flash { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; }
.flash-error { background: #FBEAE8; color: var(--danger); border: 1px solid #F1C6C0; }
.flash-info { background: var(--teal-light); color: var(--accent-dark); border: 1px solid #C9EEE7; }
.flash-success { background: #EAF7EE; color: #1E7A3B; border: 1px solid #C7EBD1; }

.panel-tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.panel-tab { padding: 10px 4px; margin-right: 20px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.panel-tab.active { color: var(--accent); border-color: var(--accent); }

table.list-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.list-table th, table.list-table td { text-align: left; padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--border); }
table.list-table th { background: #FAFCFC; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
table.list-table tr:last-child td { border-bottom: none; }

.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-pendiente { background: #FDF3D8; color: #8A6D1E; }
.status-asignada { background: #E4EDFB; color: #2B5FA8; }
.status-completada { background: #E1F6EF; color: #157A63; }
.status-publicado { background: #E1F6EF; color: #157A63; }

.marketplace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .marketplace-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .marketplace-grid { grid-template-columns: 1fr; } }
.car-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; display: block; text-decoration: none; color: inherit; cursor: pointer; }
.car-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(20,40,50,0.14); text-decoration: none; }
.car-photo { width: 100%; height: 160px; object-fit: cover; background: #EDF2F3; }
.car-body { padding: 16px; }
.car-title { font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.car-meta { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.car-price { font-weight: 800; font-size: 18px; color: var(--accent-dark); }
.verified-badge {
  display: inline-flex; align-items: center; gap: 5px; background: var(--teal-light); color: #157A63;
  font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; margin-top: 8px;
}

/* ---------- Carrusel de fotos (deslizamiento real) ---------- */
.photo-carousel {
  position: relative; width: 100%; height: 160px; background: #EDF2F3;
  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
}
.photo-carousel.tall { height: 320px; border-radius: var(--radius); }
.carousel-track {
  display: flex; height: 100%; width: 100%;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.photo-carousel .carousel-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.photo-carousel .carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(20, 40, 50, 0.45); color: #fff; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s;
}
.carousel-btn:hover { background: rgba(20, 40, 50, 0.7); transform: translateY(-50%) scale(1.08); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center; gap: 5px;
}
.carousel-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.55); cursor: pointer; transition: background .15s, transform .15s; }
.carousel-dots .dot.active { background: #fff; transform: scale(1.3); }
.verified-badge-icon {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%; background: var(--teal);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; box-shadow: 0 1px 4px rgba(0,0,0,0.25); cursor: default;
}
.carousel-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.carousel-thumbs img {
  width: 64px; height: 48px; object-fit: cover; border-radius: 6px; cursor: pointer;
  border: 2px solid transparent; opacity: .7; transition: opacity .15s, border-color .15s;
}
.carousel-thumbs img.active { border-color: var(--teal); opacity: 1; }

/* ---------- Carrusel de elementos (p.ej. coches destacados) ---------- */
.item-carousel { position: relative; overflow: hidden; }
.item-carousel .carousel-slide { flex: 0 0 100%; width: 100%; }
.item-carousel .carousel-btn { top: 160px; }
.item-carousel.has-single-card { max-width: 340px; margin: 0 auto; }
.item-carousel .carousel-dots { position: static; margin-top: 14px; }
.item-carousel .carousel-dots .dot { background: var(--border); }
.item-carousel .carousel-dots .dot.active { background: var(--accent); }
.item-carousel.feature-cars .carousel-slide { display: flex; justify-content: center; padding: 4px 46px; }
.item-carousel.feature-cars .car-card { width: 100%; max-width: 420px; }
.item-carousel.feature-cars .carousel-btn { top: 140px; }

.checklist-group { border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.checklist-group h4 { margin: 0 0 10px; font-size: 14px; color: var(--accent-dark); }
.radio-row { display: flex; gap: 18px; margin-bottom: 6px; }
.radio-row label { font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 6px; }

.upload-box {
  border: 2px dashed var(--border); border-radius: 10px; padding: 20px; text-align: center;
  color: var(--muted); font-size: 13px; cursor: pointer; background: #FAFCFC;
}
.upload-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.upload-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }

.report-view { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.report-view h2 { margin-top: 0; }
.report-photos { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.report-photos img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }

.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; border-top: 1px solid var(--border); }
