/* ──────────────────────────────────────
   MM Agency · Portal — Shared styles
   ────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --navy:       #0D1B3E;
  --navy-mid:   #162444;
  --navy-deep:  #0a1428;
  --teal:       #0E9E8E;
  --teal-lt:    #14b5a4;
  --teal-dk:    #0a7a6d;
  --white:      #FFFFFF;
  --slate-300:  #CBD5E1;
  --slate-400:  #94A3B8;
  --slate-500:  #64748B;
  --slate-700:  #334155;
  --danger:     #f87171;
}

html, body { height: 100%; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--white);
  background: var(--navy-deep);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .display { font-family: 'Outfit', sans-serif; line-height: 1.1; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ──────────────────────────────────────
   Atmósfera
   ────────────────────────────────────── */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(14, 158, 142, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(20, 181, 164, 0.12), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 700px at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(900px 700px at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}

.blob {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
.blob--teal     { background: radial-gradient(circle, var(--teal) 0%, transparent 70%);    top: -120px; right: -120px; }
.blob--teal-2   { background: radial-gradient(circle, var(--teal-lt) 0%, transparent 70%); bottom: -180px; left: -160px; animation-delay: -7s; opacity: 0.4; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -30px) scale(1.08); }
}

/* ──────────────────────────────────────
   Header
   ────────────────────────────────────── */
header {
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.brand img { width: 28px; height: 28px; }
.brand span { color: var(--slate-300); font-weight: 500; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate-300);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(8px);
}
.status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-lt);
  box-shadow: 0 0 12px var(--teal-lt);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

/* ──────────────────────────────────────
   Wordmark MM AGENCY
   ────────────────────────────────────── */
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0 auto 40px;
  position: relative;
  padding: 0 8px;
  width: fit-content;
}
.wordmark::before {
  content: "";
  position: absolute;
  inset: -40px -60px;
  background: radial-gradient(ellipse at center, rgba(14, 158, 142, 0.28) 0%, transparent 65%);
  filter: blur(28px);
  z-index: -1;
}
.wordmark__mm {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 4.5rem;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, var(--teal-lt) 0%, var(--teal) 50%, var(--navy-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 16px rgba(14, 158, 142, 0.25));
}
.wordmark__agency {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.42em;
  color: var(--slate-300);
  padding-left: 0.42em;
  margin-top: -2px;
}

/* ──────────────────────────────────────
   Typography accents
   ────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-lt);
  margin-bottom: 18px;
}
.lede {
  font-size: 1.1rem;
  color: var(--slate-300);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}
.accent {
  background: linear-gradient(135deg, var(--teal-lt) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ──────────────────────────────────────
   Hero / centered card (landing, login, check-email)
   ────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.card-center {
  max-width: 640px;
  width: 100%;
  text-align: center;
  padding: 8px;
}
.card-center h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #fff 0%, #cfd8e7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card-center .lede { margin-bottom: 40px; }

/* ──────────────────────────────────────
   Pills (preview de secciones)
   ────────────────────────────────────── */
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px 0 24px;
}
.pill {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate-300);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(14, 158, 142, 0.25);
  background: rgba(14, 158, 142, 0.06);
  transition: all 0.25s ease;
}

/* ──────────────────────────────────────
   Forms
   ────────────────────────────────────── */
.login-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 28px auto 0;
  padding: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.login-form:focus-within {
  border-color: rgba(14, 158, 142, 0.5);
  background: rgba(14, 158, 142, 0.06);
}
.login-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  min-width: 0;
}
.login-form input[type="email"]::placeholder { color: var(--slate-400); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--teal-lt) 0%, var(--teal) 100%);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(14, 158, 142, 0.25);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(14, 158, 142, 0.4);
}
.btn--primary:active { transform: translateY(0); }

.helper-text {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-top: 16px;
}

.error {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--danger);
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 24px;
}

/* ──────────────────────────────────────
   Footnote / footer
   ────────────────────────────────────── */
.footnote {
  font-size: 0.85rem;
  color: var(--slate-500);
}
.footnote a {
  color: var(--slate-300);
  border-bottom: 1px dotted var(--slate-500);
  transition: color 0.2s ease;
}
.footnote a:hover { color: var(--teal-lt); border-bottom-color: var(--teal-lt); }

footer {
  padding: 24px 32px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--slate-500);
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ──────────────────────────────────────
   Portal (authenticated dashboard)
   ────────────────────────────────────── */
