/* ==========================================
   CSS Styling - Crianza Clara Web App
   ========================================== */

/* Design Tokens & Variables */
:root {
  --primary: #6c5ce7;
  --primary-light: #a55eea;
  --primary-glow: rgba(108, 92, 231, 0.15);
  --teal: #10ac84;
  --teal-light: #1dd1a1;
  --orange: #ff9f43;
  --orange-light: #feca57;
  --red: #ee5253;
  --blue: #2e86de;
  --dark: #2d3436;
  --slate: #8395a7;
  --light-bg: #f8f9fc;
  --white: #ffffff;
  --border-radius: 16px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light-bg);
  color: var(--dark);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* Base Screen Class */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  background-color: var(--white);
  animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: 20px;
}

.screen.active {
  display: flex;
}

@keyframes slideIn {
  from {
    opacity: 0.8;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Common Screen Header */
.screen-header {
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f2f6;
  background-color: var(--white);
  flex-shrink: 0;
}

.screen-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

.back-btn, .header-menu-btn, .icon-btn {
  background: transparent;
  border: none;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.back-btn:hover, .icon-btn:hover {
  background-color: #f1f2f6;
}

.back-btn i, .header-menu-btn i, .icon-btn i {
  width: 20px;
  height: 20px;
}

.header-icons {
  display: flex;
  gap: 4px;
}

/* Common Layout Forms and Scroll */
.scrollable-form {
  padding: 16px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scrollable-content {
  padding: 16px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scrollable-list {
  padding: 12px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Button Component */
.btn {
  font-family: 'Inter', sans-serif;
  height: 48px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: #f1f2f6;
  color: var(--dark);
}

.btn-secondary:hover {
  background-color: #e4e7eb;
}

.btn-block {
  width: 100%;
}

/* Form inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  height: 45px;
  border-radius: 10px;
  border: 1px solid #dcdde1;
  padding: 0 12px;
  font-size: 14px;
  color: var(--dark);
  outline: none;
  background-color: #fff;
  transition: border-color 0.2s;
}

.form-group textarea {
  height: auto;
  padding: 10px 12px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper input {
  width: 100%;
  padding-right: 36px;
}

.input-icon {
  position: absolute;
  right: 12px;
  width: 16px;
  height: 16px;
  color: var(--slate);
  pointer-events: none;
}

.form-divider {
  height: 1px;
  background-color: #f1f2f6;
  margin: 8px 0;
}

.form-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

/* SCREEN 1: Bienvenida */
#screen-bienvenida {
  padding: 60px 24px 30px 24px;
  justify-content: space-between;
}

.screen-welcome-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 40px;
}

.app-logo {
  margin-bottom: 20px;
}

.logo-circles {
  width: 80px;
  height: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  mix-blend-mode: multiply;
  opacity: 0.8;
}

.circle.purple {
  background-color: var(--primary-light);
  left: 8px;
}

.circle.teal {
  background-color: var(--teal-light);
  right: 8px;
}

.heart-icon {
  position: absolute;
  width: 28px;
  height: 28px;
  color: var(--white);
  z-index: 10;
}

.screen-welcome-logo h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.tagline {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.4;
  padding: 0 10px;
}

.welcome-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 30px 0;
  padding: 0 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
}

.purple-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.welcome-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* SCREEN 2: Configuración Inicial */
.progress-bar-container {
  height: 4px;
  background-color: #f1f2f6;
  width: 100%;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary);
}

.avatar-upload {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: relative;
  border: 3px solid #f1f2f6;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.avatar-edit i {
  width: 12px;
  height: 12px;
}

/* SCREEN 3: Dashboard */
.dashboard-header {
  padding: 16px 16px 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-profile img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}

.user-text {
  display: flex;
  flex-direction: column;
}

.child-label {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

.child-age {
  font-size: 12px;
  color: var(--slate);
}

.notif-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f8f9fc;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
}

.notif-btn i {
  width: 18px;
  height: 18px;
}

.notif-btn .badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--red);
  border: 1.5px solid #fff;
}

/* Dashboard Cards */
.dashboard-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f2f6;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.card-icon.purple { background-color: rgba(108, 92, 231, 0.1); color: var(--primary); }
.card-icon.teal { background-color: rgba(29, 209, 161, 0.1); color: var(--teal); }

