/* ============================================================
   quinchos.css — Fontana Cerca
   Estilos específicos de la sección Quinchos.
   Importar después de shared.css.
   ============================================================ */

/* ── Skeleton loading ─────────────────────────────────────── */
@keyframes sk-shimmer {
  0%   { background-position: -400px 0 }
  100% { background-position:  400px 0 }
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.sk {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.05) 75%
  );
  background-size: 400px 100%;
  animation: sk-shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}
.sk-header    { height: 16px; width: 65%; border-radius: 8px }
.sk-badge     { height: 12px; width: 28%; border-radius: 999px }
.sk-row       { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap }
.sk-chip      { height: 24px; width: 72px; border-radius: 8px }
.sk-chip--wide{ width: 100px }
.sk-tags-row  { display: flex; gap: .28rem; flex-wrap: wrap }
.sk-tag       { height: 20px; width: 56px; border-radius: 6px }
.sk-obs       { height: 36px; border-radius: 6px }
.sk-actions-row { display: flex; gap: .4rem; align-items: center; margin-top: .2rem }
.sk-btn-primary { height: 32px; flex: 1; border-radius: 10px }
.sk-btn-icon    { height: 32px; width: 32px; border-radius: 50%; flex-shrink: 0 }

/* ── Variables de acento ──────────────────────────────────── */
:root {
  --quincho:        #818cf8;
  --quincho-bg:     rgba(129,140,248,0.10);
  --quincho-border: rgba(129,140,248,0.28);
}

/* ── Cards grid ───────────────────────────────────────────── */
.content { max-width: 960px }
.cards-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) }
.card::before { background: var(--quincho) }
.card-top { margin-bottom: .65rem }
.card-name { font-size: .98rem }

/* ── Estrella favoritos ───────────────────────────────────── */
.fav-star { background: none; border: none; cursor: pointer; font-size: 1.35rem; line-height: 1; padding: 0 .1rem; transition: color .15s, transform .15s, filter .15s; color: rgba(245,166,35,0.45); flex-shrink: 0; margin-left: auto }
.fav-star:hover { transform: scale(1.2); color: var(--accent); filter: drop-shadow(0 0 5px rgba(245,166,35,0.7)) }
.fav-star.is-fav { color: var(--accent); filter: drop-shadow(0 0 7px rgba(245,166,35,0.9)) }

