:root{
  --wine:#5b0016;
  --wine2:#7a0020;
  --bg:#0f0a0c;
  --card:#160e11;
  --text:#f5eef1;
  --muted:#d6c5cb;
  --green:#19c37d;
  --shadow: 0 14px 40px rgba(0,0,0,.45);
  --radius: 18px;
}

*{ box-sizing:border-box; }

html, body{
  height: 100%;
  background-color: #5b0016;
  margin: 0;                 /* evita gaps raros en iOS */
}



body{
  margin:0;
  background: radial-gradient(1200px 700px at 50% 10%, rgba(122,0,32,.30), transparent 55%),
              radial-gradient(900px 600px at 80% 70%, rgba(91,0,22,.35), transparent 60%),
              var(--bg);
  color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Centrado âcomo mÃ³vilâ en escritorio */
.page-center{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.device{
  width:min(420px, 100%);
  height:min(860px, 100vh);
  background: linear-gradient(180deg, rgba(122,0,32,.25), rgba(0,0,0,.15));
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  border-radius: 26px;
  overflow:hidden;
  position:relative;

  display:flex;
  flex-direction:column;
}



@media (max-width: 520px){
  .page-center{
    padding:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:stretch;

    min-height: var(--app-h, 100vh);
  }

  .device{
    width:100%;
    height: var(--app-h, 100vh);

    border-radius:0;
    border:none;
    box-shadow:none;
  }
}



/* Header fijo */
.header{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  background: linear-gradient(180deg, rgba(91,0,22,.92), rgba(91,0,22,.65));
  border-bottom:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

.btn{
  border:none;
  cursor:pointer;
  padding:10px 12px;
  border-radius: 14px;
  font-weight:800;
  letter-spacing:.2px;
  white-space:nowrap;
}

.btn-primary{
  background: linear-gradient(180deg, #ff4b6e, #c7002f);
  color:white;
  box-shadow: 0 10px 22px rgba(199,0,47,.35);
}

.btn-primary:active{ transform: translateY(1px); }

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}


.brand-title{
  height:20px;
  width:auto;
  max-width:100%;
  flex-shrink:1;
}

@media (max-width:360px){
  .brand-title{
    display:none;
  }
}

.brand-logo{
  height:32px;
  width:auto;
  flex-shrink:0;

  border-radius:0;
  object-fit:contain;
  border:none;
}


/* Contenido */
.content{
  flex: 1 1 auto;
  overflow:auto;
  padding: 14px 12px;
}



.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}

/* Cards */
.card{
  background: rgba(22,14,17,.92);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 12px 26px rgba(0,0,0,.35);
}

.card-media{
  position:relative;
  width:100%;
  aspect-ratio: 1 / 1;
  overflow:hidden;
  cursor:pointer;
}

.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter: saturate(1.06) contrast(1.02);
}

.status{
  position:absolute;
  right:10px;
  top:10px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  font-weight:800;
}

/*.status-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--green);
  box-shadow: 0 0 0 5px rgba(25,195,125,.14);
} */

.status-text{ font-size: 13px; }

.code{
  position:absolute;
  right:12px;
  top:54px;
  padding:8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  font-weight:800;
  font-size: 14px;
}

.card-body{ padding: 12px 12px 14px 12px; }

.card-title{
  font-family: 'Poppins', Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 2px 0 6px 0;
}

.card-text{
  color: var(--muted);
  line-height: 1.35;
  font-size: 14.2px;
  margin:0;
}


.footer-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  width:100%;
  height:auto;
}


.footer-cell{
  padding: 10px 8px 8px;
  text-decoration:none;
  color: var(--text);

  display:flex;
  flex-direction:column;
  justify-content:flex-start; /*  contenido más arriba como en la 01 */
  align-items:center;
  text-align:center;
}


.footer-left{
  border-right: 1px solid rgba(255,255,255,.10);
}

/* NÃMEROS  GRANDES */
.footer-number{
  font-weight:900;
  font-size: 28px;
  letter-spacing: .4px;
  line-height: 1.05;
}

/* Â¡PruÃ©balo Gratis! */
.footer-badge{
  display:inline-block;
  margin-top:6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,75,110,.18);
  border:1px solid rgba(255,75,110,.35);
  font-weight:900;
}

/* texto pequeÃ±o izquierda */
.footer-small{
  margin-top:6px;
  font-size: 11px;
  color: rgba(255,255,255,.85);
  line-height: 1.1;
}