.card-body {
  flex-grow: 1;
}

.card-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin: 2px 0;
}

.card-time {
  font-size: 12px;
  color: var(--slate);
}

.arrow-right {
  width: 16px;
  height: 16px;
  color: var(--slate);
}

/* Dashboard Grid Actions */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 900px) {
  .dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .scrollable-content {
    padding: 20px 24px;
  }

  .dashboard-header {
    padding: 20px 24px 12px;
  }
}

.grid-item {
  background-color: var(--white);
  border: 1px solid #f1f2f6;
  border-radius: var(--border-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.grid-badge,
.nav-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff6b6b, #ee5253);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  line-height: 1;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(238, 82, 83, 0.35);
}

.grid-badge i,
.nav-badge i,
.doc-cat-badge i {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.grid-badge.hidden,
.nav-badge.hidden {
  display: none !important;
}

body.web-app .nav-item {
  position: relative;
}

body.web-app .nav-badge {
  top: 10px;
  left: 28px;
  right: auto;
}

.next-event-card {
  flex-direction: column;
  align-items: stretch;
}

.next-event-card.has-alert {
  border-color: rgba(255, 71, 87, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 71, 87, 0.08);
}

.next-event-card .card-tag.alert {
  color: var(--red);
}

.dashboard-events-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dash-next-events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-child-event {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f2f6;
}

.dash-child-event:first-child {
  padding-top: 0;
  border-top: none;
}

.dash-child-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.dash-child-event-body {
  flex: 1;
  min-width: 0;
}

.dash-child-name {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--slate);
}

.dash-child-event-body h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin: 2px 0;
}

.dash-child-event-empty .dash-child-event-body h4 {
  font-size: 13px;
  color: var(--slate);
  font-weight: 500;
}

.grid-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.grid-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-icon.purple { background-color: rgba(108, 92, 231, 0.08); color: var(--primary); }
.grid-icon.teal { background-color: rgba(16, 172, 132, 0.08); color: var(--teal); }
.grid-icon.yellow { background-color: rgba(255, 159, 67, 0.08); color: var(--orange); }
.grid-icon.blue { background-color: rgba(46, 134, 222, 0.08); color: var(--blue); }
.grid-icon.slate { background-color: rgba(99, 110, 114, 0.1); color: #636e72; }

.document-categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 16px;
}

.doc-category-card {
  position: relative;
  background: var(--white);
  border: 1px solid #f1f2f6;
  border-radius: var(--border-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.doc-category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.doc-category-label {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
}

.doc-category-meta {
  font-size: 11px;
  color: var(--slate);
}

.doc-cat-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff6b6b, #ee5253);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(238, 82, 83, 0.35);
}

.document-files-list {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-category-header {
  padding: 0 16px 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.doc-category-header #doc-category-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

.doc-category-count {
  font-size: 12px;
  color: var(--slate);
}

.doc-category-bar.hidden,
.doc-category-header.hidden {
  display: none !important;
}

.grid-icon i {
  width: 22px;
  height: 22px;
}

.grid-item span {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
}

/* Summary Card */
.summary-card {
  background-color: var(--white);
  border: 1px solid #f1f2f6;
  border-radius: var(--border-radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}

.view-more-btn {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: none;
  cursor: pointer;
}

.summary-stats {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #f1f2f6;
  padding-top: 12px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.stat-label {
  font-size: 10px;
  color: var(--slate);
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 2px;
}

.text-teal { color: var(--teal) !important; }
.text-orange { color: var(--orange) !important; }

/* Floating Action Button (FAB) */
.fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 20px;
  right: 20px;
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.4);
  cursor: pointer;
  z-index: 80;
  transition: transform 0.2s;
}

.fab-btn:active {
  transform: scale(0.92);
}

.fab-btn i {
  width: 24px;
  height: 24px;
}

/* SCREEN 4: Calendario */
.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.cal-nav-btn {
  background: transparent;
  border: none;
  color: var(--dark);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-nav-btn i {
  width: 16px;
  height: 16px;
}

.current-month {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}

.calendar-grid-container {
  background: #f8f9fc;
  border-radius: 16px;
  margin: 0 auto;
  padding: 12px 14px;
  flex-shrink: 0;
  width: fit-content;
  max-width: calc(100% - 32px);
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 34px);
  gap: 4px;
  text-align: center;
  margin-bottom: 8px;
  justify-content: center;
}

.calendar-days span {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate);
  width: 34px;
}

.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 34px);
  gap: 6px 4px;
  text-align: center;
  justify-content: center;
}

