/* Tarjeta Vecino Santa Juana - estilos publicos adicionales */

body { line-height: 1.6; }

a { transition: color .15s; }

/* Focus visible accesible */
:focus-visible {
  outline: 3px solid #f59f00;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Imagenes rotas se ocultan (ademas del onerror inline) */
img { max-width: 100%; height: auto; }

/* Mejora movil */
@media (max-width: 576px) {
  .hero-section { padding: 3rem 0 3.5rem; }
  .display-4 { font-size: 2rem; }
  .search-hero { padding: 1rem; }
  .stat-card .value { font-size: 1.5rem; }
}

/* Animaciones discretas */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card { animation: fadeIn .25s ease-out; }

/* ====================================================================
   HERO - version pulida
   ==================================================================== */
.hero-section {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #034FE2 0%, #0240B3 55%, #012E7A 100%);
}
.hero-section h1 { letter-spacing: -0.5px; }
.hero-section p.lead { opacity: 0.95; max-width: 540px; }

/* Link secundario del hero (menos prominente que el boton principal) */
.hero-secondary-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-secondary-link:hover {
  color: #fff;
  border-bottom-color: #fff;
  gap: 0.6rem;
}

/* ====================================================================
   SEARCH HERO - minimalista
   ==================================================================== */
.search-hero {
  background: #fff;
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

.search-form-minimal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid #e6e9ef;
  padding: 0.5rem 0;
  transition: border-color 0.2s ease;
}
.search-form-minimal:focus-within { border-bottom-color: var(--color-primary); }
.search-form-minimal input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 1.05rem;
  padding: 0.25rem 0.5rem;
  background: transparent;
}
.search-form-minimal input::placeholder { color: #9aa3b2; }
.search-icon-minimal { display: inline-flex; padding-left: 0.25rem; }
.search-btn-minimal {
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.search-btn-minimal:hover { background: rgba(3,79,226,0.08); }

/* ====================================================================
   CARDS - con hover pulido (elevacion + zoom imagen)
   ==================================================================== */
.card {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: fadeIn 0.25s ease-out;
}
a.card:hover,
.card.is-hoverable:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.06);
  border-color: rgba(3,79,226,0.18);
}
.card-img-top-wrap {
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #f4f6fa;
  position: relative;
}
.card-img-top-wrap.is-logo {
  background: #fff;
}
.card-img-top-wrap.is-logo img {
  object-fit: contain;
  padding: 1rem;
}
.card-img-top-wrap.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.92);
}
.card-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  color: rgba(255,255,255,0.95);
}
.card-img-placeholder svg {
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}
.card-img-placeholder .placeholder-name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  max-width: 100%;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.card-img-top-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
a.card:hover .card-img-top-wrap img,
.card.is-hoverable:hover .card-img-top-wrap img {
  transform: scale(1.05);
}

/* Badge flotante sobre imagen de card */
.card-img-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 0.35rem 0.75rem;
  background: rgba(255,255,255,0.95);
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ====================================================================
   TIMELINE "COMO FUNCIONA"
   ==================================================================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .timeline {
    flex-direction: row;
    gap: 0;
  }
}
.timeline-item {
  flex: 1;
  position: relative;
  text-align: center;
}
.timeline-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #034FE2 0%, #0240B3 100%);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 6px 16px rgba(3,79,226,0.25);
  position: relative;
  z-index: 2;
}
.timeline-connector {
  display: none;
}
@media (min-width: 768px) {
  .timeline-connector {
    display: block;
    position: absolute;
    top: 32px;
    left: calc(50% + 40px);
    right: calc(-50% + 40px);
    height: 2px;
    background: linear-gradient(90deg, rgba(3,79,226,0.3) 0%, rgba(3,79,226,0.3) 50%, transparent 100%);
    z-index: 1;
  }
  .timeline-item:last-child .timeline-connector { display: none; }
}
.timeline-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.5rem 0 0.4rem;
  color: #1a1a1a;
}
.timeline-item p {
  font-size: 0.92rem;
  color: #5a6273;
  margin: 0;
  line-height: 1.5;
}

