/* Dashboard layout: fixed sidebar + main content */

/* ── Consistent background (one surface) ─────────────────────────────── */
.page-dash .empresa-main-content:not(.empresa-main-content--locked) {
  background: var(--color-off-white, #fafaf7);
}

/* Dashboard: no header — sidebar handles all navigation */
.page-dash {
  padding-top: 0 !important;
}
.page-dash .site-header {
  display: none !important;
}

.dash-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.dash-layout {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: var(--color-off-white, #fafaf7);
}

/* ── Professional dashboard sidebar (dark) ───────────────────────────── */
/* Primary brand color — same as colors.css */
.page-dash {
  --dash-primary: #073f93;
}

.dash-sidebar {
  --dash-sidebar-bg: #073f93;
  --dash-sidebar-border: rgba(255, 255, 255, 0.06);
  --dash-sidebar-text: rgba(255, 255, 255, 0.85);
  --dash-sidebar-text-muted: rgba(255, 255, 255, 0.5);
  --dash-sidebar-hover-bg: rgba(255, 255, 255, 0.06);
  --dash-sidebar-active-bg: rgba(255, 255, 255, 0.1);

  flex-shrink: 0;
  width: 260px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--dash-sidebar-bg);
  border-right: 1px solid var(--dash-sidebar-border);
}

.dash-sidebar__header {
  flex-shrink: 0;
  padding: 1.25rem 1rem 1rem 1.25rem;
  border-bottom: 1px solid var(--dash-sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dash-sidebar__header-text {
  min-width: 0;
  flex: 1;
}

.dash-sidebar__brand {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.3;
  text-decoration: none;
}
.dash-sidebar__brand:hover {
  color: rgba(255, 255, 255, 0.8);
}

.dash-sidebar__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dash-sidebar-text-muted);
  margin-top: 0.2rem;
}

/* Avatar / profile button */
.dash-sidebar__avatar {
  flex-shrink: 0;
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  outline: none;
}

.dash-sidebar__avatar:hover,
.dash-sidebar__avatar:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.dash-sidebar__avatar:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* Tooltip */
.dash-sidebar__avatar-tooltip {
  pointer-events: none;
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform: translateY(-50%) translateX(-4px);
  z-index: 100;
}

.dash-sidebar__avatar-tooltip::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: rgba(255, 255, 255, 0.18);
}

.dash-sidebar__avatar:hover .dash-sidebar__avatar-tooltip,
.dash-sidebar__avatar:focus-visible .dash-sidebar__avatar-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.dash-sidebar__nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem 0.75rem 1.25rem;
}

.dash-sidebar__group {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dash-sidebar-text-muted);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}

.dash-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem 2rem 3rem;
  background: var(--color-off-white, #fafaf7);
}

/* Dark text for labels, hints, and file names in dash panels */
.page-dash .formulario-section__label,
.page-dash .formulario-section__toggle-label,
.page-dash .formulario-section__hint,
.page-dash .formulario-section__logo-hint,
.page-dash .formulario-section__file-name {
  color: #0f172a;
}

/* Remove the excessive section padding and min-height on the dash */
.page-dash .formulario-section.formulario-section--business {
  background: transparent;
  min-height: 0;
  padding: 0;
}

/* Premium panel header: title + intro above the card */
.page-dash .formulario-section__title {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  text-align: left;
  margin: 0 0 0.5rem;
}

.page-dash .empresa-panel-intro {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #475569;
  text-align: left;
  margin: 0 0 1.5rem;
  max-width: 52ch;
}

/* Panel cards (Correo, FAQs, API, Branding): same blue glass as form hero in empresa */
.page-dash .empresa-panel-block__card {
  position: relative;
  overflow: visible;
  background: rgba(7, 63, 147, 0.22);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  box-shadow:
    0 8px 32px rgba(7, 63, 147, 0.25),
    0 2px 12px rgba(0, 0, 0, 0.08);
}

.page-dash .empresa-panel-block__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.28) 0%, rgba(180, 210, 255, 0.08) 40%, transparent 100%);
  opacity: 0.95;
}

.page-dash .empresa-panel-block__card::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: calc(24px - 1px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ── Sidebar nav items ───────────────────────────────────────────────── */
.dash-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dash-nav__item {
  margin: 0 0 2px;
}

.dash-nav__item:last-child {
  margin-bottom: 0;
}

.dash-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dash-sidebar-text);
  text-decoration: none;
  border-radius: 8px;
  border-left: 3px solid transparent;
  margin-left: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dash-nav__link:hover {
  background: var(--dash-sidebar-hover-bg);
  color: #fff;
}

.dash-nav__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.dash-nav__link.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-left: 3px solid #fff !important;
  font-weight: 600;
}

.dash-nav__link.is-active:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.dash-nav__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.dash-nav__link:not(.is-active) .dash-nav__icon {
  opacity: 0.65;
}

.dash-nav__link:hover .dash-nav__icon,
.dash-nav__link.is-active .dash-nav__icon {
  opacity: 1;
}

.dash-nav__text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-panel {
  display: none;
  animation: dash-panel-in 0.2s ease;
}

.dash-panel.is-active {
  display: block;
}

@keyframes dash-panel-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* On dash mobile: hide the site nav links (hamburger opens the sidebar instead) */
@media (max-width: 900px) {
  .page-dash .nav-main { display: none !important; }
}

/* ── Persistent main-area topbar ────────────────────────────────────── */
.dash-main-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 56px;
  width: 100%;
  padding: 0 1.5rem;
  background: #fff;
  border-bottom: 1px solid rgba(10, 23, 48, 0.08);
  z-index: 100;
}
.dash-main-topbar__nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  margin-left: 0.5rem;
}
.dash-main-topbar__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.dash-main-topbar__nav a:hover {
  background: rgba(7, 63, 147, 0.07);
  color: #073f93;
}
.dash-main-topbar__spacer {
  flex: 1;
  min-width: 1rem;
}
/* Avatar in the light topbar uses the brand colour instead of white */
.dash-main-topbar .dash-sidebar__avatar {
  background: rgba(7, 63, 147, 0.08);
  border-color: rgba(7, 63, 147, 0.2);
  color: #073f93;
}
.dash-main-topbar .dash-sidebar__avatar:hover,
.dash-main-topbar .dash-sidebar__avatar:focus-visible {
  background: rgba(7, 63, 147, 0.15);
  border-color: rgba(7, 63, 147, 0.4);
  color: #073f93;
}
.dash-main-topbar .dash-sidebar__avatar-tooltip {
  top: calc(100% + 10px);
  left: auto;
  right: 0;
  transform: none;
  white-space: nowrap;
}
.dash-main-topbar .dash-sidebar__avatar-tooltip::before {
  top: -6px;
  left: auto;
  right: 10px;
  border-bottom-color: rgba(255,255,255,0.95);
  border-top-color: transparent;
}
/* Hamburger hidden on desktop, shown on mobile */
.dash-menu-btn { display: none; }
.dash-main-topbar .dash-menu-btn {
  margin-right: 0.5rem;
  background: rgba(7, 63, 147, 0.08);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.dash-main-topbar .dash-menu-btn .dash-menu-btn__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #073f93;
  border-radius: 2px;
}

