/* ── Shared styles for all contract landing pages ── */
/* Used by: modelos-contratos-alquiler-argentina, contrato-alquiler-vivienda,
   contrato-alquiler-comercial, contrato-alquiler-temporario, contrato-alquiler-cochera,
   contrato-arrendamiento-rural, contrato-comodato */

.section-anchor { scroll-margin-top: 90px; }

/* ── Quick nav pills ── */
.qnav-pill {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 1rem; border-radius: 9999px; min-height: 44px;
  border: 1px solid #e2e8f0; background: #fff;
  font-size: 0.8125rem; font-weight: 500; color: #475569;
  cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; white-space: nowrap; text-decoration: none;
}
.qnav-pill:hover, .qnav-pill.active {
  border-color: #6c5ce7; background: #f5f3ff; color: #6c5ce7;
}
.qnav-pill .material-symbols-outlined { font-size: 1rem; }

/* ── Category header ── */
.cat-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding-bottom: 1rem; border-bottom: 2px solid #f1f5f9;
  margin-bottom: 1.25rem;
}
.cat-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.625rem;
  background: #f5f3ff; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cat-icon .material-symbols-outlined { font-size: 1.25rem; color: #6c5ce7; }

/* ── Contract card ── */
.contract-card {
  background: #fff; border: 1.5px solid #e2e8f0; border-radius: 1rem;
  overflow: hidden; transition: box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.contract-card:hover { box-shadow: 0 4px 24px rgba(108,92,231,.10); border-color: rgba(108,92,231,.3); }
.contract-card.featured {
  border-color: #6c5ce7; box-shadow: 0 0 0 3px rgba(108,92,231,.08);
}

.card-head { padding: 1.25rem 1.25rem 0; }
.card-body { padding: 0 1.25rem 1.25rem; flex: 1; }
.card-foot { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid #f1f5f9; background: #fafafa; }

.card-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 9999px; margin-bottom: 0.625rem;
}
.badge-popular  { background: #fef3c7; color: #92400e; }
.badge-featured { background: #ede9fe; color: #5b21b6; }
.badge-commercial { background: #dbeafe; color: #1e40af; }
.badge-temp     { background: #d1fae5; color: #065f46; }
.badge-other    { background: #f1f5f9; color: #475569; }

.card-title { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 0.25rem; line-height: 1.3; }
.card-when {
  font-size: 0.8125rem; color: #4b5563; line-height: 1.5; margin-bottom: 1rem;
  padding: 0.625rem 0.75rem; background: #f0edfd; border-radius: 0.5rem;
  border: 1px solid rgba(108,92,231,.15);
}
.card-when strong { color: #334155; }

/* ── Feature grid ── */
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 0.5rem;
  margin-bottom: 0; list-style: none; padding: 0;
}
.feat {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; line-height: 1.4; color: #374151;
}
.feat .material-symbols-outlined { font-size: 0.9375rem; flex-shrink: 0; }
.feat.yes .material-symbols-outlined { color: #16a34a; }
.feat.no .material-symbols-outlined  { color: #cbd5e1; }
.feat.no { color: #6b7280; }

/* ── Download button ── */
.btn-download {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #6c5ce7; color: #fff; font-weight: 600; font-size: 0.875rem;
  padding: 0.75rem 1.25rem; border-radius: 0.625rem;
  text-decoration: none; transition: background .15s; width: 100%;
}
.btn-download:hover { background: #5a4bd1; }
.btn-download .material-symbols-outlined { font-size: 1.1rem; }

/* ── Use-case guide ── */
.usecase-row {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.875rem 1.25rem; border-bottom: 1px solid #f1f5f9;
  text-decoration: none; color: inherit;
}
a.usecase-row:hover { background: #fafafa; }
.usecase-row:last-child { border-bottom: none; }
.usecase-icon {
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  background: #f5f3ff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.usecase-icon .material-symbols-outlined { font-size: 1rem; color: #6c5ce7; }

/* ── Amber info / alert box ── */
.alert-amber, .notice-amber {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem; background: #fffbeb; border: 1px solid #fde68a; border-radius: 0.75rem;
  margin-top: 1rem;
}
.alert-amber .material-symbols-outlined,
.notice-amber .material-symbols-outlined { color: #d97706; font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.alert-amber p, .notice-amber p { font-size: 0.8125rem; color: #92400e; line-height: 1.6; margin: 0; }
.alert-amber strong, .notice-amber strong { color: #78350f; }

/* ── Related cards / links ── */
.related-card {
  display: flex; align-items: flex-start; gap: 0.875rem;
  padding: 1.125rem; border: 1.5px solid #e2e8f0; border-radius: 0.875rem;
  text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.related-card:hover { border-color: rgba(108,92,231,.35); box-shadow: 0 2px 16px rgba(108,92,231,.08); }
.related-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  background: #f5f3ff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.related-icon .material-symbols-outlined { font-size: 1.125rem; color: #6c5ce7; }

.related-link {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.75rem 1rem; border-radius: 0.625rem; border: 1px solid #e2e8f0;
  text-decoration: none; color: #374151; font-size: 0.875rem; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.related-link:hover { border-color: #6c5ce7; background: #f5f3ff; color: #6c5ce7; }
.related-link .material-symbols-outlined { font-size: 1rem; color: #6c5ce7; flex-shrink: 0; }

/* ── App CTA section ── */
.app-cta {
  background: #6c5ce7; border-radius: 1.25rem;
  padding: 2.5rem 2rem; text-align: center; color: #fff;
}
.app-cta h2 { font-size: 1.375rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.75rem; }
.app-cta p { font-size: 0.9375rem; opacity: 0.85; margin-bottom: 1.5rem; line-height: 1.6; }
.btn-cta-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: #6c5ce7; font-weight: 700; font-size: 0.9375rem;
  padding: 0.875rem 1.75rem; border-radius: 0.625rem;
  text-decoration: none; transition: background .15s;
}
.btn-cta-white:hover { background: #f5f3ff; }

@media (max-width: 640px) {
  .app-cta { padding: 2rem 1.25rem; }
}

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid #f1f5f9; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.125rem 0; font-size: 0.9375rem; font-weight: 600; color: #0f172a;
}
.faq-q:hover { color: #6c5ce7; }
.faq-a {
  font-size: 0.875rem; color: #374151; line-height: 1.7;
  padding-bottom: 1.125rem; display: none;
}
.faq-a.open { display: block; }
.faq-arrow { transition: transform .2s; flex-shrink: 0; }
.faq-arrow.open { transform: rotate(180deg); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  body { background: #0f0f13; color: #e2e8f0; }
  .contract-card { background: #1a1a24; border-color: #2d2d3d; }
  .contract-card:hover { border-color: rgba(108,92,231,.4); }
  .contract-card.featured { border-color: #6c5ce7; }
  .card-head, .card-body { color: #e2e8f0; }
  .card-foot { background: #141420; border-top-color: #2d2d3d; }
  .card-title { color: #f1f5f9; }
  .card-when { background: rgba(108,92,231,.12); border-color: rgba(108,92,231,.2); color: #94a3b8; }
  .card-when strong { color: #cbd5e1; }
  .cat-header { border-bottom-color: #2d2d3d; }
  .cat-icon { background: rgba(108,92,231,.15); }
  .qnav-pill { background: #1a1a24; border-color: #2d2d3d; color: #94a3b8; }
  .qnav-pill:hover, .qnav-pill.active { background: rgba(108,92,231,.15); border-color: #6c5ce7; color: #a78bfa; }
  .badge-popular    { background: rgba(234,179,8,.15);    color: #fcd34d; }
  .badge-featured   { background: rgba(108,92,231,.2);    color: #a78bfa; }
  .badge-commercial { background: rgba(59,130,246,.15);   color: #93c5fd; }
  .badge-temp       { background: rgba(16,185,129,.12);   color: #6ee7b7; }
  .badge-other      { background: rgba(100,116,139,.15);  color: #94a3b8; }
  .alert-amber, .notice-amber { background: rgba(217,119,6,.08); border-color: rgba(217,119,6,.25); }
  .alert-amber p, .notice-amber p { color: #fcd34d; }
  .alert-amber strong, .notice-amber strong { color: #fde68a; }
  .alert-amber .material-symbols-outlined,
  .notice-amber .material-symbols-outlined { color: #f59e0b; }
  .related-card { background: #1a1a24; border-color: #2d2d3d; }
  .related-card:hover { border-color: rgba(108,92,231,.4); }
  .related-icon { background: rgba(108,92,231,.15); }
  .related-link { background: #1a1a24; border-color: #2d2d3d; color: #cbd5e1; }
  .related-link:hover { border-color: #6c5ce7; background: rgba(108,92,231,.12); color: #a78bfa; }
  .faq-item { border-bottom-color: #2d2d3d; }
  .faq-q { color: #f1f5f9; }
  .faq-a { color: #cbd5e1; }
  .feat { color: #cbd5e1; }
  .feat.no { color: #9ca3af; }
  .usecase-row { border-bottom-color: #2d2d3d; }
  .usecase-icon { background: rgba(108,92,231,.15); }
}