/* Print friendly */
@media print {
  .navbar-tvs, .footer-tvs, .search-hero { display: none; }
}

/* ====================================================================
   PAGE HEADER - patron moderno para paginas internas
   ==================================================================== */
.page-header {
  background: linear-gradient(135deg, #034FE2 0%, #0240B3 100%);
  color: #fff;
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.page-header .lead {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  opacity: 0.92;
  max-width: 640px;
}
.page-header-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.page-header-breadcrumb {
  margin-bottom: 1.5rem;
}
.page-header-breadcrumb a,
.page-header-breadcrumb span {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
}
.page-header-breadcrumb a:hover { color: #fff; }
.page-header-breadcrumb .sep { margin: 0 0.4rem; opacity: 0.5; }

/* ====================================================================
   FOOTER MODERNO
   ==================================================================== */
.footer-tvs {
  background: #0a0a0a;
  color: #fff;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  position: relative;
}
.footer-tvs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #034FE2 0%, #0240B3 50%, #012E7A 100%);
}
.footer-tvs h5 {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0.7;
}
.footer-tvs .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-tvs .footer-brand img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-tvs .footer-brand-muni img.footer-escudo {
  height: 56px;
  width: auto;
  filter: none;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
}
.footer-tvs p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
}
.footer-tvs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-tvs ul li {
  margin-bottom: 0.6rem;
}
.footer-tvs ul a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.footer-tvs ul a:hover {
  color: #fff;
}
.footer-tvs .footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-tvs .footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }

/* ====================================================================
   DETAIL PAGE - comercio / beneficio
   ==================================================================== */