/* ── Backdrop overlay ───────────────────────────────────────────────── */
.dash-sidebar-backdrop {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 199;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.dash-sidebar-backdrop.is-visible { display: block; }

/* ── Mobile: sidebar as off-canvas drawer ───────────────────────────── */
@media (max-width: 900px) {
  .dash-layout {
    flex-direction: row;
    min-height: 0;
    overflow: visible;
  }
  .dash-shell {
    height: 100dvh;
    height: 100vh;
  }

  .dash-main-topbar .dash-menu-btn {
    display: flex;
  }
  .dash-main-topbar__nav {
    display: none;
  }

  .dash-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    z-index: 200;
    width: 280px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--dash-sidebar-border);
  }

  .dash-sidebar.is-open {
    transform: translateX(0);
  }

  /* Keep avatar tooltip direction sensible on mobile */
  .dash-sidebar__avatar-tooltip {
    left: auto;
    right: calc(100% + 10px);
    transform: translateY(-50%) translateX(4px);
  }
  .dash-sidebar__avatar-tooltip::before {
    right: auto;
    left: 100%;
    border-right-color: transparent;
    border-left-color: rgba(255, 255, 255, 0.18);
  }
  .dash-sidebar__avatar:hover .dash-sidebar__avatar-tooltip,
  .dash-sidebar__avatar:focus-visible .dash-sidebar__avatar-tooltip {
    transform: translateY(-50%) translateX(0);
  }

  .dash-main {
    padding: 1rem;
    height: auto;
    min-height: 0;
    overflow-y: visible;
  }
}

/* ── Avatar active state (profile panel open) ─────────────────────────── */
.dash-sidebar__avatar.is-active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

/* ── Company profile panel ────────────────────────────────────────────── */
.dash-perfil {
  max-width: 680px;
  margin: 0 auto;
}

.dash-perfil__title {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.dash-perfil__subtitle {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 2rem;
  max-width: 52ch;
}

.dash-perfil__section {
  padding: 0 0 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(10, 23, 48, 0.08);
}

.dash-perfil__section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dash-perfil__section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #073f93;
  margin: 0 0 1.25rem;
}

.dash-perfil__section .formulario-section__field {
  margin-bottom: 1rem;
}

.dash-perfil__section .formulario-section__field:last-child {
  margin-bottom: 0;
}

.dash-perfil__section .formulario-section__label {
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  display: block;
}

.dash-perfil__section .formulario-section__input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  border: 1px solid rgba(10, 23, 48, 0.15);
  border-radius: 10px;
  background: #fafaf7;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.dash-perfil__section .formulario-section__input:focus {
  border-color: #073f93;
  box-shadow: 0 0 0 3px rgba(7, 63, 147, 0.1);
}

.dash-perfil__section .formulario-section__input::placeholder {
  color: #94a3b8;
}

.dash-perfil__section .formulario-section__hint {
  display: inline;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #64748b;
  margin-left: 0.15rem;
}

.dash-perfil__section .formulario-section__required {
  color: #e11d48;
}

.dash-perfil__cuenta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem 1.5rem;
}
.dash-perfil__cuenta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.dash-perfil__cuenta-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.dash-perfil__cuenta-value {
  font-size: 1rem;
  color: #0f172a;
}

.dash-perfil .empresa-panel-block__guardar {
  margin-top: 2rem;
}

.dash-perfil__signout {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: 1px solid rgba(10, 23, 48, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.dash-perfil__signout:hover {
  color: #0f172a;
  border-color: rgba(10, 23, 48, 0.25);
  background: rgba(10, 23, 48, 0.04);
}
.dash-perfil__signout:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.empresa-panel-block__guardar--secondary {
  background: transparent;
  color: var(--color-primary, #073f93);
  border: 2px solid var(--color-primary, #073f93);
  box-shadow: none;
}
.empresa-panel-block__guardar--secondary:hover {
  background: rgba(7, 63, 147, 0.08);
}

.empresa-panel-block__reset-row {
  margin-top: 1.25rem;
  text-align: center;
}

.empresa-panel-block__reset-row .empresa-panel-block__guardar {
  margin-left: auto;
  margin-right: auto;
}

/* Remove the white border between content and footer (footer is same blue as sidebar) */
.page-dash .site-footer {
  border-top: none;
}

/* ── Premium navbar (dash only) ─────────────────────────────────────── */
.site-header--dash {
  height: 80px;
  background: #fff;
  border-bottom: 1px solid rgba(10, 23, 48, 0.06);
  box-shadow: 0 1px 0 rgba(10, 23, 48, 0.04);
}

.page-dash .site-header--dash .header-inner {
  height: 80px;
  max-width: 1400px;
  padding-inline: 2rem;
}

.page-dash .site-header--dash .logo-img {
  height: 28px;
  width: auto;
}

.page-dash .site-header--dash .nav-main {
  gap: 2.25rem;
}

.page-dash .site-header--dash .nav-main a {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #0A1730;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-dash .site-header--dash .nav-main a:hover {
  color: #073f93;
  border-bottom-color: rgba(7, 63, 147, 0.2);
}

.page-dash .site-header--dash .nav-main a:last-child {
  margin-left: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: #073f93;
  color: #fff;
  border-radius: 999px;
  border-bottom: none;
  font-weight: 600;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.page-dash .site-header--dash .nav-main a:last-child:hover {
  background: #073f93;
  box-shadow: 0 4px 14px rgba(7, 63, 147, 0.25);
  color: #fff;
}

@media (max-width: 767px) {
  .page-dash .site-header--dash .nav-main {
    top: 80px;
  }
  .page-dash .site-header--dash .nav-main a:last-child {
    margin-left: 0;
    margin-top: 0.5rem;
    display: inline-block;
    text-align: center;
  }
}

/* ── Form validation message ──────────────────────────────────────────── */
.form-validation-msg {
  margin: 0 0 1rem;
  padding: 0.875rem 1.125rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
}
.form-validation-msg[hidden] { display: none; }
.form-validation-msg strong {
  font-weight: 600;
}

/* ── Generated preview link area ──────────────────────────────────────── */
.generated-link-area {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(7, 63, 147, 0.06);
  border: 1px solid rgba(7, 63, 147, 0.15);
  border-radius: 12px;
}
.generated-link-area__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #073f93;
  margin: 0 0 0.625rem;
}
.generated-link-area__row {
  display: flex;
  gap: 0.5rem;
}
.generated-link-area__input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  border: 1px solid rgba(10, 23, 48, 0.15);
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-family: monospace;
}
.generated-link-area__copy {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #073f93;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.generated-link-area__copy:hover {
  background: #052d6b;
}
.generated-link-area__open {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #073f93;
  text-decoration: none;
}
.generated-link-area__open:hover {
  text-decoration: underline;
}
.generated-link-area__email-status {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
}
.generated-link-area__email-status.is-success { color: #059669; }
.generated-link-area__email-status.is-error { color: #dc2626; }

/* ─── #dash-panel-formulario: dashboard / admin panel layout ─── */
/* No single form box: page header + section cards on the main background */

#dash-panel-formulario {
  padding-bottom: 2rem;
}

#dash-panel-formulario .formulario-section {
  max-width: 720px;
  margin: 0 auto;
}

/* Page header (dashboard style) */
#dash-panel-formulario .formulario-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0 0 0.25rem;
  padding: 0;
  border: none;
}

#dash-panel-formulario .empresa-panel-intro {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 1.5rem;
  max-width: none;
}

/* Card wrapper: invisible — content sits directly on panel background */
#dash-panel-formulario .formulario-section__card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  max-width: 100%;
}

