/* ============================================================
   AGENTE100 — vendedores.css
   Estilos propios de la página para propietarios (vendedores.html).
   Se apoya en los tokens y componentes de styles.css.
   ============================================================ */

html:has(.page-vend) { scroll-padding-top: 84px; }
.v-hero h1 { font-size: clamp(36px, 4.4vw, 58px); }
.v-lead { font-size: var(--text-body-lg); margin-top: 18px; }
.v-fine { font-size: var(--text-small); color: var(--color-text-body); margin-top: 18px; padding-left: 14px; border-left: 3px solid var(--color-accent-blue-light); }
.v-fine a { color: var(--color-accent-blue); font-weight: 600; }

/* ---------- Hero ---------- */
.v-hero .hero__photo { background: #F4F8FC; }
.v-hero .hero__stats { flex-wrap: wrap; }
@media (max-width: 520px) { .v-hero .hero__stats { gap: 16px; } .v-hero .hero__divider { display: none; } .v-hero .stat { flex: 1 1 28%; } }

/* ---------- Señales de alarma (sección oscura) ---------- */
.v-alarms { display: grid; gap: 16px; }
.v-alarm {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-card); padding: 20px 22px;
}
.v-alarm p { color: rgba(255,255,255,0.78); font-size: var(--text-body); }
.v-alarm strong { color: #fff; font-family: var(--font-display); display: block; margin-bottom: 4px; }
.v-alarm__ic {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-accent-gold); color: #0F2A44;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800;
}

/* ---------- Por qué independiente ---------- */
.v-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.v-why__card h3 { font-size: 19px; font-weight: 700; margin-top: 20px; }
.v-why__card p { margin-top: 10px; font-size: 15px; }
@media (max-width: 1000px) { .v-why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .v-why { grid-template-columns: 1fr; } }

/* ---------- El Compromiso ---------- */
.v-pledge { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.v-pledge__intro { position: sticky; top: 104px; }
.v-seal { width: 112px; height: 112px; margin-bottom: 22px; }
.v-seal svg { width: 100%; height: 100%; overflow: visible; }
.v-seal__outer { fill: var(--color-accent-blue); }
.v-seal__inner { fill: none; stroke: rgba(255,255,255,0.55); stroke-width: 1.5; }
.v-seal__ring { fill: #fff; font-family: var(--font-display); font-weight: 700; font-size: 9.6px; letter-spacing: 1.2px; }
.v-seal__check { fill: none; stroke: var(--color-accent-gold); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.v-pledge__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.v-pledge__list li {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card);
  padding: 22px 24px; box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.v-pledge__list li:hover { transform: translateX(4px); box-shadow: var(--shadow-card-hover); border-color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.35); }
.v-num { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--color-accent-blue); letter-spacing: -0.03em; min-width: 38px; }
.v-pledge__list h3 { font-size: 18px; font-weight: 700; }
.v-pledge__list p { margin-top: 6px; font-size: 15px; }
@media (max-width: 900px) { .v-pledge { grid-template-columns: 1fr; } .v-pledge__intro { position: static; } }

/* ---------- Pasos (4) ---------- */
.v-steps { grid-template-columns: repeat(4, 1fr); }
.v-steps::before { left: 12%; right: 12%; }
.v-steps .step h3 { font-size: 20px; }
@media (max-width: 900px) { .v-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } .v-steps::before { display: none; } }
@media (max-width: 520px) { .v-steps { grid-template-columns: 1fr; } }

