/* ──────────────────────────────────────────────────────
   CALO — paleta del diseño objetivo
   Logo cyan/turquesa, fondo casi blanco con gradiente sutil,
   cards redondeadas con sombra suave, bottom nav redondeado.
   ────────────────────────────────────────────────────── */
:root {
  --bg-top:       #FFFFFF;
  --bg-bottom:    #EDEDED;
  --surface:      #FFFFFF;
  --surface-soft: #F5F5F5;
  --text:         #2C2C2C;
  --subtle:       #6B6B6B;
  --text-light:   #9E9E9E;
  --accent:       #7DD3DC;   /* cyan/turquesa del logo */
  --accent-soft:  #C4ECF0;
  --dark:         #545454;   /* botón activo del bottom nav */
  --error:        #D14520;
  --border:       #E5E5E5;
  --shadow:       0 4px 20px rgba(0,0,0,0.06);
  --shadow-card:  0 2px 12px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-image: url("/static/calo/img/sfondo.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}
.container {
  width: 100%;
  max-width: 480px;

  height: 100dvh;   /* ocupa pantalla completa del móvil */
  max-height: 900px; /* evita estirarse demasiado en desktop */

  margin: auto;

  padding: 0px 24px 100px;


  background-size: 120%;
  background: transparent;


  overflow: hidden;
}

.container-auth {                  /* sin bottom nav */
  max-width: 420px; margin: 0 auto;
  padding: 32px 28px;
}

/* ── AppBar ────────────────────────────────────── */
.appbar {
  display: flex; align-items: center; gap: 12px;
  padding: 0px !important;
  background: transparent;
}
.appbar h1 {
  margin: 0; font-size: 16px; font-weight: 600; color: var(--text);
}
.appbar .back {
  color: var(--text); font-size: 22px; line-height: 1;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
}
.appbar-spacer { flex: 1; }
.appbar-link { color: var(--subtle); font-size: 13px; }

/* ── Logo CΛLΩ ─────────────────────────────────── */
.brand {
  text-align: center;
  font-size: 30px; font-weight: 300;
  letter-spacing: 8px;
  color: var(--accent);
  padding-top: 5px;
  font-family: "SF Pro Display", -apple-system, sans-serif;
  margin-top: 7px;
}
.brand img {
  width: 103px;
  height: 46.8px;
}
/* ── Tipografía ────────────────────────────────── */
.title    { font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.subtitle { color: var(--subtle); font-size: 14px; margin: 0 0 24px; }
.section-label {
  color: var(--subtle); font-size: 12px; letter-spacing: 1.5px;
  margin: 16px 0 12px; text-transform: uppercase;
}

/* ── Inputs ────────────────────────────────────── */
.input-group { margin-bottom: 18px; }
.input-group label {
  display: block; color: var(--subtle); font-size: 11px;
  letter-spacing: 1.2px; margin-bottom: 8px; text-transform: uppercase;
  font-weight: 500;
}
.input-group input,
.input-group textarea,
.input-group select {
  width: 100%; padding: 14px 16px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  font-size: 15px; font-family: inherit;
  transition: border-color .15s;
}
.input-group input:focus,
.input-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.input-code {
  font-size: 22px; letter-spacing: 8px; text-align: center;
}

/* ── Botones ───────────────────────────────────── */
.btn {
  display: block; width: 100%;
  padding: 14px 18px; border-radius: 12px; border: none;
  background: #545454 ; color: #fff;
  font-size: 15px; font-weight: 600;
  cursor: pointer; text-align: center;
  font-family: inherit;
  transition: opacity .15s;
}
.btn:hover { opacity: 0.92; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-accent  { background: var(--accent); color: var(--dark); }
.btn-outlined {
  background: transparent; color: var(--dark);
  border: 1.5px solid var(--dark);
}
.btn-link {
  background: transparent; color: var(--accent);
  border: 0; padding: 8px 0;
  cursor: pointer;
  font-size: 13px; font-weight: 500;
}

/* ── Mensajes ──────────────────────────────────── */
.error {
  background: rgba(209, 69, 32, 0.08);
  border: 1px solid rgba(209, 69, 32, 0.25);
  color: var(--error);
  padding: 12px 14px; border-radius: 10px;
  font-size: 13px; margin: 0 0 16px;
}
.success {
  color: var(--accent); font-size: 13px; margin: 12px 0; font-weight: 500;
}

/* ── Cards ─────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  display: block; color: inherit;
  transition: transform .12s;
}
.card:hover { transform: translateY(-1px); }
.card-row {
  display: flex; align-items: center; gap: 14px;
}
.card-icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  color: var(--dark);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex: 0 0 auto;
}
.card-body { flex: 1; min-width: 0; }
.card-title { font-weight: 600; font-size: 15px; }
.card-subtitle { color: var(--subtle); font-size: 12px; margin-top: 2px; }
.card-meta { color: var(--text-light); font-size: 11px; margin-top: 4px; }

/* ── Stat card (batería / plan IA del home) ───── */
/* ── Stat card (batería / plan IA del home) ───── */
/* ── Stat card (batería / plan IA del home) ───── */
.stat-card {
  background: var(--surface);
  border-radius: 10px;

  width: 340px;
  height: 60px;

  margin: 0 auto 15px;

  padding: 8px 15px; /* reducido */
  box-sizing: border-box;

  box-shadow: 10px 5px 10px rgba(0,0,0,0.2);
}
.stat-card .progress { height: 4px; background: #ECECEC; border-radius: 2px; overflow: hidden; margin-bottom: 14px; }
.stat-card .progress > span {
  display: block; height: 100%;
  background: var(--dark);
  border-radius: 2px;
}
.stat-card .stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 20px;
  padding: 0px 10px;

}
.stat-card .stat-icon {
  display: flex;
  align-items: center;     /* centra vertical */
  justify-content: center; /* centra horizontal */
}
.stat-card .stat-icon img {
  transform: translateY(-2px);
  width: 22px;
  height: 22px;
}
.stat-card .stat-label {
  font-size: 13px;
  font-weight: 500;

}

.stat-card .stat-value {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}
.stat-card .stat-label {
  flex: 1; /* clave: empuja el texto hacia la derecha */
}
.stat-card .stat-value .unit {
  font-weight: 400; color: var(--subtle);
}

/* ── Home: layout calculadora + sidebar ───────── */
.home-stage {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  height: 380px;
  margin: 10px 0px 10px 0px ;
}
.home-stage .calc-img {
  max-height: 100%; max-width: 70%;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.18));
}
.home-stage .calc-placeholder {
  width: 220px; height: 340px;
  background: var(--surface-soft);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 13px;
  box-shadow: var(--shadow);
}
.sidebar {
  position: absolute;
  left: 50px;

  background: var(--surface);
  border-radius: 13px;

  padding: 10px;

  display: flex;
  flex-direction: column;
  gap: 0px;
  box-shadow: 10px 10px 25px rgba(0,0,0,0.18);

  z-index: 2;
}

.sidebar a {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1px 0px;


  color: var(--text);
  text-decoration: none;
}

.sidebar a img{
  width: 23px;
  height: 23px;
}
.sidebar a:hover {
  background: var(--surface-soft);
}
/* línea entre elementos */
.sidebar a:not(:last-child) {
  border-bottom: 2px solid rgba(0,0,0,0.1);
}


.last-update {
  position: relative;
  left: 15px;
  color: var(--text-light);
  font-size: 12px;
  margin: 0 0 14px;
}

/* ── Bottom Nav ────────────────────────────────── */
.bottom-nav {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 16px;
  width: calc(100% - 70px); max-width: 420px;
  background: var(--surface);
  border-radius: 36px;
  box-shadow: 10px 10px 25px rgba(0,0,0,0.22);
  padding: 7px 10px;
  display: flex; justify-content: space-around; align-items: center;
  z-index: 50;
}
.bottom-nav a {
  width: 70px; height: 35px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 36px;
  color: var(--subtle);
  transition: background .15s, color .15s;
}
.bottom-nav a:hover { color: var(--text); }

.bottom-nav a.active {
  background: var(--dark) ;
  box-shadow: 4px 4px 5px rgba(0,0,0,0.22);
}
.bottom-nav img { width: 32px; height: 32px; }

/* ── Verify ────────────────────────────────────── */
.verify-section { margin-bottom: 28px; }
.verify-section .check {
  color: var(--accent); margin-left: 8px; font-weight: 700;
}

/* ── Empty / loading ──────────────────────────── */
.empty {
  text-align: center; padding: 48px 24px;
  color: var(--subtle); font-size: 14px;
}

/* ── Chips (filtro) ───────────────────────────── */
.chip-row {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 0 12px;
}
.chip {
  padding: 8px 14px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; font-weight: 500;
  white-space: nowrap; cursor: pointer; text-decoration: none;
}
.chip.selected {
  background: var(--dark); border-color: var(--dark); color: #fff;
}

/* ── Splash ───────────────────────────────────── */
.splash {
  height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

/* ── Linked success ───────────────────────────── */
.success-icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; margin: 32px auto 24px;
}

.home-stage {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 370px;

}

.calc-img {
  margin-top: 15px;
  margin-right:25px;
  position: absolute;
  right: 0;
  width: auto;
  height: 370px;
}

body {
  background-image: url("/static/calo/img/sfondo.png") !important;
}

.appbar {
  padding: 0px;
}
