/* ==== HOME.CSS — Estilos exclusivos de la portada ==== */

/* Contenedores centrados y con ancho legible */
.hero-local,
.contenido-principal,
.seo-ciudad {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero: bloque informativo con énfasis local */
.hero-local{
  margin-top: 84px;              /* despega del header fijo */
  margin-bottom: 14px;
  padding: clamp(14px, 2.2vw, 22px) clamp(14px, 2vw, 18px);
  background: #f6f9ff;
  border: 1px solid #e7eefb;
  border-left: 6px solid var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.hero-local h1{
  color:#111827;
  font-weight: 800;
  letter-spacing:.2px;
  margin: 2px 0 6px 0;
}
.hero-local p{ color:#374151; line-height:1.45; }
.hero-local a{ color: var(--secondary-color); font-weight:700; text-decoration: none; }
.hero-local a:hover{ text-decoration: underline; }

/* Contenido principal con respiración vertical */
.contenido-principal{
  margin-top: 6px;   /* ya compensamos el header en hero */
  padding-left: 16px;
  padding-right: 16px;
}

/* Card que envuelve la tabla */
.seccion{
  background:#fff;
  border:1px solid #eef2f7;
  border-radius:12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 14px;
}

/* Filtros tipo “chips” */
.filtros{
  display:flex; gap:.55rem; flex-wrap:wrap;
  overflow-x:auto; padding-bottom:.25rem; margin-bottom:.75rem;
  scrollbar-width:thin;
}
.boton-filtro{
  border-radius:999px;
  padding:.45rem .9rem;
  border:1px solid #c7d2fe;
  background:#fff; color:#1f2937;
  font-weight:600;
  transition:all .15s ease;
}
.boton-filtro:hover{ background:#f3f4f6; transform:translateY(-1px); }
.boton-filtro.active{
  background:var(--secondary-color); border-color:var(--secondary-color);
  color:#fff; box-shadow:0 2px 8px rgba(0,0,0,.08);
}

/* Tabla más legible: header sticky, zebra, hover y columnas alineadas */
.tabla-servicios{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.tabla-servicios thead th{
  position: sticky; top: 0; z-index: 1;
  background: linear-gradient(90deg, var(--primary-color), #31455c);
  color:#fff;
  text-transform: uppercase;
  letter-spacing:.04em;
  font-size:.8rem;
}

.tabla-servicios th, .tabla-servicios td{
  padding: .9rem 1rem;
  border-bottom:1px solid #eef2f7;
}

.tabla-servicios tbody tr:nth-child(even){ background:#fafafa; }
.tabla-servicios tbody tr:hover{ background:#f1f5f9; }

/* Anchos y alinear precios/tiempos sin tocar HTML */
.tabla-servicios td:nth-child(1){ width:40%; }
.tabla-servicios td:nth-child(2){ width:18%; color:#374151; }
.tabla-servicios td:nth-child(3){
  width:16%; text-align:right; font-variant-numeric: tabular-nums;
  font-weight:600; color:#0f172a;
}
.tabla-servicios td:nth-child(4){ width:16%; text-align:center; color:#475569; }
.tabla-servicios td:nth-child(5){ width:10%; text-align:right; }

/* CTA “Ver detalles” */
.boton-accion{
  display:inline-block;
  padding:.45rem .8rem;
  border-radius:8px;
  background:#0ea5e9; color:#fff; text-decoration:none; font-weight:700;
  box-shadow:0 2px 8px rgba(2,132,199,.25);
  transition: transform .12s ease, box-shadow .2s ease, opacity .15s ease;
}
.boton-accion:hover{ transform:translateY(-1px); box-shadow:0 8px 24px rgba(2,132,199,.35); }
.boton-accion:active{ opacity:.9; transform:translateY(0); }

/* Bloque SEO final tipo “nota destacada” */
.seo-ciudad{
  margin: 10px auto 24px;
  padding: 14px 16px;
  background:#ffffff;
  border-left:5px solid var(--secondary-color);
  border:1px solid #eef2f7;
  border-radius:12px;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
}
.seo-ciudad h2{ color:var(--primary-color); margin-bottom:.35rem; }
.seo-ciudad li{ color:#374151; }

/* Mejor foco accesible */
:where(.boton-filtro,.boton-accion,a,button):focus{
  outline:3px solid rgba(52,152,219,.35); outline-offset:2px;
}

/* Mobile: convierte la tabla a “cards” sin tocar Django */
@media (max-width: 740px){
  .tabla-servicios{ display:block; overflow:hidden; }
  .tabla-servicios thead{ display:none; }
  .tabla-servicios tbody{ display:block; }
  .tabla-servicios tr{
    display:grid; grid-template-columns: 1fr;
    padding: .65rem .9rem; margin: .55rem 0;
    background:#fff; border:1px solid #eef2f7; border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.06);
  }
  .tabla-servicios td{
    display:flex; justify-content:space-between; gap:1rem;
    padding:.42rem 0; border:0;
  }
  .tabla-servicios td:nth-child(1)::before{ content:"Servicio"; font-weight:600; color:#6b7280; }
  .tabla-servicios td:nth-child(2)::before{ content:"Categoría"; font-weight:600; color:#6b7280; }
  .tabla-servicios td:nth-child(3)::before{ content:"Precio"; font-weight:600; color:#6b7280; }
  .tabla-servicios td:nth-child(4)::before{ content:"T. estimado"; font-weight:600; color:#6b7280; }
  .tabla-servicios td:nth-child(5)::before{ content:"Acciones"; font-weight:600; color:#6b7280; }
  .tabla-servicios td:nth-child(3){ text-align:right; }
  .tabla-servicios td:nth-child(4){ text-align:right; }
  .tabla-servicios td:nth-child(5){ text-align:right; }
  /* filtros pegados bajo el header fijo */
  .filtros{ position: sticky; top: 64px; background:#fff; padding:.5rem .25rem; z-index:5; }
}

/* ======= Mejora del bloque SEO "¿Por qué elegirnos en Yarumal?" ======= */
.seo-ciudad{
  margin: 12px auto 26px;
  padding: clamp(14px,2.2vw,22px) clamp(16px,2.4vw,26px);
  background: linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
  border: 1px solid #edf2f7;
  border-left: 6px solid var(--secondary-color);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(17,24,39,.04);
}

/* Título con remate y mejor jerarquía visual */
.seo-ciudad h2{
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: .2px;
  margin: 2px 0 10px 0;
}
.seo-ciudad h2::after{
  content:"";
  display:block;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: var(--secondary-color);
  margin-top: 6px;
  opacity: .9;
}

/* Lista a dos columnas (auto-fit) con bullets tipo "check" */
.seo-ciudad ul{
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 10px 18px;
}

.seo-ciudad li{
  display: grid;
  grid-template-columns: 22px 1fr;  /* columna del icono + texto */
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  color:#374151;
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
}

/* Bullet con check (sin tocar HTML) */
.seo-ciudad li::before{
  content:"";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background:
    var(--secondary-color)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20.285 6.709a1 1 0 010 1.414l-9.193 9.193a1 1 0 01-1.414 0L3.715 11.543a1 1 0 111.414-1.414l5.25 5.25 8.486-8.486a1 1 0 011.42-.184z'/%3E%3C/svg%3E")
    center/12px 12px no-repeat;
  box-shadow: 0 2px 6px rgba(52,152,219,.25);
  margin-top: 2px;
}

/* Sutilezas: mejor legibilidad y reacción al hover */
.seo-ciudad li:hover{
  border-color:#e3eaf4;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  background: #fcfeff;
}

/* Responsive: en móviles, 1 columna y más aire */
@media (max-width: 560px){
  .seo-ciudad ul{ grid-template-columns: 1fr; }
  .seo-ciudad li{ padding: 12px 14px; }
}