/* ERODY MÃS PEQUEÃO */
.footer-legal{
  margin-top:6px;
  font-size: 9px;
  line-height: 1.15;
  color: rgba(255,255,255,.82);
}

/* Modales */
.modal{
  position:absolute;
  inset:0;
  display:none;
  z-index:50;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}

.modal[aria-hidden="false"]{ display:block; }

.modal-panel{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(91,0,22,.75), rgba(0,0,0,.25));
}

.modal-header{
  position:sticky;
  top:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  background: linear-gradient(180deg, rgba(91,0,22,.92), rgba(91,0,22,.68));
  border-bottom:1px solid rgba(255,255,255,.10);
}

.modal-title{
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight:700;
}

.icon-btn{
  border:none;
  cursor:pointer;
  font-size: 18px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  color: white;
  border:1px solid rgba(255,255,255,.14);
}

.icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin: 0 4px;
}

.icon svg {
  width: 100%;
  height: 100%;
}


.modal-body{
  height: calc(100% - 58px);
  padding: 14px;
  overflow:auto;
}

/* Prompt instalaciÃ³n */
.install{
  position:absolute;
  inset:0;
  z-index:60;
  display:none;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}

.install[aria-hidden="false"]{ display:flex; align-items:flex-end; justify-content:center; }