/* ---------- Buscador + mapa ---------- */
.v-finder { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
.v-finder__map {
  position: sticky; top: 96px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #16416A 0%, #0F2A44 70%);
  padding: 18px 18px 52px;
}
#vMap { width: 100%; height: auto; display: block; }
.v-land { fill: rgba(255,255,255,0.05); stroke: rgba(143,208,242,0.35); stroke-width: 1.2; stroke-linejoin: round; }
.v-inset { fill: none; stroke: rgba(143,208,242,0.25); stroke-dasharray: 4 4; }
.v-link { stroke: rgba(245,166,35,0.55); stroke-width: 1.4; stroke-dasharray: 3 5; fill: none; }
.v-pt { cursor: pointer; }
.v-pt circle.v-pt__dot { fill: rgba(255,255,255,0.28); transition: fill .2s, r .2s; }
.v-pt:hover circle.v-pt__dot, .v-pt:focus circle.v-pt__dot { fill: #fff; }
.v-pt.is-on circle.v-pt__dot { fill: var(--color-accent-gold); }
.v-pt.is-sel circle.v-pt__dot { fill: #fff; stroke: var(--color-accent-gold); stroke-width: 3; }
.v-pt__pulse { fill: none; stroke: var(--color-accent-gold); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.v-pt.is-on .v-pt__pulse { animation: vPulse 2.4s ease-out infinite; }
@keyframes vPulse { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.6); } }
.v-pt__lbl { fill: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; pointer-events: none; paint-order: stroke; stroke: #0F2A44; stroke-width: 4px; }
.v-pt:focus { outline: none; }
.v-legend { position: absolute; left: 20px; bottom: 16px; display: flex; gap: 18px; font-size: var(--text-xs); color: rgba(255,255,255,0.75); }
.v-legend span { display: inline-flex; align-items: center; gap: 7px; }
.v-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); display: inline-block; }
.v-dot--on { background: var(--color-accent-gold); box-shadow: 0 0 0 4px rgba(245,166,35,0.25); }
@media (prefers-reduced-motion: reduce) { .v-pt.is-on .v-pt__pulse { animation: none; } }

.v-finder__panel { display: flex; flex-direction: column; padding: 26px; }
.v-search label { display: block; font-family: var(--font-display); font-weight: 700; color: var(--color-text-primary); margin-bottom: 10px; }
.v-search select, .v-field select, .v-field input[type="text"], .v-field input[type="tel"], .v-field input[type="email"], .v-field input[type="number"] {
  width: 100%; font-family: var(--font-body); font-size: var(--text-body); color: var(--color-text-primary);
  padding: 12px 14px; border: 1.5px solid var(--color-border); border-radius: 9px; background: #fff;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.v-search select, .v-field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239AA5B4' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.v-search select:focus, .v-field select:focus, .v-field input:focus {
  outline: none; border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.12);
}
.v-results { margin-top: 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.v-results__hint { color: var(--color-text-muted); font-size: var(--text-small); }
.v-results__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-small); color: var(--color-text-primary); }
.v-results__title small { font-weight: 500; color: var(--color-text-muted); }
.v-empty { background: var(--color-bg-section); border-radius: 12px; padding: 16px 18px; font-size: var(--text-small); }
.v-empty strong { display: block; font-family: var(--font-display); color: var(--color-text-primary); font-size: 15px; margin-bottom: 4px; }

.v-agent { border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; display: grid; gap: 12px; transition: border-color .2s, box-shadow .2s; }
.v-agent:hover { border-color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.4); box-shadow: var(--shadow-card-hover); }
.v-agent__top { display: flex; gap: 14px; align-items: center; }
.v-agent__av {
  width: 52px; height: 52px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--gradient-cta); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.v-agent__av img { width: 100%; height: 100%; object-fit: cover; }