.calendar-date-cell {
  width: 34px;
  height: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--dark);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  gap: 1px;
  flex-shrink: 0;
}

.calendar-day-num {
  line-height: 1;
}

.calendar-date-dots {
  display: flex;
  gap: 2px;
  justify-content: center;
  min-height: 4px;
}

.calendar-date-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}

.calendar-date-cell.muted {
  color: #c8d6e5;
  pointer-events: none;
}

.calendar-date-cell.active-selected {
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.calendar-date-cell.active-selected .calendar-date-dot {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.calendar-child-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 0 16px 12px;
  flex-shrink: 0;
  justify-content: center;
}

.calendar-child-legend.hidden {
  display: none;
}

.calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.calendar-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Event List Styles */
.events-list-section {
  padding: 16px 16px 80px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  border-top: 1px solid #f1f2f6;
  margin-top: 4px;
}

.section-date {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.events-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-item {
  background: var(--white);
  border: 1px solid #f1f2f6;
  border-left: 4px solid var(--primary);
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-info h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin: 2px 0;
}

.event-child-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.event-info span {
  font-size: 11px;
  color: var(--slate);
}

.event-status {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
}

.event-status.seen {
  background-color: rgba(16, 172, 132, 0.08);
  color: var(--teal);
}

.event-status.unseen {
  background-color: rgba(255, 159, 67, 0.08);
  color: var(--orange);
}

/* SCREEN 5: Gastos */
.tab-bar {
  display: flex;
  border-bottom: 1px solid #f1f2f6;
  flex-shrink: 0;
}

.tab-item {
  flex-grow: 1;
  background: transparent;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate);
  padding: 12px 0;
  cursor: pointer;
  text-align: center;
  position: relative;
}

.tab-item.active {
  color: var(--primary);
  font-weight: 600;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 1px;
}

.register-expense-footer {
  margin: 12px 12px 0 12px;
  flex-shrink: 0;
}

/* Expense List Items */
.expense-item {
  background: var(--white);
  border: 1px solid #f1f2f6;
  border-radius: var(--border-radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

.expense-category-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expense-category-icon.Salud { background-color: rgba(16, 172, 132, 0.08); color: var(--teal); }
.expense-category-icon.Educación { background-color: rgba(108, 92, 231, 0.08); color: var(--primary); }
.expense-category-icon.Actividades { background-color: rgba(46, 134, 222, 0.08); color: var(--blue); }
.expense-category-icon.Otros { background-color: rgba(255, 159, 67, 0.08); color: var(--orange); }

.expense-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.expense-details h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.expense-details span {
  font-size: 11px;
  color: var(--slate);
  margin-top: 1px;
}

.expense-financials {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.expense-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.expense-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
  text-transform: capitalize;
}

.expense-badge.pendiente {
  background-color: rgba(255, 159, 67, 0.08);
  color: var(--orange);
  cursor: pointer;
}

.expense-badge.pendiente:hover {
  background-color: rgba(255, 159, 67, 0.15);
}

.expense-badge.compartido {
  background-color: rgba(16, 172, 132, 0.08);
  color: var(--teal);
}

.expense-badge.disputa {
  background-color: rgba(238, 82, 83, 0.08);
  color: var(--red);
}

/* SCREEN 6: Nuevo Gasto Upload Area */
.receipt-upload {
  height: 140px;
  background-color: #f8f9fc;
  border: 2px dashed #c8d6e5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.receipt-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 20px;
}

.camera-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.receipt-img-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.amount-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.amount-input-wrapper input {
  padding-left: 24px;
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.currency-symbol {
  position: absolute;
  left: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}

/* SCREEN 7: Documentos */
.document-folders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.folder-item {
  background: var(--white);
  border: 1px solid #f1f2f6;
  border-radius: var(--border-radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.folder-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.folder-icon-wrapper {
  width: 36px;
  height: 36px;
  background-color: var(--primary-glow);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-icon-wrapper i,
.folder-icon-wrapper svg,
.expense-category-icon i,
.expense-category-icon svg,
.comm-icon-wrapper i,
.comm-icon-wrapper svg,
.receipt-placeholder svg,
.receipt-placeholder .camera-icon {
  width: 18px;
  height: 18px;
}

.item-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.item-actions .icon-btn {
  width: 28px;
  height: 28px;
  padding: 0;
}

.expense-badge.esperando {
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  cursor: default;
}

.folder-details {
  flex: 1;
  min-width: 0;
}

.folder-details h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}

.folder-details span {
  font-size: 11px;
  color: var(--slate);
}

/* SCREEN 8: Comunicacion */
.comm-item {
  background: var(--white);
  border: 1px solid #f1f2f6;
  border-radius: var(--border-radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 12px;
}

.comm-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comm-item.important {
  border-left: 4px solid var(--orange);
}

.comm-icon-wrapper.standard { background-color: rgba(108, 92, 231, 0.08); color: var(--primary); }
.comm-icon-wrapper.important-icon { background-color: rgba(255, 159, 67, 0.08); color: var(--orange); }
.comm-icon-wrapper.approved-icon { background-color: rgba(16, 172, 132, 0.08); color: var(--teal); }

.comm-details {
  flex-grow: 1;
}

.comm-details h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.comm-details p {
  font-size: 12.5px;
  color: #57606f;
  margin-top: 4px;
  line-height: 1.4;
}

.comm-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  border-top: 1px solid #f1f2f6;
  padding-top: 6px;
}

.comm-time {
  font-size: 10px;
  color: var(--slate);
}

.comm-signature {
  font-size: 10px;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 3px;
}

.comm-signature.unsigned {
  color: var(--orange);
  cursor: pointer;
}

/* SCREEN 9: Resumen Mensual */
.month-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.month-nav {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--dark);
}

.month-nav i {
  width: 16px;
  height: 16px;
}

.active-month-label {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}

.resumen-chart-section {
  padding: 16px;
  background-color: var(--white);
  border: 1px solid #f1f2f6;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 16px;
}

.resumen-chart-section h3,
.resumen-metrics-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  align-self: flex-start;
  margin-bottom: 12px;
}

.chart-container {
  width: 160px;
  height: 160px;
  position: relative;
}

.chart-total {
  text-align: center;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
}

.total-label {
  font-size: 11px;
  color: var(--slate);
  text-transform: uppercase;
  font-weight: 600;
}

.total-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

.resumen-metrics-section {
  margin: 0 16px;
}

.metric-row {
  background-color: var(--white);
  border: 1px solid #f1f2f6;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.metric-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dark);
}

.metric-info i {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

/* SCREEN 10: Asistente IA */
.asistente-header {
  height: 56px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  flex-shrink: 0;
}

.asistente-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-avatar i {
  width: 18px;
  height: 18px;
}

.asistente-title h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
}

.asistente-title span {
  font-size: 10px;
  opacity: 0.8;
}

.close-asistente {
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.close-asistente i {
  width: 20px;
  height: 20px;
}

.chat-container-inner {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: #f8f9fc;
  overflow: hidden;
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.4;
  word-wrap: break-word;
}

.message.incoming {
  align-self: flex-start;
}

.message.incoming .msg-bubble {
  background-color: var(--white);
  color: var(--dark);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.message.outgoing {
  align-self: flex-end;
}

.message.outgoing .msg-bubble {
  background-color: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-suggestions {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  overflow-x: auto;
  white-space: nowrap;
  flex-shrink: 0;
  background-color: #f8f9fc;
}

.chat-suggestions::-webkit-scrollbar {
  display: none;
}

.suggestion-btn {
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  border: 1px solid #f1f2f6;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  flex-shrink: 0;
}

.suggestion-btn:hover {
  background-color: var(--primary-glow);
  border-color: var(--primary);
}

.chat-input-bar {
  height: 56px;
  padding: 8px 12px;
  background-color: var(--white);
  border-top: 1px solid #f1f2f6;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.chat-input-bar input {
  flex-grow: 1;
  height: 40px;
  border-radius: 20px;
  border: 1px solid #dcdde1;
  padding: 0 16px;
  font-size: 13.5px;
  outline: none;
}

.chat-input-bar input:focus {
  border-color: var(--primary);
}

.send-msg-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Phone bottom nav bar */
.bottom-nav {
  height: 60px;
  border-top: 1px solid #f1f2f6;
  background-color: var(--white);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-shrink: 0;
  z-index: 95;
}

.nav-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--slate);
  cursor: pointer;
  width: 54px;
}

.nav-item i {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

.nav-item span {
  font-size: 10px;
  font-weight: 500;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active i {
  transform: translateY(-2px);
}

/* Phone AI Floating Bubble Inside App */
.phone-ai-trigger {
  position: absolute;
  bottom: 80px;
  left: 20px;
  right: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(16, 172, 132, 0.3);
  cursor: pointer;
  z-index: 85;
  transition: transform 0.2s;
}

.phone-ai-trigger i {
  width: 20px;
  height: 20px;
}

.phone-ai-trigger:active {
  transform: scale(0.9);
}

/* Popup modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  width: 90%;
  max-width: 350px;
  background-color: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--dark);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f2f6;
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--dark);
  cursor: pointer;
}

.modal-close i {
  width: 18px;
  height: 18px;
}

#new-event-form, #new-comm-form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
}

/* ==========================================
   Web App Layout
   ========================================== */

.app-content {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

body.web-app .app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.web-app .app-topbar {
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--white);
  border-bottom: 1px solid #eef0f4;
  box-shadow: var(--shadow-sm);
  z-index: 100;
}

body.web-app .app-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
}

body.web-app .app-topbar-brand i {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

body.web-app .app-topbar-brand strong {
  color: var(--primary);
  font-weight: 700;
}

body.web-app .app-topbar-screen {
  font-size: 13px;
  color: var(--slate);
  font-weight: 500;
}

body.web-app .app-layout {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

body.web-app .app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
  background: var(--light-bg);
}

body.web-app .app-content {
  flex: 1;
  position: relative;
  min-height: 0;
  width: 100%;
  margin: 0;
  display: block;
  padding: 16px 20px;
  box-sizing: border-box;
  overflow: hidden;
}

body.web-app .screen {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  bottom: 16px;
  width: auto;
  height: auto;
  max-height: none;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid #eef0f4;
  overflow: hidden;
}

body.web-app .screen:not(.active) {
  display: none !important;
}

body.web-app .screen.active {
  display: flex;
  animation: none;
}

body.web-app #screen-bienvenida {
  padding: 40px 28px;
  justify-content: center;
  max-width: 460px;
  width: min(460px, calc(100% - 48px));
  height: fit-content;
  max-height: calc(100dvh - 120px);
  inset: 0;
  margin: auto;
}

body.web-app #screen-onboarding {
  max-width: 560px;
  width: min(560px, calc(100% - 48px));
  height: calc(100% - 8px);
  max-height: calc(100dvh - 120px);
  inset: 0;
  margin: auto;
}

body.web-app #screen-onboarding .scrollable-form {
  max-width: none;
  padding-bottom: 24px;
}

.user-profile {
  cursor: pointer;
}

.user-profile:hover .child-label {
  color: var(--primary);
}

.profile-content {
  padding: 0 16px 24px;
}

.profile-section {
  margin-bottom: 20px;
}

.profile-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.profile-card {
  background: var(--white);
  border: 1px solid #f1f2f6;
  border-radius: var(--border-radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}

.profile-card h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  margin: 4px 0;
}

.profile-card p {
  font-size: 13px;
  color: var(--slate);
  margin: 2px 0;
}

.profile-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--primary);
}

.profile-meta {
  font-size: 12px !important;
  margin-top: 6px !important;
}

.profile-empty {
  font-size: 13px;
  color: var(--slate);
  text-align: center;
  padding: 12px 0;
}

.profile-pending-banner {
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.profile-pending-banner.waiting {
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.2);
  color: var(--primary);
}

.profile-pending-banner.action {
  background: rgba(255, 159, 67, 0.08);
  border: 1px solid rgba(255, 159, 67, 0.25);
}

.profile-pending-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.profile-pending-actions .btn {
  flex: 1;
  min-width: 120px;
  height: 40px;
}

.profile-edit-note {
  font-size: 12px;
  color: var(--slate);
  margin: 0 0 12px;
}

.modal-card-wide {
  max-width: 480px;
}

body.web-app #screen-dashboard,
body.web-app #screen-gastos,
body.web-app #screen-nuevo-gasto,
body.web-app #screen-documentos,
body.web-app #screen-comunicacion,
body.web-app #screen-resumen,
body.web-app #screen-asistente,
body.web-app #screen-calendario,
body.web-app #screen-perfil,
body.web-app #screen-profile-edit {
  border-radius: 16px;
}

body.web-app #screen-profile-edit .scrollable-form {
  max-width: none;
  padding-bottom: 24px;
}