.install-card{
  width:100%;
  margin: 0 12px 14px 12px;
  background: rgba(22,14,17,.96);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.install-title{
  font-family: "Playfair Display", serif;
  font-size: 18px;
  margin-bottom: 6px;
}

.install-text{
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.35;
}

.install-actions{
  display:flex;
  gap:10px;
  margin-top: 12px;
}

.install-actions .btn{ flex:1; }

.btn-secondary{
  background: rgba(255,255,255,.10);
  color:white;
  border:1px solid rgba(255,255,255,.14);
}

/* Overlay orientaciÃ³n */
.rotate-overlay{
  position:fixed;
  inset:0;
  z-index:60000;
  display:none;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(10px);
  pointer-events: all;

}

.rotate-overlay[aria-hidden="false"]{ display:flex; align-items:center; justify-content:center; }

@media (min-width: 1024px){
  .rotate-overlay{
    display:none !important;
  }
}


.rotate-card{
  width:min(360px, 92vw);
  padding: 18px;
  border-radius: 22px;
  background: rgba(0,0,0,.70);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  text-align:center;
}

.rotate-icon{
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotate-icon svg{
  width: 64px;
  height: 64px;
  display: block;
}

.rotate-title{
  font-family: "Playfair Display", serif;
  font-size: 20px;
  margin-bottom: 6px;
}

.rotate-text{ color: var(--muted); font-size: 13.5px; line-height: 1.35; }

/* ===== Desktop web: centrado + 3 / 4 columnas (NO afecta a PWA/móvil) ===== */

/* Desktop / portátil */
@media (min-width: 1024px){

  /* Contenedor centrado */
  .page-center{
    align-items: flex-start;     /* evita centrado vertical raro */
    justify-content: center;
    padding: 32px 18px;
  }

  /* Vista tipo app en escritorio */
  .device{
    width: min(1200px, 100%);
    height: calc(100vh - 64px);
    border-radius: 22px;
  }

  /* Rejilla: 3 columnas */
  .grid{
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  /* Proporción más equilibrada en desktop */
  .card-media{
    aspect-ratio: 4 / 5;
  }
}

/* Desktop grande / monitores amplios */
@media (min-width: 1400px){

  /* Rejilla: 4 columnas */
  .grid{
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:25;

  padding: 6px 0 calc(8px + env(safe-area-inset-bottom, 0px));

background: linear-gradient(180deg,
  rgba(91,0,22,.45) 0%,
  rgba(0,0,0,.32) 25%,
  rgba(91,0,22,.82) 100%);

  border-top:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}




/* === Ads data (api_data_advertisments) === */
.empty-state{
  grid-column: 1 / -1;
  text-align:center;
  padding: 22px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.empty-title{ font-weight: 900; }
.empty-sub{ margin-top:6px; color: rgba(255,255,255,.75); font-weight:700; }

.phone-status{
  right:12px;
  top:12px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  gap:8px;
  max-width: calc(100% - 24px);
}
.phone-status .status-text{
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phone-status .phone-icon{
  display:inline-flex;
}

.phone-status.is-on{
  color: var(--green);
}
.phone-status.is-off{
  color: #ff3b5c;
}

.thumbs{
  position:absolute;
  left:12px;
  bottom:12px;
  display:flex;
  align-items:center;
  pointer-events:none;
}
.thumb{
  width:60px;              /*  3x más grande */
  height:60px;             /*  3x más grande */
  border-radius:999px;
  overflow:hidden;
  border:3px solid rgba(0,0,0,.6);
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
}

.thumb + .thumb{
  margin-left:-30px;       /* solape proporcional */
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.card-title-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.card-city{
  color: rgba(255,255,255,.78);
  font-weight:800;
  font-size: 14px;
}
.card-desc{
  margin-top: 8px;
  color: rgba(255,255,255,.86);
  font-weight:700;
  line-height: 1.35;
}


/* ===== Perfil SEO (chica_busca_chicos) ===== */
.profile-page{ min-height:100%; display:flex; flex-direction:column; }
.profile-header{
  position: sticky;
  top: 0;
  z-index: 30;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 20px 28px; /* +20% aprox (antes 12px) */

  background: linear-gradient(
    180deg,
    rgba(91,0,22,.92),
    rgba(91,0,22,.70)
  );
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

.profile-title{
  font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", "Arial Black", "sans-serif";
  font-size: 22px; font-weight:700;
  margin:0;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.profile-close{
  border:none; cursor:pointer;
  font-size: 18px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  color: white;
  border:1px solid rgba(255,255,255,.14);
}
.profile-main{ flex:1 1 auto; overflow:auto; padding: 14px 12px 90px; }
/* .profile-sheet{ animation: sheetIn .26s ease-out both; }
.profile-sheet.is-closing{ animation: sheetOut .22s ease-in both; }
@keyframes sheetIn{ from{ transform: translateY(26px); opacity:0; } to{ transform: translateY(0); opacity:1; } }
@keyframes sheetOut{ from{ transform: translateY(0); opacity:1; } to{ transform: translateY(26px); opacity:0; } } */

.profile-photos{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.profile-photo{
  width:100%; aspect-ratio: 1 / 1;
  border-radius: 16px; overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  cursor:pointer;
}
.profile-photo img{ width:100%; height:100%; object-fit:cover; display:block; }

/*.profile-meta{ margin-top:14px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.profile-name{
  font-family: 'Poppins', Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 20px; font-weight:700; margin:0;
} 
.profile-city{ display:inline-flex; align-items:center; gap:6px; color: rgba(255,255,255,.80); font-weight:800; font-size: 14px; white-space:nowrap; }
.profile-block{ margin-top:10px; color: var(--muted); line-height:1.45; font-size:14px; }
*/
.profile-status{
  margin-top:12px;
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-weight:800;
}
.profile-status.is-on{ color: var(--green); }
.profile-status.is-off{ color: #ff3b5c; }

/*.profile-callinfo{ margin-top:12px; color: rgba(255,255,255,.86); font-weight:700; line-height:1.35; } */
.profile-callbtn{
  margin-top:12px; width:100%;
  border:none; cursor:pointer;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight:900; letter-spacing:.2px;
  background: linear-gradient(180deg, #ff4b6e, #c7002f);
  color:white;
  box-shadow: 0 12px 26px rgba(199,0,47,.35);
}
.profile-callbtn:active{ transform: translateY(1px); }

.seo-only{
  position:absolute !important;
  left:-10000px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

/* Lightbox */
.lightbox{
  position:fixed; inset:0; z-index:9999;
  display:none;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
}
.lightbox.is-open{ display:flex; align-items:center; justify-content:center; }
.lightbox img{
  max-width: 92vw; max-height: 82vh;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.lightbox-close{
  position:fixed; top:12px; right:12px; z-index:10000;
  border:none; cursor:pointer;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  color:white;
  border:1px solid rgba(255,255,255,.14);
  font-weight:900;
}
.profile-loading{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}
.profile-loading__box{
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(20,20,26,.78);
  color: rgba(255,255,255,.92);
  display:flex;
  align-items:center;
  gap:12px;
}
.profile-loading__spinner{
  width:18px;
  height:18px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.25);
  border-top-color: rgba(255,255,255,.85);
  animation: spin 0.9s linear infinite;
}
.profile-loading__text{
  font-weight:800;
  font-size:13px;
}
@keyframes spin{
  to{ transform: rotate(360deg); }
}

/* ===== Skeleton Loader (shimmer) ===== */
.skel{
  position: relative;
}

.skel-media{
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}

.skel-line{
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  margin-top: 10px;
  overflow: hidden;
  position: relative;
}

.skel-title{
  height: 14px;
  width: 60%;
}

/* La "onda" */
.skel-shimmer{
  position:absolute;
  inset:0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.10) 45%,
    rgba(255,255,255,.22) 50%,
    rgba(255,255,255,.10) 55%,
    rgba(255,255,255,0) 100%
  );
  animation: skelShimmer 1.15s ease-in-out infinite;
}

/* Aplica la onda también a las líneas */
.skel-line::after{
  content:"";
  position:absolute;
  inset:0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.10) 45%,
    rgba(255,255,255,.22) 50%,
    rgba(255,255,255,.10) 55%,
    rgba(255,255,255,0) 100%
  );
  animation: skelShimmer 1.15s ease-in-out infinite;
}

@keyframes skelShimmer{
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Respeta usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce){
  .skel-shimmer,
  .skel-line::after{
    animation: none;
    transform: none;
  }
}

/* Loader de navegación (home -> perfil) */
.nav-loading{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}

.nav-loading.is-open{
  display: flex;
}

.nav-loading__box{
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(20,20,26,.78);
  color: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-loading__spinner{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: rgba(255,255,255,.85);
  animation: navSpin .9s linear infinite;
}

.nav-loading__text{
  font-weight: 800;
  font-size: 13px;
}

@keyframes navSpin{
  to{ transform: rotate(360deg); }
}

/* === Ajuste cabecera perfil (compacta + fija) === */
.profile-header{
  padding: 6px 10px;              /* antes 12px */
  min-height: 44px;               /* cabecera más baja */
}

/* Título "Perfil + nombre" más pequeño */
.profile-title{
  font-size: 14px;                /* antes 18px */
  font-weight: 600;
  line-height: 1.1;
}

/* Botón cerrar más compacto */
.profile-close{
  padding: 6px 8px;
  font-size: 16px;
}

/* ================================
   PERFIL: cabecera ultra-compacta
   + compact on scroll
   + ocultar "Perfil" al hacer scroll
================================ */

/* Estado normal (ya muy estrecho) */
.profile-header{
  padding: 6px 10px;
  min-height: 40px;
  gap: 10px;
}

/* Título del header: muy pequeño */
.profile-title{
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 12px;          /* MUCHO más pequeño */
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* "Perfil" (label) en header */
.profile-title-label{
  opacity: .85;
  font-weight: 600;
}

/* Nombre en header */
.profile-title-name{
  font-weight: 700;
}

/* Botón volver más compacto */
.profile-close{
  padding: 6px 8px;
  font-size: 14px;
  border-radius: 12px;
}

/* Transiciones suaves (sin afectar a lightbox/loaders) */
.profile-header,
.profile-title,
.profile-close{
  transition: padding .18s ease, min-height .18s ease, font-size .18s ease, transform .18s ease, opacity .18s ease;
}

/* ===== Estado COMPACTO (cuando haces scroll) ===== */
.profile-header.is-compact{
  padding: 3px 10px;
  min-height: 32px;
}

.profile-header.is-compact .profile-title{
  font-size: 11px;          /* todavía más pequeño */
}

/* En compacto: ocultar "Perfil" y dejar solo el nombre */
.profile-header.is-compact .profile-title-label{
  opacity: 0;
  width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Evita animaciones a usuarios con reduce motion */
@media (prefers-reduced-motion: reduce){
  .profile-header,
  .profile-title,
  .profile-close{
    transition: none;
  }
}

/* OVERRIDE FINAL: altura real de cabecera perfil */
.profile-header{
  padding: 17px 14px !important;
  min-height: 56px !important; /* asegura altura visible */
}
/* ===== PERFIL: fondo único oscuro + header fijo + nombre más grande + CTA centrada ===== */

/* Fondo único (evita el “doble fondo” al final / overscroll iOS) */
.is-profile,
.is-profile body,
.is-profile .page-center,
.is-profile .device.profile-page{
  background: linear-gradient(180deg, rgba(50,0,12,.92), rgba(10,6,8,1));
}

/* Asegura que el main no “deje ver” otro fondo */
.is-profile .profile-main{
  background: transparent;
}

/* Cabecera fija (ya es sticky, reforzamos comportamiento visual) */
.is-profile .profile-header{
  position: sticky;
  top: 0;
  z-index: 60;
}

/* Nombre del header más grande */
.is-profile .profile-title,
.is-profile .profile-title-name{
  font-size: 18px;      /* súbelo si quieres más: 20px/22px */
  font-weight: 800;
  line-height: 1.1;
}

/* Título grande dentro del contenido (ELSA 📍 MALAGA) más grande y limpio */
.is-profile .profile-main h2{
  margin: 14px 0 6px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .3px;
}

/* Botón “Llamada directa”: bajarlo un poco y centrarlo */
.is-profile .profile-callbtn{
  display: block;
  width: min(320px, 100%);
  margin: 18px auto 0;     /* lo baja y lo centra */
  text-align: center;
}

/* Si quieres que el bloque de estado no “corte” raro el fondo al final */
.is-profile .profile-status{
  margin-top: 14px;
}

/* Perfil: más espacio para el footer fijo */
.is-profile .profile-main{
  padding-bottom: 120px; /* antes ~90px */
}

/* ===== Footer fijo: evitar que quede detrás de toolbars (iOS + Android) ===== */
@media (max-width: 520px){
  .footer{
    /* lo elevamos según lo que tape el navegador */
    bottom: var(--vv-bottom, 0px);

    /* y añadimos aire extra por notch/safe-area + toolbars */
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px) + var(--vv-bottom, 0px));

    z-index: 9999;
  }

  /* Asegura que el contenido no quede tapado por el footer */
  .profile-main{
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px) + var(--vv-bottom, 0px));
  }
}
/* ===== FIX: el prompt de instalación debe ir por encima del footer fijo ===== */
.install{
  position: fixed;            /* antes absolute */
  inset: 0;
  z-index: 20000;             /* > footer (9999) */
}

/* Asegura que el panel no quede “tapado” por barras/footers */
.install-card{
  margin-bottom: calc(14px + env(safe-area-inset-bottom, 0px) + var(--vv-bottom, 0px));
}

/* ===== Modal Perfil fullscreen (reusa #profileModal existente) ===== */
#profileModal .modal-panel{
  transform: translateY(18px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}

#profileModal[aria-hidden="false"] .modal-panel{
  transform: translateY(0);
  opacity: 1;
}

#profileModal.is-closing .modal-panel{
  transform: translateY(22px);
  opacity: 0;
}

/* Header del modal: fijo arriba */
#profileModal .modal-header{
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Cuerpo del modal: como “perfil” */
#profileModal .modal-body{
  padding: 14px 12px 24px;
}

/* Link SEO en nombre (visible pero discreto) */
.card-title a.card-title-link{
  color: inherit;
  text-decoration: none;
}
.card-title a.card-title-link:active{
  opacity: .85;
}
/* ===== FIX: el modal de perfil debe estar por encima del footer de números ===== */
#profileModal{
  z-index: 30000; /* por encima del footer y de casi todo */
}

/* Asegura que el contenido del modal no quede pegado abajo */
#profileModal .modal-body{
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px) + var(--vv-bottom, 0px));
}

/* El prompt de instalación aún debe quedar por encima del modal */
.install{
  z-index: 40000;
}

/* ===== Modal perfil: NO cubrir el footer fijo de números ===== */
:root{
  --footer-h: 92px; /* altura aproximada del footer de números */
}

/* Cuando el modal de perfil está abierto, recortamos su área inferior
   para dejar visible el footer (sin blur encima). */
#profileModal{
  /* el modal es absolute dentro del .device; le reservamos espacio abajo */
  inset: 0 0 calc(var(--footer-h) + var(--vv-bottom, 0px) + env(safe-area-inset-bottom, 0px)) 0;
  z-index: 60; /* por encima del contenido normal, pero por debajo del footer si éste es alto */
}

