:root {
  --color-bg: #f5f5f3;
  --color-card: #ffffff;
  --color-primary: #41a535;
  --color-primary-dark: #41a535;
  --color-text: #222222;
  --color-muted: #4b5563;
  --color-muted-soft: #9ca3af;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.16);
  --radius-lg: 24px;
  --transition-fast: 180ms ease-out;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* background: url("/assets/recursos/paper.png")
    repeat; */
  /* background-size: 391px 270px; */
  display: flex;
  justify-content: center;
  /* padding: 24px 12px; */
  color: var(--color-text);
}

.page {
  width: 100%;
  max-width: 414px;
  background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url(/assets/recursos/paper.png);
  background-size: 100% 100%;
  position:relative;
}

/* Screens visibility */
.screen {
  display: none;
}
.screen.is-visible {
  display: block;
}

/* Welcome */
.screen--welcome {
  padding: 0px 18px 40px;
  margin-top: -94px;
}

.welcome-header {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  margin-top: 0px;
}

.welcome-logo-circle {
  width: 246px;
  height: 246px;
  border-radius: 999px;
  overflow: hidden;
  background-color: White;
  align-content: center;
  box-shadow: 0px 0px 20px 12px rgb(0 0 0 / 32%);
  margin-top: -30px;
}

.welcome-logo-circle__img {
  width: 60%;
  height: 60%;
  display: block;
  align-content: center;
  margin: 40% 20% 0% 20%;
}

.welcome-body {
  text-align: center;
}

.toolbox-title {
  /* display: inline-flex; */
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 24px;
}

.toolbox-title--compact {
  transform: scale(0.9);
  transform-origin: left center;
}

.toolbox-title__block {
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  display: inline-block;
}

.toolbox-title__block--primary {
  /* background: var(--color-primary); */
  color: #ffffff;
  width: auto;
  height: auto;
}

.toolbox-title__block--outlined {
  border: 2px solid #111827;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
}

.toolbox-title__text {
  font-size: 18px;
  margin-bottom: 3px;
}

.toolbox-title__year {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-left: 4px;
}

.welcome-text {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--color-muted);
}

.welcome-text--highlight {
  margin-top: 14px;
  color: #111827;
}

.welcome-cta {
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.36);
}

/* Tabs screen */
.screen--tabs {
  padding: 26px 14px 24px;
}

.tabs-header {
  display: block;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tabs-header__title .toolbox-title {
  margin-bottom: 0;
}

.tabs-header__logo {
    text-align: right;
}

.tabs-header__title {

}

.logo-mini {
  width: 96px;
  height: auto;
}

.logo-caja {
    width: 80%;
    height: auto;
    margin: 0 10%;
}

/* Tabs nav */
.tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 10px;
}

.tab {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.tab-inner {
  margin: 0 3px;
  padding: 8px 4px 6px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f3f4f6 100%);
  box-shadow: 0 6px 10px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab__icon {
  width: 36px;
  height: auto;
}

.tab.is-active .tab-inner {
  background: var(--color-primary);
}

.tab.is-active .tab__icon {
  filter: brightness(11) saturate(0);
}

/* Panel shell */
.tabs-panel-shell {
  padding-top: 6px;
}

.tabs-panel-inner {
  /*background: #f3f4f6;
   border-radius: 0 0 22px 22px; */
  padding: 18px 12px 16px;
  /* box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12); */
}

/* Tabs content card */
.tabs-content {
  background: var(--color-card);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 18px 16px 20px;
  /* max-height: calc(100vh - 260px); */
  overflow-y: auto;
}

/* Tab panels */
.tab-panel {
  display: none;
}
.tab-panel.is-active {
  display: block;
}

/* Section headers */
.section-header {
  margin-bottom: 10px;
}
.section-header--with-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header__line {
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: var(--color-primary);
}
.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.section-title__accent {
  color: var(--color-primary);
}
.section-text {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--color-muted);
}
.section-text--light {
  color: #e5f9ee;
}

/* Media card */
.media-card {
  margin-top: 18px;
  border-radius: 22px;
  background: #f3f4f6;
  padding: 16px 14px 18px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.15);
}
.media-card__inner {
  border-radius: 18px;
  background: #e5e7eb;
  padding: 26px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.media-card__play {
  width: 84px;
  height: 52px;
  border-radius: 16px;
  border: 2px solid #cbd5e1;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.media-card__play-icon {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 18px solid var(--color-primary);
}

/* CEO */
.ceo-avatar {
    margin: 21px 7px;
    text-align: center;
}
.ceo-avatar__circle {
    width: 120px;
    height: 120px;
    /* border-radius: 999px; */
    margin: 0 auto 6px;
    /* border: 3px solid var(--color-primary); */
    display: flex;
    align-items: center;
    justify-content: center;
}
.ceo-avatar__icon {
  font-size: 34px;
}
.ceo-avatar__name {
  font-size: 14px;
  font-weight: 600;
}
.letter {
  padding: 14px 12px;
  border-radius: 14px;
  background: #f9fafb;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

/* Form */
.goals-form {
  margin-top: 4px;
}
.field-group {
  margin-bottom: 12px;
}
.field-group--inline {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 6px;
}
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.field-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 52px;
  background: #ffffff;
}
.field-input--textarea {
  line-height: 1.4;
}
.field-input--white {
  background: #ffffff;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* Notebook */
.notebook {
    margin: 18px -16px 18px;
    /* border-radius: 22px; */
    overflow: hidden;
    /* background: linear-gradient(to bottom, #41a535, #2E7626); */
    color: #ffffff;
}
.notebook__spiral {
  width: 100%;
  display: block;
  margin-bottom: -20px;
  margin-top: 6px;
  padding: 3px 20px;
}
.notebook__body {
  border-radius: 22px 22px 0px 0px;
  padding: 30px 16px 18px;
  background: linear-gradient(to bottom, #41a535, #2E7626);
}
.notebook__title {
  margin: 0 0 10px;
  font-size: 16px;
}

/* Plan route */
.plan-route {
  margin: 10px 0 18px;
}

/* Reward block */
.reward-block {
  margin: 0 -16px;
  padding: 18px 16px 18px;
  background: linear-gradient(to bottom, #41a535, #2E7626);
  color: #ffffff;
  border-radius: 22px 22px 0px 0px;
}
.reward-block-footer {
  margin: 0 -16px;
  padding: 18px 16px 18px;
  background: #333333;
  color: #ffffff;
}
.reward-block__title {
  margin: 0 0 8px;
  font-size: 16px;
}
.reward-block__footer {
  margin-top: 14px;
  text-align: center;
}

.closing-text {
  margin: 0 0 6px;
  font-size: 14px;
}
.closing-text--highlight {
  font-weight: 700;
  font-size: 16px;
}
.logo-mini--inverse {
    padding: 25px 0px 0px 0px;
    /* filter: invert(1) grayscale(1) brightness(4); */
}

/* Feed */
.feed-card {
  margin: 10px 0 12px;
  border-radius: 14px;
  border: 1px dashed #d1d5db;
  padding: 14px 12px;
  background: #f9fafb;
}
.feed-card__placeholder {
  font-size: 13px;
  color: var(--color-muted-soft);
}
.feed-item + .feed-item {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e5e7eb;
}
.feed-item__date {
  font-size: 11px;
  color: var(--color-muted-soft);
  margin: 0 0 2px;
}
.feed-item__title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #111827;
}
.feed-item__text {
  font-size: 13px;
  margin: 0;
  color: #4b5563;
}

/* Form actions */
.form-actions {
  margin-top: 16px;
  text-align: center;
}