.v-agent__name { font-family: var(--font-display); font-weight: 700; color: var(--color-text-primary); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v-agent__badge { font-size: 11px; font-weight: 700; color: var(--color-accent-blue); background: var(--color-accent-blue-light); border-radius: 100px; padding: 2px 8px; }
.v-agent__meta { font-size: 13px; color: var(--color-text-body); margin-top: 2px; }
.v-agent__zones { font-size: 13px; color: var(--color-text-muted); }
.v-agent__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.v-agent__actions .btn { padding: 10px 14px; font-size: 14px; flex: 1 1 auto; }
.btn--wa { background: #fff; border-color: var(--color-border); color: var(--color-text-primary); }
.btn--wa:hover { border-color: #25D366; color: #128C4B; }
.btn--wa svg { color: #25D366; }

@media (max-width: 900px) { .v-finder { grid-template-columns: 1fr; } .v-finder__map { position: relative; top: 0; } }

/* ---------- La red crece ---------- */
.v-net .eyebrow { margin-bottom: 18px; }
.v-net__stats { display: flex; justify-content: center; gap: clamp(20px, 6vw, 72px); margin-top: 40px; flex-wrap: wrap; }
.v-net__stats div { display: flex; flex-direction: column; align-items: center; }
.v-net__stats strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5vw, 56px); color: var(--color-accent-gold); line-height: 1; letter-spacing: -0.03em; }
.v-net__stats span { color: rgba(255,255,255,0.75); font-size: var(--text-small); margin-top: 8px; }
.cta-final p.v-net__note { color: rgba(255,255,255,0.6); font-size: var(--text-small); margin-top: 32px; }

/* ---------- Formulario de valoración ---------- */
.v-val { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.v-checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.v-checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--color-text-primary); font-weight: 500; }
.v-checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  background: var(--color-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.v-val__card { padding: clamp(24px, 3.5vw, 36px); }
.v-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.v-field { margin-bottom: 16px; }
.v-field label, .v-label { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-small); color: var(--color-text-primary); margin-bottom: 8px; }
.v-field label small { font-weight: 500; color: var(--color-text-muted); }
.v-field input::placeholder { color: var(--color-text-muted); }
.v-suffix { position: relative; }
.v-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); font-size: var(--text-small); pointer-events: none; }
.v-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v-seg label { margin: 0; cursor: pointer; }
.v-seg input { position: absolute; opacity: 0; pointer-events: none; }
.v-seg span {
  display: grid; place-items: center; text-align: center; height: 100%; min-height: 48px;
  border: 1.5px solid var(--color-border); border-radius: 9px; padding: 8px 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--color-text-body);
  transition: all .2s;
}
.v-seg label:hover span { border-color: var(--color-accent-blue); }
.v-seg input:checked + span { border-color: var(--color-accent-blue); background: var(--color-accent-blue-light); color: var(--color-accent-blue); }
.v-seg input:focus-visible + span { outline: 3px solid rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.45); outline-offset: 2px; }
.v-msg { display: none; font-size: var(--text-xs); color: var(--color-negative); margin-top: 6px; }
.v-field.is-error .v-msg, .v-msg--check.is-error { display: block; }
.v-field.is-error input, .v-field.is-error select, .v-field.is-error .v-seg span { border-color: var(--color-negative); }
.v-msg--check { margin: -8px 0 12px 30px; }
.page-vend .check.v-field { margin-bottom: 14px; }
.v-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#vForm { position: relative; }
#vForm .btn { margin-top: 8px; }
.v-form__legal { text-align: center; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 12px; }
.v-ok { text-align: center; }
.v-ok h3 { font-size: var(--text-h3); }
.v-ok p { margin-top: 10px; }
.v-flash { animation: vFlash 1.2s ease; }
@keyframes vFlash { 0%, 100% { box-shadow: var(--shadow-card); } 30% { box-shadow: 0 0 0 4px rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.35); } }
@media (max-width: 900px) { .v-val { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .v-grid2 { grid-template-columns: 1fr; gap: 0; } .v-seg { grid-template-columns: 1fr; } }

/* ---------- Soy agente ---------- */
.v-pro {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  border: 1px solid var(--color-border); border-radius: 20px; padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(135deg, #fff 0%, var(--color-accent-blue-light) 100%);
}
.v-pro__copy p { margin: 18px 0 28px; font-size: var(--text-body-lg); }
.v-pro__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.v-pro__list li { background: #fff; border-radius: 12px; padding: 16px 18px; border: 1px solid var(--color-border); display: grid; gap: 2px; }
.v-pro__list strong { font-family: var(--font-display); color: var(--color-text-primary); }
.v-pro__list span { font-size: var(--text-small); }
@media (max-width: 860px) { .v-pro { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.v-faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.v-faq details { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 0 22px; }
.v-faq summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; color: var(--color-text-primary); font-size: 17px;
}
.v-faq summary::-webkit-details-marker { display: none; }
.v-faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 600; color: var(--color-accent-blue); transition: transform .2s;
}
.v-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.v-faq details p { padding-bottom: 20px; margin-top: -4px; }
.v-faq a { color: var(--color-accent-blue); font-weight: 600; }

/* Evita que un texto largo (p. ej. el desplegable de agentes) ensanche la página en móvil */
.v-val > *, .v-finder > *, .v-pledge > *, .v-pro > * { min-width: 0; }

/* Tarjetas flotantes de la foto: en esta imagen la cara de la agente queda arriba a la izquierda,
   así que "Valoración por escrito" baja a la altura de las manos (solo en esta página). */
.v-hero .hero__chip--a { top: auto; bottom: 34%; left: -8%; }
@media (max-width: 860px) {
  .v-hero .hero__chip--a { bottom: 30%; left: 2%; }
  .v-hero .hero__chip--b { bottom: 5%; }
}