/* Asegura que el contenido del modal no “pegue” al borde inferior del modal recortado */
#profileModal .modal-body{
  padding-bottom: 24px;
}

/* El footer siempre por delante (nítido) */
.footer{
  z-index: 9999;
}

/* El prompt de instalación debe seguir por encima de todo */
.install{
  z-index: 40000;
}

/* Modal perfil: caja del código */
#profileModal .profile-callbox{
  margin-top: 18px;
  margin-bottom: 50px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-weight: 800;
  line-height: 1.25;
}

#profileModal .profile-callbox__sub{
  margin-top: 6px;
  color: rgba(255,255,255,.88);
  font-weight: 800;
}

/* Lightbox home/modal por encima del footer fijo de números y overlays */
#appLightbox{ z-index: 50000; }
#appLightboxClose{ z-index: 50001; }

/* ===== Modal perfil ESCRITORIO (bloque único, sin duplicidades) ===== */
@media (min-width: 1024px){

  /* Overlay: SOLO interactivo cuando el modal está abierto */
  #profileModal{
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;          /* ← CLAVE: no bloquea la home */
  }

  #profileModal[aria-hidden="false"]{
    pointer-events: auto;          /* solo activo cuando está abierto */
  }

  /* Panel centrado con ancho tipo web */
  #profileModal .modal-panel{
    position: relative;
    width: min(980px, calc(100% - 48px));
    height: calc(100% - 48px);
    border-radius: 22px;
    overflow: hidden;

    /* look premium */
    background: linear-gradient(
      180deg,
      rgba(91,0,22,.92),
      rgba(10,6,8,.98)
    );
    border: 1px solid rgba(255,255,255,.12);
    box-shadow:
      0 30px 80px rgba(0,0,0,.55),
      0 10px 30px rgba(0,0,0,.35);
  }

  /* Header separado visualmente */
  #profileModal .modal-header{
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  /* Rejilla de fotos: 4 columnas */
  #profileModal .profile-photos{
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  /* Placeholders vacíos (solo escritorio) */
  #profileModal .profile-photo.is-empty{
    background: transparent;
    border: 1px solid rgba(255,255,255,.10);
    opacity: .35;
    cursor: default;
  }
  #profileModal .profile-photo.is-empty img{
    display:none;
  }
}