.detail-header {
  background: #fff;
  padding: 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.detail-header .detail-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.detail-body {
  padding: 3rem 0;
}
.detail-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.detail-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: #0a0a0a;
}
.detail-aside {
  position: sticky;
  top: 90px;
}
.detail-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.detail-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0a0a0a;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.92rem;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row strong {
  font-weight: 600;
  color: #0a0a0a;
}
.detail-row .text-muted {
  color: #6c757d;
  font-weight: 500;
}
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.benefit-list-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.benefit-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.benefit-list-item .benefit-badge {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #034FE2 0%, #0240B3 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.1;
}
.benefit-list-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #0a0a0a;
}
.benefit-list-item p {
  margin-bottom: 0;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ====================================================================
   FORM PAGES - quiero-ser-* / instalar
   ==================================================================== */
.form-modern {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 2rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.form-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a0a0a;
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.form-section-title:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.form-modern .form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
}
.form-modern .form-control,
.form-modern .form-select {
  border: 1.5px solid #e1e5ea;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-modern .form-control:focus,
.form-modern .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(3,79,226,0.10);
  outline: 0;
}
.form-modern .form-check-input {
  width: 1.2em;
  height: 1.2em;
  border: 1.5px solid #d6dae0;
  margin-top: 0.1em;
}
.form-modern .form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.form-modern .btn-primary {
  background: linear-gradient(135deg, #034FE2 0%, #0240B3 100%);
  border: 0;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(3,79,226,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.form-modern .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(3,79,226,0.30);
}

/* ====================================================================
   STEP CARDS (pasos numerados en /quiero-ser-vecino y similares)
   ==================================================================== */
.step-card {
  background: rgba(3, 79, 226, 0.06);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.step-card .step-num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
}
.step-card .step-text {
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.35;
  margin: 0;
}
@media (max-width: 576px) {
  .step-card { padding: 1.25rem 0.85rem; }
  .step-card .step-num { font-size: 2rem; }
  .step-card .step-text { font-size: 0.8rem; }
}
.form-help {
  font-size: 0.82rem;
  color: #6c757d;
  margin-top: 0.3rem;
}
.form-error {
  font-size: 0.85rem;
  color: #dc3545;
  margin-top: 0.3rem;
}

/* ====================================================================
   FILTER SIDEBAR - lateral de categorias
   ==================================================================== */
.filter-sidebar {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 1.25rem;
  position: sticky;
  top: 90px;
}
.filter-sidebar h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.filter-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.25rem;
  border-radius: 10px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.filter-sidebar-link:hover {
  background: rgba(3,79,226,0.05);
  color: var(--color-primary);
}
.filter-sidebar-link.active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}
.filter-sidebar-link.active .filter-sidebar-count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.filter-sidebar-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.filter-sidebar-count {
  margin-left: auto;
  background: #f4f6fa;
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  min-width: 24px;
  text-align: center;
}

/* ====================================================================
   CATEGORY CARDS - mas modernos
   ==================================================================== */
.category-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #1a1a1a;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border-color: rgba(3,79,226,0.20);
  color: #1a1a1a;
}
.category-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(3,79,226,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  transition: background 0.2s ease;
}
.category-card:hover .category-card-icon {
  background: rgba(3,79,226,0.14);
}
.category-card-name {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}
.category-card small {
  font-size: 0.78rem;
  color: #6c757d;
}

/* ====================================================================
   SCROLL REVEAL ANIMATIONS
   ==================================================================== */
.hero-modern {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background: #ffffff;
}
.hero-modern-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 80% 20%, rgba(3,79,226,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 10% 80%, rgba(245,159,0,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-modern > .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(3,79,226,0.08);
  color: var(--color-primary);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-modern-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #0a0a0a;
  margin-bottom: 1.25rem;
}
.hero-modern-title em {
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(135deg, #034FE2 0%, #0240B3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-modern-title-accent {
  display: block;
  color: var(--color-primary);
}

.hero-modern-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #5a6273;
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-modern-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-modern-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  background: linear-gradient(135deg, #034FE2 0%, #0240B3 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(3,79,226,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-modern-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(3,79,226,0.35);
}

.btn-modern-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.75rem;
  background: transparent;
  color: #0a0a0a;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1.5px solid #d6dae0;
  transition: all 0.2s ease;
}
.btn-modern-ghost:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(3,79,226,0.04);
}

.hero-modern-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-modern-stat strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #0a0a0a;
  letter-spacing: -1px;
}
.hero-modern-stat span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6c757d;
  margin-top: 0.3rem;
  letter-spacing: 0.3px;
}

