@charset "UTF-8";
/* LOOAMA – looama.css (PWA) */
/* Reset básico */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

:root{
  --bg-0:#000;
  --bg-1:#020617;
  --bg-2:#0b1220;
  --surface: rgba(15, 23, 42, 0.96);
  --border: rgba(148, 163, 184, 0.30);

  /* ✅ Antes azul: ahora blanco / plata */
  --accent:#ffffff;
  --accent-2:#e2e8f0;
  --accent-3:#cbd5e1;

  --text:#e5e7eb;
  --muted:#9ca3af;

  --shadow: 0 24px 60px rgba(0,0,0,.8);
}

body{
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);

  /* Mantengo estética oscura, pero sin “halo” azul */
  background: radial-gradient(circle at top, #111827 0, var(--bg-1) 45%, var(--bg-0) 100%);
}

/* ================================================== */
/* CABECERA FIJA                                       */
/* ================================================== */
.app-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px 14px;

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

  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(0,0,0,.5);
  backdrop-filter: blur(16px);
  z-index: 40;
}

/* Modo “solo título” (tabs 2-4) */
.app-shell.is-simple-header .header-left,
.app-shell.is-simple-header .header-right{
  display:none;
}
.header-simple{
  display:none;
  width:100%;
  text-align:center;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.header-simple__title{ font-size: 15px; }
.app-shell.is-simple-header .header-simple{ display:block; }

/* Lado izquierdo */
.header-left{
  display:flex; align-items:center; gap:10px;
}

.logo-wrapper{
  width:44px; height:44px;
  border-radius:999px;
  padding:2px;

  /* ✅ Antes azul: ahora blanco / plata */
  background: radial-gradient(circle at 0 0, rgba(255,255,255,.9), rgba(2,6,23,1) 60%);
  box-shadow: 0 0 18px rgba(255,255,255,.18);
}

.logo-svg{ width:100%; height:100%; }
.header-text{ display:flex; flex-direction:column; }

.app-title{
  font-size:18px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:700;
}
.app-subtitle{ font-size:12px; color: var(--muted); }

/* Lado derecho completo */
.header-right{
  width:180px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}

/* Botón pequeño derecha */
.primary-btn{
  width:100%;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  cursor:pointer;
  font-weight:600;

  /* ✅ Antes azul: ahora blanco */
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color:#0b1220;

  box-shadow: 0 8px 18px rgba(255,255,255,.12);
  transition: .12s;
}
.primary-btn:active{ transform: scale(.98); }

.status-row{
  width:100%;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:6px;
  font-size:11px;
  text-align:right;
}
.code-label{
  font-family: monospace;
  letter-spacing: .16em;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.6);
}
.status-text{ display:inline-block; min-width:50px; text-align:left; }
.status-dot{
  width:12px; height:12px;
  border-radius:50%;
  border:2px solid rgba(15,23,42,.9);
  transition: all .2s ease;
}
.status-dot--online{
  background:#22c55e !important;
  box-shadow: 0 0 6px rgba(34,197,94,.8);
}
.status-dot--offline{
  background:#ef4444 !important;
  box-shadow: 0 0 6px rgba(239,68,68,.8);
}
.status-text--online{ color:#4ade80 !important; }
.status-text--offline{ color:#f87171 !important; }

/* ================================================== */
/* APP LAYOUT                                          */
/* ================================================== */
.app-shell{
  min-height: 100vh;
  display:flex;
  flex-direction:column;

  padding-top: 80px;        /* header */
  padding-bottom: 92px;     /* tabbar + safe area */
  background: inherit;
}

.views{ flex:1; }

/* Cada “pantalla” */
.view{ min-height: calc(100vh - 80px - 92px); }
.hidden{ display:none !important; }

/* Para tabs 2-4 */
.view-main{
  padding: 16px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
}
.panel{
  width:100%;
  max-width: 520px;
  border-radius: 24px;
  padding: 18px 16px;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.08), rgba(15, 23, 42, 0.96));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.empty-state h2{
  font-size: 20px;
  margin-bottom: 6px;
}
.empty-state p{
  font-size: 14px;
  color: #d1d5db;
}

/* ================================================== */
/* TABBAR INFERIOR (tipo Framework7)                   */
/* ================================================== */
.tabbar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  display:flex;
  gap: 8px;
  justify-content: space-between;

  background: linear-gradient(180deg, rgba(2,6,23,0.0), rgba(2,6,23,0.70) 30%, rgba(2,6,23,0.92));
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.10);
  z-index: 45;
}