/* ── Chip favoritos en filtros ────────────────────────────── */
.filter-chip.fav-filter-chip { color: #f59e0b; border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.08) }
.filter-chip.fav-filter-chip.active { background: #f59e0b; border-color: #f59e0b; color: #000; font-weight: 700; box-shadow: 0 0 10px rgba(245,158,11,0.35) }

/* ── Overlay bloqueante (primera visita) ──────────────────── */
.tc-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(8,12,20,0.93);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  transition: opacity .3s ease;
}
.tc-overlay.hidden { opacity: 0; pointer-events: none; display: none; }
.tc-overlay-card {
  background: #161f30; border: 1px solid rgba(129,140,248,0.2);
  border-radius: 20px; padding: 2.25rem 2rem; max-width: 440px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  text-align: center;
}
.tc-overlay-icon { font-size: 2.8rem; margin-bottom: 1.1rem; line-height: 1; }
.tc-overlay-title {
  font-family: "Syne", sans-serif; font-size: 1.15rem; font-weight: 800;
  color: #fff; margin-bottom: .7rem;
}
.tc-overlay-text {
  font-size: .82rem; color: #b8c8da; line-height: 1.65;
  margin-bottom: 1.5rem;
}
.tc-overlay-text a { color: var(--quincho); font-weight: 600; text-decoration: underline; }
.tc-overlay-btn {
  width: 100%; padding: .85rem 1.5rem;
  background: var(--quincho); color: #fff; font-weight: 700; font-size: .92rem;
  font-family: "DM Sans", sans-serif; border: none; border-radius: 12px;
  cursor: pointer; transition: opacity .18s; letter-spacing: .01em;
}
.tc-overlay-btn:hover { opacity: .85; }

/* ── Aviso Persistente (sticky, no se puede cerrar) ───────── */
.sticky-notice {
  display: none;
  margin: .75rem auto 0; max-width: 960px;
  padding: .7rem 1.1rem;
  background: rgba(129,140,248,0.07); border: 1px solid rgba(129,140,248,0.22);
  border-radius: 10px;
  font-size: .78rem; color: #c0cedc; line-height: 1.55;
}
.sticky-notice.visible { display: block; }
.sticky-notice a { color: var(--quincho); font-weight: 600; text-decoration: underline; }

/* ── Badge de quincho ─────────────────────────────────────── */
.card-badge {
  display: inline-flex; align-items: center; font-size: .63rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: .15rem .45rem;
  border-radius: 999px; background: var(--quincho-bg);
  color: var(--quincho); border: 1px solid var(--quincho-border); flex-shrink: 0;
}

/* ── Stats de capacidad/precio ────────────────────────────── */
.card-stats { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .65rem }
.stat-chip {
  display: flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 8px; padding: .3rem .6rem;
  font-size: .7rem; color: var(--text); font-weight: 500;
}
.stat-chip-label { color: var(--muted); font-size: .62rem; margin-right: .15rem }

/* ── Observaciones ────────────────────────────────────────── */
.obs-box {
  background: rgba(255,255,255,0.03); border-left: 2px solid var(--quincho);
  border-radius: 0 6px 6px 0; padding: .4rem .6rem; margin-top: .6rem;
  font-size: .72rem; color: var(--muted); line-height: 1.45;
}

/* ── Observaciones expandibles ────────────────────────────── */
.obs-collapsible {
  max-height: 2.9em;
  overflow: hidden;
  transition: max-height .3s ease;
  position: relative;
}
.obs-collapsible::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1.4em;
  background: linear-gradient(transparent, var(--surface));
  pointer-events: none;
  transition: opacity .25s;
}
.obs-collapsible.expanded {
  max-height: 20em;
}
.obs-collapsible.expanded::after { opacity: 0; }
.obs-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--quincho);
  font-size: .68rem;
  font-weight: 600;
  cursor: pointer;
  padding: .3rem 0 0;
  font-family: 'DM Sans', sans-serif;
  transition: opacity .15s;
  position: relative;
  z-index: 1;
}
.obs-toggle:hover { opacity: .75; }

/* ── Pasos del formulario ─────────────────────────────────── */
.step-indicator { display: flex; align-items: center; justify-content: center; gap: .55rem; margin-bottom: 1.4rem }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); transition: background .25s, transform .25s }
.step-dot.active { background: var(--quincho); transform: scale(1.3) }
.step-dot.done { background: rgba(129,140,248,0.45) }
.step-label { font-size: .72rem; color: rgba(255,255,255,0.38); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; text-align: center; margin-bottom: 1rem; margin-top: -.6rem }
.form-step { display: block }
.form-step.hidden-step { display: none }
.form-next-btn { width: 100%; padding: .88rem 1.5rem; background: var(--quincho); color: #fff; font-weight: 700; font-size: .92rem; font-family: "DM Sans", sans-serif; border: none; border-radius: 12px; cursor: pointer; transition: opacity .18s, transform .15s; letter-spacing: .01em; margin-top: .5rem }
.form-next-btn:hover { opacity: .88 }
.form-next-btn:active { transform: scale(.97) }
.form-back-btn { width: 100%; padding: .7rem 1.5rem; background: transparent; color: rgba(255,255,255,0.5); font-weight: 600; font-size: .85rem; font-family: "DM Sans", sans-serif; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; cursor: pointer; transition: border-color .18s, color .18s; margin-top: .5rem }
.form-back-btn:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.75) }

/* ── Selector visual de instalaciones ────────────────────── */
.inst-grid { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem }
.inst-chip-label {
  display: inline-flex; align-items: center; gap: .28rem;
  padding: .38rem .65rem; font-size: .76rem; font-family: "DM Sans", sans-serif;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; cursor: pointer; color: rgba(255,255,255,0.6);
  transition: background .15s, border-color .15s, color .15s; user-select: none;
}
.inst-chip-label.selected {
  background: var(--quincho-bg); border-color: var(--quincho);
  color: #fff; font-weight: 600;
}

/* ── Tags de instalaciones en cards ──────────────────────── */
.inst-tags { display: flex; flex-wrap: wrap; gap: .28rem; margin-top: .5rem }
.inst-tag {
  display: inline-flex; align-items: center; gap: .2rem;
  font-size: .64rem; padding: .2rem .42rem;
  background: var(--quincho-bg); border: 1px solid var(--quincho-border);
  color: var(--quincho); border-radius: 6px; font-weight: 600;
}