#dash-panel-formulario .formulario-section__card::before,
#dash-panel-formulario .formulario-section__card::after {
  display: none;
}

/* Each section = its own dashboard widget card */
#dash-panel-formulario .formulario-section__form-block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  overflow: visible;
}

#dash-panel-formulario .formulario-section__form-block-trigger {
  color: #0f172a;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: background 0.15s ease;
  border-radius: 12px;
}


#dash-panel-formulario .formulario-section__form-block-trigger:hover {
  background: #f8fafc;
}

#dash-panel-formulario .formulario-section__form-block[data-form-block]:has(.formulario-section__form-block-content:not([hidden])) .formulario-section__form-block-trigger {
  border-bottom-color: #e2e8f0;
  border-radius: 12px 12px 0 0;
}

#dash-panel-formulario .formulario-section__form-block-trigger .formulario-section__form-block-chevron {
  color: #64748b;
}

#dash-panel-formulario .formulario-section__form-block-content {
  background: #fafafa;
  border-top: 1px solid #e2e8f0;
  padding: 1.25rem 1.25rem;
  overflow: visible;
  border-radius: 0 0 12px 12px;
}

#dash-panel-formulario .formulario-section__field {
  margin-bottom: 0.75rem;
}

#dash-panel-formulario .formulario-section__field:last-child {
  margin-bottom: 0;
}

#dash-panel-formulario .formulario-section__label,
#dash-panel-formulario .formulario-section__velatorio-inline-label,
#dash-panel-formulario .formulario-section__fecha-label {
  color: #334155;
  font-weight: 500;
  font-size: 0.875rem;
}

#dash-panel-formulario .formulario-section__input,
#dash-panel-formulario .formulario-section__select,
#dash-panel-formulario .formulario-section__custom-select {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#dash-panel-formulario .formulario-section__input:focus,
#dash-panel-formulario .formulario-section__custom-select:focus {
  outline: none;
  border-color: #073f93;
  box-shadow: 0 0 0 3px rgba(7, 63, 147, 0.12);
}

#dash-panel-formulario .formulario-section__input::placeholder {
  color: #94a3b8;
}

#dash-panel-formulario .formulario-section__hint,
#dash-panel-formulario .formulario-section__file-name {
  color: #64748b;
  font-size: 0.8125rem;
}

/* Action card: correo + submit area (direct child field = “Envío” / CTA block) */
#dash-panel-formulario .formulario-section__form > .formulario-section__field:not([hidden]):not(.formulario-section__field--funeraria) {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 1.25rem 1.25rem;
  margin-top: 1rem;
}

#dash-panel-formulario .formulario-section__form > #form-validation-msg {
  margin-top: 0.75rem;
}

#dash-panel-formulario .formulario-section__form > .formulario-section__submit {
  margin-top: 1rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #fff;
  background: #073f93;
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

#dash-panel-formulario .formulario-section__submit:hover {
  background: #052d6b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 1;
}

#dash-panel-formulario .formulario-section__submit:disabled {
  background: #94a3b8;
  box-shadow: none;
}

/* Generated link = success result card */
#dash-panel-formulario .generated-link-area {
  margin-top: 1rem;
  padding: 1.25rem 1.25rem;
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#dash-panel-formulario .generated-link-area__label {
  color: #166534;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#dash-panel-formulario .generated-link-area__input {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

#dash-panel-formulario .generated-link-area__copy {
  background: #15803d;
}

#dash-panel-formulario .generated-link-area__copy:hover {
  background: #166534;
}

#dash-panel-formulario .generated-link-area__open {
  color: #15803d;
}

#dash-panel-formulario .formulario-section__custom-select {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.25rem;
  color: #0f172a;
}

#dash-panel-formulario .formulario-section__custom-select-label {
  color: #0f172a;
}

#dash-panel-formulario .formulario-section__custom-select .formulario-section__chevron-pill,
#dash-panel-formulario .formulario-section__custom-select .formulario-section__select-icon {
  color: #475569;
}

#dash-panel-formulario .formulario-section__custom-dropdown {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 100;
}

#dash-panel-formulario .formulario-section__custom-option {
  color: #0f172a;
}

#dash-panel-formulario .formulario-section__custom-option:hover {
  background: #f8fafc;
  color: #0f172a;
}

#dash-panel-formulario .formulario-section__photo-placeholder {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
}

#dash-panel-formulario .formulario-section__toggle-slider {
  background: #cbd5e1;
}

#dash-panel-formulario .formulario-section__toggle:checked + .formulario-section__toggle-slider {
  background: #073f93;
}

#dash-panel-formulario .formulario-section__file-trigger {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  border-radius: 8px;
}

#dash-panel-formulario .formulario-section__file-trigger:hover {
  background: #e2e8f0;
}

#dash-panel-formulario .form-validation-msg {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #b91c1c;
  font-size: 0.875rem;
}

/* ─── #dash-panel-correo: dashboard look (same as formulario panel) ─── */
#dash-panel-correo {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

#dash-panel-correo .empresa-panel-block__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 1.5rem 1.5rem;
  margin-top: 1rem;
}

#dash-panel-correo .empresa-panel-block__card:first-child {
  margin-top: 0;
}

#dash-panel-correo .empresa-panel-block__card::before,
#dash-panel-correo .empresa-panel-block__card::after {
  display: none;
}

#dash-panel-correo .empresa-panel-block__title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 0.375rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

#dash-panel-correo .empresa-panel-block__intro {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 1.25rem;
}

#dash-panel-correo .empresa-panel-block__hint {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0.5rem 0 0;
}

#dash-panel-correo .formulario-section__label {
  color: #334155;
  font-weight: 500;
  font-size: 0.875rem;
}

#dash-panel-correo .formulario-section__input {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#dash-panel-correo .formulario-section__input:focus {
  outline: none;
  border-color: #073f93;
  box-shadow: 0 0 0 3px rgba(7, 63, 147, 0.12);
}

#dash-panel-correo .formulario-section__input::placeholder {
  color: #94a3b8;
}

#dash-panel-correo .correo-prefix-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#dash-panel-correo .correo-prefix-wrap:focus-within {
  border-color: #073f93;
  box-shadow: 0 0 0 3px rgba(7, 63, 147, 0.12);
}