.tabbar__item{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 4px;

  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 10px 6px;
  background: rgba(15, 23, 42, 0.55);
  color: #cbd5e1;

  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .08s ease, border-color .12s ease, background .12s ease, color .12s ease;
}
.tabbar__item:active{ transform: scale(.985); }
.tabbar__icon svg{ width: 20px; height: 20px; display:block; }
.tabbar__label{ font-size: 11px; font-weight: 700; letter-spacing: .04em; }

.tabbar__item.is-active{
  /* ✅ Antes azul: ahora blanco */
  border-color: rgba(255,255,255,.50);
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(15, 23, 42, 0.55));
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(255,255,255,.08);
}

/* ================================================== */
/* FOOTER / BOTÓN LLAMADA (solo tab 1)                 */
/* ================================================== */
.app-footer{
  position: fixed;
  left:0; right:0;
  bottom: 72px; /* deja sitio al tabbar */
  padding: 10px 14px 12px;
  display:flex;
  justify-content:center;
  z-index: 35;
  pointer-events:none;
}
.footer--calls{ pointer-events:auto; }

.call-btn{
  width: 86%;
  max-width: 460px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  cursor: pointer;
  pointer-events:auto;

  /* ✅ Antes azul: ahora blanco */
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  color: #0b1220;

  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;

  box-shadow:
    0 14px 36px rgba(255, 255, 255, 0.10),
    0 4px 10px rgba(0, 0, 0, 0.35);

  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.call-btn:active{
  transform: translateY(1px) scale(0.985);
  box-shadow:
    0 8px 24px rgba(255,255,255,0.10),
    0 3px 6px rgba(0,0,0,0.35);
}

/* ================================================== */
/* BANNER INSTALACIÓN                                  */
/* ================================================== */
.install-banner{
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 120px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.5);
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.7);
  z-index: 60;
}
.install-banner span{ flex:1; }
#install-action-btn{
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.18);
  font-size: 12px;

  /* ✅ Antes azul/verde: ahora blanco */
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#0b1220;
  cursor:pointer;
}
#install-close-btn{
  border:none;
  background:transparent;
  color: var(--muted);
  font-size:14px;
  cursor:pointer;
}