/* ── Dos filas de acciones ────────────────────────────────── */
.card-actions { flex-direction: column; gap: .45rem }
.card-actions-primary { display: flex; gap: .4rem; align-items: center }
.card-actions-secondary { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap }

/* ── Grupo de contacto (Llamar + WA) ─────────────────────── */
.contact-group {
  display: inline-flex; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(52,211,153,0.3); flex-shrink: 0;
}
.contact-group .action-btn {
  border-radius: 0; border: none;
  border-right: 1px solid rgba(52,211,153,0.18);
  padding: .45rem .85rem;
}
.contact-group .action-btn:last-child { border-right: none }
.contact-group .action-btn.wa {
  background: rgba(37,211,102,0.16); font-weight: 600;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.contact-group .action-btn.wa:hover {
  background: rgba(37,211,102,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ── Botón Cómo llegar ───────────────────────────────────── */
.action-btn.dir-btn { color: #818cf8; border-color: rgba(129,140,248,0.25); background: rgba(129,140,248,0.07) }
.action-btn.dir-btn:hover { background: rgba(129,140,248,0.15) }

/* ── Botón Compartir (igual al index principal) ──────────── */
.action-btn.share-btn { color: #34d399; border-color: rgba(52,211,153,0.25); background: rgba(52,211,153,0.07) }
.action-btn.share-btn:hover { background: rgba(52,211,153,0.15) }

/* ── Botones ícono secundarios ───────────────────────────── */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255,255,255,0.05);
  color: var(--muted); cursor: pointer; text-decoration: none;
  transition: all .25s cubic-bezier(.4,0,.2,1); flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.icon-btn:hover {
  background: rgba(255,255,255,0.12); color: var(--text);
  border-color: rgba(255,255,255,0.3); transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(255,255,255,0.15);
}
.icon-btn:active { transform: scale(0.95); box-shadow: 0 2px 4px rgba(0,0,0,0.3) }
.icon-btn.instagram {
  border-color: rgba(193,53,132,0.45); color: #e1609a;
  background: rgba(193,53,132,0.1); box-shadow: 0 2px 6px rgba(193,53,132,0.1);
}
.icon-btn.instagram:hover {
  background: rgba(193,53,132,0.24); border-color: rgba(193,53,132,0.65);
  box-shadow: 0 4px 12px rgba(193,53,132,0.2);
}
.icon-btn.copy-phone {
  border-color: rgba(148,163,184,0.32);
  color: #94a3b8;
  background: rgba(148,163,184,0.06);
}
.icon-btn.copy-phone:hover {
  background: rgba(148,163,184,0.14);
  border-color: rgba(148,163,184,0.48);
  color: var(--text);
}
.icon-btn.copy-phone.copied {
  border-color: rgba(52,211,153,0.5);
  color: #34d399;
  background: rgba(52,211,153,0.12);
  transform: scale(1.1);
}
.icon-btn.share {
  border-color: rgba(37,211,102,0.38); color: #4dca7a;
  background: rgba(37,211,102,0.09); box-shadow: 0 2px 6px rgba(37,211,102,0.1);
}
.icon-btn.share:hover {
  background: rgba(37,211,102,0.2); border-color: rgba(37,211,102,0.55);
  box-shadow: 0 4px 12px rgba(37,211,102,0.2);
}

/* ── Badge "Sin contacto" ─────────────────────────────────── */
.no-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245,158,11,0.09);
  border: 1px solid rgba(245,158,11,0.28);
  border-radius: 8px;
  padding: .28rem .6rem;
}

/* ── Filtros rápidos por instalación ─────────────────────── */
.filters-wrap {
  max-width: 960px;
  margin: .65rem auto 0;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .3rem .65rem;
  font-size: .71rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 999px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  user-select: none;
  white-space: nowrap;
}
.filter-chip:hover {
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.8);
}
.filter-chip.active {
  background: var(--quincho-bg);
  border-color: var(--quincho);
  color: #fff;
}
/* Badge de conteo dentro del chip */
.filter-chip-count {
  font-size: .6rem;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: .05rem .35rem;
  margin-left: .1rem;
  opacity: .65;
  font-weight: 700;
}
.filter-chip.active .filter-chip-count {
  background: rgba(255,255,255,0.2);
  opacity: 1;
}
.filter-clear {
  font-size: .68rem;
  color: var(--muted);
  cursor: pointer;
  padding: .2rem .5rem;
  border: none;
  background: none;
  font-family: "DM Sans", sans-serif;
  transition: color .15s;
  display: none;
}
.filter-clear.visible { display: inline-block; }
.filter-clear:hover { color: var(--quincho); }

/* ── Resultados: header con sort ─────────────────────────── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}
.results-header .results-info { margin: 0; }
.sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .55rem center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(255,255,255,0.55);
  font-family: "DM Sans", sans-serif;
  font-size: .72rem;
  padding: .32rem 1.7rem .32rem .65rem;
  cursor: pointer;
  outline: none;
  transition: border-color .18s, color .18s;
}
.sort-select:focus { border-color: var(--quincho); color: #fff; }
.sort-select option { background: #161f30; color: #fff; }

/* ── FAB: Agregar mi Quincho ─────────────────────────────── */
.fab-quincho {
  position: fixed; bottom: 1.75rem; left: 50%;
  transform: translateX(-50%); z-index: 100;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .75rem 1.4rem;
  background: var(--quincho); color: #fff;
  font-family: "DM Sans", sans-serif; font-weight: 700; font-size: .84rem;
  border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 4px 24px rgba(129,140,248,0.42);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .18s, opacity .3s;
  letter-spacing: .01em; white-space: nowrap;
}
.fab-quincho:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 8px 28px rgba(129,140,248,0.52); }
.fab-quincho:active { transform: translateX(-50%) scale(.96); }
.fab-quincho.fab-hidden {
  transform: translateX(-50%) translateY(calc(100% + 2.5rem));
  opacity: 0; pointer-events: none;
}