#dash-panel-correo .correo-prefix-input {
  border: none;
  border-radius: 8px 0 0 8px;
  background: transparent;
  box-shadow: none;
}

#dash-panel-correo .correo-prefix-input:focus {
  box-shadow: none;
}

#dash-panel-correo .correo-prefix-suffix {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  color: #64748b;
  background: #f8fafc;
  border-left: 1px solid #e2e8f0;
  border-radius: 0 8px 8px 0;
}

#dash-panel-correo .correo-prefix-hint {
  color: #64748b;
  font-size: 0.8125rem;
}

#dash-panel-correo .empresa-panel-block__guardar {
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #073f93;
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

#dash-panel-correo .empresa-panel-block__guardar:hover {
  background: #052d6b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#dash-panel-correo .formulario-section__field-error {
  color: #b91c1c;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

@media (min-width: 600px) {
  #dash-panel-correo .empresa-panel-block__card {
    padding: 1.75rem 1.75rem;
  }
}

/* ─── #dash-panel-articulos: dashboard look ─── */
#dash-panel-articulos {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

#dash-panel-articulos .empresa-panel-block__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 1.5rem 1.5rem;
}

#dash-panel-articulos .empresa-panel-block__card::before,
#dash-panel-articulos .empresa-panel-block__card::after {
  display: none;
}

#dash-panel-articulos .empresa-panel-block__title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 0.375rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

#dash-panel-articulos .empresa-panel-block__intro {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 1.25rem;
}

#dash-panel-articulos .empresa-panel-block__hint {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0.5rem 0 0;
}

#dash-panel-articulos .formulario-section__label,
#dash-panel-articulos .formulario-section__toggle-label {
  color: #334155;
  font-weight: 500;
  font-size: 0.875rem;
}

#dash-panel-articulos .formulario-section__toggle-slider {
  background: #cbd5e1;
}

#dash-panel-articulos .formulario-section__toggle:checked + .formulario-section__toggle-slider {
  background: #073f93;
}

#dash-panel-articulos .formulario-section__input {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#dash-panel-articulos .formulario-section__input:focus {
  outline: none;
  border-color: #073f93;
  box-shadow: 0 0 0 3px rgba(7, 63, 147, 0.12);
}

#dash-panel-articulos .formulario-section__input::placeholder {
  color: #94a3b8;
}

#dash-panel-articulos .empresa-panel-articulos-list {
  margin-bottom: 1rem;
  margin-top: 1rem;
}

#dash-panel-articulos .empresa-panel-articulos-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
}

#dash-panel-articulos .empresa-panel-articulos-item__num {
  color: #64748b;
  font-weight: 600;
}

#dash-panel-articulos .empresa-panel-articulos-item__thumb {
  background: #e2e8f0 !important;
}

#dash-panel-articulos .empresa-panel-articulos-item__img-btn {
  color: #073f93;
  font-size: 0.8125rem;
  font-weight: 500;
}

#dash-panel-articulos .empresa-panel-articulos-item__img-btn:hover {
  color: #052d6b;
}

#dash-panel-articulos .empresa-panel-articulos-item__img-remove {
  color: #b91c1c;
  font-size: 0.8125rem;
}

#dash-panel-articulos .empresa-panel-articulos-item__remove {
  font-size: 0.8125rem;
  color: #b91c1c;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}

#dash-panel-articulos .empresa-panel-articulos-item__remove:hover {
  text-decoration: underline;
}

#dash-panel-articulos .empresa-panel-block__add {
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #073f93;
  background: #fff;
  border: 1px solid #073f93;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

#dash-panel-articulos .empresa-panel-block__add:hover {
  background: rgba(7, 63, 147, 0.08);
  color: #052d6b;
}

#dash-panel-articulos .empresa-panel-block__guardar {
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #073f93;
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

#dash-panel-articulos .empresa-panel-block__guardar:hover {
  background: #052d6b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 600px) {
  #dash-panel-articulos .empresa-panel-block__card {
    padding: 1.75rem 1.75rem;
  }
}

/* ─── #dash-panel-faq: dashboard look ─── */
#dash-panel-faq {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

#dash-panel-faq .empresa-panel-block__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 1.5rem 1.5rem;
}

#dash-panel-faq .empresa-panel-block__card::before,
#dash-panel-faq .empresa-panel-block__card::after {
  display: none;
}

#dash-panel-faq .empresa-panel-block__title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 0.375rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

#dash-panel-faq .empresa-panel-block__intro {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 0.75rem;
}

#dash-panel-faq .empresa-panel-block__intro:last-of-type {
  margin-bottom: 1.25rem;
}

#dash-panel-faq .empresa-panel-block__hint {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0.5rem 0 0;
}

#dash-panel-faq .formulario-section__label,
#dash-panel-faq .formulario-section__toggle-label {
  color: #334155;
  font-weight: 500;
  font-size: 0.875rem;
}

#dash-panel-faq .formulario-section__toggle-slider {
  background: #cbd5e1;
}

#dash-panel-faq .formulario-section__toggle:checked + .formulario-section__toggle-slider {
  background: #073f93;
}

#dash-panel-faq .formulario-section__input {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#dash-panel-faq .formulario-section__input:focus {
  outline: none;
  border-color: #073f93;
  box-shadow: 0 0 0 3px rgba(7, 63, 147, 0.12);
}

#dash-panel-faq .formulario-section__input::placeholder {
  color: #94a3b8;
}

#dash-panel-faq .empresa-panel-faq-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-top: 1rem;
  margin-bottom: 1rem;
  max-height: 165px;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: none;
}

#dash-panel-faq .empresa-panel-faq-list.empresa-panel-faq-list--expanded {
  max-height: 50vh;
}

#dash-panel-faq .empresa-panel-faq-list::before,
#dash-panel-faq .empresa-panel-faq-list::after {
  display: none;
}

#dash-panel-faq .empresa-panel-faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: none;
}

#dash-panel-faq .empresa-panel-faq-item__num {
  color: #64748b;
  font-weight: 600;
}

#dash-panel-faq .empresa-panel-faq-item__drag {
  color: #64748b;
}

#dash-panel-faq .empresa-panel-faq-item__drag:hover {
  color: #475569;
  background: #f1f5f9;
}

#dash-panel-faq .empresa-panel-faq-item__remove {
  font-size: 0.8125rem;
  color: #b91c1c;
  background: none;
  border: none;
  cursor: pointer;
}

#dash-panel-faq .empresa-panel-faq-item__remove:hover {
  text-decoration: underline;
}

#dash-panel-faq .empresa-panel-faq-list-toggle {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 500;
  border-radius: 8px;
  margin-bottom: 1rem;
}

#dash-panel-faq .empresa-panel-faq-list-toggle:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

#dash-panel-faq .empresa-panel-faq-list.empresa-panel-faq-list--expanded ~ .empresa-panel-faq-list-toggle .empresa-panel-faq-list-toggle__icon {
  transform: rotate(180deg);
}

#dash-panel-faq .empresa-panel-block__add {
  margin-bottom: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #073f93;
  background: #fff;
  border: 1px solid #073f93;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