/* Tarjeta 3D */
.hero-modern-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}
.tarjeta-3d-wrap {
  position: relative;
  perspective: 1500px;
}
.tarjeta-3d {
  position: relative;
  width: 360px;
  height: 540px;
  transform: rotate(-3deg) rotateY(-12deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.tarjeta-3d:hover {
  transform: rotate(-1deg) rotateY(-5deg);
}
.tarjeta-3d-inner {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(135deg, #034FE2 0%, #0240B3 55%, #012E7A 100%);
  padding: 1.75rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(3,79,226,0.30),
    0 20px 40px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.20);
  display: flex;
  flex-direction: column;
}
.tarjeta-3d-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.20) 0%, transparent 50%);
  pointer-events: none;
}
.tarjeta-3d-inner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 10%;
  right: 10%;
  height: 30px;
  background: radial-gradient(ellipse, rgba(3,79,226,0.25) 0%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.tarjeta-3d-header {
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}
.tarjeta-3d-muni {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0.85;
  margin-bottom: 0.3rem;
}
.tarjeta-3d-titulo {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.tarjeta-3d-qr {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.tarjeta-3d-qr-pattern {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.qr-cell {
  aspect-ratio: 1;
  background: var(--c, transparent);
  border-radius: 1px;
}
.tarjeta-3d-body {
  margin-bottom: auto;
  position: relative;
  z-index: 2;
}
.tarjeta-3d-nombre {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
}
.tarjeta-3d-rut {
  font-size: 0.78rem;
  opacity: 0.85;
  font-weight: 500;
}
.tarjeta-3d-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.20);
  position: relative;
  z-index: 2;
}
.tarjeta-3d-label {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 1.2px;
  opacity: 0.7;
  margin-bottom: 0.2rem;
}
.tarjeta-3d-nro {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.tarjeta-3d-venc {
  text-align: right;
}
.tarjeta-3d-venc small {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 1.2px;
  opacity: 0.7;
  margin-bottom: 0.2rem;
}
.tarjeta-3d-venc strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}
@media (max-width: 992px) {
  .hero-modern-visual { min-height: 360px; }
  .tarjeta-hero-img { transform: rotate(-1deg); max-width: 480px; }
}
@media (max-width: 576px) {
  .hero-modern-visual { min-height: 320px; }
  .tarjeta-hero-img { transform: rotate(0); }
  .hero-modern-stats { gap: 1rem; }
  .hero-modern-stat strong { font-size: 1.8rem; }
}

/* ====================================================================
   Tarjeta Vecino hero (imagen real con QR)
   ==================================================================== */
.tarjeta-hero-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  perspective: 1000px;
}
.tarjeta-hero-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow:
    0 30px 60px -15px rgba(3, 79, 226, 0.35),
    0 18px 36px -18px rgba(0, 0, 0, 0.25);
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}
.tarjeta-hero-wrap:hover .tarjeta-hero-img {
  transform: rotate(0deg) scale(1.02);
}

/* ====================================================================
   BENTO GRID para stats / confianza
   ==================================================================== */
.bento-section {
  padding: 4rem 0;
  background: #fafbfc;
}
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  min-height: 420px;
}
.bento-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.bento-large {
  grid-row: 1 / span 2;
  background: linear-gradient(135deg, #034FE2 0%, #0240B3 100%);
  color: #fff;
  border-color: transparent;
  justify-content: flex-end;
}
.bento-large:hover {
  box-shadow: 0 12px 28px rgba(3,79,226,0.25);
}
.bento-large .bento-label {
  color: rgba(255,255,255,0.8);
}
.bento-large h3 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}
.bento-large p {
  color: rgba(255,255,255,0.85);
}

/* Stats en vivo dentro del bloque azul */
.bento-stats {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.bento-stat {
  flex: 1;
  min-width: 0;
}
.bento-stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  display: block;
}
.bento-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.78);
  margin-top: 0.35rem;
  line-height: 1.2;
  display: block;
}
.bento-stats.is-counting .bento-stat-number {
  color: #fff;
}
.bento-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #6c757d;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.bento-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 0.5rem;
}
.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
  }
  .bento-large {
    grid-row: auto;
    grid-column: 1 / span 2;
  }
  .bento-large h3 { font-size: 1.3rem; }
  .bento-stat-number { font-size: 1.9rem; }
}
@media (max-width: 480px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-stats { gap: 0.75rem; }
  .bento-stat-number { font-size: 1.7rem; }
  .bento-stat-label { font-size: 0.65rem; }
  .bento-large {
    grid-column: auto;
  }
}

/* ====================================================================
   SCROLL REVEAL ANIMATIONS
   ==================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }

/* ====================================================================
   CINTILLO DE CONFIANZA
   ==================================================================== */
.trust-bar {
  background: rgba(3,79,226,0.04);
  border-top: 1px solid rgba(3,79,226,0.08);
  border-bottom: 1px solid rgba(3,79,226,0.08);
  padding: 1.5rem 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a1a;
  justify-content: center;
}
.trust-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(3,79,226,0.10);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .trust-item { font-size: 0.85rem; }
  .trust-item-icon { width: 28px; height: 28px; }
}

/* Accesibilidad: skip link */
.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: #000; color: #fff;
  padding: 8px 16px; z-index: 10000;
  transition: top .2s;
}
.skip-link:focus { top: 0; }