/* En móvil / PWA los placeholders NO existen */
@media (max-width: 1023px){
  #profileModal .profile-photo.is-empty{
    display: none;
  }
}


/* Foto principal en grande (ocupa todo el ancho de la rejilla) */
.profile-photo--main{
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

/* En escritorio puede verse un poco ms panormica */
@media (min-width: 1024px){
  #profileModal .profile-photo--main{
    aspect-ratio: 16 / 9;
  }
}




/* ===== FIX cristal: en escritorio, el overlay NO debe mostrarse si está cerrado ===== */
@media (min-width: 1024px){
  #profileModal[aria-hidden="true"]{
    display: none !important;
  }
  #profileModal[aria-hidden="false"]{
    display: flex !important;
  }
}
/* Home cards: ciudad con icono GPS junto al nombre */
.card-title-row{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-city{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  font-size: 13px;
}

.card-city-icon{
  font-size: 14px;
  line-height: 1;
}
/* Home: campos etiquetados dentro de la card */
.card-field{
  margin: 6px 0 0;
  font-size: 13px;                /* ↓ tamaño del texto */
  line-height: 1.35;
  color: rgba(255,255,255,.82);
  font-weight: 400;               /* texto normal, fino */
}

.card-label{
  font-weight: 700;               /* SOLO la etiqueta en negrita */
  margin-right: 6px;
  color: rgba(255,255,255,.92);
}

/* Valor del texto (mensaje, descripción, etc.) */
.card-value{
  font-weight: 400;
  color: rgba(255,255,255,.80);
}

/* Botón Ver más / Ver menos más discreto */
.card-more{
  margin-left: 6px;
  border: none;
  background: rgba(255,255,255,.08);
  color: white;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.card-more:active{ transform: translateY(1px); }

.card-city {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-city-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.card-city-icon svg {
  width: 100%;
  height: 100%;
}

.brand--location{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  justify-content:flex-end;
}

.gps-btn{
  border:none;
  cursor:pointer;
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background: rgba(255,255,255,.10);
  color: white;
  border:1px solid rgba(255,255,255,.14);
}

.gps-btn svg{
  width:20px;
  height:20px;
}

.brand-text{
  display:flex;
  flex-direction:column;
  min-width:0;
  line-height:1.1;
}

.brand-name{
  font-weight:900;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.brand-loc{
  margin-top:2px;
  font-size:12px;
  color: rgba(255,255,255,.78);
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ===== GPS attention effect (solo cuando NO hay GPS real) ===== */
.gps-btn.is-attention{
  animation: gpsPulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255,75,110,.6);
}

@keyframes gpsPulse{
  0%{
    box-shadow: 0 0 0 0 rgba(255,75,110,.55);
    transform: scale(1);
  }
  50%{
    box-shadow: 0 0 0 10px rgba(255,75,110,0);
    transform: scale(1.06);
  }
  100%{
    box-shadow: 0 0 0 0 rgba(255,75,110,0);
    transform: scale(1);
  }
}