body.web-app #screen-profile-edit .profile-edit-note {
  background: rgba(108, 92, 231, 0.06);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--dark);
  font-size: 13px;
  line-height: 1.5;
}

body.web-app #screen-calendario {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
}

body.web-app #screen-calendario .calendar-controls {
  flex-shrink: 0;
}

body.web-app #screen-calendario .events-list-section {
  flex: 1;
  min-height: 140px;
  overflow-y: auto;
}

body.web-app #screen-perfil .profile-content {
  flex: 1;
  min-height: 0;
}

body.web-app .modal-card {
  max-width: 400px;
  width: calc(100% - 32px);
}

body.web-app .modal-card .form-group input,
body.web-app .modal-card .form-group select {
  height: 40px;
  font-size: 13px;
}

body.web-app #new-event-form,
body.web-app #new-comm-form {
  padding: 14px 16px 16px;
  gap: 12px;
}

.doc-child-bar {
  padding: 0 16px 8px;
  flex-shrink: 0;
}

.doc-child-bar .form-group {
  margin: 0;
}

.comm-child-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 6px;
}

.child-form-block {
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fafbff;
}

.child-form-block .btn-remove-child {
  margin-top: 4px;
}

.form-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

body.web-app .screen-welcome-logo {
  margin-top: 0;
}