/* ================================================== */
/* BLOQUEO ORIENTACIÓN (solo vertical)                 */
/* ================================================== */
.orientation-lock{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}
.orientation-lock__box{
  width: min(520px, 92vw);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 18px 16px;
  background: rgba(0,0,0,.75);
  text-align:center;
}
.orientation-lock__title{
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.orientation-lock__text{
  font-size: 14px;
  color: #e5e7eb;
}

/* ================================================== */
/* RESPONSIVE                                           */
/* ================================================== */
@media (max-width: 480px){
  .app-header{
    height:auto;
    flex-wrap: wrap;
    gap: 6px;
  }
  .header-right{ align-items:flex-start; }
  .app-shell{ padding-top: 90px; }
}

/* ================================================== */
/* SPLASH SCREEN                                       */
/* ================================================== */
.splash-screen{
  position: fixed;
  inset: 0;
  z-index: 999;
  display:flex;
  align-items:center;
  justify-content:center;
  background: radial-gradient(circle at top, #111827 0, var(--bg-1) 45%, #000 100%);
  transition: opacity .4s ease, visibility .4s ease;
}
.splash-screen--hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events:none;
}
.splash-content{ text-align:center; padding: 24px; }
.splash-logo{
  width: 90px; height: 90px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 18px rgba(255,255,255,.18));
}
.splash-title{
  font-size: 22px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.splash-subtitle{ font-size: 13px; color: #cbd5f5; margin-bottom: 18px; }
.splash-loader{ display:inline-flex; gap: 6px; }
.splash-loader span{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #fff;
  opacity: .25;
  animation: splash-bounce 1s infinite ease-in-out;
}
.splash-loader span:nth-child(2){ animation-delay: .15s; }
.splash-loader span:nth-child(3){ animation-delay: .3s; }
@keyframes splash-bounce{
  0%,80%,100%{ transform: translateY(0); opacity: .25; }
  40%{ transform: translateY(-6px); opacity: 1; }
}

/* ================================================== */
/* CARRUSEL HISTORIAS 9:16 (tab 1)                     */
/* ================================================== */
.app-main{
  flex:1;
  padding:0;
  margin:0;
  display:flex;
  justify-content:center;
  align-items:flex-start;
}
.stories-wrapper{
  width:100%;
  display:flex;
  justify-content:center;
  padding-top: calc(12px + env(safe-area-inset-top));
  padding-bottom: env(safe-area-inset-bottom);
}
.stories-carousel{
  width:82%;
  max-width: 360px;
  display:flex;
  justify-content:center;
  align-items:center;
  position: relative;
}
.stories-track{
  width:100%;
  aspect-ratio: 9/16;
  overflow:hidden;
  border-radius: 20px;
  background:#000;
  position: relative;

  perspective: 1000px;
  transform-style: preserve-3d;
}
.story-slide{
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  background-size: cover;
  background-position:center;
  border-radius: 20px;
  overflow:hidden;
  cursor:pointer;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform .5s ease, opacity .5s ease;
}
.story-slide::before,
.story-slide::after{
  content:"";
  position:absolute;
  left:0; right:0;
  pointer-events:none;
}
.story-slide::before{
  top:0;
  height:24%;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent);
}
.story-slide::after{
  bottom:0;
  height:28%;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}
.story-status{
  position:absolute;
  top:10px; right:10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display:flex;
  align-items:center;
  gap: 6px;
  color:#f8fafc;
  font-size: 12px;
  z-index: 5;
}
.story-status-dot{
  width: 11px; height: 11px;
  border-radius:50%;
  background:#22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,.8);
  border: 2px solid rgba(0,0,0,.5);
}
.story-ext{
  position:absolute;
  bottom:12px; right:12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  z-index: 6;
  letter-spacing: .5px;
}
@media (max-width: 380px){
  .stories-carousel{ width: 80%; max-width: 320px; }
}

/* ================================================== */
/* REGISTRO DE LLAMADAS (tab 2)                        */
/* ================================================== */
.call-log{
  margin-top: 14px;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.call-log__item{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(2,6,23,.45);
}
.call-log__dir{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
}
.call-log__dir--in{ background: rgba(34,197,94,.16); }
.call-log__dir--out{ background: rgba(255,255,255,.10); }
.call-log__dir--miss{ background: rgba(239,68,68,.18); }
.call-log__meta{ flex:1; }
.call-log__title{ font-weight: 800; }
.call-log__sub{ margin-top: 2px; font-size: 12px; color: var(--muted); }
.call-log__status{ font-weight: 900; opacity: .9; }

/* ================================================== */
/* MODAL “ELIGE CÓMO LLAMAR”                           */
/* ================================================== */
.call-modal{ position: fixed; inset:0; z-index: 80; display:none; }
.call-modal--open{ display:block; }
.call-modal__backdrop{
  position:absolute; inset:0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  opacity:0;
  transition: opacity .25s ease;
}
.call-modal__sheet{
  position:absolute;
  left:0; right:0; bottom:0;

  margin: 0 10px 100px;
  padding: 16px 16px 18px;
  border-radius: 22px;

  /* ✅ Antes azul: ahora blanco */
  background: radial-gradient(circle at top left, rgba(255,255,255,0.18), rgba(15, 23, 42, 0.98));

  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 -18px 40px rgba(0,0,0,.7);
  transform: translateY(100%);
  opacity:0;
  transition: transform .28s ease-out, opacity .28s ease-out;
}
.call-modal--open .call-modal__backdrop{ opacity:1; }
.call-modal--open .call-modal__sheet{ transform: translateY(0); opacity:1; }

.call-modal__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.call-modal__title{ font-size: 16px; font-weight: 900; }
.call-modal__subtitle{ font-size: 12px; color: var(--muted); margin-top: 2px; }
.call-modal__close{
  border:none;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  width: 24px; height:24px;
  border-radius: 999px;
  cursor:pointer;
  font-size: 16px;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
}

.call-modal__info{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 12px;
}
.call-modal__avatar{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background-color: #020617;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* ✅ Antes azul: ahora blanco */
  box-shadow: 0 0 16px rgba(255,255,255,.18);
}
.call-modal__info-main{ font-size: 13px; color: var(--text); }
.call-modal__info-ext{ font-size: 13px; font-weight: 900; letter-spacing: .12em; }

.call-modal__buttons{ display:flex; flex-direction:column; gap: 8px; }

.call-option{
  width:100%;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 8px;

  background: radial-gradient(circle at top left, rgba(255,255,255,0.10), rgba(15, 23, 42, 0.95));

  text-decoration:none;
  color: var(--text);
  cursor:pointer;
  transition: transform .08s ease, box-shadow .08s ease, border-color .08s ease;
}
.call-option:hover{
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 10px 22px rgba(15,23,42,.7);
}
.call-option:active{ transform: scale(.98); }

.call-option--premium{
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(15, 23, 42, 0.95));
}
.call-option--voip{
  background: radial-gradient(circle at top left, rgba(255,255,255,0.12), rgba(15, 23, 42, 0.96));
}
.call-option__title{ font-size: 14px; font-weight: 900; }
.call-option__subtitle{ font-size: 11px; color: #cbd5f5; }
.call-option__chevron{ font-size: 20px; line-height: 1; opacity: .8; }