.portal {
  flex: 1;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  padding: 32px 32px 48px;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.portal__welcome { text-align: left; max-width: 720px; padding: 24px 0 16px; }
.portal__welcome h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #fff 0%, #cfd8e7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.portal__welcome .lede { margin: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  width: 100%;
}
.card {
  position: relative;
  padding: 26px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  transition: all 0.2s ease;
}
.card:hover {
  border-color: rgba(14, 158, 142, 0.35);
  background: rgba(14, 158, 142, 0.04);
  transform: translateY(-2px);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(14, 158, 142, 0.12);
  border: 1px solid rgba(14, 158, 142, 0.22);
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.card p {
  font-size: 0.92rem;
  color: var(--slate-300);
  line-height: 1.55;
  margin-bottom: 18px;
}
.card__cta {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-400);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}
.card--soon .card__cta { color: var(--slate-400); }

.logout-form { display: inline; }
.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--slate-300);
  padding: 8px 14px 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-family: inherit;
  transition: all 0.2s ease;
}
.logout-btn:hover {
  border-color: rgba(248, 113, 113, 0.35);
  color: var(--white);
}
.logout-email { color: var(--slate-300); font-weight: 500; }
.logout-action {
  font-size: 0.78rem;
  color: var(--slate-500);
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.logout-btn:hover .logout-action { color: var(--danger); }

/* ──────────────────────────────────────
   Card variants for the dashboard
   ────────────────────────────────────── */
.card--active { display: block; cursor: pointer; }
.card--active:hover { box-shadow: 0 12px 32px rgba(14,158,142,0.18); }
.card--active .card__cta {
  background: rgba(14, 158, 142, 0.14);
  border: 1px solid rgba(14, 158, 142, 0.28);
  color: var(--teal-lt);
}

/* ──────────────────────────────────────
   Onboarding form (/onboarding)
   ────────────────────────────────────── */
.ob {
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 28px;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 32px 64px;
}
.ob__back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--slate-400);
  padding: 6px 0;
  transition: color 0.2s ease;
}
.ob__back:hover { color: var(--teal-lt); }

.ob__hero { text-align: left; max-width: 720px; padding: 12px 0 4px; }
.ob__hero h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #fff 0%, #cfd8e7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ob__hero .lede { margin: 0 0 22px; max-width: 600px; font-size: 1rem; }

.ob__progress { max-width: 460px; }
.ob__progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.ob__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-lt), var(--teal));
  box-shadow: 0 0 12px rgba(14,158,142,0.4);
  transition: width 0.4s cubic-bezier(.16,1,.3,1);
}
.ob__progress-label {
  font-size: 0.82rem;
  color: var(--slate-400);
  margin-top: 8px;
}

.ob__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ob-section {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ob-section[open] { border-color: rgba(14, 158, 142, 0.22); }

.ob-section__head {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.ob-section__head::-webkit-details-marker { display: none; }
.ob-section__title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--white);
}
.ob-section__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(14, 158, 142, 0.12);
  border: 1px solid rgba(14, 158, 142, 0.28);
  color: var(--teal-lt);
}
.ob-section__meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--slate-400);
}
.ob-chevron {
  display: inline-block;
  font-size: 1.1rem;
  color: var(--slate-500);
  transition: transform 0.2s ease;
}
.ob-section[open] .ob-chevron { transform: rotate(180deg); }

.ob-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--slate-300);
}
.ob-pill--done {
  background: rgba(14, 158, 142, 0.12);
  border-color: rgba(14, 158, 142, 0.3);
  color: var(--teal-lt);
}

.ob-section__subtitle {
  padding: 0 24px 4px;
  font-size: 0.88rem;
  color: var(--slate-400);
  margin: -4px 0 0;
}

.ob-fields {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 14px 24px 24px;
}

/* ── Field ── */
.ob-field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.ob-field--readonly input { opacity: 0.6; cursor: not-allowed; }

.ob-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.005em;
}
.ob-required {
  display: inline-block;
  margin-left: 4px;
  color: var(--teal-lt);
  font-weight: 700;
}
.ob-hint {
  font-size: 0.82rem;
  color: var(--slate-500);
  line-height: 1.5;
  margin: 2px 0 0;
}

.ob-field input[type="text"],
.ob-field input[type="email"],
.ob-field textarea {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  resize: vertical;
}
.ob-field textarea { min-height: 92px; line-height: 1.5; }
.ob-field input::placeholder,
.ob-field textarea::placeholder { color: var(--slate-500); }
.ob-field input:focus,
.ob-field textarea:focus {
  border-color: rgba(14, 158, 142, 0.55);
  background: rgba(14, 158, 142, 0.04);
  box-shadow: 0 0 0 3px rgba(14, 158, 142, 0.12);
}