body.web-app .welcome-buttons {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.google-signin-container {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 44px;
}

.btn-google-native {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: #4285f4;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.btn-google-native:hover {
  background: #357ae8;
}

.btn-google-native:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-google-native.hidden {
  display: none;
}

.welcome-login-note {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 8px;
  line-height: 1.4;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.drive-connect-body {
  padding: 24px 20px 40px;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

.drive-connect-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c5ce7;
}

.drive-connect-icon svg {
  width: 32px;
  height: 32px;
}

.drive-connect-body h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.drive-connect-body p {
  color: #4b5563;
  line-height: 1.5;
  margin: 0 0 12px;
}

.drive-connect-note {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 24px !important;
}

body.web-app .app-sidebar.bottom-nav {
  width: 220px;
  flex-shrink: 0;
  height: auto;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 4px;
  padding: 16px 12px;
  border-top: none;
  border-right: 1px solid #eef0f4;
  background: var(--white);
}

body.web-app .app-sidebar .nav-item {
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  transition: background 0.2s;
}

body.web-app .app-sidebar .nav-item:hover {
  background: #f4f5f9;
}

body.web-app .app-sidebar .nav-item.active {
  background: var(--primary-glow);
}

body.web-app .app-sidebar .nav-item span {
  font-size: 14px;
}

body.web-app .phone-ai-trigger {
  bottom: 24px;
  left: 24px;
  right: auto;
}

@media (max-width: 768px) {
  body.web-app .app-layout {
    flex-direction: column;
  }

  body.web-app .app-sidebar.bottom-nav {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    height: 60px;
    border-right: none;
    border-top: 1px solid #eef0f4;
    order: 2;
  }

  body.web-app .app-sidebar .nav-item {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: auto;
    padding: 8px;
    border-radius: 0;
  }

  body.web-app .app-sidebar .nav-item span {
    font-size: 10px;
  }

  body.web-app .app-main {
    order: 1;
  }

  body.web-app .app-content {
    padding: 16px;
    max-width: 100%;
  }

  body.web-app #screen-bienvenida,
  body.web-app #screen-onboarding {
    max-width: 100%;
    border-radius: 16px;
    max-height: calc(100dvh - 100px);
  }

  body.web-app .screen {
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-height: calc(100% - 32px);
    border-radius: 16px;
  }
}