#dash-panel-faq .empresa-panel-block__add:hover {
  background: rgba(7, 63, 147, 0.08);
  color: #052d6b;
}

#dash-panel-faq .empresa-panel-block__add--secondary {
  color: #64748b;
  border-color: #cbd5e1;
  background: #fff;
}

#dash-panel-faq .empresa-panel-block__add--secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #475569;
}

#dash-panel-faq .empresa-panel-block__guardar {
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #073f93;
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

#dash-panel-faq .empresa-panel-block__guardar:hover {
  background: #052d6b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 600px) {
  #dash-panel-faq .empresa-panel-block__card {
    padding: 1.75rem 1.75rem;
  }
}

/* ─── Envío panel ─────────────────────────────────────────── */
.dash-envio {
  max-width: 680px;
  margin: 0 auto;
}

.dash-envio__block {
  padding: 0 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(10, 23, 48, 0.08);
}
.dash-envio__block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dash-envio__block-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.dash-envio__block-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 63, 147, 0.08);
  border-radius: 10px;
  color: #073f93;
}
.dash-envio__block-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem;
}
.dash-envio__block-desc {
  font-size: 0.875rem;
  color: #475569;
  margin: 0;
  line-height: 1.55;
}

/* Options (checkboxes) */
.dash-envio__options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.dash-envio__option {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  cursor: pointer;
}
.dash-envio__option-check {
  grid-row: 1 / 3;
  align-self: center;
  width: 18px;
  height: 18px;
  accent-color: #073f93;
  cursor: pointer;
  flex-shrink: 0;
}
.dash-envio__option-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}
.dash-envio__option-hint {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
}

/* Preview button */
.dash-envio__preview-row {
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}
.dash-envio__preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #073f93;
  background: rgba(7, 63, 147, 0.07);
  border: 1px solid rgba(7, 63, 147, 0.18);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.dash-envio__preview-btn:hover {
  background: rgba(7, 63, 147, 0.13);
  border-color: rgba(7, 63, 147, 0.3);
}

/* Mock email preview */
.dash-envio__mock-email {
  background: #f8fafc;
  border: 1px solid rgba(10, 23, 48, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
}
.dash-envio__mock-email-header {
  background: rgba(7, 63, 147, 0.06);
  border-bottom: 1px solid rgba(10, 23, 48, 0.08);
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #334155;
}
.dash-envio__var-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  border-bottom: 1px solid rgba(10, 23, 48, 0.08);
  font-size: 0.8125rem;
}
.dash-envio__var-toolbar-label {
  color: #64748b;
  margin-right: 0.25rem;
}
.dash-envio__var-btn {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(7, 63, 147, 0.35);
  border-radius: 6px;
  background: #fff;
  color: #073f93;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.dash-envio__var-btn:hover {
  background: rgba(7, 63, 147, 0.08);
  border-color: #073f93;
}
.dash-envio__var {
  display: inline;
  padding: 0.1em 0.4em;
  background: rgba(7, 63, 147, 0.12);
  border-radius: 4px;
  font-weight: 600;
  color: #073f93;
  white-space: nowrap;
}
.dash-envio__mock-email-body {
  padding: 1.1rem 1.25rem;
  color: #334155;
}
.dash-envio__mock-email-body p,
.dash-envio__mock-email-body ul {
  margin: 0 0 0.75rem;
}
.dash-envio__mock-email-body ul {
  padding-left: 1.25rem;
}
.dash-envio__mock-link {
  display: inline-block;
  color: #073f93;
  font-weight: 600;
  text-decoration: underline;
  margin-bottom: 0.75rem;
}
.dash-envio__mock-pdf-note {
  font-size: 0.8125rem;
  color: #64748b;
}
.dash-envio__mock-quote {
  margin: 0.75rem 0;
  padding: 1rem 1.25rem;
  background: #f1f5f9;
  border-left: 3px solid #073f93;
  border-radius: 0 8px 8px 0;
}
.dash-envio__mock-quote p {
  margin: 0 0 0.6rem;
  font-size: 0.875rem;
}
.dash-envio__mock-quote p:last-child {
  margin-bottom: 0;
}
.dash-envio__mock-quote-label {
  font-size: 0.7rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8 !important;
  text-transform: uppercase;
  margin-bottom: 0.75rem !important;
}
.dash-envio__edit-hint {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.dash-envio__edit-hint::before {
  content: '✎';
  font-size: 0.85rem;
}
.dash-envio__mock-email-body[contenteditable] {
  outline: none;
  cursor: text;
  transition: background 0.15s;
}
.dash-envio__mock-email-body[contenteditable]:hover {
  background: rgba(7, 63, 147, 0.03);
}
.dash-envio__mock-email-body[contenteditable]:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(7, 63, 147, 0.15);
  border-radius: 0 0 8px 8px;
}

/* Aniversario config sub-block */
.dash-envio__aniversario-config {
  margin-top: 1rem;
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid rgba(10, 23, 48, 0.08);
  border-radius: 12px;
}
.dash-envio__aniversario-subtitle {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.75rem;
}
.dash-envio__textarea {
  width: 100%;
  resize: vertical;
  min-height: 90px;
}

.formulario-section__field-error {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #dc2626;
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

/* ── Dashboard (avisos list) ─────────────────────────────────────────── */
.dashboard-avisos-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: visible;
}
.dashboard-avisos-loading,
.dashboard-avisos-empty {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0;
}
.dashboard-avisos-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(10, 23, 48, 0.1);
  border-radius: 12px;
  flex-wrap: wrap;
  overflow: visible;
}
.dashboard-avisos-item__main {
  min-width: 0;
}
.dashboard-avisos-item__nombre {
  display: block;
  font-weight: 600;
  color: #0f172a;
  font-size: 1rem;
}
.dashboard-avisos-item__meta {
  display: block;
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.25rem;
}
.dashboard-avisos-item--expired .dashboard-avisos-item__nombre,
.dashboard-avisos-item--expired .dashboard-avisos-item__meta {
  color: #94a3b8;
}
.dashboard-avisos-item__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: visible;
}

/* Acciones button (opens floating menu) */
.dashboard-avisos-item__acciones-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--dash-primary, #073f93);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dashboard-avisos-item__acciones-btn:hover {
  background: #f8fafc;
  border-color: var(--dash-primary, #073f93);
}
.dashboard-avisos-item__acciones-btn svg {
  flex-shrink: 0;
}

/* Per-row actions dropdown (legacy, kept for reference) */
.dashboard-avisos-item__dropdown {
  position: relative;
  z-index: 1;
}

.dashboard-avisos-item__dropdown.is-open {
  z-index: 50;
}

.dashboard-avisos-item__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--dash-primary, #073f93);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.dashboard-avisos-item__dropdown-trigger:hover {
  background: #f8fafc;
  border-color: var(--dash-primary, #073f93);
}

