/* ═══════════════════════════════════════════════════
   FOOTER GLOBAL · Vacía Tu Piso
   Estilo unificado · acordeones en móvil
   ═══════════════════════════════════════════════════ */

.vtp-foot {
  --vf-bg: #0b3f17;
  --vf-text: #e8f1e2;
  --vf-text-soft: rgba(232,241,226,.72);
  --vf-text-mute: rgba(232,241,226,.5);
  --vf-line: rgba(232,241,226,.12);
  --vf-accent: #8BC53F;
  background: var(--vf-bg);
  color: var(--vf-text);
  font-family: 'DM Sans', system-ui, sans-serif;
  padding: 72px 0 0;
  margin-top: 0;
  position: relative;
}
.vtp-foot::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, #14712A, #2BB03C, #8BC53F); position: absolute; top: 0; left: 0; right: 0; }

.vtp-foot-inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.vtp-foot-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr 1.25fr;
  gap: 30px 40px;
  padding-bottom: 52px;
  align-items: start;
}

/* —— Bloque mapa —— */
.vtp-foot-map-body { display: flex; flex-direction: column; gap: 12px; }
.vtp-foot-map-frame {
  width: 100%;
  aspect-ratio: 16 / 11;
  min-height: 170px;
  max-height: 230px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(139,197,63,.22);
  background: rgba(232,241,226,.04);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  contain: layout paint;
}
.vtp-foot-map-frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(.95) brightness(.96); }
.vtp-foot-map-text { color: var(--vf-text-soft); font-size: 13.5px; line-height: 1.5; margin: 0; }
.vtp-foot-map-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(139,197,63,.12);
  color: var(--vf-text); text-decoration: none;
  padding: 9px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  border: 1px solid rgba(139,197,63,.28);
  transition: background .2s, color .2s, transform .2s;
  width: max-content;
}
.vtp-foot-map-cta:hover { background: rgba(139,197,63,.22); color: var(--vf-accent); transform: translateY(-1px); }
.vtp-foot-map-cta .ico { width: 24px; height: 24px; border-radius: 50%; background: rgba(139,197,63,.18); color: var(--vf-accent); display: grid; place-items: center; flex-shrink: 0; }

.vtp-foot h5 {
  font-family: 'Figtree', sans-serif;
  font-size: 12px; font-weight: 700;
  color: var(--vf-text);
  letter-spacing: .16em; text-transform: uppercase;
  margin: 0 0 16px;
}
.vtp-foot-grid > .vtp-foot-acc > summary h5 { position: relative; padding-bottom: 13px; }
.vtp-foot-grid > .vtp-foot-acc > summary h5::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 22px; height: 2px; border-radius: 2px; background: var(--vf-accent);
}

.vtp-foot-official {
  margin: 0 0 14px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--vf-accent);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.45;
}
.vtp-foot-official strong { display: block; margin-top: 2px; color: var(--vf-text); font-size: 14.5px; font-weight: 700; letter-spacing: .01em; text-transform: none; }