.ob-field__status {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: transparent;
  transition: color 0.2s ease;
}
.ob-field--saving .ob-field__status::after { content: "Guardando…"; color: var(--slate-400); }
.ob-field--saved  .ob-field__status::after { content: "Guardado ✓"; color: var(--teal-lt); }
.ob-field--error  .ob-field__status::after { content: "Error"; color: var(--danger); }
.ob-field--saved input,
.ob-field--saved textarea { border-color: rgba(14,158,142,0.35); }
.ob-field--error input,
.ob-field--error textarea { border-color: rgba(248,113,113,0.45); }

/* ── Radios (singleSelect) ── */
.ob-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ob-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  color: var(--slate-300);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ob-radio input[type="radio"] { accent-color: var(--teal-lt); }
.ob-radio:hover { border-color: rgba(14, 158, 142, 0.35); color: var(--white); }
.ob-radio:has(input:checked) {
  border-color: rgba(14, 158, 142, 0.6);
  background: rgba(14, 158, 142, 0.1);
  color: var(--white);
}
.ob-radio--disabled { opacity: 0.4; cursor: not-allowed; }
.ob-radio--disabled:hover { border-color: rgba(255,255,255,0.08); color: var(--slate-300); }

/* ── Checkboxes (multipleSelects) ── */
.ob-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}
.ob-checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  color: var(--slate-300);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ob-checkbox input[type="checkbox"] { accent-color: var(--teal-lt); margin-top: 3px; flex-shrink: 0; }
.ob-checkbox:hover { border-color: rgba(14, 158, 142, 0.35); color: var(--white); }
.ob-checkbox:has(input:checked) {
  border-color: rgba(14, 158, 142, 0.55);
  background: rgba(14, 158, 142, 0.08);
  color: var(--white);
}
.ob-checkbox--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.ob-checkbox--disabled:hover { border-color: rgba(255,255,255,0.08); color: var(--slate-300); }

/* ── Toast ── */
.ob-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
  max-width: 360px;
}
.ob-toast--show { opacity: 1; transform: translateY(0); }
.ob-toast--error {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(58, 26, 26, 0.95);
}

.btn--ghost {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--slate-300);
}
.btn--ghost:hover { border-color: rgba(14, 158, 142, 0.4); color: var(--white); }

/* ──────────────────────────────────────
   Estrategia (F3)
   ────────────────────────────────────── */