.dashboard-avisos-item__dropdown-trigger[aria-expanded="true"] {
  background: var(--dash-primary, #073f93);
  color: #fff;
  border-color: var(--dash-primary, #073f93);
}

.dashboard-avisos-item__dropdown-trigger svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.dashboard-avisos-item__dropdown.is-open .dashboard-avisos-item__dropdown-trigger svg {
  transform: rotate(180deg);
}

.dashboard-avisos-item__dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin: 0.25rem 0 0;
  padding: 0.35rem 0;
  min-width: 10rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  list-style: none;
  z-index: 100;
  display: none;
}

.dashboard-avisos-item__dropdown.is-open .dashboard-avisos-item__dropdown-menu {
  display: block !important;
  visibility: visible;
}

/* When positioned by JS (position: fixed) so it isn't clipped by .dash-main overflow */
.dashboard-avisos-item__dropdown-menu.is-fixed {
  position: fixed !important;
  top: 0;
  left: 0;
  right: auto;
  margin: 0;
  z-index: 9999;
}

/* Global Acciones menu (in body) – never clipped */
.dashboard-acciones-menu {
  position: fixed;
  z-index: 9999;
  min-width: 10rem;
  padding: 0.35rem 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
}
.dashboard-acciones-menu[hidden] {
  display: none !important;
}
.dashboard-acciones-menu a,
.dashboard-acciones-menu button {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  color: #334155;
  text-decoration: none;
  transition: background 0.1s;
}
.dashboard-acciones-menu a:hover,
.dashboard-acciones-menu button:hover {
  background: #f1f5f9;
  color: var(--dash-primary, #073f93);
}
.dashboard-acciones-menu .dashboard-acciones-menu__delete:hover {
  background: #fef2f2;
  color: #b91c1c;
}
.dashboard-acciones-menu .dashboard-acciones-menu__link {
  color: #073f93;
}

.dashboard-avisos-item__dropdown-menu li {
  margin: 0;
}

.dashboard-avisos-item__dropdown-menu .dashboard-avisos-item__link,
.dashboard-avisos-item__dropdown-menu button {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  color: #334155;
  text-decoration: none;
  transition: background 0.1s;
}

.dashboard-avisos-item__dropdown-menu .dashboard-avisos-item__link:hover,
.dashboard-avisos-item__dropdown-menu button:hover {
  background: #f1f5f9;
  color: var(--dash-primary, #073f93);
}

.dashboard-avisos-item__dropdown-menu .dashboard-avisos-item__delete:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.dashboard-avisos-item__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #073f93;
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  background: rgba(7, 63, 147, 0.08);
}
.dashboard-avisos-item__link:hover {
  background: rgba(7, 63, 147, 0.15);
  text-decoration: none;
}
.dashboard-avisos-item--expired .dashboard-avisos-item__link {
  color: #64748b;
  background: #f1f5f9;
}
.dashboard-avisos-item--expired .dashboard-avisos-item__link:hover {
  background: #e2e8f0;
}
.dashboard-avisos-item__edit {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dash-primary, #073f93);
  background: rgba(7, 63, 147, 0.1);
  border: 1px solid rgba(7, 63, 147, 0.3);
  border-radius: 8px;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.dashboard-avisos-item__edit:hover {
  background: rgba(7, 63, 147, 0.15);
  border-color: rgba(7, 63, 147, 0.5);
}
.dashboard-avisos-item__notificacion {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0d9488;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.dashboard-avisos-item__notificacion:hover {
  background: #ccfbf1;
  border-color: #5eead4;
}
.dashboard-avisos-item__delete {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.dashboard-avisos-item__delete:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}
.dashboard-avisos-item--expired .dashboard-avisos-item__delete {
  color: #94a3b8;
  background: #f8fafc;
  border-color: #e2e8f0;
}
.dashboard-avisos-item--expired .dashboard-avisos-item__delete:hover {
  background: #f1f5f9;
}

/* Email panel: reminder rows (10d, 30d, 1y) */
.dashboard-avisos-item--email .dashboard-avisos-item__main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.dash-email-reminders {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #475569;
}
.dash-email-reminder {
  display: inline-block;
}
.dash-email-item__actions {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}
.dash-email-item__delete-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-family: inherit;
  color: #b91c1c;
  background: transparent;
  border: 1px solid #fecaca;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.dash-email-item__delete-btn:hover {
  background: #fef2f2;
  border-color: #f87171;
}
.dash-email-item__edit-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-family: inherit;
  color: var(--dash-primary, #073f93);
  background: transparent;
  border: 1px solid rgba(7, 63, 147, 0.35);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  margin-right: 0.5rem;
}
.dash-email-item__edit-btn:hover {
  background: rgba(7, 63, 147, 0.08);
  border-color: var(--dash-primary, #073f93);
}
.dash-email-edit-reminders-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.dash-email-edit-reminder-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}
#email-panel-edit-reminders-modal .dash-email-edit-reminder-label,
#email-panel-edit-reminders-modal .dash-email-edit-reminder-status {
  color: #fff;
}
.dash-email-edit-reminder-label {
  font-weight: 600;
  min-width: 4.5rem;
}
.dash-email-edit-reminder-status {
  flex: 1;
  font-size: 0.875rem;
  opacity: 0.95;
}
.dash-email-edit-reminder-quitar {
  flex-shrink: 0;
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.dash-email-edit-reminder-quitar:hover {
  background: #b91c1c;
}

/* Condolencias panel (full panel, only via Dashboard → Condolencias) */
.condolencias-panel {
  max-width: 40rem;
  margin: 0 auto;
}

.condolencias-panel__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dash-primary, #073f93);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.condolencias-panel__back:hover {
  color: #0a4ba8;
  gap: 0.65rem;
}

.condolencias-panel__back-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.condolencias-panel__back:hover .condolencias-panel__back-icon {
  transform: translateX(-2px);
}

.condolencias-panel__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.condolencias-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.condolencias-panel__subtitle {
  margin: 0;
  font-size: 0.9375rem;
  color: #64748b;
  font-weight: 500;
}

.condolencias-panel__content {
  min-height: 8rem;
}

.condolencias-panel__loading,
.condolencias-panel__empty {
  margin: 0;
  font-size: 1rem;
  color: #64748b;
  padding: 2rem 0;
}

.condolencias-panel__empty {
  text-align: center;
}

.condolencias-panel__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.condolencias-panel__list .condolencias-item {
  position: relative;
  padding: 1.25rem 2.75rem 1.25rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--dash-primary, #073f93);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.condolencias-panel__list .condolencias-item__remove {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.condolencias-panel__list .condolencias-item__remove:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.condolencias-panel__list .condolencias-item__remove:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.condolencias-panel__list .condolencias-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.condolencias-panel__list .condolencias-item__meta {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.condolencias-panel__list .condolencias-item__contact {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.condolencias-panel__list .condolencias-item__contact a {
  color: var(--dash-primary, #073f93);
  text-decoration: none;
  font-weight: 500;
}

.condolencias-panel__list .condolencias-item__contact a:hover {
  text-decoration: underline;
}

.condolencias-panel__list .condolencias-item__message {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

/* Notificación panel (full panel, only via Dashboard → Notificación) */
.notificacion-panel {
  max-width: 40rem;
  margin: 0 auto;
}

.notificacion-panel__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dash-primary, #073f93);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.notificacion-panel__back:hover {
  color: #0a4ba8;
  gap: 0.65rem;
}

.notificacion-panel__back-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.notificacion-panel__back:hover .notificacion-panel__back-icon {
  transform: translateX(-2px);
}

.notificacion-panel__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.notificacion-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.notificacion-panel__subtitle {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: #64748b;
  font-weight: 500;
}

.notificacion-panel__intro {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
}

.notificacion-panel__form-wrap {
  padding: 0;
}

/* Contrast: dark text on light backgrounds (override global blue form styles) */
.notificacion-panel__form-wrap .formulario-section__label {
  color: #0f172a;
  font-weight: 600;
}
.notificacion-panel__form-wrap .formulario-section__input,
.notificacion-panel__form-wrap .formulario-section__input--textarea {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.notificacion-panel__form-wrap .formulario-section__input::placeholder {
  color: #94a3b8;
}
.notificacion-panel__form-wrap .formulario-section__input:focus {
  border-color: var(--dash-primary, #073f93);
  outline: none;
  box-shadow: 0 0 0 3px rgba(7, 63, 147, 0.12);
}

.notificacion-panel__form-wrap .formulario-section__field {
  margin-bottom: 1.25rem;
}

.notificacion-panel__form-wrap .formulario-section__input--textarea {
  min-height: 8rem;
  resize: vertical;
}

.notificacion-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.notificacion-panel__btn {
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.notificacion-panel__btn--secondary {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.notificacion-panel__btn--secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #334155;
}

.notificacion-panel__btn--primary {
  color: #fff;
  background: var(--dash-primary, #073f93);
  border: none;
}

.notificacion-panel__btn--primary:hover:not(:disabled) {
  background: #0a4ba8;
}

.notificacion-panel__btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Aniversario panel (Correo de aniversario from Dashboard actions) */
.aniversario-panel {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}
.aniversario-panel__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dash-primary, #073f93);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.15s, gap 0.15s;
}
.aniversario-panel__back:hover {
  color: #0a4ba8;
  gap: 0.65rem;
}
.aniversario-panel__back-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.aniversario-panel__back:hover .aniversario-panel__back-icon {
  transform: translateX(-2px);
}
.aniversario-panel__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}
.aniversario-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}
.aniversario-panel__subtitle {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: #64748b;
}
.aniversario-panel__intro {
  margin: 0;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.5;
}
.aniversario-panel__form-wrap {
  padding: 0;
}
.aniversario-panel__form-wrap .dash-envio__options {
  margin-bottom: 1rem;
}
.aniversario-panel__form-wrap .dash-envio__aniversario-config {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

/* Editar aviso panel */
.editar-panel__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dash-primary, #073f93);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.15s, gap 0.15s;
}
.editar-panel__back:hover {
  color: #0a4ba8;
  gap: 0.65rem;
}
.editar-panel__back-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.editar-panel__back:hover .editar-panel__back-icon {
  transform: translateX(-2px);
}
.editar-panel__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}
.editar-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.025em;
}
.editar-panel__subtitle {
  margin: 0;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.5;
}
.editar-panel__form-wrap {
  padding: 0;
}
.editar-panel__form-wrap .formulario-section__field {
  margin-bottom: 1.25rem;
}
.editar-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}
.editar-panel__btn {
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.editar-panel__btn--secondary {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.editar-panel__btn--secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}
.editar-panel__btn--outline {
  color: var(--dash-primary, #073f93);
  background: transparent;
  border-color: var(--dash-primary, #073f93);
}
.editar-panel__btn--outline:hover {
  background: rgba(7, 63, 147, 0.08);
  border-color: #0a4ba8;
  color: #0a4ba8;
}
.editar-panel__btn--primary {
  color: #fff;
  background: var(--dash-primary, #073f93);
  border-color: var(--dash-primary, #073f93);
}
.editar-panel__btn--primary:hover:not(:disabled) {
  background: #0a4ba8;
}
.editar-panel__btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.formulario-section__sala-modal-dialog--wide {
  max-width: 32rem;
  text-align: left;
  align-items: stretch;
}
.formulario-section__sala-modal-dialog--scroll {
  max-height: 90vh;
  overflow-y: auto;
}

/* Dashboard edit modal — card-style, clearer hierarchy */
.dashboard-edit-modal .dashboard-edit-modal__dialog {
  max-width: 28rem;
  max-height: 90vh;
  padding: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  align-items: stretch;
  text-align: left;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.dashboard-edit-modal__header {
  padding: 1.5rem 1.5rem 0;
  background: linear-gradient(135deg, var(--color-primary, #1e3a5f) 0%, #2a4a6f 100%);
  color: #fff;
}
.dashboard-edit-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.dashboard-edit-modal__subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}
.dashboard-edit-form {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dashboard-edit-form .formulario-section__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}
.dashboard-edit-form .formulario-section__input {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dashboard-edit-form .formulario-section__input:focus {
  outline: none;
  border-color: var(--color-primary, #1e3a5f);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}
.dashboard-edit-form .formulario-section__input--textarea {
  min-height: 4rem;
  resize: vertical;
}
.dashboard-edit-form .formulario-section__field--row2 {
  display: inline-block;
  width: calc(50% - 0.5rem);
  margin-right: 0.5rem;
  vertical-align: top;
}
.dashboard-edit-form .formulario-section__field--row2:last-of-type {
  margin-right: 0;
}
.dashboard-edit-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}
.dashboard-edit-modal__cancel {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.dashboard-edit-modal__cancel:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.dashboard-edit-modal__submit {
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--color-primary, #1e3a5f);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.dashboard-edit-modal__submit:hover {
  background: #2a4a6f;
}
.dashboard-edit-modal__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.dashboard-edit-foto-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.dashboard-edit-foto-row .formulario-section__photo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f1f5f9;
  background-size: cover;
  background-position: center;
  border: 2px solid #e2e8f0;
}
.dashboard-edit-form .formulario-section__toggle-slider {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}
.dashboard-edit-form .formulario-section__toggle-slider::after {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.dashboard-edit-form .formulario-section__toggle:checked + .formulario-section__toggle-slider {
  background: var(--color-primary, #1e3a5f);
  border-color: var(--color-primary, #1e3a5f);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}
.dashboard-edit-form .formulario-section__toggle:checked + .formulario-section__toggle-slider::after {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.dashboard-edit-form .formulario-section__hint {
  color: #64748b;
}
.dashboard-edit-form__file-trigger {
  background: var(--color-primary, #1e3a5f);
  border: 1px solid var(--color-primary, #1e3a5f);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, filter 0.2s;
}
.dashboard-edit-form__file-trigger:hover {
  background: #2a4a6f;
  border-color: #2a4a6f;
  color: #fff;
  filter: brightness(1.05);
}
.dashboard-edit-form__remove-foto {
  margin-left: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #64748b;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.dashboard-edit-form__remove-foto:hover {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}
.dashboard-edit-form__texto-wrap .formulario-section__label {
  display: block;
}
.dashboard-edit-form__texto-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.dashboard-edit-form__texto-row select {
  flex: 1;
  min-width: 0;
}
.dashboard-edit-form__aleatorio {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid #073f93;
  background: #073f93;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.dashboard-edit-form__aleatorio:hover {
  background: #052d6b;
  border-color: #052d6b;
}
.dashboard-edit-form #dashboard-edit-texto {
  min-height: 2.75rem;
}

/* ── Locations manager (Ubicaciones panel) ────────────────────────────── */
.locations-manager {
  margin-top: 1.5rem;
  display: grid;
  gap: 2rem;
}
.locations-manager__section {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.locations-manager__heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: #1e293b;
}
.locations-manager__list {
  list-style: none;
  margin: 0 0 0.75rem 0;
  padding: 0;
}
.locations-manager__list:empty::before {
  content: 'Ninguna todavía.';
  display: block;
  font-size: 0.9375rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}
.locations-manager-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9375rem;
}
.locations-manager-item:last-child {
  border-bottom: none;
}
.locations-manager-item__label {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  color: #334155;
}
.locations-manager-item__actions {
  flex-shrink: 0;
  display: flex;
  gap: 0.375rem;
}
.locations-manager-item__btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  width: 5.25rem;
  box-sizing: border-box;
  text-align: center;
}
.locations-manager-item__btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.locations-manager-item__btn--danger {
  color: #b91c1c;
  border-color: #fecaca;
}
.locations-manager-item__btn--danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}
.locations-manager__add {
  margin-top: 0;
}
.locations-manager__add:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─── #dash-panel-locations: dashboard look ─── */
#dash-panel-locations {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

#dash-panel-locations .empresa-panel-block__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 1.5rem 1.5rem;
}

#dash-panel-locations .empresa-panel-block__card::before,
#dash-panel-locations .empresa-panel-block__card::after {
  display: none;
}

#dash-panel-locations .empresa-panel-block__title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 0.375rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

#dash-panel-locations .empresa-panel-block__intro {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 0.75rem;
}

#dash-panel-locations .locations-manager {
  margin-top: 1.25rem;
  gap: 1.5rem;
}

#dash-panel-locations .locations-manager__section {
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

#dash-panel-locations .locations-manager__heading {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: #334155;
}

#dash-panel-locations .locations-manager__list:empty::before {
  color: #64748b;
  font-size: 0.875rem;
}

#dash-panel-locations .locations-manager-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9375rem;
}

#dash-panel-locations .locations-manager-item__label {
  color: #334155;
}

#dash-panel-locations .empresa-panel-block__add.locations-manager__add {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #073f93;
  background: #fff;
  border: 1px solid #073f93;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

#dash-panel-locations .empresa-panel-block__add.locations-manager__add:hover:not(:disabled) {
  background: rgba(7, 63, 147, 0.08);
  color: #052d6b;
}

#dash-panel-locations #locations-edit-modal .formulario-section__sala-modal-dialog,
#dash-panel-locations #locations-delete-modal .formulario-section__sala-modal-dialog {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

#dash-panel-locations #locations-edit-modal .formulario-section__sala-modal-title,
#dash-panel-locations #locations-delete-modal .formulario-section__sala-modal-title {
  color: #0f172a;
}

#dash-panel-locations #locations-edit-modal .formulario-section__sala-modal-input {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 8px;
}

#dash-panel-locations #locations-edit-modal .formulario-section__sala-modal-input:focus {
  border-color: #073f93;
  box-shadow: 0 0 0 3px rgba(7, 63, 147, 0.12);
}

#dash-panel-locations #locations-edit-modal .formulario-section__sala-modal-cancel,
#dash-panel-locations #locations-delete-modal .formulario-section__sala-modal-cancel {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

#dash-panel-locations #locations-edit-modal .formulario-section__sala-modal-cancel:hover,
#dash-panel-locations #locations-delete-modal .formulario-section__sala-modal-cancel:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #334155;
}

#dash-panel-locations #locations-edit-modal .formulario-section__sala-modal-ok,
#dash-panel-locations #locations-delete-modal .formulario-section__sala-modal-ok {
  background: #073f93;
  border: 1px solid #073f93;
  color: #fff;
}