/* ── Modal: formulario de alta de quincho ────────────────── */
.form-modal {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(8,12,20,0.92); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; opacity: 1; transition: opacity .25s ease;
  overflow-y: auto;
}
.form-modal.hidden { opacity: 0; pointer-events: none; display: none !important; }
.form-modal-card {
  background: #161f30; border: 1px solid rgba(129,140,248,0.2);
  border-radius: 20px; padding: 2rem 1.75rem; max-width: 460px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6); position: relative;
  max-height: 90vh; overflow-y: auto; margin: auto;
}
.form-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.08); border: none; color: #b8c8da;
  width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer;
  font-size: .85rem; display: flex; align-items: center; justify-content: center;
  transition: background .15s; flex-shrink: 0;
}
.form-modal-close:hover { background: rgba(255,255,255,0.15); }
.form-modal-icon { font-size: 2.2rem; margin-bottom: .65rem; line-height: 1; text-align: center; }
.form-modal-title {
  font-family: "Syne", sans-serif; font-size: 1.15rem; font-weight: 800;
  color: #fff; text-align: center; margin-bottom: .35rem;
}
.form-modal-sub {
  font-size: .78rem; color: #b8c8da; line-height: 1.6;
  text-align: center; margin-bottom: 1.4rem;
}
.form-field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
.form-field label { font-size: .76rem; font-weight: 600; color: #c8d8e8; letter-spacing: .02em; }
.form-field input, .form-field textarea {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: .68rem .9rem; color: #fff;
  font-family: "DM Sans", sans-serif; font-size: .88rem; outline: none;
  transition: border-color .18s, background .18s;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,0.28); }
.form-field input:focus, .form-field textarea:focus { border-color: var(--quincho); background: rgba(129,140,248,0.05); }
.form-field input.invalid { border-color: #e05252; }
.form-field textarea { resize: vertical; min-height: 4rem; }
.form-submit-btn {
  width: 100%; padding: .88rem 1.5rem;
  background: var(--quincho); color: #fff; font-weight: 700; font-size: .92rem;
  font-family: "DM Sans", sans-serif; border: none; border-radius: 12px;
  cursor: pointer; transition: opacity .18s, transform .15s;
  letter-spacing: .01em; margin-top: .5rem;
}
.form-submit-btn:hover { opacity: .88; }
.form-submit-btn:active { transform: scale(.97); }
.form-submit-btn:disabled { opacity: .5; cursor: not-allowed; }