.est {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 40px 80px;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.est__hero { margin-bottom: 32px; }
.est__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.est__hero h1 { font-size: 2rem; margin: 6px 0 0; }

.est-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-top: 12px;
}
.est-badge--pending {
  background: rgba(14, 158, 142, 0.12);
  border: 1px solid rgba(14, 158, 142, 0.3);
  color: var(--teal-lt);
}
.est-badge--aprobada {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.est-banner {
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.est-banner--ok {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

.est__body {}
.est__content {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 32px;
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--slate-300);
}
.est__content h2 {
  font-size: 1.25rem;
  color: var(--white);
  margin: 24px 0 12px;
}
.est__content h2:first-child { margin-top: 0; }
.est__content h3 {
  font-size: 1.05rem;
  color: var(--teal-lt);
  margin: 20px 0 8px;
}
.est__content p { margin-bottom: 10px; }
.est__content p:last-child { margin-bottom: 0; }
.est__content strong { color: var(--white); font-weight: 600; }
.est__content hr { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 20px 0; }
.est__content ul { padding-left: 20px; margin-bottom: 10px; }
.est__content li { margin-bottom: 6px; }

.est__actions {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 28px 32px;
}
.est__actions-hint {
  font-size: 1rem;
  color: var(--slate-400);
  margin-bottom: 18px;
}
.est__actions-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.est__feedback-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.est__feedback-txt {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
}
.est__feedback-txt:focus {
  outline: none;
  border-color: rgba(14, 158, 142, 0.5);
  box-shadow: 0 0 0 3px rgba(14, 158, 142, 0.12);
}
.est__feedback-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.est__feedback-status {
  font-size: 0.9rem;
  padding: 10px 0 0;
}
.est__feedback-status--ok { color: #4ade80; }
.est__feedback-status--err { color: var(--danger); }

.est__approved {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  color: #4ade80;
  font-size: 0.97rem;
  font-weight: 500;
}

.est__empty {
  text-align: center;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.est__empty-icon { font-size: 3rem; }
.est__empty h2 { font-size: 1.5rem; color: var(--white); }
.est__empty p { color: var(--slate-400); max-width: 480px; }

/* ──────────────────────────────────────
   Responsive
   ────────────────────────────────────── */
@media (max-width: 600px) {
  header { padding: 20px; }
  .brand { font-size: 0.95rem; }
  .brand span { display: none; }
  .wordmark { margin-bottom: 32px; }
  .wordmark__mm { font-size: 3.6rem; }
  .wordmark__agency { font-size: 0.9rem; letter-spacing: 0.38em; }
  .lede { font-size: 1rem; }
  .login-form { flex-direction: column; padding: 8px; }
  .login-form input[type="email"] { padding: 14px 12px; }
  .btn { width: 100%; padding: 14px 22px; }
  .portal { padding: 16px 20px 40px; }
  .logout-email { display: none; }
  .logout-action { padding-left: 0; border-left: none; }

  .ob { padding: 8px 16px 48px; }
  .ob__hero h1 { font-size: 1.6rem; }
  .ob-section__head { padding: 16px 18px; }
  .ob-fields { padding: 12px 18px 22px; }
  .ob-section__subtitle { padding: 0 18px 4px; }
  .ob-section__title { font-size: 1rem; gap: 10px; }
  .ob-section__letter { width: 26px; height: 26px; font-size: 0.85rem; }
  .ob-checkboxes { grid-template-columns: 1fr; }
  .ob-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .est { padding: 8px 16px 48px; }
  .est__hero h1 { font-size: 1.6rem; }
  .est__actions-btns { flex-direction: column; }
  .est__actions-btns .btn { width: 100%; }
}

/* ──────────────────────────────────────
   F4 — Mi contenido
   ────────────────────────────────────── */
.cont { max-width: 760px; width: 100%; margin: 0 auto; padding: 2rem 1.25rem 4rem; flex: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; }
.cont__intro { margin: 1rem 0 1.5rem; }
.cont__list { display: flex; flex-direction: column; gap: 1.5rem; }

.pieza { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 1rem; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.pieza__video { width: 100%; border-radius: 12px; background: #000; aspect-ratio: 16/9; display: block; }
.pieza__video--empty { display: flex; align-items: center; justify-content: center; color: var(--slate-400); background: rgba(255,255,255,0.03); font-size: .9rem; border: 1px solid rgba(255,255,255,0.06); }
.pieza__head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .8rem 0; }
.pieza__tipo { font-weight: 600; color: var(--white); }
.pieza__fecha { color: var(--slate-400); font-size: .85rem; }
.pieza__badge { margin-left: auto; font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }
.pieza__badge.is-pendiente { background: rgba(255, 200, 60, 0.12); border: 1px solid rgba(255, 200, 60, 0.3); color: #f5c842; }
.pieza__badge.is-cambios   { background: rgba(251, 146, 60, 0.12); border: 1px solid rgba(251, 146, 60, 0.3); color: #fb923c; }
.pieza__badge.is-aprobado  { background: rgba(34, 197, 94, 0.08);  border: 1px solid rgba(34, 197, 94, 0.25); color: #4ade80; }
.pieza__badge.is-publicado { background: rgba(96, 165, 250, 0.1);  border: 1px solid rgba(96, 165, 250, 0.3); color: #60a5fa; }
.pieza__badge.is-procesando { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: var(--slate-400); }

.pieza__tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .5rem; }
.pieza__tab { border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: var(--slate-300); border-radius: 999px; padding: .25rem .7rem; font: inherit; font-size: .8rem; cursor: pointer; transition: all .15s ease; }
.pieza__tab:hover { border-color: rgba(14, 158, 142, 0.4); color: var(--white); }
.pieza__tab.is-active { background: var(--teal); color: var(--white); border-color: transparent; }
.pieza__copy { display: none; white-space: pre-wrap; font-family: inherit; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: .8rem; margin: 0; font-size: .9rem; color: var(--slate-300); }
.pieza__copy.is-active { display: block; }
.pieza__transcript { margin-top: .6rem; font-size: .9rem; color: var(--slate-300); }
.pieza__transcript summary { cursor: pointer; color: var(--teal-lt); }
.pieza__transcript p { margin-top: .5rem; }
.pieza__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.pieza__feedback { flex-basis: 100%; display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.pieza__feedback[hidden] { display: none !important; }
.pieza__feedback textarea { width: 100%; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); padding: .6rem; font: inherit; color: var(--white); resize: vertical; }
.pieza__feedback textarea:focus { outline: none; border-color: rgba(14, 158, 142, 0.5); box-shadow: 0 0 0 3px rgba(14, 158, 142, 0.12); }
.pieza__nocopy { color: var(--slate-400); font-size: .9rem; margin: .5rem 0; }
.empty { text-align: center; color: var(--slate-400); padding: 3rem 1rem; }

.banner { padding: 14px 20px; border-radius: 12px; font-size: .95rem; font-weight: 500; margin-bottom: 1rem; }
.banner--ok { background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.25); color: #4ade80; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy-mid); border: 1px solid rgba(255,255,255,0.12); color: var(--white); padding: .7rem 1.2rem; border-radius: 10px; font-size: .9rem; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