#dash-panel-locations #locations-edit-modal .formulario-section__sala-modal-ok:hover,
#dash-panel-locations #locations-delete-modal .formulario-section__sala-modal-ok:hover {
  background: #052d6b;
  border-color: #052d6b;
}

#dash-panel-locations #locations-delete-modal .formulario-section__sala-modal-ok--danger {
  background: #b91c1c;
  border-color: #b91c1c;
}

#dash-panel-locations #locations-delete-modal .formulario-section__sala-modal-ok--danger:hover {
  background: #991b1b;
  border-color: #991b1b;
}

#dash-panel-locations #locations-delete-modal .formulario-section__sala-modal-body {
  color: #475569;
}

@media (min-width: 600px) {
  #dash-panel-locations .empresa-panel-block__card {
    padding: 1.75rem 1.75rem;
  }
}

/* ─── #dash-panel-api: dashboard look ─── */
#dash-panel-api {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

#dash-panel-api .empresa-panel-block__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 1.5rem 1.5rem;
}

#dash-panel-api .empresa-panel-block__card::before,
#dash-panel-api .empresa-panel-block__card::after {
  display: none;
}

#dash-panel-api .empresa-panel-block__title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 0.375rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

#dash-panel-api .empresa-panel-block__intro {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 0.75rem;
}