.vtp-foot-brand img {
  display: block; width: auto; height: 42px; box-sizing: content-box;
  object-fit: contain; max-width: 100%;
  margin-bottom: 20px; background: #fff;
  padding: 9px 15px; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.vtp-foot-brand p { color: var(--vf-text-soft); font-size: 13.5px; line-height: 1.6; margin: 0 0 20px; max-width: 320px; }
.vtp-foot-contact { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.vtp-foot-contact a { color: var(--vf-text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: color .2s; }
.vtp-foot-contact a:hover { color: var(--vf-accent); }
.vtp-foot-contact .ico { width: 28px; height: 28px; border-radius: 50%; background: rgba(139,197,63,.15); color: var(--vf-accent); display: grid; place-items: center; flex-shrink: 0; }
.vtp-foot-contact span { color: var(--vf-text-soft); font-size: 13.5px; }

.vtp-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.vtp-foot ul a { color: var(--vf-text-soft); text-decoration: none; font-size: 14.5px; transition: color .2s, padding .2s; }
.vtp-foot ul a:hover { color: var(--vf-accent); padding-left: 4px; }

/* Acordeón: en desktop el <summary> oculta el icono y muestra normal el contenido */
.vtp-foot-acc { padding: 0; margin: 0; border: 0; }
.vtp-foot-acc > summary { list-style: none; cursor: default; }
.vtp-foot-acc > summary::-webkit-details-marker { display: none; }
.vtp-foot-acc > summary h5 { margin: 0 0 18px; }
.vtp-foot-acc > summary .chev { display: none; }

.vtp-foot-bottom {
  border-top: 1px solid var(--vf-line);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--vf-text-mute);
}
.vtp-foot-bottom a { color: var(--vf-text-soft); text-decoration: none; transition: color .2s; }
.vtp-foot-bottom a:hover { color: var(--vf-accent); }
.vtp-foot-legal { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 1180px) {
  .vtp-foot-grid { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
  .vtp-foot-brand { grid-column: 1 / -1; }
  .vtp-foot-map { grid-column: 1 / -1; }
  .vtp-foot-map-frame { max-height: 200px; aspect-ratio: 21 / 8; }
}

@media (max-width: 980px) {
  .vtp-foot-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 24px; }
  .vtp-foot-brand { padding-bottom: 26px; border-bottom: 1px solid var(--vf-line); margin-bottom: 4px; }
  .vtp-foot-brand img { height: 48px; margin-bottom: 14px; }
  .vtp-foot-brand p { font-size: 14px; margin-bottom: 16px; }

  /* Convertir columnas en acordeones · toque ancho + icono "+" claro */
  .vtp-foot-acc { border-bottom: 1px solid var(--vf-line); }
  .vtp-foot-acc > summary {
    cursor: pointer;
    padding: 20px 4px;
    display: flex; justify-content: space-between; align-items: center;
    min-height: 56px;
    -webkit-tap-highlight-color: rgba(139,197,63,.18);
  }
  .vtp-foot-acc > summary h5 { margin: 0; padding-bottom: 0; font-size: 14.5px; letter-spacing: .12em; }
  .vtp-foot-grid > .vtp-foot-acc > summary h5::after { display: none; }
  .vtp-foot-acc > summary .chev {
    display: inline-block;
    width: 26px; height: 26px;
    border: 1.5px solid rgba(232,241,226,.4);
    border-radius: 50%;
    background: rgba(139,197,63,.08);
    color: var(--vf-accent);
    position: relative;
    flex-shrink: 0;
    transition: transform .3s ease, background .2s ease;
    transform: rotate(0deg);
  }
  .vtp-foot-acc > summary .chev::before,
  .vtp-foot-acc > summary .chev::after {
    content: "";
    position: absolute;
    background: var(--vf-accent);
    border-radius: 2px;
    top: 50%; left: 50%;
    transition: transform .25s ease;
  }
  .vtp-foot-acc > summary .chev::before {
    width: 12px; height: 2px;
    transform: translate(-50%, -50%);
  }
  .vtp-foot-acc > summary .chev::after {
    width: 2px; height: 12px;
    transform: translate(-50%, -50%);
  }
  .vtp-foot-acc[open] > summary .chev { background: var(--vf-accent); border-color: var(--vf-accent); }
  .vtp-foot-acc[open] > summary .chev::before { background: #0b3f17; }
  .vtp-foot-acc[open] > summary .chev::after { transform: translate(-50%, -50%) scaleY(0); }
  .vtp-foot-acc ul { padding: 4px 4px 22px; gap: 14px; }
  .vtp-foot-acc ul a { display: block; padding: 6px 0; font-size: 15.5px; }
}
  .vtp-foot-map-frame { aspect-ratio: 16 / 10; min-height: 180px; max-height: 240px; }
  .vtp-foot-map-body { padding: 4px 4px 22px; }
  .vtp-foot-map-cta { font-size: 14.5px; padding: 11px 16px; }

  /* En móvil el acordeon de mapa empieza CERRADO para no inflar el footer */
}
@media (max-width: 600px) {
  .vtp-foot { padding: 44px 0 0; }
  .vtp-foot-inner { padding: 0 20px; }
  .vtp-foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 0 calc(18px + 96px + env(safe-area-inset-bottom)); }
  .vtp-foot-contact { gap: 8px; }
  .vtp-foot-legal { gap: 16px; }
}