#dash-panel-api .empresa-panel-block__intro a {
  color: #073f93;
  text-decoration: underline;
}

#dash-panel-api .empresa-panel-block__intro a:hover {
  color: #052d6b;
}

#dash-panel-api .formulario-section__label {
  color: #334155;
  font-weight: 500;
  font-size: 0.875rem;
}

#dash-panel-api .formulario-section__input {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#dash-panel-api .formulario-section__input:focus {
  outline: none;
  border-color: #073f93;
  box-shadow: 0 0 0 3px rgba(7, 63, 147, 0.12);
}

#dash-panel-api .formulario-section__input::placeholder {
  color: #94a3b8;
}

#dash-panel-api .empresa-api-request-form .formulario-section__field {
  margin-bottom: 1rem;
}

#dash-panel-api .empresa-api-request-form .formulario-section__input--textarea {
  min-height: 100px;
  resize: vertical;
}

#dash-panel-api .empresa-panel-block__guardar {
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #073f93;
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

#dash-panel-api .empresa-panel-block__guardar:hover {
  background: #052d6b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#dash-panel-api .empresa-api-request-success {
  padding: 1.25rem 0;
}

#dash-panel-api .empresa-api-request-success__text {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #0f172a;
}

@media (min-width: 600px) {
  #dash-panel-api .empresa-panel-block__card {
    padding: 1.75rem 1.75rem;
  }
}
