@charset "UTF-8";
/* ========================================
   INSIDE | HEADER GLOBAL
   Header fijo + dropdowns funcionales por click/tap
======================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10000;
  overflow: visible;
  background: rgba(4, 31, 25, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header,
.site-header * {
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

/* ========================================
   HEADER | LAYOUT
======================================== */
.header-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  align-items: center;
  gap: 1.5rem;
  overflow: visible;
}

.logo {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 220px;
  height: auto;
}

.main-nav {
  grid-column: 2/4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 1.35vw, 1.45rem);
  min-width: 0;
  padding-left: 0;
  overflow: visible;
}

.main-nav > a {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.22s ease;
}

.main-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: rgba(114, 239, 211, 0.92);
  transition: width 0.22s ease;
}

.main-nav > a:hover {
  color: #ffffff;
}

.main-nav > a:hover::after {
  width: 100%;
}

/* ========================================
   HEADER | DROPDOWN BASE
======================================== */
.nav-dropdown {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  overflow: visible;
}

.nav-dropdown.is-open {
  z-index: 10030;
}

.nav-dropdown-toggle {
  position: relative;
  z-index: 2;
  min-height: 46px;
  padding: 0.72rem 1.18rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid rgba(114, 239, 211, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(25, 110, 90, 0.98), rgba(10, 60, 50, 0.98));
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-open > .nav-dropdown-toggle {
  transform: translateY(-1px);
  border-color: rgba(114, 239, 211, 0.38);
  background: linear-gradient(135deg, rgb(35, 140, 115), rgb(15, 80, 65));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), 0 0 18px rgba(114, 239, 211, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-dropdown-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  line-height: 1;
  transition: transform 0.22s ease;
}

.nav-dropdown.is-open > .nav-dropdown-toggle .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 10040;
  display: none;
  width: max-content;
  min-width: 320px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(114, 239, 211, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(3, 35, 29, 0.98) 0%, rgba(3, 24, 28, 0.98) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}

.nav-dropdown.is-open > .nav-dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* ========================================
   HEADER | TOOLS DROPDOWN
======================================== */
.nav-tools-menu-header {
  padding: 1rem 1rem 0.85rem;
  background: rgba(2, 28, 24, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-tools-kicker {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #72efd3;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-tools-menu-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
  line-height: 1.5;
}

.nav-tools-links {
  display: grid;
}

.nav-tools-links a {
  display: block;
  padding: 0.92rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.nav-tools-links a:last-child {
  border-bottom: 0;
}

.nav-tools-links a:hover {
  background: rgba(114, 239, 211, 0.07);
}

.nav-tools-link-title {
  display: block;
  margin-bottom: 0.22rem;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-tools-link-desc {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  line-height: 1.42;
}

/* ========================================
   HEADER | LOGOUT VISUAL STATE
======================================== */
.nav-tools-logout-link {
  position: relative;
}

.nav-tools-logout-link:hover {
  border-color: rgba(255, 92, 92, 0.42) !important;
  background: radial-gradient(circle at left center, rgba(255, 92, 92, 0.2), transparent 45%), rgba(65, 14, 18, 0.78) !important;
  box-shadow: 0 0 0 1px rgba(255, 92, 92, 0.18), 0 0 18px rgba(255, 92, 92, 0.22), 0 0 34px rgba(255, 92, 92, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-tools-logout-link:hover .nav-tools-link-title {
  color: #ffffff;
}

.nav-tools-logout-link:hover .nav-tools-link-desc {
  color: rgba(255, 205, 205, 0.88);
}

/* ========================================
   HEADER | AUTH / PROFILE
======================================== */
.nav-auth-link {
  min-height: 44px;
  min-width: 104px;
  padding: 0.72rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.22s ease;
}

.nav-auth-link::after {
  display: none !important;
  content: none !important;
}

.nav-auth-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.profile-dropdown-toggle {
  gap: 0.5rem;
  padding: 0.48rem 0.78rem;
}

#headerAvatarText {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(114, 239, 211, 0.16);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

#headerAvatarImage {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
}

.profile-name-label,
#headerProfileName {
  max-width: 130px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-tools-menu {
  min-width: 320px;
}

/* ========================================
   HEADER | LIGHT MODE
======================================== */
body.theme-light .site-header {
  background: rgba(236, 241, 238, 0.86);
  border-bottom-color: rgba(16, 36, 31, 0.1);
  box-shadow: 0 8px 24px rgba(16, 36, 31, 0.06);
}

body.theme-light .main-nav > a {
  color: rgba(16, 36, 31, 0.82);
}

body.theme-light .main-nav > a:hover {
  color: #0f6b58;
}

body.theme-light .main-nav > a::after {
  background: rgba(15, 107, 88, 0.82);
}

body.theme-light .nav-dropdown-menu {
  border-color: rgba(15, 107, 88, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 248, 246, 0.98) 100%);
  box-shadow: 0 24px 60px rgba(16, 36, 31, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.theme-light .nav-tools-menu-header {
  background: rgba(245, 248, 246, 0.98);
  border-bottom-color: rgba(16, 36, 31, 0.08);
}

body.theme-light .nav-tools-kicker {
  color: #0f6b58;
}

body.theme-light .nav-tools-menu-header p {
  color: rgba(16, 36, 31, 0.68);
}

body.theme-light .nav-tools-links a {
  border-bottom-color: rgba(16, 36, 31, 0.08);
}

body.theme-light .nav-tools-links a:hover {
  background: rgba(15, 107, 88, 0.07);
}

body.theme-light .nav-tools-link-title {
  color: #17312b;
}

body.theme-light .nav-tools-link-desc {
  color: rgba(23, 49, 43, 0.62);
}

body.theme-light .nav-tools-logout-link {
  border-color: rgba(172, 38, 38, 0.1);
}

body.theme-light .nav-tools-logout-link:hover {
  border-color: rgba(172, 38, 38, 0.34) !important;
  background: linear-gradient(180deg, rgba(255, 250, 250, 0.98) 0%, rgba(255, 238, 238, 0.98) 100%) !important;
  box-shadow: inset 4px 0 0 rgba(172, 38, 38, 0.82), 0 0 0 1px rgba(172, 38, 38, 0.1), 0 12px 26px rgba(172, 38, 38, 0.12), 0 0 18px rgba(172, 38, 38, 0.1);
}

body.theme-light .nav-tools-logout-link:hover .nav-tools-link-title {
  color: #8f2424;
}

body.theme-light .nav-tools-logout-link:hover .nav-tools-link-desc {
  color: rgba(95, 31, 31, 0.78);
}

/* ========================================
   HEADER | RESPONSIVE DESKTOP
======================================== */
@media (max-width: 1240px) {
  .header-inner {
    grid-template-columns: 190px minmax(0, 1fr) 160px;
    gap: 1rem;
  }
  .logo img {
    width: 190px;
  }
  .main-nav {
    gap: 0.9rem;
  }
  .main-nav > a {
    font-size: 0.88rem;
  }
  .nav-dropdown-toggle {
    padding-inline: 1rem;
    font-size: 0.88rem;
  }
  .nav-auth-link {
    min-width: 92px;
    font-size: 0.86rem;
  }
}
@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .logo img {
    width: 170px;
  }
  .main-nav {
    grid-column: 2;
    justify-content: flex-end;
    gap: 0.8rem;
  }
  .main-nav > a {
    font-size: 0.82rem;
  }
  .profile-name-label,
  #headerProfileName {
    max-width: 90px;
  }
}
/* ========================================
   HEADER | RESPONSIVE MOBILE
======================================== */
@media (max-width: 768px) {
  .site-header {
    background: rgba(2, 31, 25, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  body.theme-light .site-header {
    background: rgba(246, 248, 246, 0.96);
  }
  .header-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0 1rem;
  }
  .logo {
    grid-column: 1;
    justify-self: center;
  }
  .logo img {
    width: 126px;
  }
  .main-nav {
    grid-column: 1;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
    padding-left: 0;
  }
  .main-nav > a {
    font-size: 0.9rem;
  }
  .nav-dropdown-toggle {
    min-height: 42px;
    padding: 0.66rem 1rem;
    font-size: 0.88rem;
  }
  .profile-dropdown-toggle {
    padding: 0.52rem 0.78rem;
  }
  .profile-name-label,
  #headerProfileName {
    max-width: 86px;
    display: inline-flex;
    font-size: 0.78rem;
  }
  .nav-dropdown-menu,
  .nav-tools-menu,
  .profile-tools-menu {
    position: fixed;
    top: 265px;
    left: 50%;
    right: auto;
    width: calc(100vw - 2rem);
    max-width: 390px;
    min-width: 0;
    max-height: calc(100vh - 285px);
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateX(-50%);
  }
  .nav-dropdown.is-open > .nav-dropdown-menu,
  .nav-dropdown.is-open > .nav-tools-menu,
  .profile-dropdown.is-open > .profile-tools-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%);
  }
  .nav-tools-menu-header,
  .nav-tools-links,
  .nav-tools-links a {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 430px) {
  .nav-dropdown-menu,
  .nav-tools-menu,
  .profile-tools-menu {
    top: 258px;
    max-height: calc(100vh - 278px);
  }
}
/* ========================================
   HEADER | MOBILE OFFSET PARA HEADERS INTERNOS
   Evita que el header fijo tape títulos
======================================== */
@media (max-width: 768px) {
  .services-header,
  .service-single-header,
  .process-header,
  .contact-header,
  .nosotros-header,
  .tools-header,
  .dashboard-header,
  .profile-page-header {
    padding-top: 310px !important;
  }
}
/* ========================================
   GLOBAL | BASE
======================================== */
html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  background: #0a211b;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 7, 6, 0.92) 0%, rgba(0, 7, 6, 0.45) 38%, rgba(0, 7, 6, 0.08) 70%, rgba(0, 7, 6, 0) 100%), radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.03), transparent 30%), radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.02), transparent 26%), url("/assets/hero-building-xray.png") right top/cover no-repeat, url("/assets/hero-texture.png") center top/cover no-repeat, #0a211b;
}

main {
  flex: 1;
}

.site-footer {
  margin-top: auto;
}

/* ========================================
   HERO | ESTRUCTURA GENERAL
======================================== */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: visible;
  padding: 135px 0 18px;
  background: transparent;
  color: #ffffff;
}

/* ========================================
   HERO | CONTENIDO PRINCIPAL
======================================== */
.hero-content {
  position: relative;
  z-index: 8;
  width: 100%;
  margin-bottom: 1.35rem;
}

.hero-text {
  max-width: 820px;
}

.hero-kicker {
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.hero h1 {
  margin-bottom: 1rem;
  max-width: 820px;
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.hero h1 span {
  display: inline;
  color: #d9f3e8;
}

.hero-description {
  max-width: 640px;
  margin-bottom: 1.4rem;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

/* ========================================
   HOME | HEADERS DE SECCIÓN
======================================== */
.home-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.home-section-head > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-section-subtitle {
  max-width: 760px;
  margin: 0.35rem auto 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.services-intro {
  max-width: 820px;
  margin: 0.4rem auto 0;
  text-align: center;
}

.home-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(114, 239, 211, 0.3);
  background: rgba(10, 52, 43, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), 0 0 0 4px rgba(114, 239, 211, 0.06);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: all 0.22s ease;
}

.home-section-link:hover {
  background: rgba(18, 78, 65, 0.98);
  border-color: rgba(114, 239, 211, 0.45);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22), 0 0 0 6px rgba(114, 239, 211, 0.08);
  transform: translateY(-1px);
}

.portfolio-section .section-title,
.value-prop-section .section-title {
  text-align: center;
}

/* ========================================
   TÍTULO SERVICIOS
======================================== */
.hero .section-title {
  text-align: center;
  margin-top: 1.2rem;
  margin-bottom: 1rem;
}

/* ========================================
   HERO | BOTONES
======================================== */
.hero-actions {
  position: relative;
  z-index: 9;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 185px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #ffffff;
  color: #0b3d2f;
  border: 1px solid #ffffff;
}

.btn-primary:hover {
  background: transparent;
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}

/* ========================================
   HERO | PANEL DE SERVICIOS
======================================== */
.hero-services {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: 2rem;
}

.hero-services--technical {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

/* ========================================
   HERO | TARJETAS SERVICIOS TÉCNICAS
======================================== */
.service-card--technical {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 320px;
  padding: 1.35rem 1.45rem 1.25rem;
  text-align: left;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)), rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 26px rgba(0, 0, 0, 0.12);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.service-card--technical:hover {
  transform: translateY(-4px);
  border-color: rgba(114, 239, 211, 0.22);
  background: linear-gradient(145deg, rgba(114, 239, 211, 0.09), rgba(255, 255, 255, 0.025)), rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 36px rgba(0, 0, 0, 0.18), 0 0 24px rgba(114, 239, 211, 0.06);
}

.service-card--technical > * {
  position: relative;
  z-index: 2;
}

.service-card--technical::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(114, 239, 211, 0.34), transparent);
}

.service-card--technical:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  width: 1px;
  height: calc(100% - 20px);
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.24) 15%, rgba(255, 255, 255, 0.24) 85%, transparent);
  z-index: 3;
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  margin-bottom: 0;
  color: #ffffff;
  opacity: 0.96;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.service-code {
  display: none !important;
}

.service-card--technical h3 {
  color: #ffffff;
  font-weight: 650;
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
  line-height: 1.24;
  text-shadow: 0 0 6px rgba(114, 239, 211, 0.35), 0 0 12px rgba(114, 239, 211, 0.18), 0 0 20px rgba(114, 239, 211, 0.08);
  transition: text-shadow 0.3s ease;
}

.service-description {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.55;
}

.service-card--technical ul {
  margin: 0 0 1.2rem;
  padding-left: 1.15rem;
  list-style-type: disc;
  list-style-position: outside;
}

.service-card--technical li {
  margin-bottom: 0.42rem;
  font-size: 0.94rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.service-card--technical li:last-child {
  margin-bottom: 0;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(114, 239, 211, 0.22);
  background: rgba(114, 239, 211, 0.1);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
  transition: all 0.22s ease;
}

.service-card-link:hover {
  background: rgba(114, 239, 211, 0.18);
  border-color: rgba(114, 239, 211, 0.36);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(114, 239, 211, 0.08);
}

/* ========================================
   PARA QUIÉN TRABAJAMOS
======================================== */
.who-we-work-with-section {
  position: relative;
  z-index: 2;
  padding: 36px 0 46px;
}

.who-we-work-with-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

.who-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 1rem 0.95rem 0.95rem;
  background: rgba(5, 19, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 18px rgba(0, 0, 0, 0.12);
}

.who-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.9rem;
  right: 0.9rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(114, 239, 211, 0.16), transparent);
}

.who-card-number {
  margin-bottom: 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: #ff4d6d;
}

.who-card h3 {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  text-transform: uppercase;
}

.who-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.74);
}

.who-we-work-with-footer {
  margin-top: 1rem;
  text-align: center;
}

.who-we-work-with-footer p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.78);
}

/* ========================================
   MULTIMEDIA | SECCIÓN
======================================== */
.portfolio-media-section {
  position: relative;
  z-index: 3;
  padding: 8px 0 40px;
}

.portfolio-media {
  margin-top: 0;
}

.portfolio-media-title {
  text-align: center;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
  color: #ffffff;
}

.portfolio-media-title span {
  display: block;
  color: #a8d5c2;
}

.portfolio-slider {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
  margin-top: 0;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.portfolio-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.65s ease, transform 0.8s ease, visibility 0.65s ease;
}

.portfolio-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transform: scale(1);
}

.portfolio-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.portfolio-slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.6rem 1.35rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.38) 45%, rgba(0, 0, 0, 0.05) 100%);
}

.portfolio-slide-overlay span {
  display: inline-flex;
  margin-bottom: 0.7rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 60, 50, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d7e6df;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-slide-overlay h4 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

.portfolio-slide-overlay p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 30, 24, 0.72);
  color: #ffffff;
  font-size: 1.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.slider-btn.prev {
  left: 18px;
}

.slider-btn.next {
  right: 18px;
}

.slider-btn:hover {
  background: rgba(15, 60, 50, 0.96);
  transform: translateY(-50%) scale(1.06);
}

.portfolio-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.portfolio-thumb {
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-thumb img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  display: block;
}

.portfolio-thumb.active {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.portfolio-thumb:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

/* ========================================
   TEXTO DESTACADO
======================================== */
.who-we-work-with-intro,
.who-we-work-with-footer p {
  position: relative;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.who-we-work-with-intro::after,
.who-we-work-with-footer p::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin-top: 0.6rem;
  background: linear-gradient(90deg, rgba(114, 239, 211, 0.8), transparent);
}

/* ========================================
   PORTAFOLIO | SECCIÓN
======================================== */
.portfolio-section {
  position: relative;
  margin-top: 0;
  padding: 42px 0 36px;
  background: transparent;
}

.portfolio-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 2.5rem;
}

.portfolio-title span {
  display: block;
  font-weight: 700;
  color: #a8d5c2;
}

.portfolio-grid--technical {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}

/* ========================================
   PORTAFOLIO | TARJETAS TÉCNICAS
======================================== */
.portfolio-card--technical {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 1.4rem 1.5rem 1.2rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.portfolio-card--technical > * {
  position: relative;
  z-index: 2;
}

.portfolio-card--technical:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  width: 1px;
  height: calc(100% - 20px);
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.25) 15%, rgba(255, 255, 255, 0.25) 85%, transparent);
}

.portfolio-card--technical::before {
  content: "";
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.portfolio-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.96);
}

.portfolio-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.portfolio-card--technical h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.portfolio-card--technical ul {
  margin: 0;
  padding-left: 1.2rem;
  list-style-type: disc;
  list-style-position: outside;
}

.portfolio-card--technical li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.portfolio-card--technical li:last-child {
  margin-bottom: 0;
}

/* ========================================
   VALUE PROP
======================================== */
.value-prop-section {
  position: relative;
  z-index: 3;
  padding: 36px 0 50px;
}

.value-prop {
  position: relative;
  z-index: 5;
  padding: 0;
  background: transparent;
}

.value-title {
  position: relative;
  margin-bottom: 1.6rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
}

.value-title span {
  display: block;
  color: #d9f3e8;
}

.value-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  margin: 1rem auto 0;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.value-buttons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.value-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #d7e6df;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(15, 60, 50, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.value-btn:hover {
  background: rgba(25, 90, 75, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ========================================
   LIGHTBOX CINEMATIC
======================================== */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease, backdrop-filter 0.45s ease, background 0.45s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-stage {
  position: relative;
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  transform: scale(0.86);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.lightbox.active .lightbox-img.is-visible {
  transform: scale(1);
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 30, 24, 0.88);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.06);
  background: rgba(15, 60, 50, 0.96);
}

.lightbox-nav {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 30, 24, 0.82);
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.lightbox-nav:hover {
  transform: scale(1.08);
  background: rgba(15, 60, 50, 0.96);
}

.lightbox-prev,
.lightbox-next {
  flex: 0 0 auto;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
  position: relative;
  margin-top: 28px;
  padding: 22px 0 0;
  background: linear-gradient(to top, rgba(3, 18, 15, 0.96) 0%, rgba(3, 18, 15, 0.88) 55%, rgba(3, 18, 15, 0.74) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  text-align: left;
}

.footer-brand img {
  width: 110px;
  height: auto;
  display: block;
  margin-bottom: 0.6rem;
  object-fit: contain;
}

.footer-brand p {
  max-width: 280px;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.footer-column {
  text-align: center;
}

.footer-column h4 {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.42rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.footer-column a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding: 0.55rem 0 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.56);
}

/* ========================================
   RESPONSIVE | LAPTOP
======================================== */
@media (max-width: 1200px) {
  .hero-services--technical {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
  .portfolio-grid--technical {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .portfolio-card--technical:nth-child(2)::after,
  .portfolio-card--technical:nth-child(4)::after {
    display: none;
  }
  .value-buttons {
    flex-wrap: wrap;
  }
}
/* ========================================
   RESPONSIVE | TABLET
======================================== */
@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding: 120px 0 28px;
  }
  .hero-content {
    margin-bottom: 1.2rem;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 7vw, 4rem);
  }
  .hero-services {
    margin-top: 1.5rem;
  }
  .hero-services--technical {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .service-card--technical {
    min-height: auto;
  }
  .service-card--technical::after {
    display: none;
  }
  .who-we-work-with-section {
    padding: 30px 0 38px;
  }
  .who-we-work-with-header {
    margin-bottom: 1.7rem;
  }
  .who-we-work-with-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .who-card {
    min-height: auto;
  }
  .portfolio-media-section {
    padding: 14px 0 34px;
  }
  .portfolio-slider {
    height: 380px;
  }
  .portfolio-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .portfolio-section {
    padding: 34px 0 40px;
  }
  .value-prop-section {
    padding: 34px 0 42px;
  }
  .value-buttons {
    flex-wrap: wrap;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 1.8rem;
    padding-bottom: 0.9rem;
  }
  .footer-brand {
    grid-column: 1/-1;
    text-align: center;
  }
  .footer-brand img {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-brand p {
    max-width: 420px;
    margin: 0 auto;
  }
}
/* ========================================
   RESPONSIVE | MOBILE
======================================== */
@media (max-width: 768px) {
  body::before {
    background: linear-gradient(90deg, rgba(0, 7, 6, 0.94) 0%, rgba(0, 7, 6, 0.52) 42%, rgba(0, 7, 6, 0.12) 75%, rgba(0, 7, 6, 0.02) 100%), radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.03), transparent 30%), radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.02), transparent 26%), url("/assets/hero-building-xray.png") 72% top/cover no-repeat, url("/assets/hero-texture.png") center top/cover no-repeat, #0a211b;
  }
  .hero {
    min-height: auto;
    overflow: visible;
    padding: 255px 0 62px;
  }
  .hero-content {
    margin-bottom: 1.4rem;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-kicker {
    font-size: 0.72rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.16em;
  }
  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.75rem, 7vw, 2.35rem);
    line-height: 1.02;
    margin-bottom: 1rem;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .hero-description {
    font-size: 0.95rem;
    max-width: 580px;
    line-height: 1.6;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }
  .hero .section-title {
    text-align: center;
    margin-top: 1.2rem;
    margin-bottom: 1rem;
  }
  .home-section-head {
    gap: 0.8rem;
    margin-bottom: 1rem;
  }
  .home-section-subtitle {
    font-size: 0.92rem;
    line-height: 1.58;
  }
  .home-section-link {
    width: 100%;
    min-width: unset;
    padding: 0.85rem 1rem;
  }
  .btn {
    width: 100%;
    min-width: auto;
  }
  .hero-services {
    margin-top: 1.3rem;
  }
  .hero-services--technical {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .service-card--technical {
    min-height: auto;
    padding: 1.2rem;
  }
  .service-card--technical::after {
    display: none;
  }
  .service-card-top {
    margin-bottom: 0.85rem;
  }
  .service-icon {
    width: 44px;
    height: 44px;
  }
  .service-code {
    display: none !important;
  }
  .service-card--technical h3 {
    font-size: 1.12rem;
  }
  .service-description {
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .service-card--technical li {
    font-size: 0.92rem;
    line-height: 1.45;
  }
  .service-card-link {
    width: 100%;
    padding: 0.76rem 1rem;
  }
  .who-we-work-with-section {
    padding: 28px 0 34px;
  }
  .who-we-work-with-header {
    margin-bottom: 1.3rem;
  }
  .who-we-work-with-title {
    font-size: clamp(1.5rem, 7vw, 1.95rem);
  }
  .who-we-work-with-intro {
    font-size: 0.94rem;
    line-height: 1.6;
  }
  .who-we-work-with-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .who-card {
    min-height: auto;
    padding: 0.95rem 0.95rem 0.9rem;
  }
  .who-card-number {
    font-size: 1.7rem;
    margin-bottom: 0.6rem;
  }
  .who-card h3 {
    font-size: 0.9rem;
  }
  .who-card p {
    font-size: 0.9rem;
    line-height: 1.58;
  }
  .who-we-work-with-footer {
    margin-top: 1.15rem;
  }
  .who-we-work-with-footer p {
    font-size: 0.89rem;
    line-height: 1.58;
  }
  .portfolio-media-section {
    padding: 18px 0 34px;
  }
  .portfolio-media-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  .portfolio-slider {
    height: 300px;
    border-radius: 14px;
  }
  .portfolio-slide-overlay {
    padding: 1.15rem 1rem 1rem;
  }
  .portfolio-slide-overlay h4 {
    font-size: 1.1rem;
  }
  .portfolio-slide-overlay p {
    font-size: 0.88rem;
  }
  .slider-btn {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }
  .slider-btn.prev {
    left: 10px;
  }
  .slider-btn.next {
    right: 10px;
  }
  .portfolio-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .portfolio-thumb img {
    height: 58px;
  }
  .portfolio-section {
    margin-top: 0;
    padding: 34px 0 38px;
  }
  .portfolio-grid--technical {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .portfolio-card--technical {
    min-height: auto;
    padding: 1.2rem 1.2rem 1rem;
  }
  .portfolio-card--technical::after {
    display: none;
  }
  .portfolio-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }
  .portfolio-card--technical h3 {
    font-size: 1.1rem;
  }
  .portfolio-card--technical li {
    font-size: 0.95rem;
  }
  .value-prop-section {
    padding: 34px 0 40px;
  }
  .value-title {
    margin-bottom: 1.2rem;
  }
  .value-buttons {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  .value-btn {
    width: 100%;
    padding: 0.95rem 1.2rem;
    font-size: 0.98rem;
  }
  .lightbox {
    padding: 1rem;
    gap: 0.5rem;
  }
  .lightbox-stage {
    max-width: 100%;
    max-height: 82vh;
  }
  .lightbox-img {
    max-height: 82vh;
    border-radius: 12px;
  }
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }
  .site-footer {
    margin-top: 24px;
    padding-top: 24px;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .footer-brand img {
    width: 100px;
  }
  .footer-brand p {
    max-width: 100%;
  }
}
.site-footer {
  position: relative;
  width: 100%;
  background: linear-gradient(to top, #071a16 0%, rgba(7, 26, 22, 0.95) 60%, rgba(7, 26, 22, 0.85) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0 20px;
  z-index: 10;
}

.site-footer__inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* LOGO */
.site-footer__logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.9;
}

/* TEXTO DERECHA */
.site-footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* 🔥 separación real con el contenido de arriba */
.site-footer {
  margin-top: 60px;
}

/* MOBILE */
@media (max-width: 768px) {
  .site-footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .site-footer__logo {
    height: 44px;
  }
}
/* ========================================
   LANGUAGE FLOAT BUTTON
======================================== */
.language-float {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 9998;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(5, 19, 31, 0.9);
  border: 1px solid rgba(114, 239, 211, 0.24);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: all 0.22s ease;
}

.language-float:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(114, 239, 211, 0.42);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 0 18px rgba(114, 239, 211, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.language-flag {
  position: relative;
  width: 30px;
  height: 21px;
  overflow: hidden;
  display: block;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 3px 8px rgba(0, 0, 0, 0.22);
}

/* España */
.language-flag--spain {
  display: grid;
  grid-template-rows: 1fr 2fr 1fr;
}

.language-flag--spain span:nth-child(1),
.language-flag--spain span:nth-child(3) {
  background: #c60b1e;
}

.language-flag--spain span:nth-child(2) {
  background: #ffc400;
}

/* Estados Unidos */
.language-flag--usa {
  background: repeating-linear-gradient(to bottom, #b22234 0, #b22234 3px, #ffffff 3px, #ffffff 6px);
}

.language-flag--usa .usa-canton {
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 11px;
  background: #3c3b6e;
  z-index: 2;
}

.language-flag--usa .usa-canton::after {
  content: "• • •";
  position: absolute;
  top: 1px;
  left: 2px;
  color: #ffffff;
  font-size: 4px;
  line-height: 4px;
  letter-spacing: 0.5px;
}

/* Light mode */
body.theme-light .language-float {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 36, 31, 0.12);
  box-shadow: 0 12px 30px rgba(16, 36, 31, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.theme-light .language-float:hover {
  border-color: rgba(15, 92, 77, 0.24);
  box-shadow: 0 16px 36px rgba(16, 36, 31, 0.16), 0 0 18px rgba(15, 92, 77, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Mobile */
@media (max-width: 768px) {
  .language-float {
    right: 16px;
    bottom: 86px;
    width: 48px;
    height: 48px;
  }
  .language-flag {
    width: 28px;
    height: 20px;
  }
}
/* ========================================
   NOSOTROS | BASE
======================================== */
.about-page {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

/* ========================================
   NOSOTROS | HEADER
======================================== */
.about-header {
  padding: 150px 0 40px;
}

.about-kicker {
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.about-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
}

.about-title span {
  color: #72efd3;
  text-shadow: 0 0 6px rgba(114, 239, 211, 0.4), 0 0 16px rgba(114, 239, 211, 0.2);
}

.about-subtitle {
  max-width: 720px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   NOSOTROS | SECCIONES GENERALES
======================================== */
.about-section {
  position: relative;
  padding: 40px 0 42px;
}

/* Ajuste visual: iguala el espacio entre el título "Quiénes somos"
   y sus tarjetas con el ritmo usado en "Visión y misión". */
.about-section > .container > .section-title {
  margin-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.about-grid--intro {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ========================================
   NOSOTROS | TARJETAS GENERALES
======================================== */
.about-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 1.5rem 1.5rem 1.35rem;
  background: rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.about-card::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.about-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.about-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.82);
}

/* ========================================
   NOSOTROS | VISIÓN Y MISIÓN
======================================== */
.about-identity-section {
  position: relative;
  padding-top: 40px;
  padding-bottom: 44px;
}

.about-identity-section > .container > .section-title {
  margin-bottom: 1rem;
}

.about-identity-intro {
  max-width: 820px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.8);
}

.about-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.about-identity-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 1.4rem 1.4rem 1.25rem;
  background: linear-gradient(180deg, rgba(5, 19, 31, 0.92) 0%, rgba(5, 19, 31, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 30px rgba(0, 0, 0, 0.14);
}

.about-identity-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.3rem;
  right: 1.3rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(114, 239, 211, 0.2), transparent);
}

.about-identity-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
}

.about-identity-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.82);
}

/* ========================================
   NOSOTROS | CÓMO TRABAJAMOS
======================================== */
.about-process-section {
  position: relative;
  padding-top: 40px;
  padding-bottom: 52px;
}

.about-process-section > .container > .section-title {
  margin-bottom: 1rem;
}

.about-process-intro {
  max-width: 820px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.8);
}

.about-process-line {
  position: relative;
  width: 100%;
  height: 1px;
  margin: 0 auto 1.4rem;
  background: linear-gradient(to right, transparent, rgba(114, 239, 211, 0.22), rgba(255, 255, 255, 0.12), rgba(114, 239, 211, 0.22), transparent);
}

.about-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.about-process-step {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 1.15rem 1rem 1rem;
  background: rgba(4, 16, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.about-process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.about-process-dot {
  position: relative;
  width: 10px;
  height: 10px;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: #72efd3;
  box-shadow: 0 0 0 4px rgba(114, 239, 211, 0.08), 0 0 12px rgba(114, 239, 211, 0.24), 0 0 22px rgba(114, 239, 211, 0.12);
  animation: insideProcessDotPulse 3.2s ease-in-out infinite;
}

.about-process-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(114, 239, 211, 0.34) 0%, rgba(114, 239, 211, 0.14) 42%, rgba(114, 239, 211, 0) 72%);
  opacity: 0.75;
  transform: scale(0.9);
  animation: insideProcessDotHalo 3.2s ease-in-out infinite;
  pointer-events: none;
}

.about-process-step:nth-child(1) .about-process-dot,
.about-process-step:nth-child(1) .about-process-dot::after {
  animation-delay: 0s;
}

.about-process-step:nth-child(2) .about-process-dot,
.about-process-step:nth-child(2) .about-process-dot::after {
  animation-delay: 0.35s;
}

.about-process-step:nth-child(3) .about-process-dot,
.about-process-step:nth-child(3) .about-process-dot::after {
  animation-delay: 0.7s;
}

.about-process-step:nth-child(4) .about-process-dot,
.about-process-step:nth-child(4) .about-process-dot::after {
  animation-delay: 1.05s;
}

.about-process-step h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.28;
  color: #ffffff;
}

.about-process-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.72);
}

/* ========================================
   NOSOTROS | ANIMACIONES
======================================== */
@keyframes insideProcessDotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(114, 239, 211, 0.08), 0 0 10px rgba(114, 239, 211, 0.22), 0 0 18px rgba(114, 239, 211, 0.12);
  }
  50% {
    transform: scale(1.16);
    box-shadow: 0 0 0 7px rgba(114, 239, 211, 0.07), 0 0 18px rgba(114, 239, 211, 0.46), 0 0 34px rgba(114, 239, 211, 0.28);
  }
}
@keyframes insideProcessDotHalo {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.95;
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-process-dot,
  .about-process-dot::after {
    animation: none;
  }
}
/* ========================================
   NOSOTROS | LIGHT MODE
======================================== */
body.theme-light .about-page {
  color: var(--light-text);
}

body.theme-light .about-kicker {
  color: rgba(16, 36, 31, 0.58);
}

body.theme-light .about-title {
  color: var(--light-text);
}

body.theme-light .about-title span {
  color: var(--light-green);
  text-shadow: 0 0 8px rgba(15, 107, 88, 0.16), 0 0 18px rgba(15, 107, 88, 0.08);
}

body.theme-light .about-subtitle,
body.theme-light .about-identity-intro,
body.theme-light .about-process-intro {
  color: var(--light-text-2);
}

body.theme-light .about-card,
body.theme-light .about-identity-card,
body.theme-light .about-process-step {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 246, 240, 0.9) 100%);
  border: 1px solid rgba(16, 36, 31, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 28px rgba(16, 36, 31, 0.08);
}

body.theme-light .about-card h3,
body.theme-light .about-identity-card h3,
body.theme-light .about-process-step h3 {
  color: var(--light-text);
}

body.theme-light .about-card p,
body.theme-light .about-identity-card p,
body.theme-light .about-process-step p {
  color: var(--light-text-2);
}

body.theme-light .about-process-line {
  background: linear-gradient(to right, transparent, rgba(15, 107, 88, 0.24), rgba(16, 36, 31, 0.12), rgba(15, 107, 88, 0.24), transparent);
}

body.theme-light .about-process-dot {
  background: #0f6b58;
  box-shadow: 0 0 0 4px rgba(15, 107, 88, 0.08), 0 0 12px rgba(15, 107, 88, 0.22), 0 0 22px rgba(15, 107, 88, 0.12);
}

body.theme-light .about-process-dot::after {
  background: radial-gradient(circle, rgba(15, 107, 88, 0.28) 0%, rgba(15, 107, 88, 0.12) 42%, rgba(15, 107, 88, 0) 72%);
}

/* ========================================
   NOSOTROS | RESPONSIVE TABLET
======================================== */
@media (max-width: 992px) {
  .about-header {
    padding: 140px 0 38px;
  }
  .about-grid,
  .about-grid--intro,
  .about-identity-grid {
    grid-template-columns: 1fr;
  }
  .about-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-card,
  .about-identity-card,
  .about-process-step {
    min-height: auto;
  }
}
/* ========================================
   NOSOTROS | RESPONSIVE MOBILE
======================================== */
@media (max-width: 768px) {
  .about-header {
    padding: 235px 0 34px;
  }
  .about-kicker {
    margin-bottom: 0.7rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }
  .about-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    line-height: 1.04;
  }
  .about-subtitle {
    font-size: 0.96rem;
    line-height: 1.65;
  }
  .about-section {
    padding: 28px 0 34px;
  }
  .about-section > .container > .section-title {
    margin-bottom: 1.4rem;
  }
  .about-card {
    padding: 1.25rem 1.2rem 1.1rem;
  }
  .about-card h3 {
    font-size: 1.1rem;
  }
  .about-card p {
    font-size: 0.94rem;
    line-height: 1.62;
  }
  .about-identity-section {
    padding-top: 28px;
    padding-bottom: 34px;
  }
  .about-identity-intro,
  .about-process-intro {
    margin-bottom: 1.4rem;
    font-size: 0.94rem;
    line-height: 1.62;
  }
  .about-identity-card {
    min-height: auto;
    padding: 1.15rem 1.15rem 1.05rem;
    border-radius: 14px;
  }
  .about-identity-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
  }
  .about-identity-card p {
    font-size: 0.94rem;
    line-height: 1.62;
  }
  .about-process-section {
    padding-top: 28px;
    padding-bottom: 42px;
  }
  .about-process-line {
    margin-bottom: 1rem;
  }
  .about-process-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .about-process-step {
    min-height: auto;
    padding: 1rem 1rem 0.95rem;
  }
  .about-process-step h3 {
    font-size: 0.96rem;
  }
  .about-process-step p {
    font-size: 0.9rem;
    line-height: 1.58;
  }
}
/* ========================================
   CONTACTO | BASE
======================================== */
.contact-page {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

/* ========================================
   HEADER CONTACTO
======================================== */
.contact-header {
  padding: 150px 0 40px;
}

.contact-kicker {
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.contact-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
}

.contact-title span {
  color: #72efd3;
  text-shadow: 0 0 6px rgba(114, 239, 211, 0.4), 0 0 16px rgba(114, 239, 211, 0.2);
}

.contact-subtitle {
  max-width: 760px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

/* ========================================
   CONTACTO | LAYOUT
======================================== */
.contact-section {
  padding: 40px 0 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.2rem;
  align-items: stretch;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 19, 31, 0.88) 0%, rgba(5, 19, 31, 0.76) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 30px rgba(0, 0, 0, 0.14);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.3rem;
  right: 1.3rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(114, 239, 211, 0.18), transparent);
}

/* ========================================
   CONTACTO | INFO
======================================== */
.contact-info-text,
.contact-form-text {
  margin: 0 0 1.3rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.contact-info-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.contact-info-item {
  display: grid;
  gap: 0.25rem;
}

.contact-info-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #72efd3;
}

.contact-info-item a,
.contact-info-item p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.contact-info-item a:hover {
  color: #ffffff;
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(114, 239, 211, 0.08);
  border: 1px solid rgba(114, 239, 211, 0.16);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ========================================
   CONTACTO | FORM
======================================== */
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-field {
  display: grid;
  gap: 0.45rem;
}

.contact-field--full {
  grid-column: 1/-1;
}

.contact-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  outline: none;
}

.contact-field select option {
  color: #111;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: rgba(114, 239, 211, 0.35);
  box-shadow: 0 0 0 3px rgba(114, 239, 211, 0.08);
}

.contact-message {
  grid-column: 1/-1;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(255, 138, 138, 0.08);
  border: 1px solid rgba(255, 138, 138, 0.18);
  font-size: 0.92rem;
  line-height: 1.55;
  color: #ffd0d0;
}

.contact-btn {
  grid-column: 1/-1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(114, 239, 211, 0.22);
  border-radius: 999px;
  background: rgba(15, 60, 50, 0.92);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.contact-btn:hover {
  background: rgba(25, 90, 75, 0.98);
  transform: translateY(-1px);
}

/* ========================================
   CONTACTO | RESPONSIVE
======================================== */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .contact-header {
    padding: 235px 0 34px;
  }
  .contact-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    margin-bottom: 0.7rem;
  }
  .contact-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    line-height: 1.04;
  }
  .contact-subtitle {
    font-size: 0.96rem;
    line-height: 1.65;
  }
  .contact-section {
    padding: 28px 0 40px;
  }
  .contact-card {
    padding: 1.15rem 1.1rem 1.05rem;
    border-radius: 14px;
  }
  .contact-form {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .contact-info-text,
  .contact-form-text {
    font-size: 0.94rem;
    line-height: 1.62;
  }
  .contact-info-item a,
  .contact-info-item p {
    font-size: 0.94rem;
  }
}
/* ========================================
   CONTACTO | BLOQUES EXTRA
======================================== */
.contact-extra-section {
  padding: 12px 0 42px;
}

.contact-extra-section--compact {
  padding-top: 8px;
  padding-bottom: 56px;
}

.contact-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-mini-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 1.25rem 1.2rem 1.1rem;
  border-radius: 14px;
  background: rgba(4, 16, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.contact-mini-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(114, 239, 211, 0.18), transparent);
}

.contact-mini-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.contact-mini-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.74);
}

/* ========================================
   CONTACTO | COBERTURA
======================================== */
.contact-location-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: stretch;
}

.contact-location-copy,
.contact-map-placeholder {
  position: relative;
  overflow: hidden;
  padding: 1.4rem 1.35rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 19, 31, 0.88) 0%, rgba(5, 19, 31, 0.76) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 30px rgba(0, 0, 0, 0.14);
}

.contact-location-copy::before,
.contact-map-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.2rem;
  right: 1.2rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(114, 239, 211, 0.18), transparent);
}

.contact-location-copy p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.contact-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background: linear-gradient(135deg, rgba(10, 35, 29, 0.96), rgba(5, 19, 31, 0.9));
}

.contact-map-inner {
  text-align: center;
}

.contact-map-inner span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #72efd3;
  text-shadow: 0 0 6px rgba(114, 239, 211, 0.24), 0 0 14px rgba(114, 239, 211, 0.1);
}

.contact-map-inner p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.76);
}

/* ========================================
   CONTACTO | RESPONSIVE EXTRA
======================================== */
@media (max-width: 992px) {
  .contact-extra-grid,
  .contact-location-card {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .contact-extra-section {
    padding: 6px 0 34px;
  }
  .contact-mini-card {
    min-height: auto;
    padding: 1rem 1rem 0.95rem;
  }
  .contact-mini-card h3 {
    font-size: 0.98rem;
  }
  .contact-mini-card p {
    font-size: 0.9rem;
    line-height: 1.58;
  }
  .contact-location-copy,
  .contact-map-placeholder {
    padding: 1.1rem 1rem 1rem;
    border-radius: 14px;
  }
  .contact-location-copy p {
    font-size: 0.94rem;
    line-height: 1.62;
  }
  .contact-map-placeholder {
    min-height: 180px;
  }
  .contact-map-inner span {
    font-size: 1.15rem;
  }
}
/* ========================================
   LOGIN | BASE
======================================== */
.login-page {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.login-section {
  padding: 150px 0 60px;
}

/* ========================================
   LOGIN | CARD
======================================== */
.login-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.8rem 1.8rem;
  border-radius: 18px;
  background: rgba(5, 19, 31, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-kicker {
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.login-title {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.04;
  color: #ffffff;
}

.login-title span {
  color: #72efd3;
  text-shadow: 0 0 6px rgba(114, 239, 211, 0.36), 0 0 14px rgba(114, 239, 211, 0.16);
}

.login-subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

/* ========================================
   LOGIN | FORM
======================================== */
.login-form {
  display: grid;
  gap: 1rem;
}

.login-field {
  display: grid;
  gap: 0.45rem;
}

.login-field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.login-field input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.login-field input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.login-field input:focus {
  border-color: rgba(114, 239, 211, 0.35);
  box-shadow: 0 0 0 3px rgba(114, 239, 211, 0.08);
}

/* ========================================
   LOGIN | PASSWORD VISIBILITY TOGGLE
======================================== */
.login-password-field {
  position: relative;
  width: 100%;
}

.login-password-field input {
  padding-right: 3.35rem;
}

.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #10241f;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.login-password-toggle:hover {
  color: #0f6b58;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 3px rgba(114, 239, 211, 0.12);
}

.login-password-toggle:focus-visible {
  outline: 2px solid rgba(114, 239, 211, 0.72);
  outline-offset: 2px;
}

.login-eye-icon {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-eye-closed {
  display: none;
}

.login-password-toggle.is-visible .login-eye-open {
  display: none;
}

.login-password-toggle.is-visible .login-eye-closed {
  display: block;
}

/* ========================================
   LOGIN | MESSAGE
======================================== */
.login-message {
  min-height: 22px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.login-message.is-error {
  color: #ff8a8a;
}

.login-message.is-success {
  color: #72efd3;
}

/* ========================================
   LOGIN | BUTTON
======================================== */
.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(114, 239, 211, 0.22);
  border-radius: 999px;
  background: rgba(15, 60, 50, 0.92);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.login-btn:hover {
  background: rgba(25, 90, 75, 0.98);
  transform: translateY(-1px);
}

/* ========================================
   LOGIN | LIGHT MODE
======================================== */
body.theme-light .login-page {
  color: var(--light-text);
}

body.theme-light .login-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 246, 240, 0.92) 100%);
  border-color: rgba(16, 36, 31, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 28px rgba(16, 36, 31, 0.08);
}

body.theme-light .login-kicker {
  color: rgba(16, 36, 31, 0.58);
}

body.theme-light .login-title {
  color: var(--light-text);
}

body.theme-light .login-title span {
  color: var(--light-green);
  text-shadow: 0 0 8px rgba(15, 107, 88, 0.16), 0 0 18px rgba(15, 107, 88, 0.08);
}

body.theme-light .login-subtitle,
body.theme-light .login-field label {
  color: var(--light-text-2);
}

body.theme-light .login-field input {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(16, 36, 31, 0.14);
  color: var(--light-text);
}

body.theme-light .login-field input::placeholder {
  color: rgba(16, 36, 31, 0.38);
}

body.theme-light .login-field input:focus {
  border-color: rgba(15, 107, 88, 0.32);
  box-shadow: 0 0 0 3px rgba(15, 107, 88, 0.08);
}

body.theme-light .login-password-toggle {
  background: rgba(255, 255, 255, 0.88);
  color: #10241f;
}

body.theme-light .login-password-toggle:hover {
  color: #0f6b58;
  background: rgba(15, 107, 88, 0.08);
}

body.theme-light .login-btn {
  background: rgba(15, 107, 88, 0.92);
  border-color: rgba(15, 107, 88, 0.24);
  color: #ffffff;
}

body.theme-light .login-btn:hover {
  background: rgba(15, 107, 88, 0.98);
}

body.theme-light .login-message.is-error {
  color: #b23b3b;
}

body.theme-light .login-message.is-success {
  color: #0f6b58;
}

/* ========================================
   LOGIN | MOBILE
======================================== */
@media (max-width: 768px) {
  .login-section {
    padding: 235px 0 40px;
  }
  .login-card {
    padding: 1.4rem 1.1rem 1.2rem;
    border-radius: 14px;
  }
  .login-subtitle {
    font-size: 0.94rem;
    line-height: 1.62;
  }
  .login-password-toggle {
    right: 0.45rem;
    width: 38px;
    height: 38px;
  }
  .login-eye-icon {
    width: 20px;
    height: 20px;
  }
}
/* ========================================
   HERRAMIENTAS | APP PANEL
======================================== */
.tools-app-page {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.tools-app-header {
  padding: 150px 0 36px;
}

.tools-app-kicker {
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.tools-app-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
}

.tools-app-title span {
  color: #72efd3;
  text-shadow: 0 0 10px rgba(114, 239, 211, 0.22);
}

.tools-app-subtitle {
  max-width: 760px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.tools-app-section {
  position: relative;
  padding: 36px 0 70px;
}

/* ========================================
   FICHAS FLOTANTES PEGADAS AL SIDEBAR
======================================== */
.tools-sidebar-fixed {
  position: fixed;
  left: var(--app-sidebar-width, 205px);
  top: 54vh;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 170px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.tools-tab {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  border-radius: 0 999px 999px 0;
  border: 1px solid rgba(114, 239, 211, 0.18);
  border-left: 0;
  background: rgba(5, 19, 31, 0.88);
  color: rgba(255, 255, 255, 0.84);
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.22s ease;
}

.tools-tab:hover,
.tools-tab.active {
  background: rgba(14, 67, 56, 0.96);
  border-color: rgba(114, 239, 211, 0.35);
  color: #ffffff;
  transform: translateX(4px);
}

/* ========================================
   CONTENIDO CENTRAL
======================================== */
.tools-content-container {
  padding-left: 0;
}

.tools-content {
  min-height: 460px;
  position: relative;
}

.tool-panel {
  display: none;
  padding: 1.5rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(5, 19, 31, 0.9) 0%, rgba(5, 19, 31, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 28px rgba(0, 0, 0, 0.14);
}

.tool-panel.active {
  display: block;
  animation: toolFade 0.22s ease;
}

@keyframes toolFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tool-panel h2 {
  margin: 0 0 0.8rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

.tool-panel p {
  max-width: 780px;
  margin: 0 0 1.3rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.tool-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tool-action-card {
  display: block;
  padding: 1.15rem;
  border-radius: 16px;
  background: rgba(114, 239, 211, 0.06);
  border: 1px solid rgba(114, 239, 211, 0.13);
  color: #ffffff;
  text-decoration: none;
}

.tool-action-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.tool-action-card p {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.76);
}

/* ========================================
   TEMA LIGHT
======================================== */
body.theme-light .tools-tab {
  background: rgba(5, 19, 31, 0.88);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 107, 88, 0.2);
}

body.theme-light .tools-tab:hover,
body.theme-light .tools-tab.active {
  background: rgba(15, 107, 88, 0.96);
  color: #ffffff;
}

body.theme-light .tool-panel {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(16, 36, 31, 0.08);
  box-shadow: 0 18px 45px rgba(16, 36, 31, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

body.theme-light .tool-panel h2 {
  color: #10241f;
}

body.theme-light .tool-panel p {
  color: rgba(16, 36, 31, 0.68);
}

body.theme-light .tool-action-card {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(16, 36, 31, 0.1);
  color: #10241f;
}

body.theme-light .tool-action-card p {
  color: rgba(16, 36, 31, 0.68);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 992px) {
  .tools-sidebar-fixed {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 2;
    width: auto;
    max-width: none;
    flex-direction: column;
    margin: 0 1rem 1rem;
    padding: 0;
  }
  .tools-tab {
    border-radius: 14px;
    border-left: 1px solid rgba(114, 239, 211, 0.18);
  }
  .tools-tab:hover,
  .tools-tab.active {
    transform: none;
  }
  .tools-content-container {
    padding-left: 0;
  }
}
@media (max-width: 768px) {
  .tools-app-header {
    padding: 235px 0 34px;
  }
  .tool-panel {
    padding: 1.1rem;
    border-radius: 14px;
  }
  .tool-actions-grid {
    grid-template-columns: 1fr;
  }
  .tool-panel h2 {
    font-size: 1.35rem;
  }
}
/* ========================================
   INSIDE | PRESUPUESTOS TOOL
   Archivo limpio: layout, formularios, tabla, light mode y mobile
======================================== */
/* ========================================
   PAGE HEADER
======================================== */
.budget-page {
  position: relative;
  z-index: 2;
  display: block;
  min-height: 100vh;
  padding-bottom: 80px;
  color: #ffffff;
  overflow: visible;
}

.budget-header {
  padding: 150px 0 42px;
}

.budget-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
}

.budget-title {
  margin: 0 0 1rem;
  max-width: 920px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.budget-title span {
  color: #72efd3;
  text-shadow: 0 0 10px rgba(114, 239, 211, 0.22);
}

.budget-subtitle {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.7;
}

/* ========================================
   APP LAYOUT
======================================== */
.budget-app-section {
  position: relative;
  display: block;
  padding: 0 0 160px;
  overflow: visible;
}

.budget-app-shell {
  position: relative;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  overflow: visible;
}

.budget-sidebar,
.budget-card,
.budget-toolbar {
  background: linear-gradient(180deg, rgba(4, 18, 29, 0.9) 0%, rgba(4, 18, 29, 0.78) 100%);
  border: 1px solid rgba(114, 239, 211, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.budget-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
  padding: 1.1rem;
  border-radius: 24px;
}

.budget-sidebar-header {
  margin-bottom: 1rem;
  padding: 0.5rem 0.35rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.budget-sidebar-header span {
  display: block;
  margin-bottom: 0.45rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.budget-sidebar-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  line-height: 1.55;
}

.budget-main {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-width: 0;
  overflow: visible;
}

/* ========================================
   SIDEBAR MENU
======================================== */
.budget-menu {
  display: grid;
  gap: 0.75rem;
}

.budget-menu-group {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.budget-menu-title {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.budget-menu-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(114, 239, 211, 0.12);
  color: #72efd3;
  font-size: 0.76rem;
  font-weight: 800;
}

.budget-menu-links {
  display: none;
  padding: 0 0.55rem 0.65rem;
}

.budget-menu-group.open .budget-menu-links {
  display: grid;
  gap: 0.35rem;
}

.budget-menu-links a {
  display: block;
  padding: 0.72rem 0.8rem;
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.budget-menu-links a:hover,
.budget-menu-links a.active {
  background: rgba(114, 239, 211, 0.11);
  color: #72efd3;
  transform: translateX(2px);
}

/* ========================================
   TOOLBAR / CARDS
======================================== */
.budget-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1.35rem;
  border-radius: 24px;
}

.budget-toolbar-label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(114, 239, 211, 0.74);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.budget-toolbar h2 {
  margin: 0 0 0.35rem;
  color: #ffffff;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  text-transform: capitalize;
}

.budget-toolbar p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.6;
}

.budget-toolbar-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.budget-btn {
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.budget-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.budget-btn-primary {
  background: #0f6b58;
  color: #ffffff;
  border-color: rgba(114, 239, 211, 0.2);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.budget-btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.1);
}


.budget-btn-dashboard {
  background: linear-gradient(135deg, rgba(15, 107, 88, 0.98), rgba(20, 156, 128, 0.96));
  color: #ffffff;
  border-color: rgba(114, 239, 211, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(114, 239, 211, 0.12) inset;
}

.budget-btn-dashboard:hover,
.budget-btn-dashboard:focus-visible {
  background: linear-gradient(135deg, rgba(20, 156, 128, 1), rgba(33, 190, 156, 0.98));
  border-color: rgba(114, 239, 211, 0.72);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(114, 239, 211, 0.2) inset;
}

.budget-btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.budget-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.budget-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.budget-card {
  position: relative;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 1.25rem;
  border-radius: 24px;
  overflow: visible;
}

.budget-template-card,
.budget-results-card {
  width: 100%;
  display: block;
  margin: 0;
}

.budget-results-card {
  padding: 1.05rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(4, 18, 29, 0.94) 0%, rgba(4, 18, 29, 0.84) 100%);
  border: 1px solid rgba(114, 239, 211, 0.14);
  margin-top: 1.25rem;
  margin-bottom: 3rem;
}

.budget-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.budget-results-card .budget-card-header {
  margin-bottom: 0.85rem;
}

.budget-card-header span {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(114, 239, 211, 0.78);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.budget-results-card .budget-card-header span {
  font-size: 0.68rem;
  letter-spacing: 0.17em;
}

.budget-card-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
}

.budget-results-card .budget-card-header h3 {
  font-size: 1.08rem;
}

.budget-card-header em {
  color: #72efd3;
  font-style: normal;
  text-transform: capitalize;
}

/* ========================================
   TEMPLATE FORM
======================================== */
.budget-template-form,
#main_table,
#p_muro,
#p_muro.container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow: visible;
}

#p_muro.container,
#p_muro {
  padding: 0;
}

.budget-template-form {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 20px;
}

.budget-template-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.budget-template-actions .budget-btn {
  min-width: 160px;
}

@media (max-width: 768px) {
  .budget-template-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .budget-template-actions .budget-btn {
    width: 100%;
  }
}
.budget-form-layout {
  display: grid;
  gap: 1.2rem;
}

.budget-form-section {
  padding: 1.15rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.025) 100%);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.budget-form-section-header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.budget-form-section-header > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(114, 239, 211, 0.1);
  color: #72efd3;
  font-size: 0.82rem;
  font-weight: 900;
}

.budget-form-section-header h4 {
  margin: 0 0 0.25rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 850;
}

.budget-form-section-header p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  line-height: 1.55;
}

.budget-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 1.15rem;
}

.budget-field {
  min-width: 0;
}

.budget-field label {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.35;
}

.budget-field input,
.budget-field select,
.budget-field textarea,
.budget-input-group input,
.budget-input-group select {
  width: 100%;
  min-height: 48px;
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.93);
  color: #10241f;
  font-size: 0.92rem;
  font-weight: 600;
}

.budget-field input:disabled,
.budget-field select:disabled,
.budget-input-group input:disabled,
.budget-input-group select:disabled {
  opacity: 0.74;
  cursor: not-allowed;
}

.budget-field input:focus,
.budget-field select:focus,
.budget-field textarea:focus,
.budget-input-group input:focus,
.budget-input-group select:focus {
  outline: none;
  border-color: rgba(114, 239, 211, 0.72);
  box-shadow: 0 0 0 4px rgba(114, 239, 211, 0.1);
}

.budget-input-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  width: 100%;
}

.budget-input-group input,
.budget-input-group select {
  border-radius: 13px 0 0 13px;
}

.budget-input-group select:only-child,
.budget-input-group input:only-child {
  border-radius: 13px;
}

.budget-input-group span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 0 0.8rem;
  border-radius: 0 13px 13px 0;
  background: rgba(114, 239, 211, 0.12);
  border: 1px solid rgba(114, 239, 211, 0.16);
  border-left: 0;
  color: #72efd3;
  font-size: 0.85rem;
  font-weight: 850;
}

.budget-template-form .row,
.budget-table .row,
#p_muro .row {
  margin-left: 0;
  margin-right: 0;
}

#p_muro .accordion,
#p_muro .accordion-item,
#p_muro .accordion-collapse,
#p_muro .accordion-body {
  position: relative;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

#p_muro .accordion-item {
  margin-bottom: 1rem;
}

#p_muro .accordion-collapse {
  display: block;
}

#p_muro .accordion-body {
  padding-bottom: 1rem;
}

.budget-empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 2rem;
}

.budget-empty-state span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: rgba(114, 239, 211, 0.1);
  color: #72efd3;
  font-weight: 900;
}

.budget-empty-state h3 {
  margin: 0 0 0.55rem;
  color: #ffffff;
  font-weight: 800;
}

.budget-empty-state p {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.7;
}

/* ========================================
   RESULT TABLE
======================================== */
.budget-mobile-scroll-hint {
  display: none;
}

.budget-table-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0.72rem;
  border-radius: 18px;
  background: rgba(3, 20, 27, 0.72);
  border: 1px solid rgba(114, 239, 211, 0.1);
  overflow-x: auto;
  overflow-y: visible;
  box-sizing: border-box;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(114, 239, 211, 0.45) rgba(255, 255, 255, 0.08);
}

.budget-table-wrap.is-dragging,
.budget-table-wrap.is-horizontal-dragging {
  cursor: grabbing;
}

.budget-table-wrap::-webkit-scrollbar {
  height: 8px;
}

.budget-table-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.budget-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(114, 239, 211, 0.38);
  border-radius: 999px;
}

.budget-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(114, 239, 211, 0.62);
}

.budget-table,
#tabla_presupuestos {
  width: 100%;
  min-width: 760px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(5, 30, 37, 0.98) 0%, rgba(4, 25, 32, 0.98) 100%);
  border: 1px solid rgba(114, 239, 211, 0.12);
  box-sizing: border-box;
}

.budget-table-header,
.budget-table-body .filas,
.budget-table-body .label {
  display: grid;
  grid-template-columns: 0.45fr 0.95fr 1fr 1.15fr 0.78fr 0.62fr 1.15fr 0.9fr;
  align-items: center;
  margin: 0;
  box-sizing: border-box;
}

.budget-table-header {
  padding: 0.66rem 0.7rem;
  background: rgba(114, 239, 211, 0.115);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.61rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.budget-table-header > div {
  padding: 0 0.22rem;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.budget-table-body {
  color: #ffffff;
}

.budget-table-body .contentBx {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.budget-table-body .contentBx:first-child {
  border-top: 0;
}

.budget-table-body .filas,
.budget-table-body .label {
  padding: 0.68rem 0.7rem;
  background: linear-gradient(90deg, rgba(10, 84, 73, 0.42) 0%, rgba(8, 52, 59, 0.34) 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(114, 239, 211, 0.13);
}

.budget-table-body .filas > div,
.budget-table-body .label > div {
  min-width: 0;
  padding: 0 0.22rem;
  font-size: 0.7rem;
  line-height: 1.16;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.budget-table-body .filas > div:first-child,
.budget-table-body .label > div:first-child {
  color: #72efd3;
  font-weight: 950;
}

.budget-table-body .filas #familia,
.budget-table-body .label #familia,
.budget-table-body .filas #elemento,
.budget-table-body .label #elemento {
  font-weight: 750;
  text-transform: capitalize;
}

.budget-table-body .filas #opciones,
.budget-table-body .label #opciones {
  display: flex;
  justify-content: flex-end;
}

.budget-table-body .btn-red,
.budget-table-body .btn-danger,
.budget-table-body button {
  min-width: 68px;
  padding: 0.38rem 0.58rem;
  border-radius: 999px;
  background: rgba(200, 44, 44, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.61rem;
  font-weight: 900;
  line-height: 1;
}

.budget-table-body .btn-red:hover,
.budget-table-body .btn-danger:hover,
.budget-table-body button:hover {
  background: rgb(220, 58, 58);
}

/* ========================================
   RESULT DETAIL ROWS
======================================== */
.budget-table-body .content {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(7, 31, 39, 0.98) 0%, rgba(6, 27, 35, 0.98) 100%);
  color: rgba(255, 255, 255, 0.82);
  border: 0;
}

.budget-table-body .content .row {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.7fr 0.78fr 0.58fr 1.02fr 1.12fr;
  align-items: center;
  min-height: 27px;
  margin: 0;
  padding: 0.26rem 0.7rem;
  background: rgba(255, 255, 255, 0.018);
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  box-sizing: border-box;
}

.budget-table-body .content .row:nth-child(even) {
  background: rgba(255, 255, 255, 0.028);
}

.budget-table-body .content .row:last-child {
  border-bottom: 0;
}

.budget-table-body .content .row > div {
  min-width: 0;
  padding: 0 0.22rem;
  font-size: 0.62rem;
  line-height: 1.15;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.budget-detail-header,
.budget-detail-section-title {
  color: #72efd3;
  font-weight: 950;
  text-transform: uppercase;
}

.budget-detail-header {
  background: rgba(114, 239, 211, 0.1) !important;
  letter-spacing: 0.055em;
}

.budget-detail-section-title {
  background: rgba(114, 239, 211, 0.08) !important;
  letter-spacing: 0.05em;
}

.budget-detail-header > div {
  color: #72efd3;
  font-size: 0.58rem;
  font-weight: 950;
}

.budget-detail-section-title > div {
  color: #72efd3;
  font-size: 0.62rem;
  font-weight: 950;
}

.budget-detail-family {
  background: rgba(255, 255, 255, 0.012);
}

.budget-detail-family > div {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.6rem;
  font-weight: 850;
}

.budget-detail-item > div:nth-child(7),
.budget-table-body .content .subtotal,
.budget-table-body .content .row > div:nth-child(7) {
  color: #72efd3;
  font-weight: 950;
}

.budget-detail-total {
  background: rgba(114, 239, 211, 0.045);
}

.budget-detail-total > div:nth-child(3) {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.budget-detail-total > div:nth-child(7) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 999px;
  background: rgba(114, 239, 211, 0.13);
  border: 1px solid rgba(114, 239, 211, 0.13);
  color: #72efd3;
  font-weight: 950;
}

.budget-grand-total {
  min-height: 40px;
  background: linear-gradient(90deg, rgba(15, 107, 88, 0.42) 0%, rgba(9, 59, 64, 0.38) 100%) !important;
  border-top: 1px solid rgba(114, 239, 211, 0.22);
  border-bottom: 0;
}

.budget-grand-total > div:nth-child(3) {
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.budget-grand-total > div:nth-child(7) {
  color: #72efd3;
  font-size: 0.82rem;
  font-weight: 950;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Numeric alignment */
.budget-table-body .content .row > div:nth-child(4),
.budget-table-body .content .row > div:nth-child(6),
.budget-table-body .content .row > div:nth-child(7),
.budget-table-body .filas > div:nth-child(4),
.budget-table-body .filas > div:nth-child(5),
.budget-table-body .filas > div:nth-child(7) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.budget-table-body .content .row > div:last-child,
.budget-table-header > div:last-child,
.budget-table-body .filas > div:last-child {
  padding-right: 0.35rem;
}

.budget-table-body .content .border,
.budget-table-body .content .border-bottom {
  border-left: 0 !important;
  border-right: 0 !important;
}

/* Legacy Bootstrap-like classes generated by old JS */
.budget-table-body .content .bg-primary,
.budget-table-body .content .fs-5,
.budget-table-body .content .fw-bolder {
  background: rgba(114, 239, 211, 0.1);
  color: #72efd3;
  font-size: 0.61rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.budget-table-body .content .bg-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(114, 239, 211, 0.13);
  border: 1px solid rgba(114, 239, 211, 0.12);
  color: #72efd3;
  font-size: 0.68rem;
  font-weight: 900;
}

/* ========================================
   FLOATING BUTTONS / NO GLOBAL FOOTER
======================================== */
.budget-app-bottom-space {
  display: block;
  width: 100%;
  height: 140px;
}

.budget-page ~ .whatsapp-float,
.budget-page ~ .language-float,
.budget-page ~ .theme-toggle {
  z-index: 999;
}

/* ========================================
   LIGHT MODE
======================================== */
body.theme-light .budget-page {
  color: var(--light-text);
}

body.theme-light .budget-kicker {
  color: rgba(16, 36, 31, 0.58);
}

body.theme-light .budget-title {
  color: var(--light-text);
  text-shadow: none;
}

body.theme-light .budget-title span {
  color: var(--light-green);
  text-shadow: 0 0 10px rgba(15, 92, 77, 0.18), 0 0 20px rgba(15, 92, 77, 0.08);
}

body.theme-light .budget-subtitle {
  color: var(--light-text-2);
}

body.theme-light .budget-sidebar,
body.theme-light .budget-card,
body.theme-light .budget-toolbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 245, 238, 0.94) 100%);
  border: 1px solid rgba(16, 36, 31, 0.1);
  color: var(--light-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 18px 44px rgba(16, 36, 31, 0.1);
}

body.theme-light .budget-sidebar-header span,
body.theme-light .budget-toolbar h2,
body.theme-light .budget-card-header h3,
body.theme-light .budget-empty-state h3,
body.theme-light .budget-form-section-header h4 {
  color: var(--light-text);
}

body.theme-light .budget-sidebar-header p,
body.theme-light .budget-toolbar p,
body.theme-light .budget-empty-state p,
body.theme-light .budget-form-section-header p {
  color: var(--light-text-2);
}

body.theme-light .budget-menu-group,
body.theme-light .budget-form-section,
body.theme-light .budget-template-form {
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(16, 36, 31, 0.09);
}

body.theme-light .budget-menu-title {
  color: var(--light-text);
}

body.theme-light .budget-menu-links a {
  color: rgba(16, 36, 31, 0.66);
}

body.theme-light .budget-menu-links a:hover,
body.theme-light .budget-menu-links a.active {
  background: rgba(15, 92, 77, 0.08);
  color: var(--light-green);
}

body.theme-light .budget-field label {
  color: rgba(16, 36, 31, 0.72);
}

body.theme-light .budget-field input,
body.theme-light .budget-field select,
body.theme-light .budget-field textarea,
body.theme-light .budget-input-group input,
body.theme-light .budget-input-group select {
  background: rgba(255, 255, 255, 0.94);
  color: var(--light-text);
  border-color: rgba(16, 36, 31, 0.12);
}

body.theme-light .budget-input-group span {
  background: rgba(15, 92, 77, 0.08);
  border-color: rgba(15, 92, 77, 0.14);
  color: var(--light-green);
}

body.theme-light .budget-table-wrap {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(16, 36, 31, 0.1);
}

body.theme-light .budget-table {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 36, 31, 0.1);
}

body.theme-light .budget-table-header {
  background: rgba(15, 92, 77, 0.1);
  color: var(--light-text);
}

body.theme-light .budget-table-body .filas,
body.theme-light .budget-table-body .label {
  background: linear-gradient(90deg, rgba(15, 92, 77, 0.16) 0%, rgba(15, 92, 77, 0.09) 100%);
  color: var(--light-text);
}

body.theme-light .budget-table-body .filas > div:first-child,
body.theme-light .budget-table-body .label > div:first-child {
  color: var(--light-green);
}

body.theme-light .budget-table-body .content {
  background: rgba(255, 255, 255, 0.96);
  color: var(--light-text);
}

body.theme-light .budget-table-body .content .row {
  background: rgba(255, 255, 255, 0.65);
  color: var(--light-text);
  border-bottom-color: rgba(16, 36, 31, 0.07);
}

body.theme-light .budget-table-body .content .row:nth-child(even) {
  background: rgba(248, 245, 238, 0.72);
}

body.theme-light .budget-detail-header,
body.theme-light .budget-detail-section-title,
body.theme-light .budget-table-body .content .bg-primary,
body.theme-light .budget-table-body .content .fs-5,
body.theme-light .budget-table-body .content .fw-bolder {
  background: rgba(15, 92, 77, 0.075);
  color: var(--light-green);
}

body.theme-light .budget-detail-header > div,
body.theme-light .budget-detail-section-title > div,
body.theme-light .budget-detail-item > div:nth-child(7),
body.theme-light .budget-grand-total > div:nth-child(7) {
  color: var(--light-green);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 992px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .budget-page,
  .budget-app-section,
  .budget-app-shell,
  .budget-main,
  .budget-results-card {
    max-width: 100%;
    overflow-x: hidden;
  }
  .budget-header {
    padding-top: 320px;
    padding-bottom: 34px;
  }
  .budget-header .container,
  .budget-app-section .container,
  .budget-app-shell {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  .budget-title {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0.85rem;
    font-size: clamp(2rem, 8vw, 2.65rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
  }
  .budget-title span {
    display: inline;
  }
  .budget-subtitle {
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .budget-app-section {
    padding-bottom: 120px;
  }
  .budget-app-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .budget-sidebar,
  .budget-main,
  .budget-toolbar,
  .budget-card,
  .budget-template-form,
  .budget-results-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .budget-sidebar {
    position: relative;
    top: auto;
    order: 1;
    padding: 0.95rem;
    border-radius: 20px;
  }
  .budget-main {
    order: 2;
    gap: 1rem;
    overflow: visible;
  }
  .budget-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 20px;
  }
  .budget-toolbar h2 {
    font-size: 1.45rem;
  }
  .budget-toolbar p {
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .budget-toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .budget-btn {
    width: 100%;
  }
  .budget-card {
    padding: 1rem;
    border-radius: 20px;
  }
  .budget-card-header h3 {
    font-size: 1rem;
  }
  .budget-template-form {
    padding: 0.9rem;
    border-radius: 18px;
  }
  .budget-form-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .budget-form-section {
    padding: 0.95rem;
    border-radius: 16px;
  }
  .budget-form-section-header {
    flex-direction: column;
  }
  .budget-field input,
  .budget-field select,
  .budget-field textarea,
  .budget-input-group input,
  .budget-input-group select {
    min-height: 44px;
    padding: 0.68rem 0.75rem;
    font-size: 0.86rem;
  }
  .budget-mobile-scroll-hint {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.35rem 0 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
    background: rgba(114, 239, 211, 0.09);
    border: 1px solid rgba(114, 239, 211, 0.13);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 750;
  }
  .budget-mobile-scroll-hint span {
    color: #72efd3;
    font-weight: 900;
  }
  #scroll_xy.budget-table-wrap,
  .budget-table-wrap#scroll_xy {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.65rem;
    border-radius: 18px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-y pinch-zoom;
    background: rgba(3, 20, 27, 0.72);
    border: 1px solid rgba(114, 239, 211, 0.1);
  }
  #scroll_xy.budget-table-wrap.is-horizontal-dragging {
    touch-action: none;
    cursor: grabbing;
  }
  #scroll_xy.budget-table-wrap::-webkit-scrollbar {
    height: 10px;
  }
  #scroll_xy.budget-table-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
  }
  #scroll_xy.budget-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(114, 239, 211, 0.55);
    border-radius: 999px;
  }
  #tabla_presupuestos.budget-table,
  #tabla_presupuestos,
  #tabla_presupuestos .budget-table-header,
  #tabla_presupuestos .budget-table-body .filas,
  #tabla_presupuestos .budget-table-body .label,
  #tabla_presupuestos .budget-table-body .content,
  #tabla_presupuestos .budget-table-body .content .row,
  .budget-grand-total,
  .budget-detail-total {
    width: 900px;
    min-width: 900px;
    max-width: 900px;
    box-sizing: border-box;
  }
  #tabla_presupuestos .budget-table-header,
  #tabla_presupuestos .budget-table-body .filas,
  #tabla_presupuestos .budget-table-body .label {
    grid-template-columns: 52px 105px 115px 130px 82px 68px 140px 98px;
  }
  #tabla_presupuestos .budget-table-body .content .row {
    grid-template-columns: 96px 108px 190px 82px 58px 122px 144px;
  }
  #tabla_presupuestos .budget-table-header > div {
    font-size: 0.64rem;
    line-height: 1.15;
    white-space: normal;
  }
  #tabla_presupuestos .budget-table-body .filas > div,
  #tabla_presupuestos .budget-table-body .label > div {
    font-size: 0.72rem;
    line-height: 1.18;
  }
  #tabla_presupuestos .budget-table-body .content .row {
    min-height: 32px;
    padding: 0.34rem 0.8rem;
  }
  #tabla_presupuestos .budget-table-body .content .row > div {
    font-size: 0.66rem;
    line-height: 1.18;
  }
  .budget-grand-total {
    min-height: 42px;
  }
  .budget-grand-total > div:nth-child(3) {
    font-size: 0.74rem;
  }
  .budget-grand-total > div:nth-child(7) {
    font-size: 0.8rem;
  }
}
@media (max-width: 768px) {
  .whatsapp-float {
    right: 14px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
  .language-float {
    right: 14px;
    bottom: 82px;
  }
  .theme-toggle {
    left: 14px;
    bottom: 16px;
    z-index: 999;
  }
}
@media (max-width: 480px) {
  .budget-header {
    padding-top: 335px;
  }
  .budget-header .container,
  .budget-app-section .container,
  .budget-app-shell {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  #tabla_presupuestos.budget-table,
  #tabla_presupuestos,
  #tabla_presupuestos .budget-table-header,
  #tabla_presupuestos .budget-table-body .filas,
  #tabla_presupuestos .budget-table-body .label,
  #tabla_presupuestos .budget-table-body .content,
  #tabla_presupuestos .budget-table-body .content .row,
  .budget-grand-total,
  .budget-detail-total {
    width: 880px;
    min-width: 880px;
    max-width: 880px;
  }
  #tabla_presupuestos .budget-table-header,
  #tabla_presupuestos .budget-table-body .filas,
  #tabla_presupuestos .budget-table-body .label {
    grid-template-columns: 48px 100px 110px 126px 78px 64px 136px 88px;
  }
  #tabla_presupuestos .budget-table-body .content .row {
    grid-template-columns: 92px 104px 184px 78px 56px 118px 136px;
  }
}
/* ========================================
   PRESUPUESTOS | LIGHT MODE CONTRAST FIX
   Mejora contraste de botones, textos y acentos
======================================== */
body.theme-light .budget-toolbar-label,
body.theme-light .budget-card-header span,
body.theme-light .budget-card-header em,
body.theme-light .budget-menu-title span,
body.theme-light .budget-form-section-header > span,
body.theme-light .budget-mobile-scroll-hint span {
  color: #0f6b58 !important;
  text-shadow: none !important;
}

body.theme-light .budget-title span {
  color: #0f6b58 !important;
  text-shadow: 0 0 8px rgba(15, 107, 88, 0.14), 0 0 18px rgba(15, 107, 88, 0.08) !important;
}

body.theme-light .budget-toolbar-label,
body.theme-light .budget-card-header span {
  color: #12806a !important;
  opacity: 1 !important;
}

body.theme-light .budget-menu-title span,
body.theme-light .budget-form-section-header > span {
  background: rgba(15, 107, 88, 0.1) !important;
  border: 1px solid rgba(15, 107, 88, 0.1) !important;
  color: #0f6b58 !important;
}

body.theme-light .budget-menu-links a:hover,
body.theme-light .budget-menu-links a.active {
  background: rgba(15, 107, 88, 0.1) !important;
  color: #0f6b58 !important;
}

/* ========================================
   BOTONES LIGHT MODE
======================================== */
body.theme-light .budget-btn-primary {
  background: #0f6b58 !important;
  color: #ffffff !important;
  border-color: rgba(15, 107, 88, 0.22) !important;
  box-shadow: 0 12px 26px rgba(15, 107, 88, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

body.theme-light .budget-btn-primary:hover:not(:disabled) {
  background: #0b5a4a !important;
  border-color: rgba(15, 107, 88, 0.34) !important;
}

body.theme-light .budget-btn-secondary {
  background: rgba(16, 36, 31, 0.08) !important;
  color: #10241f !important;
  border-color: rgba(16, 36, 31, 0.14) !important;
  box-shadow: 0 10px 22px rgba(16, 36, 31, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.68) !important;
}

body.theme-light .budget-btn-secondary:hover:not(:disabled) {
  background: rgba(15, 107, 88, 0.1) !important;
  color: #0f6b58 !important;
  border-color: rgba(15, 107, 88, 0.2) !important;
}

/* Botón deshabilitado visible en light */
body.theme-light .budget-btn:disabled,
body.theme-light .budget-btn-secondary:disabled,
body.theme-light .budget-btn-primary:disabled {
  opacity: 1 !important;
  cursor: not-allowed !important;
  background: rgba(16, 36, 31, 0.1) !important;
  color: rgba(16, 36, 31, 0.42) !important;
  border-color: rgba(16, 36, 31, 0.12) !important;
  box-shadow: none !important;
}

/* Cuando Cargar ejemplo esté activo */
body.theme-light .budget-btn-secondary:not(:disabled) {
  background: rgba(255, 255, 255, 0.86) !important;
  color: #10241f !important;
  border-color: rgba(16, 36, 31, 0.16) !important;
}

/* ========================================
   FORMULARIO LIGHT MODE MÁS DEFINIDO
======================================== */
body.theme-light .budget-sidebar,
body.theme-light .budget-card,
body.theme-light .budget-toolbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 246, 240, 0.95) 100%) !important;
  border-color: rgba(16, 36, 31, 0.12) !important;
}

body.theme-light .budget-template-form,
body.theme-light .budget-form-section,
body.theme-light .budget-menu-group {
  background: rgba(255, 255, 255, 0.74) !important;
  border-color: rgba(16, 36, 31, 0.1) !important;
}

body.theme-light .budget-form-section-header p,
body.theme-light .budget-toolbar p,
body.theme-light .budget-sidebar-header p {
  color: rgba(16, 36, 31, 0.58) !important;
}

body.theme-light .budget-field label {
  color: rgba(16, 36, 31, 0.68) !important;
}

body.theme-light .budget-field input,
body.theme-light .budget-field select,
body.theme-light .budget-field textarea,
body.theme-light .budget-input-group input,
body.theme-light .budget-input-group select {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #10241f !important;
  border-color: rgba(16, 36, 31, 0.14) !important;
}

body.theme-light .budget-input-group span {
  background: rgba(15, 107, 88, 0.08) !important;
  color: #0f6b58 !important;
  border-color: rgba(15, 107, 88, 0.14) !important;
}

/* ========================================
   PRESUPUESTOS | LIGHT MODE TABLE FIX
   Tabla clara, encabezado legible y botones diferenciados
======================================== */
body.theme-light .budget-results-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 246, 240, 0.94) 100%) !important;
  border-color: rgba(16, 36, 31, 0.12) !important;
  box-shadow: 0 18px 45px rgba(16, 36, 31, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.theme-light .budget-results-card .budget-card-header span {
  color: #0f6b58 !important;
}

body.theme-light .budget-results-card .budget-card-header h3 {
  color: #10241f !important;
}

body.theme-light .budget-results-card .budget-table,
body.theme-light #tabla_presupuestos {
  background: rgba(255, 255, 255, 0.68) !important;
  border: 1px solid rgba(16, 36, 31, 0.1) !important;
  border-radius: 18px;
  overflow: hidden;
}

body.theme-light .budget-results-card .budget-table-header,
body.theme-light #tabla_presupuestos .budget-table-header {
  background: linear-gradient(90deg, rgba(13, 77, 68, 0.96) 0%, rgba(10, 64, 58, 0.96) 100%) !important;
  color: rgba(255, 255, 255, 0.96) !important;
}

body.theme-light .budget-results-card .budget-table-header > div,
body.theme-light #tabla_presupuestos .budget-table-header > div {
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: none !important;
}

body.theme-light .budget-results-card .budget-table-body {
  background: rgba(255, 255, 255, 0.58) !important;
}

/* Fila temporal generada por add_templete.js */
body.theme-light .budget-results-card .budget-table-body .filas,
body.theme-light .budget-results-card .budget-table-body .label,
body.theme-light #tabla_presupuestos .budget-table-body .filas,
body.theme-light #tabla_presupuestos .budget-table-body .label {
  background: linear-gradient(90deg, rgba(246, 252, 250, 0.96) 0%, rgba(238, 248, 245, 0.94) 100%) !important;
  color: #10241f !important;
  border-bottom-color: rgba(16, 36, 31, 0.1) !important;
}

body.theme-light .budget-results-card .budget-table-body .filas > div,
body.theme-light .budget-results-card .budget-table-body .label > div,
body.theme-light #tabla_presupuestos .budget-table-body .filas > div,
body.theme-light #tabla_presupuestos .budget-table-body .label > div {
  color: #10241f !important;
  text-shadow: none !important;
}

body.theme-light .budget-results-card .budget-table-body .filas > div:first-child,
body.theme-light .budget-results-card .budget-table-body .label > div:first-child,
body.theme-light #tabla_presupuestos .budget-table-body .filas > div:first-child,
body.theme-light #tabla_presupuestos .budget-table-body .label > div:first-child {
  color: #0f6b58 !important;
  font-weight: 900 !important;
}

body.theme-light .budget-results-card .budget-table-body .filas > div:nth-child(7),
body.theme-light .budget-results-card .budget-table-body .label > div:nth-child(7),
body.theme-light #tabla_presupuestos .budget-table-body .filas > div:nth-child(7),
body.theme-light #tabla_presupuestos .budget-table-body .label > div:nth-child(7) {
  color: #0f6b58 !important;
  font-weight: 950 !important;
}

/* Botón eliminar temporal de la fila generada */
body.theme-light .budget-results-card .budget-table-body .btn-red,
body.theme-light .budget-results-card .budget-table-body .btn-danger {
  background: rgba(178, 45, 45, 0.94) !important;
  color: #ffffff !important;
  border-color: rgba(178, 45, 45, 0.25) !important;
}

body.theme-light .budget-results-card .budget-table-body .btn-red:hover,
body.theme-light .budget-results-card .budget-table-body .btn-danger:hover {
  background: rgb(205, 54, 54) !important;
}

/* Encabezados internos: recursos, tarea, item, cantidad, subtotal */
body.theme-light .budget-detail-header,
body.theme-light .budget-detail-section-title,
body.theme-light #tabla_presupuestos .budget-detail-header,
body.theme-light #tabla_presupuestos .budget-detail-section-title {
  background: rgba(15, 107, 88, 0.1) !important;
  color: #0f6b58 !important;
}

/* ========================================
   PRESUPUESTOS | MOBILE SCROLL HINT LIGHT FIX
   Mejora lectura del aviso de desplazamiento
======================================== */
@media (max-width: 992px) {
  body.theme-light .budget-mobile-scroll-hint {
    background: rgba(15, 107, 88, 0.12) !important;
    border: 1px solid rgba(15, 107, 88, 0.18) !important;
    color: #10241f !important;
    box-shadow: 0 8px 22px rgba(16, 36, 31, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
  }
  body.theme-light .budget-mobile-scroll-hint span {
    color: #0f6b58 !important;
    font-weight: 950 !important;
  }
}
/* ============================================================
   Presupuestos guardados
============================================================ */
.budget-saved-card {
  margin-bottom: 1.4rem;
}

.budget-saved-list {
  display: grid;
  gap: 0.85rem;
}

.budget-saved-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}


.budget-empty-state,
.budget-list-intro {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(114, 239, 211, 0.16);
  border-radius: 18px;
  background: rgba(5, 20, 25, 0.36);
}

.budget-empty-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #051419;
  background: linear-gradient(135deg, #72efd3, #19c7a5);
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(25, 199, 165, 0.18);
}

.budget-empty-state strong,
.budget-list-intro strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 850;
}

.budget-empty-state p,
.budget-list-intro p {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
  line-height: 1.45;
}

.budget-list-intro {
  border-style: dashed;
  background: rgba(114, 239, 211, 0.055);
}

.budget-saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(114, 239, 211, 0.16);
  border-radius: 18px;
  background: rgba(5, 20, 25, 0.42);
}

.budget-saved-item strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.budget-saved-item p {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.budget-saved-item span {
  display: block;
  margin-bottom: 0.55rem;
  color: #72efd3;
  font-weight: 700;
  text-align: right;
}


.budget-btn-large {
  min-height: 52px;
  padding: 0.82rem 1.35rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 34px rgba(15, 128, 105, 0.28);
}

.budget-btn-large span[aria-hidden="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1rem;
  line-height: 1;
}

.budget-new-item-link.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.35);
}

.budget-btn-small {
  min-height: auto;
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
}

body.theme-light .budget-saved-empty {
  color: rgba(10, 28, 34, 0.68);
}


body.theme-light .budget-empty-state,
body.theme-light .budget-list-intro,
body.theme-light .budget-create-form--featured {
  border-color: rgba(0, 128, 110, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

body.theme-light .budget-empty-state strong,
body.theme-light .budget-list-intro strong,
body.theme-light .budget-empty-table-message strong {
  color: #10242a;
}

body.theme-light .budget-empty-state p,
body.theme-light .budget-list-intro p,
body.theme-light .budget-empty-table-message span {
  color: rgba(10, 28, 34, 0.66);
}

body.theme-light .budget-active-card.has-no-active-budget {
  border-color: rgba(0, 128, 110, 0.18);
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 128, 110, 0.10), transparent 34%),
    rgba(255, 255, 255, 0.82);
}

body.theme-light .budget-start-banner {
  border-color: rgba(0, 128, 110, 0.16);
  background: linear-gradient(135deg, rgba(0, 128, 110, 0.08), rgba(255, 255, 255, 0.72));
}

body.theme-light .budget-start-banner h2 {
  color: #10242a;
}

body.theme-light .budget-start-banner p {
  color: rgba(10, 28, 34, 0.68);
}

body.theme-light .budget-saved-item {
  border-color: rgba(0, 128, 110, 0.16);
  background: rgba(255, 255, 255, 0.74);
}

body.theme-light .budget-saved-item strong {
  color: #10242a;
}

body.theme-light .budget-saved-item p {
  color: rgba(10, 28, 34, 0.62);
}

body.theme-light .budget-saved-item span {
  color: #00806e;
}

@media (max-width: 768px) {
  .budget-saved-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .budget-saved-item span {
    text-align: left;
  }
}
/* ============================================================
   Detalle del presupuesto cargado
============================================================ */
.budget-loaded-info {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(114, 239, 211, 0.16);
  border-radius: 18px;
  background: rgba(5, 20, 25, 0.42);
}

.budget-loaded-info strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.budget-loaded-info p {
  margin: 0.3rem 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.85rem;
}

/* ============================================================
   Tabla de partidas guardadas
============================================================ */
.budget-table-body {
  display: grid;
  gap: 0.75rem;
}

.budget-table-row-grid,
.budget-table-row-message {
  min-width: 980px;
  display: grid;
  grid-template-columns: 0.55fr 1fr 1fr 1fr 0.8fr 0.8fr 1fr 1.1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(114, 239, 211, 0.12);
  border-radius: 16px;
  background: rgba(5, 20, 25, 0.32);
}

.budget-table-row-message {
  grid-template-columns: 1fr;
}

.budget-table-cell {
  min-width: 0;
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-word;
}

.budget-table-cell--muted {
  color: rgba(255, 255, 255, 0.68);
}


.budget-empty-table-message .budget-table-cell {
  display: grid;
  gap: 0.25rem;
}

.budget-empty-table-message strong {
  color: #fff;
  font-size: 0.95rem;
}

.budget-empty-table-message span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

/* ============================================================
   Light theme
============================================================ */
body.theme-light .budget-loaded-info {
  border-color: rgba(0, 128, 110, 0.16);
  background: rgba(255, 255, 255, 0.74);
}

body.theme-light .budget-loaded-info strong {
  color: #10242a;
}

body.theme-light .budget-loaded-info p {
  color: rgba(10, 28, 34, 0.68);
}

body.theme-light .budget-table-row-grid,
body.theme-light .budget-table-row-message {
  border-color: rgba(0, 128, 110, 0.16);
  background: rgba(255, 255, 255, 0.74);
}

body.theme-light .budget-table-cell {
  color: #10242a;
}

body.theme-light .budget-table-cell--muted {
  color: rgba(10, 28, 34, 0.66);
}

/* ============================================================
   Presupuesto activo
============================================================ */

.budget-active-card.has-no-active-budget {
  border-color: rgba(114, 239, 211, 0.18);
  background:
    radial-gradient(circle at 18% 0%, rgba(114, 239, 211, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(4, 18, 29, 0.96) 0%, rgba(4, 18, 29, 0.86) 100%);
}

.budget-start-banner {
  display: none;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.95rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 1.05rem;
  border: 1px solid rgba(114, 239, 211, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(114, 239, 211, 0.10), rgba(5, 20, 25, 0.38));
}

.budget-active-card.has-no-active-budget .budget-start-banner {
  display: grid;
}

.budget-start-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #051419;
  background: linear-gradient(135deg, #72efd3, #19c7a5);
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px rgba(25, 199, 165, 0.16);
}

.budget-start-banner h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.15;
  font-weight: 900;
}

.budget-start-banner p {
  margin: 0.4rem 0 0;
  max-width: 860px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  line-height: 1.55;
}

.budget-active-card {
  margin-bottom: 1.4rem;
}

.budget-active-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(114, 239, 211, 0.14);
  border-radius: 18px;
  background: rgba(5, 20, 25, 0.38);
}

.budget-active-panel.is-active {
  border-color: rgba(114, 239, 211, 0.34);
  box-shadow: 0 0 0 1px rgba(114, 239, 211, 0.08), 0 0 22px rgba(114, 239, 211, 0.08);
}

.budget-active-panel strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.budget-active-panel p {
  margin: 0.3rem 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
  line-height: 1.4;
}

.budget-active-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.budget-active-delete-button {
  min-width: 118px;
  min-height: 34px;
  padding-inline: 0.78rem;
}

.budget-active-delete-button[hidden] {
  display: none !important;
}


.budget-active-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(114, 239, 211, 0.22);
  border-radius: 999px;
  color: #72efd3;
  background: rgba(114, 239, 211, 0.08);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


.budget-create-form--featured {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1.15fr) minmax(210px, auto);
  padding: 0.95rem;
  border: 1px solid rgba(114, 239, 211, 0.12);
  border-radius: 20px;
  background: rgba(5, 20, 25, 0.28);
}

.budget-create-submit {
  width: 100%;
  justify-self: stretch;
  white-space: nowrap;
}

.budget-active-card.has-no-active-budget .budget-create-form--featured {
  border-color: rgba(114, 239, 211, 0.22);
  background: rgba(2, 12, 16, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.budget-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: end;
}

.budget-create-field {
  display: grid;
  gap: 0.4rem;
}

.budget-create-field label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.budget-create-field input {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(114, 239, 211, 0.16);
  border-radius: 14px;
  color: #fff;
  background: rgba(2, 12, 16, 0.44);
  outline: none;
}

.budget-create-field input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.budget-create-field input:focus {
  border-color: rgba(114, 239, 211, 0.45);
  box-shadow: 0 0 0 3px rgba(114, 239, 211, 0.08);
}

.budget-saved-actions {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
}

.budget-saved-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.budget-manage-button {
  min-width: 160px;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 128, 105, 0.18);
}

.budget-manage-button.is-active-budget-action {
  border-color: rgba(114, 239, 211, 0.48);
  box-shadow: 0 0 0 1px rgba(114, 239, 211, 0.12), 0 10px 26px rgba(15, 128, 105, 0.24);
}

body.theme-light .budget-manage-button {
  box-shadow: 0 10px 24px rgba(0, 128, 110, 0.14);
}

body.theme-light .budget-manage-button.is-active-budget-action {
  border-color: rgba(0, 128, 110, 0.34);
  box-shadow: 0 0 0 1px rgba(0, 128, 110, 0.08), 0 12px 26px rgba(0, 128, 110, 0.18);
}

.budget-saved-item.is-active {
  border-color: rgba(114, 239, 211, 0.38);
  background: rgba(5, 35, 39, 0.56);
  box-shadow: 0 0 0 1px rgba(114, 239, 211, 0.08), 0 0 20px rgba(114, 239, 211, 0.08);
}

.budget-saved-item.is-active strong::after {
  content: "Activo";
  display: inline-flex;
  margin-left: 0.55rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  color: #051419;
  background: #72efd3;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.budget-btn-small:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

/* ============================================================
   Presupuesto activo — Light theme
============================================================ */
body.theme-light .budget-active-panel {
  border-color: rgba(0, 128, 110, 0.16);
  background: rgba(255, 255, 255, 0.76);
}

body.theme-light .budget-active-panel.is-active {
  border-color: rgba(0, 128, 110, 0.32);
  box-shadow: 0 0 0 1px rgba(0, 128, 110, 0.06), 0 0 18px rgba(0, 128, 110, 0.08);
}

body.theme-light .budget-active-panel strong {
  color: #10242a;
}

body.theme-light .budget-active-panel p {
  color: rgba(10, 28, 34, 0.66);
}

body.theme-light 
.budget-active-badge {
  border-color: rgba(0, 128, 110, 0.22);
  color: #00806e;
  background: rgba(0, 128, 110, 0.08);
}

body.theme-light .budget-create-field label {
  color: rgba(10, 28, 34, 0.7);
}

body.theme-light .budget-create-field input {
  border-color: rgba(0, 128, 110, 0.16);
  color: #10242a;
  background: rgba(255, 255, 255, 0.82);
}

body.theme-light .budget-create-field input::placeholder {
  color: rgba(10, 28, 34, 0.36);
}

body.theme-light .budget-create-field input:focus {
  border-color: rgba(0, 128, 110, 0.42);
  box-shadow: 0 0 0 3px rgba(0, 128, 110, 0.08);
}

body.theme-light .budget-saved-item.is-active {
  border-color: rgba(0, 128, 110, 0.28);
  background: rgba(244, 255, 252, 0.88);
}

body.theme-light .budget-saved-item.is-active strong::after {
  color: #fff;
  background: #00806e;
}

/* ============================================================
   Presupuesto activo — Responsive
============================================================ */
@media (max-width: 992px) {
  .budget-create-form,
  .budget-create-form--featured {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .budget-start-banner {
    grid-template-columns: 1fr;
  }
  .budget-active-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  
.budget-active-badge {
    min-width: auto;
  }
  .budget-saved-actions {
    justify-items: start;
  }
  .budget-saved-buttons {
    justify-content: flex-start;
  }
}
/* ============================================================
   Eliminar, detalle y acciones visibles en partidas guardadas
   Bloque final consolidado para filas cargadas desde MySQL
============================================================ */
.budget-results-card .budget-table,
.budget-results-card #tabla_presupuestos {
  width: 100%;
  min-width: 0;
}

.budget-results-card .budget-table-header {
  display: grid;
  grid-template-columns: minmax(34px, 0.42fr) minmax(74px, 0.76fr) minmax(74px, 0.76fr) minmax(104px, 0.95fr) minmax(66px, 0.64fr) minmax(50px, 0.52fr) minmax(104px, 0.95fr) minmax(150px, 1.25fr);
  gap: 0.45rem;
  align-items: center;
}

.budget-results-card .budget-table-header > div {
  min-width: 0;
  padding: 0;
  overflow: visible;
  text-overflow: initial;
  white-space: normal;
}

.budget-item-block {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 0;
  border: 1px solid rgba(114, 239, 211, 0.12);
  border-radius: 16px;
  background: rgba(5, 20, 25, 0.22);
  overflow: hidden;
}

.budget-item-block .budget-table-row-grid,
.budget-table-body .budget-item-block .budget-table-row-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(34px, 0.42fr) minmax(74px, 0.76fr) minmax(74px, 0.76fr) minmax(104px, 0.95fr) minmax(66px, 0.64fr) minmax(50px, 0.52fr) minmax(104px, 0.95fr) minmax(150px, 1.25fr);
  gap: 0.45rem;
  align-items: center;
  padding: 0.82rem 0.85rem;
  border: 0;
  border-radius: 0;
  background: rgba(5, 20, 25, 0.34);
}

.budget-item-block .budget-table-cell {
  min-width: 0;
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.budget-item-block .budget-table-cell:nth-child(4),
.budget-item-block .budget-table-cell:nth-child(5),
.budget-item-block .budget-table-cell:nth-child(7) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.budget-table-cell--actions {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
  align-items: center;
  justify-items: start;
}

.budget-table-cell-detail {
  display: block;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.budget-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.budget-table-actions .budget-btn,
.budget-table-delete-button {
  width: auto;
  min-width: 82px;
  min-height: 32px;
  padding: 0.42rem 0.62rem;
  white-space: nowrap;
  font-size: 0.68rem;
  line-height: 1;
}

/* Botón Show details / Hide details */
.budget-table-actions [data-action=toggle-budget-detail] {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.12);
}

.budget-table-actions [data-action=toggle-budget-detail]:hover:not(:disabled) {
  color: #72efd3;
  background: rgba(114, 239, 211, 0.1);
  border-color: rgba(114, 239, 211, 0.28);
}

/* Botón Edit */
.budget-table-actions [data-action=edit-budget-item] {
  color: #ffffff;
  background: rgba(15, 107, 88, 0.88);
  border-color: rgba(114, 239, 211, 0.18);
}

.budget-table-actions [data-action=edit-budget-item]:hover:not(:disabled) {
  background: rgba(18, 128, 106, 0.96);
}

/* Botón Delete */
.budget-table-delete-button,
.budget-table-actions [data-action=delete-budget-item] {
  justify-self: start;
  color: #ffffff;
  background: rgba(170, 40, 40, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
}

.budget-table-delete-button:hover:not(:disabled),
.budget-table-actions [data-action=delete-budget-item]:hover:not(:disabled) {
  background: rgba(210, 55, 55, 0.98);
}

.budget-item-detail {
  width: 100%;
  min-width: 0;
  padding: 1rem;
  border-top: 1px solid rgba(114, 239, 211, 0.12);
  background: linear-gradient(180deg, rgba(4, 18, 29, 0.92) 0%, rgba(4, 18, 29, 0.78) 100%);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.budget-item-detail[hidden] {
  display: none;
}

.budget-item-detail-panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.budget-detail-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.budget-detail-summary > div {
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(114, 239, 211, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.budget-detail-summary span {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(114, 239, 211, 0.74);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.budget-detail-summary strong {
  display: block;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.budget-detail-section {
  min-width: 0;
  border: 1px solid rgba(114, 239, 211, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.budget-detail-section-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.95rem;
  background: rgba(114, 239, 211, 0.08);
  border-bottom: 1px solid rgba(114, 239, 211, 0.1);
}

.budget-detail-section-header h4 {
  margin: 0;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 850;
}

.budget-detail-section-header span {
  color: #72efd3;
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
}

.budget-detail-table {
  display: grid;
  min-width: 760px;
}

.budget-detail-table-head,
.budget-detail-table-row {
  display: grid;
  grid-template-columns: 1.1fr 1.35fr 0.9fr 0.75fr 0.62fr 0.85fr 0.95fr;
  gap: 0.6rem;
  align-items: center;
}

.budget-detail-table-head {
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(114, 239, 211, 0.88);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.budget-detail-table-row {
  padding: 0.65rem 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 650;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.budget-detail-table-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.budget-detail-table-row > div,
.budget-detail-table-head > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.budget-detail-table-row > div:nth-child(4),
.budget-detail-table-row > div:nth-child(6),
.budget-detail-table-row > div:nth-child(7) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.budget-detail-table-row > div:nth-child(7) {
  color: #72efd3;
  font-weight: 900;
}

.budget-detail-empty {
  padding: 0.9rem 1rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ============================================================
   Partidas guardadas — Light mode
============================================================ */
body.theme-light .budget-item-block {
  border-color: rgba(16, 36, 31, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

body.theme-light .budget-item-block .budget-table-row-grid {
  background: linear-gradient(90deg, rgba(247, 252, 250, 0.96) 0%, rgba(239, 248, 245, 0.94) 100%);
}

body.theme-light .budget-item-block + .budget-item-block {
  margin-top: 0.75rem;
}

body.theme-light .budget-item-block .budget-table-cell {
  color: #10241f;
}

body.theme-light .budget-item-block .budget-table-cell:nth-child(4),
body.theme-light .budget-item-block .budget-table-cell:nth-child(5),
body.theme-light .budget-item-block .budget-table-cell:nth-child(7) {
  color: rgba(16, 36, 31, 0.82);
}

body.theme-light .budget-item-block .budget-table-cell:nth-child(7) {
  color: #0f6b58;
  font-weight: 900;
}

body.theme-light .budget-table-cell-detail {
  color: rgba(16, 36, 31, 0.58);
}

/* Show details en light */
body.theme-light .budget-table-actions [data-action=toggle-budget-detail] {
  color: #0f6b58 !important;
  background: rgba(15, 107, 88, 0.08) !important;
  border-color: rgba(15, 107, 88, 0.18) !important;
}

body.theme-light .budget-table-actions [data-action=toggle-budget-detail]:hover:not(:disabled) {
  color: #ffffff !important;
  background: rgba(15, 107, 88, 0.92) !important;
  border-color: rgba(15, 107, 88, 0.3) !important;
}

/* Edit en light */
body.theme-light .budget-table-actions [data-action=edit-budget-item] {
  color: #ffffff !important;
  background: rgba(15, 107, 88, 0.92) !important;
  border-color: rgba(15, 107, 88, 0.24) !important;
}

body.theme-light .budget-table-actions [data-action=edit-budget-item]:hover:not(:disabled) {
  background: rgb(11, 90, 74) !important;
}

/* Delete en light */
body.theme-light .budget-table-delete-button,
body.theme-light .budget-table-actions [data-action=delete-budget-item] {
  color: #ffffff !important;
  background: rgba(178, 45, 45, 0.94) !important;
  border-color: rgba(178, 45, 45, 0.28) !important;
}

body.theme-light .budget-table-delete-button:hover:not(:disabled),
body.theme-light .budget-table-actions [data-action=delete-budget-item]:hover:not(:disabled) {
  background: rgb(205, 54, 54) !important;
}

body.theme-light .budget-item-detail {
  border-top-color: rgba(16, 36, 31, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 249, 247, 0.94) 100%);
}

body.theme-light .budget-detail-summary > div,
body.theme-light .budget-detail-section {
  border-color: rgba(16, 36, 31, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

body.theme-light .budget-detail-summary span {
  color: #0f6b58;
}

body.theme-light .budget-detail-summary strong,
body.theme-light .budget-detail-section-header h4 {
  color: #10241f;
}

body.theme-light .budget-detail-section-header {
  background: rgba(15, 107, 88, 0.075);
  border-bottom-color: rgba(15, 107, 88, 0.1);
}

body.theme-light .budget-detail-section-header span {
  color: #0f6b58;
}

body.theme-light .budget-detail-table-head {
  background: rgba(15, 107, 88, 0.08);
  color: #0f6b58;
}

body.theme-light .budget-detail-table-row {
  color: rgba(16, 36, 31, 0.78);
  border-top-color: rgba(16, 36, 31, 0.07);
}

body.theme-light .budget-detail-table-row:nth-child(even) {
  background: rgba(16, 36, 31, 0.025);
}

body.theme-light .budget-detail-table-row > div:nth-child(7) {
  color: #0f6b58;
}

body.theme-light .budget-detail-empty {
  color: rgba(16, 36, 31, 0.62);
}

@media (max-width: 1200px) {
  .budget-results-card .budget-table-header,
  .budget-item-block .budget-table-row-grid {
    grid-template-columns: 40px 82px 82px 108px 70px 58px 108px 158px;
  }
}
@media (max-width: 992px) {
  .budget-results-card .budget-table,
  .budget-results-card #tabla_presupuestos,
  .budget-results-card .budget-table-header,
  .budget-item-block,
  .budget-item-block .budget-table-row-grid {
    width: 860px;
    min-width: 860px;
    max-width: 860px;
    box-sizing: border-box;
  }
  .budget-results-card .budget-table-header,
  .budget-item-block .budget-table-row-grid {
    grid-template-columns: 48px 96px 96px 122px 78px 66px 126px 176px;
  }
  .budget-detail-summary {
    grid-template-columns: 1fr 1fr;
  }
  .budget-table-actions .budget-btn {
    width: auto;
  }
}
@media (max-width: 768px) {
  .budget-detail-summary {
    grid-template-columns: 1fr;
  }
  .budget-detail-section-header {
    flex-direction: column;
    gap: 0.35rem;
  }
  .budget-table-actions {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .budget-results-card .budget-table,
  .budget-results-card #tabla_presupuestos,
  .budget-results-card .budget-table-header,
  .budget-item-block,
  .budget-item-block .budget-table-row-grid {
    width: 840px;
    min-width: 840px;
    max-width: 840px;
  }
  .budget-results-card .budget-table-header,
  .budget-item-block .budget-table-row-grid {
    grid-template-columns: 44px 92px 92px 118px 76px 62px 122px 174px;
  }
}
/* ============================================================
   Edición controlada de partidas guardadas
============================================================ */
.budget-edit-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(114, 239, 211, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(5, 35, 39, 0.74) 0%, rgba(4, 22, 29, 0.82) 100%);
  box-shadow: 0 0 0 1px rgba(114, 239, 211, 0.06), 0 16px 34px rgba(0, 0, 0, 0.18);
}

.budget-edit-panel[hidden] {
  display: none;
}

.budget-edit-panel span {
  display: block;
  margin-bottom: 0.3rem;
  color: rgba(114, 239, 211, 0.82);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.budget-edit-panel strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 850;
}

.budget-edit-panel p {
  margin: 0.28rem 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
  line-height: 1.45;
}

.budget-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.budget-table-actions [data-action=edit-budget-item] {
  color: #ffffff;
  background: rgba(15, 107, 88, 0.88);
  border-color: rgba(114, 239, 211, 0.18);
}

.budget-table-actions [data-action=edit-budget-item]:hover:not(:disabled) {
  background: rgba(18, 128, 106, 0.96);
}

/* ============================================================
   Edición controlada — Light mode
============================================================ */
body.theme-light .budget-edit-panel {
  border-color: rgba(0, 128, 110, 0.22);
  background: linear-gradient(180deg, rgba(244, 255, 252, 0.94) 0%, rgba(255, 255, 255, 0.94) 100%);
  box-shadow: 0 0 0 1px rgba(0, 128, 110, 0.05), 0 14px 28px rgba(16, 36, 31, 0.08);
}

body.theme-light .budget-edit-panel span {
  color: #00806e;
}

body.theme-light .budget-edit-panel strong {
  color: #10242a;
}

body.theme-light .budget-edit-panel p {
  color: rgba(10, 28, 34, 0.66);
}

body.theme-light .budget-table-actions [data-action=edit-budget-item] {
  color: #ffffff !important;
  background: rgba(15, 107, 88, 0.9) !important;
  border-color: rgba(15, 107, 88, 0.24) !important;
}

body.theme-light .budget-table-actions [data-action=edit-budget-item]:hover:not(:disabled) {
  background: rgb(11, 90, 74) !important;
}

/* ============================================================
   Edición controlada — Responsive
============================================================ */
@media (max-width: 768px) {
  .budget-edit-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .budget-edit-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .budget-edit-actions .budget-btn {
    width: auto;
  }
}
/* ========================================
   WEBTOOLS WORKSPACE OPTIMIZADO / PANEL FLOTANTE
   Bloque final consolidado
======================================== */
.budget-header {
  padding: 92px 0 28px;
}

.budget-header .container,
.budget-app-section .container,
.budget-app-shell--workspace {
  width: min(100%, 100vw - 6rem);
  max-width: 1500px;
}

.budget-app-section {
  padding-bottom: 90px;
}

.budget-app-shell--workspace {
  display: block;
  margin-inline: auto;
}

.budget-app-shell--workspace .budget-main {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.budget-app-shell--workspace .budget-toolbar,
.budget-app-shell--workspace .budget-template-card,
.budget-app-shell--workspace .budget-results-card {
  width: 100%;
  max-width: none;
}

.budget-template-card {
  padding: 0.95rem;
}

.budget-template-form {
  padding: 0.95rem;
}

.budget-form-section {
  padding: 0.95rem;
}

.budget-form-layout {
  gap: 0.85rem;
}

.budget-form-section-header {
  margin-bottom: 0.85rem;
}

.budget-form-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  column-gap: 0.85rem;
  row-gap: 0.85rem;
}

.budget-field input,
.budget-field select,
.budget-field textarea,
.budget-input-group input,
.budget-input-group select {
  min-height: 44px;
  padding: 0.68rem 0.78rem;
}

.budget-input-group span {
  min-width: 48px;
}

.budget-toolbar {
  padding: 1rem 1.15rem;
}

.budget-toolbar h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.budget-toolbar p {
  font-size: 0.92rem;
}

.budget-title {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
}

.budget-subtitle {
  max-width: 840px;
}

/* ========================================
   PANEL FLOTANTE DE PLANTILLAS
======================================== */
.budget-floating-sidebar {
  position: fixed;
  z-index: 900;
  left: 24px;
  top: 92px;
  width: min(330px, 100vw - 32px);
  max-height: calc(100vh - 120px);
  overflow: auto;
  resize: both;
  min-width: 72px;
  min-height: 74px;
  padding: 1rem;
  border-radius: 24px;
  cursor: default;
}

.budget-floating-sidebar.is-dragging {
  cursor: grabbing;
  user-select: none;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(114, 239, 211, 0.22);
}

.budget-floating-sidebar .budget-sidebar-drag-handle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: grab;
}

.budget-floating-sidebar .budget-sidebar-drag-handle:active {
  cursor: grabbing;
}

.budget-sidebar-controls {
  display: inline-flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.budget-sidebar-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(114, 239, 211, 0.18);
  border-radius: 999px;
  background: rgba(114, 239, 211, 0.1);
  color: #72efd3;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.budget-sidebar-control:hover {
  transform: translateY(-1px);
  background: rgba(114, 239, 211, 0.16);
  border-color: rgba(114, 239, 211, 0.32);
}

.budget-floating-sidebar.is-collapsed {
  width: auto;
  min-width: 158px;
  max-width: 220px;
  max-height: 72px;
  padding: 0.7rem;
  overflow: hidden;
  resize: none;
}

.budget-floating-sidebar.is-collapsed .budget-sidebar-header {
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.budget-floating-sidebar.is-collapsed .budget-sidebar-header > div:first-child,
.budget-floating-sidebar.is-collapsed .budget-menu {
  display: none;
}

.budget-floating-sidebar.is-collapsed .budget-sidebar-controls {
  width: 100%;
  justify-content: center;
}

.budget-floating-sidebar.is-collapsed #budget-sidebar-reset {
  display: none;
}

.budget-floating-sidebar.is-collapsed #budget-sidebar-toggle {
  width: auto;
  min-width: 138px;
  height: 46px;
  gap: 0.5rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: rgba(114, 239, 211, 0.12);
  border-color: rgba(114, 239, 211, 0.24);
  color: #72efd3;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.budget-floating-sidebar.is-collapsed,
.budget-floating-sidebar.is-collapsed #budget-sidebar-toggle {
  cursor: grab;
}

.budget-floating-sidebar.is-collapsed.is-dragging,
.budget-floating-sidebar.is-collapsed.is-dragging #budget-sidebar-toggle {
  cursor: grabbing;
}

.budget-floating-sidebar.is-collapsed #budget-sidebar-toggle::after {
  content: attr(data-collapsed-label);
}

body.theme-light .budget-floating-sidebar.is-collapsed #budget-sidebar-toggle {
  background: rgba(15, 107, 88, 0.1);
  border-color: rgba(15, 107, 88, 0.22);
  color: #0f6b58;
}

/* Mantiene el menú principal de la app por encima del panel flotante */
.inside-app-sidebar,
.app-sidebar {
  z-index: 1100;
}

/* ========================================
   RESULTADOS SIN SCROLL HORIZONTAL INNECESARIO
======================================== */
.budget-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.budget-table {
  width: 100%;
  min-width: 0;
}

.budget-table-header,
.budget-table-row-grid {
  display: grid;
  grid-template-columns: minmax(42px, 0.45fr) minmax(110px, 1fr) minmax(90px, 0.8fr) minmax(110px, 1fr) minmax(80px, 0.75fr) minmax(70px, 0.6fr) minmax(110px, 1fr) minmax(180px, 1.35fr);
}

@media (min-width: 1600px) {
  .budget-header .container,
  .budget-app-section .container,
  .budget-app-shell--workspace {
    width: min(100%, 100vw - 7rem);
    max-width: 1580px;
  }
  .budget-form-grid {
    grid-template-columns: repeat(4, minmax(190px, 1fr));
  }
}
@media (max-width: 1320px) {
  .budget-header .container,
  .budget-app-section .container,
  .budget-app-shell--workspace {
    width: min(100%, 100vw - 3rem);
    max-width: none;
  }
  .budget-form-grid {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }
}
@media (max-width: 1320px) {
  .budget-form-grid {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }
}
@media (max-width: 1180px) {
  .budget-app-shell--workspace {
    width: min(100%, 100vw - 1.2rem);
  }
  .budget-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .budget-floating-sidebar {
    top: 86px;
    width: min(310px, 100vw - 24px);
    max-height: calc(100vh - 110px);
  }
}
@media (max-width: 992px) {
  .budget-header {
    padding-top: 120px;
    padding-bottom: 30px;
  }
  .budget-header .container,
  .budget-app-section .container,
  .budget-app-shell--workspace {
    width: 100%;
    max-width: 100%;
  }
  .budget-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .budget-floating-sidebar {
    width: min(285px, 100vw - 20px);
    max-height: calc(100vh - 96px);
  }
  .budget-floating-sidebar.is-collapsed {
    min-width: 132px;
    max-width: min(172px, 100vw - 20px);
  }
  .budget-floating-sidebar.is-collapsed #budget-sidebar-toggle {
    min-width: 112px;
    max-width: 100%;
    height: 42px;
    padding: 0 0.75rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }
}
@media (max-width: 720px) {
  .budget-header {
    padding-top: 105px;
  }
  .budget-app-shell--workspace {
    width: 100%;
  }
  .budget-toolbar {
    align-items: stretch;
  }
  .budget-toolbar-actions {
    width: 100%;
  }
  .budget-toolbar-actions .budget-btn {
    flex: 1 1 100%;
  }
  .budget-form-grid {
    grid-template-columns: 1fr;
  }
  .budget-floating-sidebar {
    left: 12px;
    top: 76px;
    width: min(300px, 100vw - 24px);
    max-height: calc(100vh - 98px);
  }
  .budget-floating-sidebar.is-collapsed {
    width: auto;
    min-width: 124px;
    max-width: min(168px, 100vw - 20px);
    max-height: 66px;
  }
  .budget-floating-sidebar.is-collapsed #budget-sidebar-toggle {
    min-width: 104px;
    height: 40px;
    padding: 0 0.65rem;
    font-size: 0.68rem;
  }
}
/* ========================================
   PANEL FLOTANTE | ESTADO INACTIVO SOLO CONTRAÍDO
======================================== */
.budget-floating-sidebar {
  opacity: 1;
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.budget-floating-sidebar.is-collapsed {
  opacity: 0.58;
}

.budget-floating-sidebar.is-collapsed:hover,
.budget-floating-sidebar.is-collapsed:focus-within,
.budget-floating-sidebar.is-collapsed.is-dragging {
  opacity: 1;
}

.budget-floating-sidebar #budget-sidebar-toggle,
.budget-floating-sidebar #budget-sidebar-reset {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ========================================
   PANEL FLOTANTE | LIGHT MODE CONTRASTE
======================================== */
body.theme-light .budget-floating-sidebar .budget-sidebar-control {
  background: rgba(15, 107, 88, 0.1) !important;
  border-color: rgba(15, 107, 88, 0.24) !important;
  color: #0f6b58 !important;
}

body.theme-light .budget-floating-sidebar .budget-sidebar-control:hover,
body.theme-light .budget-floating-sidebar .budget-sidebar-control:focus-visible {
  background: rgba(15, 107, 88, 0.18) !important;
  border-color: rgba(15, 107, 88, 0.36) !important;
  color: #084c3f !important;
}

body.theme-light .budget-floating-sidebar.is-collapsed #budget-sidebar-toggle {
  background: rgba(15, 107, 88, 0.12) !important;
  border-color: rgba(15, 107, 88, 0.3) !important;
  color: #0f6b58 !important;
}

body.theme-light .budget-floating-sidebar.is-collapsed #budget-sidebar-toggle:hover,
body.theme-light .budget-floating-sidebar.is-collapsed #budget-sidebar-toggle:focus-visible {
  background: rgba(15, 107, 88, 0.2) !important;
  border-color: rgba(15, 107, 88, 0.42) !important;
  color: #084c3f !important;
}

.budget-generated-content {
  cursor: pointer;
}

.budget-generated-content .content {
  display: none;
}

.budget-generated-content.active .content {
  display: flex;
}

.budget-generated-summary-row {
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.budget-generated-summary-row:hover {
  box-shadow: inset 0 0 0 1px rgba(114, 239, 211, 0.22);
}

.budget-generated-result-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(114, 239, 211, 0.16);
}

.budget-generated-result-actions .budget-btn {
  min-width: 170px;
}

@media (max-width: 768px) {
  .budget-generated-result-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .budget-generated-result-actions .budget-btn {
    width: 100%;
  }
}
/* ========================================
   PRESUPUESTO GENERADO - DETALLE A TODO ANCHO
======================================== */
.budget-generated-accordion,
.budget-generated-content,
.budget-generated-detail-row,
.budget-generated-detail-row .budget-detail-content {
  width: 100%;
  max-width: 100%;
}

.budget-generated-detail-row {
  margin-left: 0;
  margin-right: 0;
}

.budget-generated-detail-row > .budget-detail-content {
  flex: 0 0 100%;
  display: block;
}

.budget-detail-content {
  width: 100%;
  overflow-x: auto;
}

.budget-detail-content .budget-detail-row {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 1.6fr 0.75fr 0.7fr 1fr 1fr;
  align-items: center;
  width: 100%;
  min-width: 980px;
  margin: 0;
}

.budget-detail-content .budget-detail-row > div {
  min-width: 0;
  padding: 0.7rem 0.85rem;
}

.budget-detail-content .budget-detail-header > div {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #72efd3;
}

.budget-detail-content .budget-detail-section-title,
.budget-detail-content .budget-grand-total {
  background: rgba(19, 96, 85, 0.42);
}

.budget-detail-content .budget-detail-total > div:last-child,
.budget-detail-content .budget-grand-total > div:last-child {
  font-weight: 800;
  color: #72efd3;
}

@media (max-width: 768px) {
  .budget-detail-content .budget-detail-row {
    min-width: 860px;
  }
}
/* ========================================
   MODAL INSIDE / CONFIRMACIONES
======================================== */
.inside-modal-open {
  overflow: hidden;
}

.inside-confirm-modal[hidden] {
  display: none;
}

.inside-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.inside-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 10, 14, 0.68);
  backdrop-filter: blur(8px);
}

.inside-confirm-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  border: 1px solid rgba(114, 239, 211, 0.2);
  border-radius: 22px;
  background: rgba(8, 26, 32, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45), 0 0 32px rgba(114, 239, 211, 0.08);
  overflow: hidden;
}

.inside-confirm-modal__content {
  padding: 1.4rem 1.4rem 1rem;
}

.inside-confirm-modal__kicker {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: #72efd3;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inside-confirm-modal__title {
  margin: 0 0 0.6rem;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
}

.inside-confirm-modal__message {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.5;
}

.inside-confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.4rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.inside-confirm-modal__danger-button {
  background: #d83b3b;
  border-color: rgba(255, 255, 255, 0.12);
}

.inside-confirm-modal__danger-button:hover {
  background: #ef4444;
}

body.theme-light .inside-confirm-modal__backdrop {
  background: rgba(6, 18, 24, 0.38);
  backdrop-filter: blur(10px);
}

body.theme-light .inside-confirm-modal__dialog {
  border: 1px solid rgba(18, 144, 126, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 250, 248, 0.96));
  box-shadow: 0 24px 70px rgba(13, 32, 38, 0.18), 0 0 34px rgba(31, 194, 169, 0.14);
}

body.theme-light .inside-confirm-modal__kicker {
  color: var(--light-green, #12907e);
}

body.theme-light .inside-confirm-modal__title {
  color: var(--light-text, #102427);
}

body.theme-light .inside-confirm-modal__message {
  color: var(--light-text-2, rgba(16, 36, 39, 0.72));
}

body.theme-light .inside-confirm-modal__actions {
  border-top: 1px solid rgba(18, 144, 126, 0.14);
  background: rgba(255, 255, 255, 0.55);
}

body.theme-light .inside-confirm-modal__actions .budget-btn-secondary {
  border-color: rgba(18, 144, 126, 0.3);
  background: rgba(255, 255, 255, 0.86);
  color: var(--light-text, #102427);
}

body.theme-light .inside-confirm-modal__actions .budget-btn-secondary:hover:not(:disabled) {
  border-color: rgba(18, 144, 126, 0.46);
  background: rgba(230, 249, 245, 0.96);
  color: var(--light-green, #12907e);
}

body.theme-light .inside-confirm-modal__actions .budget-btn-primary {
  background: linear-gradient(135deg, #12907e, #17b69f);
  border-color: rgba(18, 144, 126, 0.34);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(18, 144, 126, 0.2);
}

body.theme-light .inside-confirm-modal__actions .budget-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0f7f70, #129f8b);
  color: #ffffff;
}

body.theme-light .inside-confirm-modal__danger-button,
body.theme-light .inside-confirm-modal__danger-button:hover:not(:disabled) {
  background: #d83b3b;
  border-color: rgba(216, 59, 59, 0.32);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(216, 59, 59, 0.18);
}

.inside-confirm-modal__actions button:empty {
  display: none;
}

@media (max-width: 640px) {
  .inside-confirm-modal__actions {
    flex-direction: column-reverse;
  }
  .inside-confirm-modal__actions .budget-btn {
    width: 100%;
  }
}
/* ========================================
   PRESUPUESTOS | SINGLE TEMPLATE MODE
   Modo simple: una plantilla activa por defecto
======================================== */
.budget-app-shell--single-template {
  grid-template-columns: minmax(0, 1fr);
}

.budget-app-shell--single-template .budget-floating-sidebar,
.budget-app-shell--single-template .budget-toolbar--template-summary {
  display: none !important;
}

.budget-app-shell--single-template .budget-main {
  grid-column: 1;
  width: 100%;
}

.budget-app-shell--single-template .budget-template-card {
  margin-top: 0;
}

@media (max-width: 992px) {
  .budget-app-shell--single-template {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ========================================
   PRESUPUESTOS - ESTILO DE SECCIONES DE PLANTILLA
   Aplica el mismo estilo visual tipo Muros a Placas aisladas
======================================== */
.budget-template-form .template-section {
  margin-bottom: 12px;
  padding: 18px 14px 14px;
  border: 1px solid rgba(114, 239, 211, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.budget-template-form .template-section-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.budget-template-form .template-section-header > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(114, 239, 211, 0.12);
  color: #72efd3;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.budget-template-form .template-section-header h4 {
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
}

.budget-template-form .template-section-header p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.budget-template-form .budget-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 12px;
}

.budget-template-form .budget-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.budget-template-form .budget-field span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
}

.budget-template-form .budget-field input,
.budget-template-form .budget-field select {
  width: 100%;
  min-height: 34px;
  height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(245, 248, 248, 0.94);
  color: #102126;
  font-size: 0.78rem;
  font-weight: 700;
  outline: none;
}

.budget-template-form .budget-field input:focus,
.budget-template-form .budget-field select:focus {
  border-color: rgba(114, 239, 211, 0.65);
  box-shadow: 0 0 0 3px rgba(114, 239, 211, 0.1);
}

@media (max-width: 1100px) {
  .budget-template-form .budget-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .budget-template-form .template-section {
    padding: 15px 12px 12px;
  }
  .budget-template-form .budget-form-grid {
    grid-template-columns: 1fr;
  }
}
/* ========================================
   PRESUPUESTOS - FIX LIGHT MODE PARA PLANTILLAS
   Hace visibles títulos, labels y descripciones en modo claro.
======================================== */
body.theme-light .budget-template-form .template-section {
  border-color: rgba(11, 94, 80, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(16, 33, 38, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.theme-light .budget-template-form .template-section-header > span {
  background: rgba(18, 166, 143, 0.1);
  color: #087c6a;
}

body.theme-light .budget-template-form .template-section-header h4 {
  color: #102126;
}

body.theme-light .budget-template-form .template-section-header p {
  color: rgba(16, 33, 38, 0.68);
}

body.theme-light .budget-template-form .budget-field > span,
body.theme-light .budget-template-form .budget-field label,
body.theme-light .budget-template-form .budget-field .field-label {
  color: rgba(16, 33, 38, 0.78);
}

body.theme-light .budget-template-form .budget-field input,
body.theme-light .budget-template-form .budget-field select {
  border-color: rgba(16, 33, 38, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #102126;
}

body.theme-light .budget-template-form .budget-field input::placeholder {
  color: rgba(16, 33, 38, 0.45);
}

body.theme-light .budget-template-form .budget-field input:focus,
body.theme-light .budget-template-form .budget-field select:focus {
  border-color: rgba(8, 124, 106, 0.45);
  box-shadow: 0 0 0 3px rgba(8, 124, 106, 0.1);
}

/* Compatibilidad por si alguna plantilla usa clases budget-template-* */
body.theme-light .budget-template-form .budget-template-section {
  border-color: rgba(11, 94, 80, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

body.theme-light .budget-template-form .budget-template-section-header > span {
  background: rgba(18, 166, 143, 0.1);
  color: #087c6a;
}

body.theme-light .budget-template-form .budget-template-section-header h4 {
  color: #102126;
}

body.theme-light .budget-template-form .budget-template-section-header p {
  color: rgba(16, 33, 38, 0.68);
}

body.theme-light .budget-template-form .budget-template-field > span {
  color: rgba(16, 33, 38, 0.78);
}

body.theme-light .budget-template-form .budget-template-field input,
body.theme-light .budget-template-form .budget-template-field select {
  border-color: rgba(16, 33, 38, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #102126;
}

/* =========================================================
   Presupuestos / Plantillas de cálculo
   Estilo base unificado tipo Muros
   Aplica a Muros, Placas aisladas y futuras plantillas
   ========================================================= */
.presupuesto-template,
.presupuesto-form,
.presupuesto-calculo,
.template-calculo,
.plantilla-calculo {
  color: rgba(235, 245, 242, 0.92);
}
.presupuesto-template h1,
.presupuesto-template h2,
.presupuesto-template h3,
.presupuesto-template h4,
.presupuesto-template h5,
.presupuesto-template h6,
.presupuesto-template .template-title,
.presupuesto-template .section-title,
.presupuesto-template .form-section-title,
.presupuesto-form h1,
.presupuesto-form h2,
.presupuesto-form h3,
.presupuesto-form h4,
.presupuesto-form h5,
.presupuesto-form h6,
.presupuesto-form .template-title,
.presupuesto-form .section-title,
.presupuesto-form .form-section-title,
.presupuesto-calculo h1,
.presupuesto-calculo h2,
.presupuesto-calculo h3,
.presupuesto-calculo h4,
.presupuesto-calculo h5,
.presupuesto-calculo h6,
.presupuesto-calculo .template-title,
.presupuesto-calculo .section-title,
.presupuesto-calculo .form-section-title,
.template-calculo h1,
.template-calculo h2,
.template-calculo h3,
.template-calculo h4,
.template-calculo h5,
.template-calculo h6,
.template-calculo .template-title,
.template-calculo .section-title,
.template-calculo .form-section-title,
.plantilla-calculo h1,
.plantilla-calculo h2,
.plantilla-calculo h3,
.plantilla-calculo h4,
.plantilla-calculo h5,
.plantilla-calculo h6,
.plantilla-calculo .template-title,
.plantilla-calculo .section-title,
.plantilla-calculo .form-section-title {
  color: rgba(245, 255, 252, 0.96);
}
.presupuesto-template p,
.presupuesto-template span,
.presupuesto-template small,
.presupuesto-template .template-description,
.presupuesto-template .section-description,
.presupuesto-template .form-section-description,
.presupuesto-form p,
.presupuesto-form span,
.presupuesto-form small,
.presupuesto-form .template-description,
.presupuesto-form .section-description,
.presupuesto-form .form-section-description,
.presupuesto-calculo p,
.presupuesto-calculo span,
.presupuesto-calculo small,
.presupuesto-calculo .template-description,
.presupuesto-calculo .section-description,
.presupuesto-calculo .form-section-description,
.template-calculo p,
.template-calculo span,
.template-calculo small,
.template-calculo .template-description,
.template-calculo .section-description,
.template-calculo .form-section-description,
.plantilla-calculo p,
.plantilla-calculo span,
.plantilla-calculo small,
.plantilla-calculo .template-description,
.plantilla-calculo .section-description,
.plantilla-calculo .form-section-description {
  color: rgba(205, 222, 218, 0.82);
}
.presupuesto-template label,
.presupuesto-template .form-label,
.presupuesto-form label,
.presupuesto-form .form-label,
.presupuesto-calculo label,
.presupuesto-calculo .form-label,
.template-calculo label,
.template-calculo .form-label,
.plantilla-calculo label,
.plantilla-calculo .form-label {
  color: rgba(220, 235, 231, 0.88);
  font-weight: 700;
}
.presupuesto-template input,
.presupuesto-template select,
.presupuesto-template textarea,
.presupuesto-form input,
.presupuesto-form select,
.presupuesto-form textarea,
.presupuesto-calculo input,
.presupuesto-calculo select,
.presupuesto-calculo textarea,
.template-calculo input,
.template-calculo select,
.template-calculo textarea,
.plantilla-calculo input,
.plantilla-calculo select,
.plantilla-calculo textarea {
  background-color: rgba(245, 248, 248, 0.94);
  color: #102323;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.presupuesto-template input::placeholder,
.presupuesto-template select::placeholder,
.presupuesto-template textarea::placeholder,
.presupuesto-form input::placeholder,
.presupuesto-form select::placeholder,
.presupuesto-form textarea::placeholder,
.presupuesto-calculo input::placeholder,
.presupuesto-calculo select::placeholder,
.presupuesto-calculo textarea::placeholder,
.template-calculo input::placeholder,
.template-calculo select::placeholder,
.template-calculo textarea::placeholder,
.plantilla-calculo input::placeholder,
.plantilla-calculo select::placeholder,
.plantilla-calculo textarea::placeholder {
  color: rgba(16, 35, 35, 0.52);
}
.presupuesto-template input:focus,
.presupuesto-template select:focus,
.presupuesto-template textarea:focus,
.presupuesto-form input:focus,
.presupuesto-form select:focus,
.presupuesto-form textarea:focus,
.presupuesto-calculo input:focus,
.presupuesto-calculo select:focus,
.presupuesto-calculo textarea:focus,
.template-calculo input:focus,
.template-calculo select:focus,
.template-calculo textarea:focus,
.plantilla-calculo input:focus,
.plantilla-calculo select:focus,
.plantilla-calculo textarea:focus {
  outline: none;
  border-color: rgba(68, 214, 177, 0.72);
  box-shadow: 0 0 0 3px rgba(68, 214, 177, 0.14);
}

/* Tarjetas internas de cada sección de captura */
.presupuesto-template .template-section,
.presupuesto-form .template-section,
.presupuesto-calculo .template-section,
.template-calculo .template-section,
.plantilla-calculo .template-section,
.presupuesto-template .form-section,
.presupuesto-form .form-section,
.presupuesto-calculo .form-section,
.template-calculo .form-section,
.plantilla-calculo .form-section {
  background: linear-gradient(145deg, rgba(11, 29, 35, 0.94), rgba(16, 38, 45, 0.9));
  border: 1px solid rgba(154, 219, 205, 0.14);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

/* Badge numérico 01, 02, 03... */
.presupuesto-template .section-badge,
.presupuesto-form .section-badge,
.presupuesto-calculo .section-badge,
.template-calculo .section-badge,
.plantilla-calculo .section-badge,
.presupuesto-template .badge-section,
.presupuesto-form .badge-section,
.presupuesto-calculo .badge-section,
.template-calculo .badge-section,
.plantilla-calculo .badge-section {
  background: rgba(38, 130, 111, 0.22);
  color: #67e0c2;
  border: 1px solid rgba(103, 224, 194, 0.12);
}

/* =========================================================
   Modo claro
   Mantiene contraste correcto sin romper el estilo tipo Muros
   ========================================================= */
body.light-mode .presupuesto-template,
body.light-mode .presupuesto-form,
body.light-mode .presupuesto-calculo,
body.light-mode .template-calculo,
body.light-mode .plantilla-calculo,
body.light .presupuesto-template,
body.light .presupuesto-form,
body.light .presupuesto-calculo,
body.light .template-calculo,
body.light .plantilla-calculo,
html.light-mode .presupuesto-template,
html.light-mode .presupuesto-form,
html.light-mode .presupuesto-calculo,
html.light-mode .template-calculo,
html.light-mode .plantilla-calculo,
html.light .presupuesto-template,
html.light .presupuesto-form,
html.light .presupuesto-calculo,
html.light .template-calculo,
html.light .plantilla-calculo {
  color: #132728;
}
body.light-mode .presupuesto-template h1,
body.light-mode .presupuesto-template h2,
body.light-mode .presupuesto-template h3,
body.light-mode .presupuesto-template h4,
body.light-mode .presupuesto-template h5,
body.light-mode .presupuesto-template h6,
body.light-mode .presupuesto-template .template-title,
body.light-mode .presupuesto-template .section-title,
body.light-mode .presupuesto-template .form-section-title,
body.light-mode .presupuesto-form h1,
body.light-mode .presupuesto-form h2,
body.light-mode .presupuesto-form h3,
body.light-mode .presupuesto-form h4,
body.light-mode .presupuesto-form h5,
body.light-mode .presupuesto-form h6,
body.light-mode .presupuesto-form .template-title,
body.light-mode .presupuesto-form .section-title,
body.light-mode .presupuesto-form .form-section-title,
body.light-mode .presupuesto-calculo h1,
body.light-mode .presupuesto-calculo h2,
body.light-mode .presupuesto-calculo h3,
body.light-mode .presupuesto-calculo h4,
body.light-mode .presupuesto-calculo h5,
body.light-mode .presupuesto-calculo h6,
body.light-mode .presupuesto-calculo .template-title,
body.light-mode .presupuesto-calculo .section-title,
body.light-mode .presupuesto-calculo .form-section-title,
body.light-mode .template-calculo h1,
body.light-mode .template-calculo h2,
body.light-mode .template-calculo h3,
body.light-mode .template-calculo h4,
body.light-mode .template-calculo h5,
body.light-mode .template-calculo h6,
body.light-mode .template-calculo .template-title,
body.light-mode .template-calculo .section-title,
body.light-mode .template-calculo .form-section-title,
body.light-mode .plantilla-calculo h1,
body.light-mode .plantilla-calculo h2,
body.light-mode .plantilla-calculo h3,
body.light-mode .plantilla-calculo h4,
body.light-mode .plantilla-calculo h5,
body.light-mode .plantilla-calculo h6,
body.light-mode .plantilla-calculo .template-title,
body.light-mode .plantilla-calculo .section-title,
body.light-mode .plantilla-calculo .form-section-title,
body.light .presupuesto-template h1,
body.light .presupuesto-template h2,
body.light .presupuesto-template h3,
body.light .presupuesto-template h4,
body.light .presupuesto-template h5,
body.light .presupuesto-template h6,
body.light .presupuesto-template .template-title,
body.light .presupuesto-template .section-title,
body.light .presupuesto-template .form-section-title,
body.light .presupuesto-form h1,
body.light .presupuesto-form h2,
body.light .presupuesto-form h3,
body.light .presupuesto-form h4,
body.light .presupuesto-form h5,
body.light .presupuesto-form h6,
body.light .presupuesto-form .template-title,
body.light .presupuesto-form .section-title,
body.light .presupuesto-form .form-section-title,
body.light .presupuesto-calculo h1,
body.light .presupuesto-calculo h2,
body.light .presupuesto-calculo h3,
body.light .presupuesto-calculo h4,
body.light .presupuesto-calculo h5,
body.light .presupuesto-calculo h6,
body.light .presupuesto-calculo .template-title,
body.light .presupuesto-calculo .section-title,
body.light .presupuesto-calculo .form-section-title,
body.light .template-calculo h1,
body.light .template-calculo h2,
body.light .template-calculo h3,
body.light .template-calculo h4,
body.light .template-calculo h5,
body.light .template-calculo h6,
body.light .template-calculo .template-title,
body.light .template-calculo .section-title,
body.light .template-calculo .form-section-title,
body.light .plantilla-calculo h1,
body.light .plantilla-calculo h2,
body.light .plantilla-calculo h3,
body.light .plantilla-calculo h4,
body.light .plantilla-calculo h5,
body.light .plantilla-calculo h6,
body.light .plantilla-calculo .template-title,
body.light .plantilla-calculo .section-title,
body.light .plantilla-calculo .form-section-title,
html.light-mode .presupuesto-template h1,
html.light-mode .presupuesto-template h2,
html.light-mode .presupuesto-template h3,
html.light-mode .presupuesto-template h4,
html.light-mode .presupuesto-template h5,
html.light-mode .presupuesto-template h6,
html.light-mode .presupuesto-template .template-title,
html.light-mode .presupuesto-template .section-title,
html.light-mode .presupuesto-template .form-section-title,
html.light-mode .presupuesto-form h1,
html.light-mode .presupuesto-form h2,
html.light-mode .presupuesto-form h3,
html.light-mode .presupuesto-form h4,
html.light-mode .presupuesto-form h5,
html.light-mode .presupuesto-form h6,
html.light-mode .presupuesto-form .template-title,
html.light-mode .presupuesto-form .section-title,
html.light-mode .presupuesto-form .form-section-title,
html.light-mode .presupuesto-calculo h1,
html.light-mode .presupuesto-calculo h2,
html.light-mode .presupuesto-calculo h3,
html.light-mode .presupuesto-calculo h4,
html.light-mode .presupuesto-calculo h5,
html.light-mode .presupuesto-calculo h6,
html.light-mode .presupuesto-calculo .template-title,
html.light-mode .presupuesto-calculo .section-title,
html.light-mode .presupuesto-calculo .form-section-title,
html.light-mode .template-calculo h1,
html.light-mode .template-calculo h2,
html.light-mode .template-calculo h3,
html.light-mode .template-calculo h4,
html.light-mode .template-calculo h5,
html.light-mode .template-calculo h6,
html.light-mode .template-calculo .template-title,
html.light-mode .template-calculo .section-title,
html.light-mode .template-calculo .form-section-title,
html.light-mode .plantilla-calculo h1,
html.light-mode .plantilla-calculo h2,
html.light-mode .plantilla-calculo h3,
html.light-mode .plantilla-calculo h4,
html.light-mode .plantilla-calculo h5,
html.light-mode .plantilla-calculo h6,
html.light-mode .plantilla-calculo .template-title,
html.light-mode .plantilla-calculo .section-title,
html.light-mode .plantilla-calculo .form-section-title,
html.light .presupuesto-template h1,
html.light .presupuesto-template h2,
html.light .presupuesto-template h3,
html.light .presupuesto-template h4,
html.light .presupuesto-template h5,
html.light .presupuesto-template h6,
html.light .presupuesto-template .template-title,
html.light .presupuesto-template .section-title,
html.light .presupuesto-template .form-section-title,
html.light .presupuesto-form h1,
html.light .presupuesto-form h2,
html.light .presupuesto-form h3,
html.light .presupuesto-form h4,
html.light .presupuesto-form h5,
html.light .presupuesto-form h6,
html.light .presupuesto-form .template-title,
html.light .presupuesto-form .section-title,
html.light .presupuesto-form .form-section-title,
html.light .presupuesto-calculo h1,
html.light .presupuesto-calculo h2,
html.light .presupuesto-calculo h3,
html.light .presupuesto-calculo h4,
html.light .presupuesto-calculo h5,
html.light .presupuesto-calculo h6,
html.light .presupuesto-calculo .template-title,
html.light .presupuesto-calculo .section-title,
html.light .presupuesto-calculo .form-section-title,
html.light .template-calculo h1,
html.light .template-calculo h2,
html.light .template-calculo h3,
html.light .template-calculo h4,
html.light .template-calculo h5,
html.light .template-calculo h6,
html.light .template-calculo .template-title,
html.light .template-calculo .section-title,
html.light .template-calculo .form-section-title,
html.light .plantilla-calculo h1,
html.light .plantilla-calculo h2,
html.light .plantilla-calculo h3,
html.light .plantilla-calculo h4,
html.light .plantilla-calculo h5,
html.light .plantilla-calculo h6,
html.light .plantilla-calculo .template-title,
html.light .plantilla-calculo .section-title,
html.light .plantilla-calculo .form-section-title {
  color: #102323;
}
body.light-mode .presupuesto-template p,
body.light-mode .presupuesto-template span,
body.light-mode .presupuesto-template small,
body.light-mode .presupuesto-template .template-description,
body.light-mode .presupuesto-template .section-description,
body.light-mode .presupuesto-template .form-section-description,
body.light-mode .presupuesto-form p,
body.light-mode .presupuesto-form span,
body.light-mode .presupuesto-form small,
body.light-mode .presupuesto-form .template-description,
body.light-mode .presupuesto-form .section-description,
body.light-mode .presupuesto-form .form-section-description,
body.light-mode .presupuesto-calculo p,
body.light-mode .presupuesto-calculo span,
body.light-mode .presupuesto-calculo small,
body.light-mode .presupuesto-calculo .template-description,
body.light-mode .presupuesto-calculo .section-description,
body.light-mode .presupuesto-calculo .form-section-description,
body.light-mode .template-calculo p,
body.light-mode .template-calculo span,
body.light-mode .template-calculo small,
body.light-mode .template-calculo .template-description,
body.light-mode .template-calculo .section-description,
body.light-mode .template-calculo .form-section-description,
body.light-mode .plantilla-calculo p,
body.light-mode .plantilla-calculo span,
body.light-mode .plantilla-calculo small,
body.light-mode .plantilla-calculo .template-description,
body.light-mode .plantilla-calculo .section-description,
body.light-mode .plantilla-calculo .form-section-description,
body.light .presupuesto-template p,
body.light .presupuesto-template span,
body.light .presupuesto-template small,
body.light .presupuesto-template .template-description,
body.light .presupuesto-template .section-description,
body.light .presupuesto-template .form-section-description,
body.light .presupuesto-form p,
body.light .presupuesto-form span,
body.light .presupuesto-form small,
body.light .presupuesto-form .template-description,
body.light .presupuesto-form .section-description,
body.light .presupuesto-form .form-section-description,
body.light .presupuesto-calculo p,
body.light .presupuesto-calculo span,
body.light .presupuesto-calculo small,
body.light .presupuesto-calculo .template-description,
body.light .presupuesto-calculo .section-description,
body.light .presupuesto-calculo .form-section-description,
body.light .template-calculo p,
body.light .template-calculo span,
body.light .template-calculo small,
body.light .template-calculo .template-description,
body.light .template-calculo .section-description,
body.light .template-calculo .form-section-description,
body.light .plantilla-calculo p,
body.light .plantilla-calculo span,
body.light .plantilla-calculo small,
body.light .plantilla-calculo .template-description,
body.light .plantilla-calculo .section-description,
body.light .plantilla-calculo .form-section-description,
html.light-mode .presupuesto-template p,
html.light-mode .presupuesto-template span,
html.light-mode .presupuesto-template small,
html.light-mode .presupuesto-template .template-description,
html.light-mode .presupuesto-template .section-description,
html.light-mode .presupuesto-template .form-section-description,
html.light-mode .presupuesto-form p,
html.light-mode .presupuesto-form span,
html.light-mode .presupuesto-form small,
html.light-mode .presupuesto-form .template-description,
html.light-mode .presupuesto-form .section-description,
html.light-mode .presupuesto-form .form-section-description,
html.light-mode .presupuesto-calculo p,
html.light-mode .presupuesto-calculo span,
html.light-mode .presupuesto-calculo small,
html.light-mode .presupuesto-calculo .template-description,
html.light-mode .presupuesto-calculo .section-description,
html.light-mode .presupuesto-calculo .form-section-description,
html.light-mode .template-calculo p,
html.light-mode .template-calculo span,
html.light-mode .template-calculo small,
html.light-mode .template-calculo .template-description,
html.light-mode .template-calculo .section-description,
html.light-mode .template-calculo .form-section-description,
html.light-mode .plantilla-calculo p,
html.light-mode .plantilla-calculo span,
html.light-mode .plantilla-calculo small,
html.light-mode .plantilla-calculo .template-description,
html.light-mode .plantilla-calculo .section-description,
html.light-mode .plantilla-calculo .form-section-description,
html.light .presupuesto-template p,
html.light .presupuesto-template span,
html.light .presupuesto-template small,
html.light .presupuesto-template .template-description,
html.light .presupuesto-template .section-description,
html.light .presupuesto-template .form-section-description,
html.light .presupuesto-form p,
html.light .presupuesto-form span,
html.light .presupuesto-form small,
html.light .presupuesto-form .template-description,
html.light .presupuesto-form .section-description,
html.light .presupuesto-form .form-section-description,
html.light .presupuesto-calculo p,
html.light .presupuesto-calculo span,
html.light .presupuesto-calculo small,
html.light .presupuesto-calculo .template-description,
html.light .presupuesto-calculo .section-description,
html.light .presupuesto-calculo .form-section-description,
html.light .template-calculo p,
html.light .template-calculo span,
html.light .template-calculo small,
html.light .template-calculo .template-description,
html.light .template-calculo .section-description,
html.light .template-calculo .form-section-description,
html.light .plantilla-calculo p,
html.light .plantilla-calculo span,
html.light .plantilla-calculo small,
html.light .plantilla-calculo .template-description,
html.light .plantilla-calculo .section-description,
html.light .plantilla-calculo .form-section-description {
  color: rgba(16, 35, 35, 0.68);
}
body.light-mode .presupuesto-template label,
body.light-mode .presupuesto-template .form-label,
body.light-mode .presupuesto-form label,
body.light-mode .presupuesto-form .form-label,
body.light-mode .presupuesto-calculo label,
body.light-mode .presupuesto-calculo .form-label,
body.light-mode .template-calculo label,
body.light-mode .template-calculo .form-label,
body.light-mode .plantilla-calculo label,
body.light-mode .plantilla-calculo .form-label,
body.light .presupuesto-template label,
body.light .presupuesto-template .form-label,
body.light .presupuesto-form label,
body.light .presupuesto-form .form-label,
body.light .presupuesto-calculo label,
body.light .presupuesto-calculo .form-label,
body.light .template-calculo label,
body.light .template-calculo .form-label,
body.light .plantilla-calculo label,
body.light .plantilla-calculo .form-label,
html.light-mode .presupuesto-template label,
html.light-mode .presupuesto-template .form-label,
html.light-mode .presupuesto-form label,
html.light-mode .presupuesto-form .form-label,
html.light-mode .presupuesto-calculo label,
html.light-mode .presupuesto-calculo .form-label,
html.light-mode .template-calculo label,
html.light-mode .template-calculo .form-label,
html.light-mode .plantilla-calculo label,
html.light-mode .plantilla-calculo .form-label,
html.light .presupuesto-template label,
html.light .presupuesto-template .form-label,
html.light .presupuesto-form label,
html.light .presupuesto-form .form-label,
html.light .presupuesto-calculo label,
html.light .presupuesto-calculo .form-label,
html.light .template-calculo label,
html.light .template-calculo .form-label,
html.light .plantilla-calculo label,
html.light .plantilla-calculo .form-label {
  color: rgba(16, 35, 35, 0.84);
}
body.light-mode .presupuesto-template input,
body.light-mode .presupuesto-template select,
body.light-mode .presupuesto-template textarea,
body.light-mode .presupuesto-form input,
body.light-mode .presupuesto-form select,
body.light-mode .presupuesto-form textarea,
body.light-mode .presupuesto-calculo input,
body.light-mode .presupuesto-calculo select,
body.light-mode .presupuesto-calculo textarea,
body.light-mode .template-calculo input,
body.light-mode .template-calculo select,
body.light-mode .template-calculo textarea,
body.light-mode .plantilla-calculo input,
body.light-mode .plantilla-calculo select,
body.light-mode .plantilla-calculo textarea,
body.light .presupuesto-template input,
body.light .presupuesto-template select,
body.light .presupuesto-template textarea,
body.light .presupuesto-form input,
body.light .presupuesto-form select,
body.light .presupuesto-form textarea,
body.light .presupuesto-calculo input,
body.light .presupuesto-calculo select,
body.light .presupuesto-calculo textarea,
body.light .template-calculo input,
body.light .template-calculo select,
body.light .template-calculo textarea,
body.light .plantilla-calculo input,
body.light .plantilla-calculo select,
body.light .plantilla-calculo textarea,
html.light-mode .presupuesto-template input,
html.light-mode .presupuesto-template select,
html.light-mode .presupuesto-template textarea,
html.light-mode .presupuesto-form input,
html.light-mode .presupuesto-form select,
html.light-mode .presupuesto-form textarea,
html.light-mode .presupuesto-calculo input,
html.light-mode .presupuesto-calculo select,
html.light-mode .presupuesto-calculo textarea,
html.light-mode .template-calculo input,
html.light-mode .template-calculo select,
html.light-mode .template-calculo textarea,
html.light-mode .plantilla-calculo input,
html.light-mode .plantilla-calculo select,
html.light-mode .plantilla-calculo textarea,
html.light .presupuesto-template input,
html.light .presupuesto-template select,
html.light .presupuesto-template textarea,
html.light .presupuesto-form input,
html.light .presupuesto-form select,
html.light .presupuesto-form textarea,
html.light .presupuesto-calculo input,
html.light .presupuesto-calculo select,
html.light .presupuesto-calculo textarea,
html.light .template-calculo input,
html.light .template-calculo select,
html.light .template-calculo textarea,
html.light .plantilla-calculo input,
html.light .plantilla-calculo select,
html.light .plantilla-calculo textarea {
  background-color: rgba(255, 255, 255, 0.94);
  color: #102323;
  border: 1px solid rgba(16, 35, 35, 0.12);
}
body.light-mode .presupuesto-template .template-section,
body.light-mode .presupuesto-form .template-section,
body.light-mode .presupuesto-calculo .template-section,
body.light-mode .template-calculo .template-section,
body.light-mode .plantilla-calculo .template-section,
body.light-mode .presupuesto-template .form-section,
body.light-mode .presupuesto-form .form-section,
body.light-mode .presupuesto-calculo .form-section,
body.light-mode .template-calculo .form-section,
body.light-mode .plantilla-calculo .form-section,
body.light .presupuesto-template .template-section,
body.light .presupuesto-form .template-section,
body.light .presupuesto-calculo .template-section,
body.light .template-calculo .template-section,
body.light .plantilla-calculo .template-section,
body.light .presupuesto-template .form-section,
body.light .presupuesto-form .form-section,
body.light .presupuesto-calculo .form-section,
body.light .template-calculo .form-section,
body.light .plantilla-calculo .form-section,
html.light-mode .presupuesto-template .template-section,
html.light-mode .presupuesto-form .template-section,
html.light-mode .presupuesto-calculo .template-section,
html.light-mode .template-calculo .template-section,
html.light-mode .plantilla-calculo .template-section,
html.light-mode .presupuesto-template .form-section,
html.light-mode .presupuesto-form .form-section,
html.light-mode .presupuesto-calculo .form-section,
html.light-mode .template-calculo .form-section,
html.light-mode .plantilla-calculo .form-section,
html.light .presupuesto-template .template-section,
html.light .presupuesto-form .template-section,
html.light .presupuesto-calculo .template-section,
html.light .template-calculo .template-section,
html.light .plantilla-calculo .template-section,
html.light .presupuesto-template .form-section,
html.light .presupuesto-form .form-section,
html.light .presupuesto-calculo .form-section,
html.light .template-calculo .form-section,
html.light .plantilla-calculo .form-section {
  background: rgba(245, 248, 248, 0.9);
  border: 1px solid rgba(16, 35, 35, 0.12);
  box-shadow: 0 14px 30px rgba(16, 35, 35, 0.08);
}
body.light-mode .presupuesto-template .section-badge,
body.light-mode .presupuesto-form .section-badge,
body.light-mode .presupuesto-calculo .section-badge,
body.light-mode .template-calculo .section-badge,
body.light-mode .plantilla-calculo .section-badge,
body.light-mode .presupuesto-template .badge-section,
body.light-mode .presupuesto-form .badge-section,
body.light-mode .presupuesto-calculo .badge-section,
body.light-mode .template-calculo .badge-section,
body.light-mode .plantilla-calculo .badge-section,
body.light .presupuesto-template .section-badge,
body.light .presupuesto-form .section-badge,
body.light .presupuesto-calculo .section-badge,
body.light .template-calculo .section-badge,
body.light .plantilla-calculo .section-badge,
body.light .presupuesto-template .badge-section,
body.light .presupuesto-form .badge-section,
body.light .presupuesto-calculo .badge-section,
body.light .template-calculo .badge-section,
body.light .plantilla-calculo .badge-section,
html.light-mode .presupuesto-template .section-badge,
html.light-mode .presupuesto-form .section-badge,
html.light-mode .presupuesto-calculo .section-badge,
html.light-mode .template-calculo .section-badge,
html.light-mode .plantilla-calculo .section-badge,
html.light-mode .presupuesto-template .badge-section,
html.light-mode .presupuesto-form .badge-section,
html.light-mode .presupuesto-calculo .badge-section,
html.light-mode .template-calculo .badge-section,
html.light-mode .plantilla-calculo .badge-section,
html.light .presupuesto-template .section-badge,
html.light .presupuesto-form .section-badge,
html.light .presupuesto-calculo .section-badge,
html.light .template-calculo .section-badge,
html.light .plantilla-calculo .section-badge,
html.light .presupuesto-template .badge-section,
html.light .presupuesto-form .badge-section,
html.light .presupuesto-calculo .badge-section,
html.light .template-calculo .badge-section,
html.light .plantilla-calculo .badge-section {
  background: rgba(38, 130, 111, 0.14);
  color: #08765f;
  border: 1px solid rgba(8, 118, 95, 0.14);
}

/* ========================================
   PRESUPUESTOS | DARK MODE CONTRAST FIX FINAL
   Evita que las reglas de modo claro oculten textos en Muros,
   Placas aisladas y futuras plantillas.
======================================== */
body:not(.theme-light) .budget-template-form .template-section,
body.theme-dark .budget-template-form .template-section,
body.dark-mode .budget-template-form .template-section {
  border-color: rgba(114, 239, 211, 0.1) !important;
  background: rgba(255, 255, 255, 0.025) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

body:not(.theme-light) .budget-template-form .template-section-header > span,
body.theme-dark .budget-template-form .template-section-header > span,
body.dark-mode .budget-template-form .template-section-header > span {
  background: rgba(114, 239, 211, 0.12) !important;
  color: #72efd3 !important;
}

body:not(.theme-light) .budget-template-form .template-section-header h4,
body.theme-dark .budget-template-form .template-section-header h4,
body.dark-mode .budget-template-form .template-section-header h4 {
  color: #ffffff !important;
}

body:not(.theme-light) .budget-template-form .template-section-header p,
body.theme-dark .budget-template-form .template-section-header p,
body.dark-mode .budget-template-form .template-section-header p {
  color: rgba(255, 255, 255, 0.58) !important;
}

body:not(.theme-light) .budget-template-form .budget-field > span,
body:not(.theme-light) .budget-template-form .budget-field label,
body:not(.theme-light) .budget-template-form .budget-field .field-label,
body.theme-dark .budget-template-form .budget-field > span,
body.theme-dark .budget-template-form .budget-field label,
body.theme-dark .budget-template-form .budget-field .field-label,
body.dark-mode .budget-template-form .budget-field > span,
body.dark-mode .budget-template-form .budget-field label,
body.dark-mode .budget-template-form .budget-field .field-label {
  color: rgba(255, 255, 255, 0.76) !important;
}

body:not(.theme-light) .budget-template-form .budget-field input,
body:not(.theme-light) .budget-template-form .budget-field select,
body.theme-dark .budget-template-form .budget-field input,
body.theme-dark .budget-template-form .budget-field select,
body.dark-mode .budget-template-form .budget-field input,
body.dark-mode .budget-template-form .budget-field select {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(245, 248, 248, 0.94) !important;
  color: #102126 !important;
}

/* ========================================
   PRESUPUESTOS | DARK MODE TEMPLATE FIX
   Fuerza estilo oscuro en plantillas cuando NO está activo theme-light
======================================== */
body:not(.theme-light) .budget-template-form .template-section {
  border-color: rgba(114, 239, 211, 0.1) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.025) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

body:not(.theme-light) .budget-template-form .template-section-header > span {
  background: rgba(114, 239, 211, 0.12) !important;
  border-color: rgba(114, 239, 211, 0.12) !important;
  color: #72efd3 !important;
}

body:not(.theme-light) .budget-template-form .template-section-header h4 {
  color: #ffffff !important;
}

body:not(.theme-light) .budget-template-form .template-section-header p {
  color: rgba(255, 255, 255, 0.58) !important;
}

body:not(.theme-light) .budget-template-form .budget-field > span,
body:not(.theme-light) .budget-template-form .budget-field label,
body:not(.theme-light) .budget-template-form .budget-field .field-label {
  color: rgba(255, 255, 255, 0.74) !important;
}

body:not(.theme-light) .budget-template-form .budget-field input,
body:not(.theme-light) .budget-template-form .budget-field select,
body:not(.theme-light) .budget-template-form .budget-field textarea {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(245, 248, 248, 0.94) !important;
  color: #102126 !important;
}

body:not(.theme-light) .budget-template-form .budget-field input::placeholder,
body:not(.theme-light) .budget-template-form .budget-field textarea::placeholder {
  color: rgba(16, 33, 38, 0.45) !important;
}

body:not(.theme-light) .budget-template-form .budget-field input:focus,
body:not(.theme-light) .budget-template-form .budget-field select:focus,
body:not(.theme-light) .budget-template-form .budget-field textarea:focus {
  border-color: rgba(114, 239, 211, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(114, 239, 211, 0.1) !important;
}

/* Compatibilidad por si alguna plantilla usa clases alternativas */
body:not(.theme-light) .budget-template-form .budget-template-section {
  border-color: rgba(114, 239, 211, 0.1) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.025) 100%) !important;
}

body:not(.theme-light) .budget-template-form .budget-template-section-header > span {
  background: rgba(114, 239, 211, 0.12) !important;
  color: #72efd3 !important;
}

body:not(.theme-light) .budget-template-form .budget-template-section-header h4 {
  color: #ffffff !important;
}

body:not(.theme-light) .budget-template-form .budget-template-section-header p {
  color: rgba(255, 255, 255, 0.58) !important;
}

body:not(.theme-light) .budget-template-form .budget-template-field > span {
  color: rgba(255, 255, 255, 0.74) !important;
}

body:not(.theme-light) .budget-template-form .budget-template-field input,
body:not(.theme-light) .budget-template-form .budget-template-field select {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(245, 248, 248, 0.94) !important;
  color: #102126 !important;
}

/* ========================================
   PRESUPUESTOS | ACTUALIZACIÓN GENERAL UI
   Acordeón de secciones, encabezados con contraste y tabla actividad/tarea.
======================================== */
.budget-template-form .template-section {
  padding: 0 !important;
  overflow: hidden;
}

.budget-template-form .template-section-header {
  position: relative;
  align-items: center;
  margin: 0 !important;
  padding: 0.9rem 0.75rem 0.9rem 0.9rem;
  border-radius: 14px 14px 0 0;
  cursor: pointer;
  user-select: none;
}

.budget-template-form .template-section-header > div {
  flex: 1 1 auto;
  min-width: 0;
}

.budget-template-form .template-section-body {
  padding: 1rem;
}

.budget-template-form .template-section.is-collapsed .template-section-body {
  display: none;
}

.budget-template-form .template-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  width: auto;
  min-width: 92px;
  max-width: 118px;
  height: 30px;
  margin-left: auto;
  padding: 0 0.55rem;
  border: 1px solid rgba(114, 239, 211, 0.24);
  border-radius: 999px;
  background: rgba(114, 239, 211, 0.1);
  color: #72efd3;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.025em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.budget-template-form .template-section-toggle:hover {
  background: rgba(114, 239, 211, 0.18);
  border-color: rgba(114, 239, 211, 0.4);
}

body.theme-light .budget-template-form .template-section {
  border-color: rgba(0, 107, 93, 0.2) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 0 0 1px rgba(0, 107, 93, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

body.theme-light .budget-template-form .template-section-header {
  background: linear-gradient(90deg, rgba(0, 107, 93, 0.075) 0%, rgba(0, 107, 93, 0.018) 100%);
  border-bottom: 1px solid rgba(0, 107, 93, 0.16);
}

body.theme-light .budget-template-form .template-section-header > span {
  background: rgba(0, 107, 93, 0.1) !important;
  border-color: rgba(0, 107, 93, 0.1) !important;
  color: #006b5d !important;
}

body.theme-light .budget-template-form .template-section-header h4 {
  color: #15282a !important;
}

body.theme-light .budget-template-form .template-section-header p {
  color: rgba(21, 40, 42, 0.68) !important;
}

body.theme-light .budget-template-form .template-section-toggle {
  border-color: rgba(0, 107, 93, 0.22);
  background: rgba(0, 107, 93, 0.07);
  color: #006b5d;
}

body.theme-light .budget-template-form .template-section-toggle:hover {
  background: rgba(0, 107, 93, 0.11);
  border-color: rgba(0, 107, 93, 0.34);
}

body:not(.theme-light) .budget-template-form .template-section,
body.theme-dark .budget-template-form .template-section,
body.dark-mode .budget-template-form .template-section {
  border-color: rgba(114, 239, 211, 0.26) !important;
  box-shadow: 0 0 0 1px rgba(114, 239, 211, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

body:not(.theme-light) .budget-template-form .template-section-header,
body.theme-dark .budget-template-form .template-section-header,
body.dark-mode .budget-template-form .template-section-header {
  border-bottom: 1px solid rgba(114, 239, 211, 0.18);
  background: linear-gradient(90deg, rgba(114, 239, 211, 0.11) 0%, rgba(114, 239, 211, 0.03) 100%);
}

.budget-results-card .budget-table-header,
.budget-item-block .budget-table-row-grid,
.budget-table-body .budget-item-block .budget-table-row-grid,
.budget-table-row-grid,
.budget-table-row-message {
  grid-template-columns: minmax(34px, 0.42fr) minmax(110px, 0.95fr) minmax(130px, 1.05fr) minmax(104px, 0.95fr) minmax(66px, 0.64fr) minmax(50px, 0.52fr) minmax(104px, 0.95fr) minmax(170px, 1.25fr) !important;
}

.budget-item-block .budget-table-cell:nth-child(2),
.budget-item-block .budget-table-cell:nth-child(3),
.budget-results-card .budget-table-header > div:nth-child(2),
.budget-results-card .budget-table-header > div:nth-child(3) {
  text-align: left;
}

.budget-item-block .budget-table-cell:nth-child(4),
.budget-item-block .budget-table-cell:nth-child(5),
.budget-item-block .budget-table-cell:nth-child(7),
.budget-results-card .budget-table-header > div:nth-child(4),
.budget-results-card .budget-table-header > div:nth-child(5),
.budget-results-card .budget-table-header > div:nth-child(7) {
  text-align: right;
}

.budget-table-cell-detail {
  width: 100%;
  text-align: left;
}

@media (max-width: 900px) {
  .budget-template-form .template-section-header {
    align-items: flex-start;
  }
  .budget-template-form .template-section-toggle {
    min-width: 88px;
    max-width: 104px;
    height: 30px;
    font-size: 0.64rem;
    padding: 0 0.45rem;
  }
}
/* ============================================================
   Dashboard principal de presupuestos
   Fase 1 — selector interno de plantillas en /presupuestos
============================================================ */
.budget-dashboard-template-selector {
  display: grid;
  gap: 1.25rem;
}

.budget-dashboard-intro {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(114, 239, 211, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(114, 239, 211, 0.075) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.budget-dashboard-intro > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(114, 239, 211, 0.12);
  color: #72efd3;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.budget-dashboard-intro h3 {
  margin: 0 0 0.45rem;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 850;
}

.budget-dashboard-intro p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  line-height: 1.65;
}

.budget-dashboard-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.budget-dashboard-template-group {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 20px;
  background: rgba(5, 20, 25, 0.34);
}

.budget-dashboard-template-group header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.budget-dashboard-template-group header span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(114, 239, 211, 0.11);
  color: #72efd3;
  font-size: 0.78rem;
  font-weight: 900;
}

.budget-dashboard-template-group h4 {
  margin: 0;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 820;
}

.budget-dashboard-template-group header {
  justify-content: space-between;
}

.budget-dashboard-template-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.budget-template-completion {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 34px;
  padding: 0 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.84);
}

.budget-template-completion strong {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.budget-template-progress {
  position: relative;
  width: 100%;
  height: 8px;
  margin: 0 0 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
}

.budget-template-progress span {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: rgba(255, 120, 120, 0.78);
}

.budget-template-completion-note {
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.budget-template-completion--incomplete {
  border-color: rgba(255, 120, 120, 0.24);
  color: #ff9f9f;
  background: rgba(255, 120, 120, 0.09);
}

.budget-template-completion--progress {
  border-color: rgba(255, 193, 92, 0.28);
  color: #ffd08a;
  background: rgba(255, 193, 92, 0.1);
}

.budget-template-completion--almost {
  border-color: rgba(114, 190, 255, 0.28);
  color: #9fd4ff;
  background: rgba(114, 190, 255, 0.1);
}

.budget-template-completion--complete {
  border-color: rgba(114, 239, 211, 0.34);
  color: #72efd3;
  background: rgba(114, 239, 211, 0.12);
}

.budget-dashboard-template-group--progress .budget-template-progress span {
  background: rgba(255, 193, 92, 0.86);
}

.budget-dashboard-template-group--almost .budget-template-progress span {
  background: rgba(114, 190, 255, 0.86);
}

.budget-dashboard-template-group--complete .budget-template-progress span {
  background: rgba(114, 239, 211, 0.88);
}

body.theme-light .budget-template-completion {
  background: rgba(255, 255, 255, 0.78);
}

body.theme-light .budget-template-progress {
  background: rgba(10, 28, 34, 0.08);
}

body.theme-light .budget-template-completion-note {
  color: rgba(10, 28, 34, 0.58);
}

body.theme-light .budget-template-completion--incomplete {
  border-color: rgba(190, 70, 70, 0.24);
  color: #a23d3d;
  background: rgba(190, 70, 70, 0.08);
}

body.theme-light .budget-template-completion--progress {
  border-color: rgba(160, 105, 18, 0.24);
  color: #8c5c14;
  background: rgba(255, 193, 92, 0.16);
}

body.theme-light .budget-template-completion--almost {
  border-color: rgba(34, 105, 170, 0.24);
  color: #285f95;
  background: rgba(114, 190, 255, 0.16);
}

body.theme-light .budget-template-completion--complete {
  border-color: rgba(0, 128, 110, 0.28);
  color: #0f6d61;
  background: rgba(0, 128, 110, 0.1);
}

.budget-dashboard-template-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.budget-dashboard-template-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.55rem 0.78rem;
  border: 1px solid rgba(114, 239, 211, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.budget-dashboard-template-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(114, 239, 211, 0.34);
  color: #ffffff;
  background: rgba(114, 239, 211, 0.09);
}

body.theme-light .budget-dashboard-intro {
  border-color: rgba(0, 128, 110, 0.16);
  background: linear-gradient(180deg, rgba(0, 128, 110, 0.075) 0%, rgba(255, 255, 255, 0.82) 100%);
}

body.theme-light .budget-dashboard-intro h3,
body.theme-light .budget-dashboard-template-group h4 {
  color: #10242a;
}

body.theme-light .budget-dashboard-intro p {
  color: rgba(10, 28, 34, 0.68);
}

body.theme-light .budget-dashboard-template-group {
  border-color: rgba(0, 128, 110, 0.14);
  background: rgba(255, 255, 255, 0.74);
}

body.theme-light .budget-dashboard-template-links a {
  border-color: rgba(0, 128, 110, 0.15);
  color: rgba(10, 28, 34, 0.78);
  background: rgba(255, 255, 255, 0.72);
}



.budget-dashboard-template-links a.disabled,
.budget-menu-links a.disabled {
  opacity: 0.56;
  cursor: not-allowed;
  pointer-events: none;
  border-style: dashed;
}

.budget-dashboard-template-links a.disabled:hover,
.budget-menu-links a.disabled:hover {
  transform: none;
}

body.theme-light .budget-dashboard-template-links a:hover {
  border-color: rgba(0, 128, 110, 0.34);
  color: #0f3f36;
  background: rgba(0, 128, 110, 0.08);
}

@media (max-width: 980px) {
  .budget-dashboard-template-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .budget-dashboard-intro {
    flex-direction: column;
  }
  .budget-dashboard-template-links {
    display: grid;
    grid-template-columns: 1fr;
  }
  .budget-dashboard-template-links a {
    justify-content: center;
    border-radius: 14px;
  }
}
/* ============================================================
   PRESUPUESTOS | DEBUG PAYLOAD VIEWER
============================================================ */
.budget-debug-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding-bottom: 80px;
  color: #ffffff;
}

.budget-debug-header {
  padding: 150px 0 36px;
}

.budget-debug-section {
  padding: 0 0 80px;
}

.budget-debug-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.budget-debug-card {
  margin-bottom: 1.2rem;
  padding: 1.15rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(4, 18, 29, 0.94) 0%, rgba(4, 18, 29, 0.84) 100%);
  border: 1px solid rgba(114, 239, 211, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 44px rgba(0, 0, 0, 0.22);
}

.budget-debug-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.budget-debug-error {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 87, 87, 0.12);
  border: 1px solid rgba(255, 87, 87, 0.22);
  color: #ffb8b8;
  font-weight: 700;
}

.budget-debug-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(114, 239, 211, 0.12);
  background: rgba(3, 20, 27, 0.72);
}

.budget-debug-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.budget-debug-table th,
.budget-debug-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  text-align: left;
  vertical-align: top;
}

.budget-debug-table th {
  background: rgba(114, 239, 211, 0.12);
  color: #72efd3;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.budget-debug-table td strong {
  display: block;
  color: #ffffff;
  font-weight: 850;
}

.budget-debug-table td small {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.4;
}

.budget-debug-table code {
  color: #72efd3;
  font-size: 0.76rem;
  white-space: nowrap;
}

.budget-debug-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 107, 88, 0.92);
  border: 1px solid rgba(114, 239, 211, 0.18);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.budget-debug-link:hover {
  background: rgba(20, 132, 108, 0.98);
}

.budget-debug-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.budget-debug-summary div {
  padding: 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.budget-debug-summary dt {
  margin-bottom: 0.35rem;
  color: #72efd3;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.budget-debug-summary dd {
  margin: 0;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.budget-debug-json {
  max-height: 620px;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(114, 239, 211, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  line-height: 1.55;
}

body.theme-light .budget-debug-page {
  color: var(--light-text);
}

body.theme-light .budget-debug-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 246, 240, 0.94) 100%);
  border-color: rgba(16, 36, 31, 0.12);
  box-shadow: 0 18px 45px rgba(16, 36, 31, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.theme-light .budget-debug-table-wrap {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(16, 36, 31, 0.1);
}

body.theme-light .budget-debug-table th {
  background: rgba(15, 107, 88, 0.12);
  color: #0f6b58;
}

body.theme-light .budget-debug-table td {
  border-bottom-color: rgba(16, 36, 31, 0.08);
  color: rgba(16, 36, 31, 0.76);
}

body.theme-light .budget-debug-table td strong,
body.theme-light .budget-debug-summary dd {
  color: #10241f;
}

body.theme-light .budget-debug-table td small {
  color: rgba(16, 36, 31, 0.58);
}

body.theme-light .budget-debug-table code,
body.theme-light .budget-debug-summary dt {
  color: #0f6b58;
}

body.theme-light .budget-debug-summary div {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(16, 36, 31, 0.1);
}

body.theme-light .budget-debug-json {
  background: rgba(16, 36, 31, 0.06);
  border-color: rgba(16, 36, 31, 0.1);
  color: rgba(16, 36, 31, 0.82);
}

@media (max-width: 992px) {
  .budget-debug-header {
    padding-top: 320px;
  }
  .budget-debug-grid {
    grid-template-columns: 1fr;
  }
  .budget-debug-summary {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .budget-debug-header {
    padding-top: 335px;
  }
  .budget-debug-card {
    padding: 0.95rem;
    border-radius: 18px;
  }
}
/* ========================================
   FOOTER
======================================== */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 60px;
  padding: 42px 0 24px;
  background: linear-gradient(180deg, rgba(5, 19, 31, 0.88) 0%, rgba(5, 19, 31, 0.96) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(114, 239, 211, 0.18), transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-col h4 {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #72efd3;
  text-shadow: 0 0 6px rgba(114, 239, 211, 0.16), 0 0 12px rgba(114, 239, 211, 0.06);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.76);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-logo {
  display: block;
  width: 150px;
  height: auto;
  margin-bottom: 0.95rem;
}

.footer-text {
  margin: 0;
  max-width: 320px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}

/* ========================================
   WHATSAPP FLOAT
======================================== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1faa59;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 0 6px rgba(31, 170, 89, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.04);
  background: #22c15e;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), 0 0 0 8px rgba(31, 170, 89, 0.1);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  .site-footer {
    margin-top: 40px;
    padding: 32px 0 20px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .footer-logo {
    width: 130px;
  }
  .footer-text {
    max-width: 100%;
    font-size: 0.9rem;
    line-height: 1.62;
  }
  .footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
  }
  .footer-col li {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}
/* ========================================
   SERVICIOS | BASE
======================================== */
.services-page,
.service-single-page {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

/* ========================================
   HEADER SERVICIOS / DETALLE
======================================== */
.services-header,
.service-single-header {
  padding: 150px 0 40px;
}

.services-kicker,
.service-single-kicker {
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.services-title,
.service-single-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  color: #ffffff;
}

.services-title span,
.service-single-title span {
  color: #72efd3;
  text-shadow: 0 0 10px rgba(114, 239, 211, 0.22), 0 0 18px rgba(114, 239, 211, 0.08);
}

.service-title-split {
  color: #ffffff;
}

.service-title-primary {
  color: #ffffff !important;
}

.service-title-glow {
  color: #72efd3 !important;
  text-shadow: 0 0 10px rgba(114, 239, 211, 0.24), 0 0 18px rgba(114, 239, 211, 0.12), 0 0 28px rgba(114, 239, 211, 0.06);
}

.services-subtitle,
.service-single-subtitle {
  max-width: 760px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

/* ========================================
   LISTADO SERVICIOS
======================================== */
.services-list-section {
  padding: 24px 0 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.service-detail-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 19, 31, 0.9) 0%, rgba(5, 19, 31, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 28px rgba(0, 0, 0, 0.14);
}

.service-detail-card::before,
.service-single-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.15rem;
  right: 1.15rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(114, 239, 211, 0.18), transparent);
}

.service-detail-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
}

.service-detail-card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.service-detail-card h2,
.service-main-title {
  margin: 0 0 0.85rem;
  font-size: 1.22rem;
  font-weight: 750;
  line-height: 1.22;
  color: #ffffff;
}

.service-main-title-primary {
  color: #ffffff;
}

.service-main-title-glow {
  color: #72efd3;
  text-shadow: 0 0 10px rgba(114, 239, 211, 0.22), 0 0 18px rgba(114, 239, 211, 0.1);
}

.service-detail-card p {
  margin: 0 0 1rem;
  font-size: 0.96rem;
  line-height: 1.72;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  text-wrap: pretty;
  color: rgba(255, 255, 255, 0.8);
}

.service-detail-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.service-detail-card li {
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.86);
}

.service-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(114, 239, 211, 0.18);
  background: rgba(114, 239, 211, 0.08);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.22s ease;
}

.service-detail-link:hover {
  background: rgba(114, 239, 211, 0.16);
  border-color: rgba(114, 239, 211, 0.3);
  transform: translateY(-1px);
}

.service-detail-link--disabled,
.service-detail-link--disabled:hover {
  cursor: default;
  pointer-events: none;
  opacity: 0.72;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  transform: none;
}

/* ========================================
   DETALLE DE SERVICIO
======================================== */
.service-single-content {
  padding: 24px 0 56px;
}

.service-single-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.2rem;
  align-items: start;
}

.service-single-main,
.service-single-sidebar {
  display: grid;
  gap: 1.2rem;
}

.service-single-card {
  position: relative;
  overflow: hidden;
  padding: 1.55rem 1.45rem 1.35rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 19, 31, 0.9) 0%, rgba(5, 19, 31, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 28px rgba(0, 0, 0, 0.14);
}

.service-single-card h2,
.service-single-card h3 {
  margin: 0 0 1rem;
  font-size: 1.16rem;
  font-weight: 750;
  line-height: 1.22;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.12), 0 0 16px rgba(255, 255, 255, 0.04);
}

.service-single-card p {
  margin: 0 0 1.05rem;
  font-size: 0.96rem;
  line-height: 1.78;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  text-wrap: pretty;
  color: rgba(255, 255, 255, 0.82);
}

.service-single-card p:last-child {
  margin-bottom: 0;
}

.service-text-card {
  padding: 1.65rem 1.55rem 1.45rem;
}

.service-text-block {
  max-width: 100%;
}

.service-text-block p {
  margin: 0 0 1.05rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  text-wrap: pretty;
}

.service-text-block p:last-child {
  margin-bottom: 0;
}

.service-single-list {
  margin: 0;
  padding-left: 1.1rem;
}

.service-single-list li {
  margin-bottom: 0.5rem;
  font-size: 0.94rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.88);
}

/* ========================================
   CARD IMAGEN REFERENCIAL
======================================== */
.service-single-card--image {
  padding: 1rem;
}

.service-single-media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  min-height: 250px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.service-single-media img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
  filter: brightness(0.8) saturate(0.95);
  transform: scale(1.01);
}

.service-single-media-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(to top, rgba(3, 11, 20, 0.92) 0%, rgba(3, 11, 20, 0.65) 45%, rgba(3, 11, 20, 0.1) 100%);
}

.service-single-media-overlay h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.25), 0 0 18px rgba(0, 0, 0, 0.15);
}

.service-single-card--image {
  padding: 1rem;
}

.service-single-card--cta {
  border-color: rgba(114, 239, 211, 0.14);
}

.service-single-card--cta h3 {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.12), 0 0 16px rgba(255, 255, 255, 0.04);
}

.service-single-card--cta p {
  text-align: left;
}

.service-single-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(114, 239, 211, 0.2);
  background: rgba(15, 60, 50, 0.95);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  transition: all 0.22s ease;
}

.service-single-btn:hover {
  background: rgba(25, 90, 75, 0.98);
  border-color: rgba(114, 239, 211, 0.3);
  transform: translateY(-1px);
}

.service-single-link-back {
  display: inline-block;
  color: #72efd3;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}

.service-single-link-back:hover {
  color: #ffffff;
}

/* ========================================
   SUBSERVICIOS
======================================== */
.subservices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.subservice-card {
  display: block;
  padding: 1.05rem;
  border-radius: 14px;
  background: rgba(114, 239, 211, 0.06);
  border: 1px solid rgba(114, 239, 211, 0.12);
  text-decoration: none;
  color: inherit;
  transition: all 0.22s ease;
}

.subservice-card:hover {
  background: rgba(114, 239, 211, 0.11);
  border-color: rgba(114, 239, 211, 0.24);
  transform: translateY(-1px);
}

.subservice-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.25;
  color: #72efd3;
  text-shadow: 0 0 10px rgba(114, 239, 211, 0.12);
}

.subservice-card p {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  text-wrap: pretty;
  color: rgba(255, 255, 255, 0.78);
}

.subservice-card span {
  font-size: 0.86rem;
  font-weight: 700;
  color: #72efd3;
}

.service-breadcrumb {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.service-breadcrumb:hover {
  color: #72efd3;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 992px) {
  .services-grid,
  .service-single-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .services-header,
  .service-single-header {
    padding: 235px 0 34px;
  }
  .services-kicker,
  .service-single-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    margin-bottom: 0.7rem;
  }
  .services-title,
  .service-single-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    line-height: 1.04;
  }
  .services-subtitle,
  .service-single-subtitle {
    font-size: 0.95rem;
    line-height: 1.62;
  }
  .service-detail-card,
  .service-single-card {
    padding: 1.15rem 1rem 1rem;
    border-radius: 14px;
  }
  .service-detail-card h2,
  .service-single-card h2,
  .service-single-card h3 {
    font-size: 1.05rem;
  }
  .service-detail-card p,
  .service-single-card p,
  .service-detail-card li,
  .service-single-list li {
    font-size: 0.91rem;
    line-height: 1.62;
  }
  .service-detail-card p,
  .service-single-card p,
  .subservice-card p,
  .service-text-block p {
    text-align: left;
  }
  .service-single-media {
    min-height: 220px;
  }
  .service-single-media img {
    height: 220px;
  }
  .subservices-grid {
    grid-template-columns: 1fr;
  }
  .subservice-card {
    padding: 1rem;
  }
  .subservice-card h3 {
    font-size: 0.98rem;
  }
  .subservice-card p {
    font-size: 0.89rem;
    line-height: 1.58;
  }
}
.portfolio-page {
  position: relative;
  z-index: 2;
  color: #fff;
}

.portfolio-page-header {
  padding: 150px 0 40px;
}

.portfolio-page-kicker {
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.portfolio-page-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
}

.portfolio-page-title span {
  color: #72efd3;
  text-shadow: 0 0 10px rgba(114, 239, 211, 0.22);
}

.portfolio-page-subtitle {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.portfolio-showcase-section,
.portfolio-types-section,
.portfolio-approach-section {
  padding: 24px 0 48px;
}

.portfolio-showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.portfolio-showcase-card {
  overflow: hidden;
  border-radius: 16px;
  background: rgba(5, 19, 31, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.portfolio-showcase-card--large {
  grid-row: span 2;
}

.portfolio-showcase-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.portfolio-showcase-card--large .portfolio-showcase-image img {
  height: 100%;
  min-height: 520px;
}

.portfolio-showcase-content {
  padding: 1rem 1rem 1.05rem;
}

.portfolio-showcase-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #72efd3;
}

.portfolio-showcase-content h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.portfolio-showcase-content p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.76);
}

.portfolio-types-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.portfolio-type-card,
.portfolio-approach-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.15rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 19, 31, 0.9) 0%, rgba(5, 19, 31, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.portfolio-type-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  font-weight: 700;
}

.portfolio-type-card ul {
  margin: 0;
  padding-left: 1rem;
}

.portfolio-type-card li {
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.52;
  color: rgba(255, 255, 255, 0.82);
}

.portfolio-approach-card p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.portfolio-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: rgba(15, 60, 50, 0.95);
  border: 1px solid rgba(114, 239, 211, 0.2);
  color: #fff;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}

@media (max-width: 992px) {
  .portfolio-showcase-grid,
  .portfolio-types-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-showcase-card--large {
    grid-row: auto;
  }
  .portfolio-showcase-card--large .portfolio-showcase-image img {
    min-height: 300px;
  }
}
@media (max-width: 768px) {
  .portfolio-page-header {
    padding: 235px 0 34px;
  }
  .portfolio-page-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .portfolio-showcase-content,
  .portfolio-type-card,
  .portfolio-approach-card {
    padding: 1rem;
    border-radius: 14px;
  }
}
.portfolio-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.portfolio-category-link,
.portfolio-type-link,
.portfolio-back-link,
.portfolio-showcase-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.portfolio-category-link {
  padding: 0.72rem 1rem;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 19, 31, 0.64);
}

.portfolio-category-link:hover,
.portfolio-category-link.is-active {
  color: #fff;
  border-color: rgba(114, 239, 211, 0.44);
  background: rgba(15, 60, 50, 0.9);
  box-shadow: 0 0 18px rgba(114, 239, 211, 0.12);
  transform: translateY(-1px);
}

.portfolio-showcase-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.portfolio-showcase-action,
.portfolio-type-link,
.portfolio-back-link {
  margin-top: 1rem;
  color: #72efd3;
}

.portfolio-type-card p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.76);
}

.portfolio-category-hero,
.portfolio-projects-section {
  padding: 24px 0 48px;
}

.portfolio-category-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.2rem;
  align-items: stretch;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(5, 19, 31, 0.92) 0%, rgba(5, 19, 31, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.portfolio-category-hero-content {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.portfolio-category-hero-content h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
  color: #fff;
}

.portfolio-category-hero-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
}

.portfolio-category-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.portfolio-project-list {
  display: grid;
  gap: 1.1rem;
}

.portfolio-project-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.35fr);
  gap: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(5, 19, 31, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.portfolio-project-image img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  display: block;
}

.portfolio-project-content {
  padding: clamp(1.1rem, 2.5vw, 1.65rem);
}

.portfolio-project-content h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.12;
  color: #fff;
}

.portfolio-project-summary {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.78);
}

.portfolio-project-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.portfolio-project-meta div {
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.portfolio-project-meta span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(114, 239, 211, 0.9);
}

.portfolio-project-meta strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}

.portfolio-project-details {
  margin-top: 1rem;
}

.portfolio-project-details h4 {
  margin: 0 0 0.65rem;
  font-size: 0.96rem;
  color: #fff;
}

.portfolio-project-details ul {
  margin: 0;
  padding-left: 1.1rem;
}

.portfolio-project-details li {
  margin-bottom: 0.45rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

body.theme-light .portfolio-category-link {
  color: rgba(9, 30, 45, 0.82);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(9, 30, 45, 0.08);
}

body.theme-light .portfolio-category-link:hover,
body.theme-light .portfolio-category-link.is-active {
  color: #07352d;
  background: rgba(114, 239, 211, 0.22);
  border-color: rgba(16, 117, 96, 0.32);
}

body.theme-light .portfolio-category-hero-card,
body.theme-light .portfolio-project-card,
body.theme-light .portfolio-type-card,
body.theme-light .portfolio-approach-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(9, 30, 45, 0.08);
}

body.theme-light .portfolio-category-hero-content h2,
body.theme-light .portfolio-project-content h3,
body.theme-light .portfolio-project-details h4,
body.theme-light .portfolio-type-card h3 {
  color: #081f2d;
}

body.theme-light .portfolio-category-hero-content p,
body.theme-light .portfolio-project-summary,
body.theme-light .portfolio-project-details li,
body.theme-light .portfolio-type-card p,
body.theme-light .portfolio-type-card li {
  color: rgba(8, 31, 45, 0.72);
}

body.theme-light .portfolio-project-meta div {
  background: rgba(8, 31, 45, 0.045);
  border-color: rgba(8, 31, 45, 0.08);
}

body.theme-light .portfolio-project-meta strong {
  color: rgba(8, 31, 45, 0.82);
}

@media (max-width: 992px) {
  .portfolio-category-hero-card,
  .portfolio-project-card {
    grid-template-columns: 1fr;
  }
  .portfolio-category-hero-image {
    order: -1;
  }
  .portfolio-category-hero-image img,
  .portfolio-project-image img {
    min-height: 280px;
  }
}
@media (max-width: 640px) {
  .portfolio-category-nav {
    gap: 0.55rem;
  }
  .portfolio-category-link {
    width: 100%;
  }
  .portfolio-project-meta {
    grid-template-columns: 1fr;
  }
  .portfolio-project-content {
    padding: 1rem;
  }
}
.process-page {
  position: relative;
  z-index: 2;
  color: #fff;
}

.process-header {
  padding: 150px 0 40px;
}

.process-kicker {
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.process-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
}

.process-title span {
  color: #72efd3;
  text-shadow: 0 0 10px rgba(114, 239, 211, 0.22);
}

.process-subtitle {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.process-steps-section,
.process-values-section,
.process-cta-section {
  padding: 24px 0 48px;
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.process-step-card,
.process-cta-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.15rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 19, 31, 0.9) 0%, rgba(5, 19, 31, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.process-step-dot {
  width: 10px;
  height: 10px;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: #72efd3;
  box-shadow: 0 0 10px rgba(114, 239, 211, 0.3);
}

.process-step-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
}

.process-step-card p,
.process-cta-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.78);
}

.process-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.process-value-item {
  padding: 0.95rem 1rem;
  border-radius: 999px;
  background: rgba(5, 19, 31, 0.62);
  border: 1px solid rgba(114, 239, 211, 0.28);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.48);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.process-cta-card {
  text-align: center;
}

.process-cta-card p {
  max-width: 950px;
  margin: 0 auto;
}

.process-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem auto 0;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  background: rgba(15, 60, 50, 0.95);
  border: 1px solid rgba(114, 239, 211, 0.28);
  color: #fff;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.process-btn:hover {
  background: rgba(20, 85, 70, 0.98);
  border-color: rgba(114, 239, 211, 0.42);
}

@media (max-width: 992px) {
  .process-steps-grid,
  .process-values-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .process-header {
    padding: 235px 0 34px;
  }
  .process-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .process-step-card,
  .process-cta-card {
    padding: 1rem;
    border-radius: 14px;
  }
}
/* === EFECTO GLOW BOTÓN CTA === */
.process-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

/* capa glow */
.process-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(114, 239, 211, 0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
}

/* contenido encima */
.process-btn span,
.process-btn {
  position: relative;
  z-index: 1;
}

/* HOVER (desktop) */
.process-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), 0 0 18px rgba(114, 239, 211, 0.35);
}

.process-btn:hover::before {
  opacity: 1;
}

/* CLICK / TOUCH (mobile) */
.process-btn:active {
  transform: scale(0.97);
  box-shadow: 0 0 22px rgba(114, 239, 211, 0.55), 0 0 40px rgba(114, 239, 211, 0.25);
}

.process-btn:active::before {
  opacity: 1;
}

/* ========================================
   DASHBOARD | BASE
======================================== */
.dashboard-page {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.dashboard-home {
  padding: 70px 0 64px;
}

/* ========================================
   DASHBOARD | WELCOME CARD
======================================== */
.dashboard-welcome-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.4rem;
  padding: 1.5rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(5, 19, 31, 0.92), rgba(5, 19, 31, 0.72)), radial-gradient(circle at top right, rgba(114, 239, 211, 0.16), transparent 34%);
  border: 1px solid rgba(255, 255, 255, 0.065);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.dashboard-welcome-main {
  min-width: 0;
}

.dashboard-welcome-side {
  display: grid;
  gap: 0.65rem;
  min-width: 190px;
  align-self: start;
}

.dashboard-kicker,
.dashboard-widget-kicker {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(114, 239, 211, 0.86);
}

.dashboard-title {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  font-size: clamp(2rem, 4vw, 3.05rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.dashboard-title #dashboardGreeting {
  color: #ffffff;
  text-shadow: none;
}

.dashboard-title #dashboardUserName {
  color: #72efd3;
  text-shadow: 0 0 10px rgba(114, 239, 211, 0.22), 0 0 18px rgba(114, 239, 211, 0.14);
}

.dashboard-subtitle {
  max-width: 790px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.dashboard-inline-date {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}

.dashboard-inline-date span {
  font-size: 0.72rem;
  color: rgba(114, 239, 211, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.dashboard-inline-date strong {
  font-size: 0.9rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.dashboard-welcome-status {
  padding: 0.85rem 0.95rem;
  border-radius: 15px;
  background: rgba(114, 239, 211, 0.08);
  border: 1px solid rgba(114, 239, 211, 0.16);
}

.dashboard-welcome-status span {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.dashboard-welcome-status strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.3;
  color: #ffffff;
}

.dashboard-layout-reset {
  width: 100%;
  padding: 0.68rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(114, 239, 211, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.dashboard-layout-reset:hover {
  transform: translateY(-1px);
  background: rgba(114, 239, 211, 0.1);
  border-color: rgba(114, 239, 211, 0.28);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

/* ========================================
   DASHBOARD | GRID
======================================== */
.dashboard-portal-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1rem;
}

.dashboard-widget {
  position: relative;
  overflow: hidden;
  padding: 1.15rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(5, 19, 31, 0.9) 0%, rgba(5, 19, 31, 0.76) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 28px rgba(0, 0, 0, 0.14);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background 0.26s ease;
}

.dashboard-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(114, 239, 211, 0.08), transparent 32%);
  pointer-events: none;
}

.dashboard-widget > * {
  position: relative;
  z-index: 1;
}

.dashboard-widget-large {
  grid-column: span 7;
  min-height: 330px;
}

.dashboard-news-widget {
  grid-column: span 5;
  min-height: 330px;
}

.dashboard-quick-widget {
  grid-column: span 4;
}

.dashboard-pending-widget {
  grid-column: span 8;
}

/* ========================================
   DASHBOARD | WIDGET HEADER / DRAG
======================================== */
.dashboard-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.dashboard-widget-header:active {
  cursor: grabbing;
}

.dashboard-widget-header > div {
  min-width: 0;
  flex: 1 1 auto;
}

.dashboard-widget-header::after {
  content: "↕";
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(114, 239, 211, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.dashboard-widget-header:hover::after {
  color: #72efd3;
  border-color: rgba(114, 239, 211, 0.26);
  background: rgba(114, 239, 211, 0.08);
  transform: translateY(-1px);
}

.dashboard-widget-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
}

.dashboard-widget-action {
  flex: 0 0 auto;
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  background: rgba(114, 239, 211, 0.1);
  border: 1px solid rgba(114, 239, 211, 0.18);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
}

.dashboard-widget-action:hover {
  background: rgba(14, 67, 56, 0.95);
  border-color: rgba(114, 239, 211, 0.32);
}

.dashboard-portal-grid.is-reordering {
  cursor: grabbing;
}

.dashboard-is-dragging {
  cursor: grabbing;
  user-select: none;
}

.dashboard-widget.is-dragging {
  opacity: 0.94;
  transform: scale(1.01);
  border-color: rgba(114, 239, 211, 0.46);
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(114, 239, 211, 0.38), 0 0 26px rgba(114, 239, 211, 0.12);
}

.dashboard-widget-placeholder {
  opacity: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(114, 239, 211, 0.08), rgba(114, 239, 211, 0.025));
  border: 1px dashed rgba(114, 239, 211, 0.42);
  box-shadow: inset 0 0 0 1px rgba(114, 239, 211, 0.08), 0 10px 24px rgba(0, 0, 0, 0.12);
}

.dashboard-widget-placeholder > * {
  opacity: 0;
}

/* ========================================
   DASHBOARD | RECENT WORK / NEWS
======================================== */
.dashboard-work-list,
.dashboard-news-list {
  display: grid;
  gap: 0.8rem;
}

.dashboard-work-item {
  display: block;
  padding: 1rem 1rem 1rem 1.1rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 4px solid rgba(114, 239, 211, 0.34);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.22s ease;
}

.dashboard-work-item:hover {
  transform: translateY(-2px);
  background: rgba(114, 239, 211, 0.07);
  border-color: rgba(114, 239, 211, 0.18);
  border-left-color: #72efd3;
}

.dashboard-work-item strong,
.dashboard-news-item strong,
.dashboard-quick-card strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #ffffff;
  font-size: 0.95rem;
}

.dashboard-work-item p,
.dashboard-news-item p,
.dashboard-news-main p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.55;
}

.dashboard-news-main {
  min-height: 160px;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 107, 88, 0.38), rgba(5, 19, 31, 0.56));
  border: 1px solid rgba(114, 239, 211, 0.15);
}

.dashboard-news-main span {
  display: block;
  margin-bottom: 0.6rem;
  color: #72efd3;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dashboard-news-main h3 {
  margin: 0 0 0.65rem;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.25;
}

.dashboard-news-item {
  padding: 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

/* ========================================
   DASHBOARD | QUICK ACCESS
======================================== */
.dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-quick-card {
  min-height: 104px;
  padding: 0.9rem;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(114, 239, 211, 0.055);
  border: 1px solid rgba(114, 239, 211, 0.12);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.22s ease;
}

.dashboard-quick-card:hover {
  transform: translateY(-2px);
  background: rgba(114, 239, 211, 0.1);
  border-color: rgba(114, 239, 211, 0.24);
}

.dashboard-quick-card span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.055);
  color: #72efd3;
  font-size: 1rem;
  font-weight: 900;
}

/* ========================================
   DASHBOARD | PENDING LIST
======================================== */
.dashboard-pending-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-pending-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.dashboard-pending-list li span {
  width: 9px;
  height: 9px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: #72efd3;
  box-shadow: 0 0 10px rgba(114, 239, 211, 0.28);
}

.dashboard-pending-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ========================================
   DASHBOARD | PULSE ANIMATION
======================================== */
@keyframes inside-soft-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(114, 239, 211, 0.26);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 7px rgba(114, 239, 211, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(114, 239, 211, 0);
  }
}
.dashboard-quick-card span,
.dashboard-pending-list li span {
  animation: inside-soft-pulse 2.4s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.dashboard-quick-card:hover span,
.dashboard-pending-list li:hover span {
  animation-duration: 1.8s;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-quick-card span,
  .dashboard-pending-list li span {
    animation: none;
  }
}
/* ========================================
   TEMA LIGHT | DASHBOARD HOME
======================================== */
body.theme-light .dashboard-welcome-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 246, 0.98));
  border-color: rgba(16, 36, 31, 0.08);
  box-shadow: 0 18px 38px rgba(16, 36, 31, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.theme-light .dashboard-widget {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 249, 0.98) 100%);
  border-color: rgba(16, 36, 31, 0.08);
  box-shadow: 0 16px 34px rgba(16, 36, 31, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.theme-light .dashboard-widget::before {
  background: radial-gradient(circle at top right, rgba(15, 107, 88, 0.06), transparent 32%);
}

body.theme-light .dashboard-title,
body.theme-light .dashboard-widget-header h2,
body.theme-light .dashboard-work-item strong,
body.theme-light .dashboard-news-main h3,
body.theme-light .dashboard-news-item strong,
body.theme-light .dashboard-quick-card strong,
body.theme-light .dashboard-welcome-status strong {
  color: #132d27;
}

body.theme-light .dashboard-title #dashboardGreeting {
  color: #132d27;
  text-shadow: none;
}

body.theme-light .dashboard-title #dashboardUserName {
  color: #0f6b58;
  text-shadow: 0 0 8px rgba(15, 107, 88, 0.12), 0 0 18px rgba(15, 107, 88, 0.08);
}

body.theme-light .dashboard-subtitle,
body.theme-light .dashboard-work-item p,
body.theme-light .dashboard-news-item p,
body.theme-light .dashboard-news-main p,
body.theme-light .dashboard-pending-list p {
  color: rgba(19, 45, 39, 0.72);
}

body.theme-light .dashboard-welcome-status,
body.theme-light .dashboard-work-item,
body.theme-light .dashboard-news-item,
body.theme-light .dashboard-quick-card,
body.theme-light .dashboard-pending-list li {
  background: rgba(244, 248, 246, 0.95);
  border-color: rgba(15, 107, 88, 0.12);
}

body.theme-light .dashboard-work-item {
  border-left-color: rgba(15, 107, 88, 0.28);
}

body.theme-light .dashboard-work-item:hover,
body.theme-light .dashboard-quick-card:hover {
  background: rgba(232, 243, 239, 0.96);
  border-color: rgba(15, 107, 88, 0.22);
}

body.theme-light .dashboard-work-item:hover {
  border-left-color: rgba(15, 107, 88, 0.85);
}

body.theme-light .dashboard-welcome-status span,
body.theme-light .dashboard-kicker,
body.theme-light .dashboard-widget-kicker,
body.theme-light .dashboard-inline-date span {
  color: rgba(15, 107, 88, 0.82);
}

body.theme-light .dashboard-inline-date strong {
  color: rgba(19, 45, 39, 0.78);
}

body.theme-light .dashboard-news-main {
  background: linear-gradient(135deg, rgba(226, 245, 238, 0.98), rgba(243, 249, 246, 0.96));
  border-color: rgba(15, 107, 88, 0.16);
}

body.theme-light .dashboard-widget-action {
  background: rgba(15, 107, 88, 0.08);
  border-color: rgba(15, 107, 88, 0.16);
  color: #183832;
}

body.theme-light .dashboard-widget-action:hover {
  background: rgba(15, 107, 88, 0.14);
  border-color: rgba(15, 107, 88, 0.26);
  color: #10241f;
}

body.theme-light .dashboard-layout-reset {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 107, 88, 0.14);
  color: rgba(16, 36, 31, 0.68);
}

body.theme-light .dashboard-layout-reset:hover {
  background: rgba(232, 243, 239, 0.96);
  border-color: rgba(15, 107, 88, 0.26);
  color: #10241f;
}

body.theme-light .dashboard-widget.is-dragging {
  box-shadow: 0 30px 72px rgba(16, 36, 31, 0.22), 0 0 0 1px rgba(15, 107, 88, 0.28), 0 0 24px rgba(15, 107, 88, 0.1);
}

body.theme-light .dashboard-widget-placeholder {
  background: linear-gradient(180deg, rgba(15, 107, 88, 0.08), rgba(15, 107, 88, 0.025));
  border-color: rgba(15, 107, 88, 0.34);
}

body.theme-light .dashboard-widget-header::after {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 107, 88, 0.12);
  color: rgba(16, 36, 31, 0.42);
}

body.theme-light .dashboard-widget-header:hover::after {
  background: rgba(232, 243, 239, 0.96);
  border-color: rgba(15, 107, 88, 0.26);
  color: #0f6b58;
}

body.theme-light .dashboard-quick-card span {
  background: rgba(15, 107, 88, 0.08);
  color: #0f6b58;
}

body.theme-light .dashboard-pending-list li span {
  background: #0f6b58;
  box-shadow: 0 0 10px rgba(15, 107, 88, 0.18);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1100px) {
  .dashboard-widget-large,
  .dashboard-news-widget,
  .dashboard-quick-widget,
  .dashboard-pending-widget {
    grid-column: span 12;
  }
  .dashboard-portal-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .dashboard-home {
    padding: 42px 0 46px;
  }
  .dashboard-welcome-card {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 1.15rem;
    border-radius: 18px;
  }
  .dashboard-welcome-side {
    min-width: 100%;
  }
  .dashboard-title {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
  }
  .dashboard-widget {
    padding: 1rem;
    border-radius: 16px;
  }
  .dashboard-widget-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .dashboard-widget-action {
    width: fit-content;
  }
  .dashboard-quick-grid {
    grid-template-columns: 1fr;
  }
}
/* ========================================
   PERFIL | APP STYLE INSIDE
======================================== */
.profile-page {
  position: relative;
  z-index: 2;
  color: #ffffff;
  overflow-x: hidden;
}

.profile-app {
  padding: 135px 20px 70px;
}

.profile-shell {
  width: min(1180px, 100% - 2rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 720px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(5, 19, 31, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ========================================
   SIDEBAR INTERNO DE PERFIL
======================================== */
.profile-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  padding: 5.5rem 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.035);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-nav-btn {
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  line-height: 1;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.profile-nav-btn:hover,
.profile-nav-btn.active {
  color: #72efd3;
  background: rgba(114, 239, 211, 0.13);
  border-color: rgba(114, 239, 211, 0.3);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(114, 239, 211, 0.08);
}

.profile-nav-icon,
.profile-nav-btn span {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  line-height: 1;
  opacity: 1;
}

.profile-nav-icon svg,
.profile-nav-btn svg {
  width: 20px;
  height: 20px;
  display: block;
  overflow: visible;
  color: currentColor;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 1;
  transition: stroke 0.22s ease, color 0.22s ease;
}

/* Fuerza consistencia visual de SVG */
.profile-nav-icon svg path,
.profile-nav-icon svg circle,
.profile-nav-icon svg rect,
.profile-nav-icon svg line,
.profile-nav-icon svg polyline,
.profile-nav-icon svg polygon,
.profile-nav-btn svg path,
.profile-nav-btn svg circle,
.profile-nav-btn svg rect,
.profile-nav-btn svg line,
.profile-nav-btn svg polyline,
.profile-nav-btn svg polygon {
  stroke: currentColor;
  opacity: 1;
}

/* Evita que iconos con fill accidental se rellenen completamente */
.profile-nav-icon svg path,
.profile-nav-icon svg circle,
.profile-nav-icon svg rect,
.profile-nav-icon svg polygon,
.profile-nav-btn svg path,
.profile-nav-btn svg circle,
.profile-nav-btn svg rect,
.profile-nav-btn svg polygon {
  fill: none;
}

/* Soporte para iconos tipo font/icon */
.profile-nav-btn i {
  color: inherit;
  font-size: 1.1rem;
  opacity: 1;
}

/* ========================================
   MAIN
======================================== */
.profile-main {
  min-width: 0;
  width: 100%;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.025);
}

.profile-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.profile-topbar h1 {
  margin: 0 0 0.45rem;
  font-size: 1.55rem;
  font-weight: 700;
}

.profile-topbar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.profile-cover {
  height: 92px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, rgba(114, 239, 211, 0.28), rgba(255, 255, 255, 0.06)), rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 0;
}

/* ========================================
   USER ROW
======================================== */
.profile-user-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.4rem;
  border-radius: 0 0 18px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 0;
}

.profile-avatar,
.profile-user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(114, 239, 211, 0.9), rgba(20, 110, 95, 0.95));
  color: #06231d;
  font-weight: 800;
}

.profile-user-avatar {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  font-size: 1.7rem;
  flex: 0 0 auto;
}

.profile-user-row h2 {
  margin: 0 0 0.25rem;
  font-size: 1.12rem;
  font-weight: 700;
}

.profile-user-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  word-break: break-word;
}

.profile-edit-btn {
  padding: 0.8rem 1.3rem;
  border-radius: 12px;
  border: 1px solid rgba(114, 239, 211, 0.22);
  background: rgba(14, 67, 56, 0.95);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}

.profile-edit-btn:hover {
  background: rgba(15, 107, 88, 0.98);
  border-color: rgba(114, 239, 211, 0.42);
}

/* ========================================
   FORM
======================================== */
.profile-form,
.profile-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
  margin-bottom: 1.6rem;
}

.profile-field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.profile-field label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.profile-field input,
.profile-field select {
  width: 100%;
  min-width: 0;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  font-size: 0.94rem;
  outline: none;
}

.profile-field input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.profile-field input:focus,
.profile-field select:focus {
  border-color: rgba(114, 239, 211, 0.3);
}

.profile-field select option {
  color: #111;
}

/* ========================================
   EMAIL
======================================== */
.profile-email-box {
  padding: 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-email-box h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.profile-email-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  min-width: 0;
}

.profile-email-item span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(114, 239, 211, 0.12);
  color: #72efd3;
  flex: 0 0 auto;
}

.profile-email-item strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  word-break: break-word;
}

.profile-email-item p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
}

/* ========================================
   AVATAR UPLOAD
======================================== */
.profile-avatar-upload {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.profile-avatar-upload img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-upload::after {
  content: "Cambiar";
  position: absolute;
  inset: auto 0 0;
  padding: 0.25rem;
  background: rgba(5, 19, 31, 0.75);
  color: #ffffff;
  font-size: 0.68rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.profile-avatar-upload:hover::after {
  opacity: 1;
}

/* ========================================
   TABS
======================================== */
.profile-tab {
  display: none;
}

.profile-tab.active {
  display: block;
}

/* ========================================
   CARDS INTERNAS
======================================== */
.profile-section-card {
  padding: 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-section-card h2 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
  color: #ffffff;
}

.profile-section-card p {
  margin: 0 0 1rem;
  font-size: 0.96rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.profile-activity-list,
.profile-message-list {
  display: grid;
  gap: 0.85rem;
}

.profile-activity-item,
.profile-message-item,
.profile-status-card {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(114, 239, 211, 0.055);
  border: 1px solid rgba(114, 239, 211, 0.12);
}

.profile-activity-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.profile-activity-item > span {
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #72efd3;
  box-shadow: 0 0 10px rgba(114, 239, 211, 0.3);
  flex: 0 0 auto;
}

.profile-activity-item strong,
.profile-message-item strong,
.profile-status-card strong {
  display: block;
  color: #ffffff;
  font-size: 0.96rem;
  margin-bottom: 0.25rem;
}

.profile-activity-item p,
.profile-message-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.profile-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.profile-status-card span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}

.profile-settings-save {
  margin-top: 1.2rem;
}

/* ========================================
   PERFIL | BOTONES ACCIONES CUENTA
======================================== */
.profile-account-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-account-actions h3 {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #ffffff;
}

.profile-secondary-btn,
.profile-danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.profile-secondary-btn {
  border: 1px solid rgba(114, 239, 211, 0.25);
  background: rgba(114, 239, 211, 0.08);
  color: #ffffff;
}

.profile-secondary-btn:hover {
  background: rgba(114, 239, 211, 0.18);
  border-color: rgba(114, 239, 211, 0.45);
}

.profile-danger-btn {
  border: 1px solid rgba(255, 80, 80, 0.35);
  background: rgba(255, 80, 80, 0.12);
  color: #ffb3b3;
}

.profile-danger-btn:hover {
  background: rgba(255, 80, 80, 0.22);
  border-color: rgba(255, 80, 80, 0.6);
  color: #ffffff;
}

.profile-account-actions p {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   TEMA LIGHT | PERFIL
======================================== */
body.theme-light .profile-shell {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(16, 36, 31, 0.08);
  box-shadow: 0 24px 70px rgba(16, 36, 31, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body.theme-light .profile-sidebar {
  background: linear-gradient(180deg, rgba(242, 249, 246, 0.94), rgba(229, 242, 237, 0.96));
  border-right: 1px solid rgba(15, 107, 88, 0.14);
}

body.theme-light .profile-main {
  background: rgba(255, 255, 255, 0.48);
}

body.theme-light .profile-topbar h1,
body.theme-light .profile-user-row h2,
body.theme-light .profile-section-card h2,
body.theme-light .profile-email-box h3,
body.theme-light .profile-account-actions h3 {
  color: #10241f;
}

body.theme-light .profile-topbar p,
body.theme-light .profile-user-row p,
body.theme-light .profile-section-card p,
body.theme-light .profile-account-actions p {
  color: rgba(16, 36, 31, 0.68);
}

body.theme-light .profile-cover {
  background: linear-gradient(90deg, rgba(114, 239, 211, 0.22), rgba(255, 255, 255, 0.58)), rgba(15, 107, 88, 0.035);
  border-color: rgba(15, 107, 88, 0.1);
}

body.theme-light .profile-user-row,
body.theme-light .profile-email-box,
body.theme-light .profile-section-card {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(16, 36, 31, 0.08);
}

body.theme-light .profile-field label {
  color: rgba(16, 36, 31, 0.76);
}

body.theme-light .profile-field input,
body.theme-light .profile-field select {
  color: #10241f;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(16, 36, 31, 0.12);
}

body.theme-light .profile-field input::placeholder {
  color: rgba(16, 36, 31, 0.35);
}

body.theme-light .profile-field input:focus,
body.theme-light .profile-field select:focus {
  border-color: rgba(15, 107, 88, 0.34);
  box-shadow: 0 0 0 3px rgba(114, 239, 211, 0.12);
}

body.theme-light .profile-email-item strong,
body.theme-light .profile-activity-item strong,
body.theme-light .profile-message-item strong,
body.theme-light .profile-status-card strong {
  color: #10241f;
}

body.theme-light .profile-email-item p,
body.theme-light .profile-activity-item p,
body.theme-light .profile-message-item p {
  color: rgba(16, 36, 31, 0.62);
}

body.theme-light .profile-status-card span {
  color: rgba(16, 36, 31, 0.56);
}

body.theme-light .profile-activity-item,
body.theme-light .profile-message-item,
body.theme-light .profile-status-card {
  background: rgba(15, 107, 88, 0.055);
  border-color: rgba(15, 107, 88, 0.13);
}

body.theme-light .profile-nav-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(232, 244, 239, 0.98));
  border: 1px solid rgba(15, 107, 88, 0.24);
  color: #0f4f43;
  box-shadow: 0 8px 18px rgba(16, 36, 31, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

body.theme-light .profile-nav-btn:hover,
body.theme-light .profile-nav-btn.active {
  background: linear-gradient(180deg, rgb(207, 235, 225), rgb(183, 222, 208));
  border-color: rgba(15, 107, 88, 0.48);
  color: #063f35;
  box-shadow: 0 10px 24px rgba(15, 107, 88, 0.16), inset 0 0 0 1px rgba(15, 107, 88, 0.16);
}

/* ========================================
   RESPONSIVE TABLET
======================================== */
@media (max-width: 992px) {
  .profile-app {
    padding: 120px 20px 56px;
  }
  .profile-shell {
    grid-template-columns: 1fr;
    width: min(760px, 100% - 1.5rem);
    min-height: auto;
  }
  .profile-sidebar {
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
  }
  .profile-form,
  .profile-settings-form,
  .profile-status-grid {
    grid-template-columns: 1fr;
  }
  body.theme-light .profile-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 107, 88, 0.14);
  }
}
/* ========================================
   RESPONSIVE MOBILE
======================================== */
@media (max-width: 768px) {
  .profile-app {
    padding: 92px 0 44px;
  }
  .profile-shell {
    width: calc(100% - 0.8rem);
    border-radius: 18px;
    min-height: auto;
    overflow: visible;
  }
  .profile-main {
    padding: 0.85rem;
  }
  .profile-sidebar {
    display: flex;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.75rem;
    margin-bottom: 0;
    background: rgba(5, 19, 31, 0.82);
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 4;
  }
  .profile-nav-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
  }
  .profile-nav-icon,
  .profile-nav-btn span {
    width: 18px;
    height: 18px;
  }
  .profile-nav-icon svg,
  .profile-nav-btn svg {
    width: 18px;
    height: 18px;
  }
  .profile-topbar {
    margin-bottom: 1rem;
  }
  .profile-topbar h1 {
    display: block;
    margin-top: 0;
    font-size: 1.35rem;
  }
  .profile-topbar p {
    font-size: 0.86rem;
    line-height: 1.45;
  }
  .profile-cover {
    height: 72px;
    border-radius: 14px 14px 0 0;
  }
  .profile-user-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 0 0 14px 14px;
  }
  .profile-user-avatar {
    width: 58px;
    height: 58px;
    font-size: 1.25rem;
  }
  .profile-user-row h2 {
    font-size: 1rem;
  }
  .profile-user-row p {
    font-size: 0.82rem;
  }
  .profile-edit-btn {
    grid-column: 1/-1;
    width: 100%;
    padding: 0.78rem 1rem;
  }
  .profile-form,
  .profile-settings-form {
    gap: 0.85rem;
    margin-bottom: 1rem;
  }
  .profile-field label {
    font-size: 0.84rem;
  }
  .profile-field input,
  .profile-field select {
    padding: 0.85rem 0.9rem;
    font-size: 0.88rem;
  }
  .profile-email-box,
  .profile-section-card {
    padding: 1rem;
    border-radius: 14px;
  }
  .profile-section-card h2 {
    font-size: 1.15rem;
  }
  .profile-section-card p {
    font-size: 0.9rem;
    line-height: 1.55;
  }
  .profile-email-item {
    align-items: flex-start;
  }
  .profile-email-item span {
    width: 38px;
    height: 38px;
  }
  body.theme-light .profile-sidebar {
    background: linear-gradient(180deg, rgba(242, 249, 246, 0.94), rgba(229, 242, 237, 0.96));
    border-bottom: 1px solid rgba(15, 107, 88, 0.14);
  }
}
/* ========================================
   INSIDE | LIGHT THEME
   Tema claro profesional específico para INSIDE.
   Mantiene header y footer en identidad oscura.
======================================== */
body.theme-light {
  --light-bg: #f6f3ed;
  --light-bg-soft: #fbf8f1;
  --light-text: #162723;
  --light-text-2: rgba(22, 39, 35, 0.76);
  --light-text-3: rgba(22, 39, 35, 0.62);
  --light-card: rgba(255, 255, 255, 0.82);
  --light-card-2: rgba(250, 248, 244, 0.88);
  --light-card-border: rgba(22, 39, 35, 0.08);
  --light-green: #1a6b5a;
  --light-green-2: #2b7c69;
  --light-green-soft: rgba(26, 107, 90, 0.10);
  --light-glow: rgba(56, 201, 176, 0.18);
  --light-shadow: 0 18px 44px rgba(22, 39, 35, 0.10);
  --light-shadow-soft: 0 10px 26px rgba(22, 39, 35, 0.07);
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.12) 100%), radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.18) 34%, transparent 60%), radial-gradient(circle at 82% 30%, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.14) 28%, transparent 55%), linear-gradient(135deg, #f8f6f1 0%, #f3f0ea 42%, #eeebe4 100%) !important;
  color: var(--light-text);
}

/* ========================================
   01. FONDO GENERAL CLARO
   Fondo fijo arquitectónico más visible
======================================== */
body.theme-light {
  background: #f3efe7 !important;
}

/* Imagen arquitectónica fija */
body.theme-light::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(246, 243, 237, 0.88) 0%, rgba(246, 243, 237, 0.7) 42%, rgba(246, 243, 237, 0.42) 100%), linear-gradient(180deg, rgba(255, 255, 255, 0.66) 0%, rgba(246, 243, 237, 0.3) 46%, rgba(246, 243, 237, 0.74) 100%), url("/assets/hero-building-xray.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 1;
  filter: grayscale(100%) brightness(1.08) contrast(0.94);
}

/* Retícula técnica fija */
body.theme-light::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(rgba(16, 36, 31, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 36, 31, 0.055) 1px, transparent 1px), radial-gradient(circle at 78% 42%, rgba(15, 92, 77, 0.1) 0%, rgba(15, 92, 77, 0.045) 32%, transparent 58%);
  background-size: 92px 92px, 92px 92px, cover;
  background-attachment: fixed;
  opacity: 0.62;
}

body.theme-light main,
body.theme-light .services-page,
body.theme-light .service-single-page,
body.theme-light .portfolio-page,
body.theme-light .process-page,
body.theme-light .about-page,
body.theme-light .contact-page,
body.theme-light .tools-app-page,
body.theme-light .login-page,
body.theme-light .dashboard-page,
body.theme-light .profile-page {
  background: transparent !important;
}

/* ========================================
   02. HEADER Y FOOTER
======================================== */
body.theme-light header,
body.theme-light .site-header,
body.theme-light .main-header {
  background: rgba(4, 36, 29, 0.88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

body.theme-light header *,
body.theme-light .site-header *,
body.theme-light .main-header * {
  color: #ffffff !important;
}

body.theme-light footer,
body.theme-light .site-footer,
body.theme-light .main-footer {
  background: rgba(4, 20, 31, 0.96) !important;
  color: #ffffff !important;
}

body.theme-light footer *,
body.theme-light .site-footer *,
body.theme-light .main-footer * {
  color: rgba(255, 255, 255, 0.82) !important;
}

body.theme-light footer h1,
body.theme-light footer h2,
body.theme-light footer h3,
body.theme-light footer h4,
body.theme-light .site-footer h1,
body.theme-light .site-footer h2,
body.theme-light .site-footer h3,
body.theme-light .site-footer h4 {
  color: #ffffff !important;
}

/* ========================================
   03. TEXTO GLOBAL
======================================== */
body.theme-light main,
body.theme-light section,
body.theme-light article,
body.theme-light aside {
  color: var(--light-text);
}

body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4,
body.theme-light h5,
body.theme-light h6 {
  color: var(--light-text);
  text-shadow: none !important;
}

body.theme-light p,
body.theme-light li {
  color: var(--light-text-2);
}

body.theme-light a {
  color: inherit;
}

/* ========================================
   04. TÍTULOS GLOBALES CON ACENTO Y GLOW
======================================== */
body.theme-light .section-title,
body.theme-light .services-title,
body.theme-light .service-single-title,
body.theme-light .process-title,
body.theme-light .portfolio-title,
body.theme-light .portfolio-media-title,
body.theme-light .value-title,
body.theme-light .service-main-title,
body.theme-light .service-card-title {
  color: #142723 !important;
  text-shadow: none !important;
  line-height: 1.05;
}

body.theme-light .section-title span,
body.theme-light .services-title span,
body.theme-light .service-single-title span,
body.theme-light .process-title span,
body.theme-light .portfolio-title span,
body.theme-light .portfolio-media-title span,
body.theme-light .value-title span,
body.theme-light .service-title-glow,
body.theme-light .service-main-title-glow,
body.theme-light .service-card-title-glow {
  color: #1b7a67 !important;
  text-shadow: 0 0 8px rgba(27, 122, 103, 0.16), 0 0 16px rgba(27, 122, 103, 0.1), 0 0 24px rgba(27, 122, 103, 0.06) !important;
}

body.theme-light .service-main-title,
body.theme-light .service-card-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.theme-light .service-main-title-primary,
body.theme-light .service-card-title-primary,
body.theme-light .service-title-primary {
  color: #142723 !important;
  text-shadow: none !important;
}

body.theme-light .service-main-title-glow {
  margin-left: 0.28rem;
  display: inline-block;
}

body.theme-light .service-card-title-glow {
  margin-left: 0.18rem;
  display: inline-block;
}

body.theme-light .home-section-subtitle,
body.theme-light .services-intro,
body.theme-light .services-subtitle,
body.theme-light .service-single-subtitle,
body.theme-light .process-subtitle,
body.theme-light .portfolio-subtitle {
  color: var(--light-text-3) !important;
  text-shadow: none !important;
}

/* ========================================
   05. BOTONES GLOBALES
======================================== */
body.theme-light .home-section-link,
body.theme-light .service-card-link,
body.theme-light .service-detail-link,
body.theme-light .service-single-btn,
body.theme-light .value-btn,
body.theme-light .btn,
body.theme-light .btn-primary,
body.theme-light .btn-secondary,
body.theme-light .green-btn,
body.theme-light .portfolio-btn,
body.theme-light .portfolio-page-btn,
body.theme-light .process-btn,
body.theme-light .section-btn {
  background: var(--light-green) !important;
  border: 1px solid rgba(15, 92, 77, 0.26) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 92, 77, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  text-shadow: none !important;
}

body.theme-light .home-section-link:hover,
body.theme-light .service-card-link:hover,
body.theme-light .service-detail-link:hover,
body.theme-light .service-single-btn:hover,
body.theme-light .value-btn:hover,
body.theme-light .btn:hover,
body.theme-light .btn-primary:hover,
body.theme-light .btn-secondary:hover,
body.theme-light .green-btn:hover,
body.theme-light .portfolio-btn:hover,
body.theme-light .portfolio-page-btn:hover,
body.theme-light .process-btn:hover,
body.theme-light .section-btn:hover {
  background: var(--light-green-2) !important;
  border-color: rgba(15, 92, 77, 0.36) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

body.theme-light .service-detail-link--disabled,
body.theme-light .service-detail-link--disabled:hover {
  cursor: default;
  pointer-events: none;
  background: rgba(16, 36, 31, 0.08) !important;
  border: 1px solid rgba(16, 36, 31, 0.12) !important;
  color: rgba(16, 36, 31, 0.58) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ========================================
   06. FORMULARIOS GLOBALES
======================================== */
body.theme-light input,
body.theme-light textarea,
body.theme-light select {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(16, 36, 31, 0.14) !important;
  color: var(--light-text) !important;
}

body.theme-light input::placeholder,
body.theme-light textarea::placeholder {
  color: rgba(16, 36, 31, 0.44) !important;
}

body.theme-light label,
body.theme-light .form-label,
body.theme-light .contact-info-label {
  color: var(--light-text-2) !important;
}

/* Superficie general clara para tarjetas principales */
body.theme-light .service-detail-card,
body.theme-light .service-single-card,
body.theme-light .subservice-card,
body.theme-light .portfolio-showcase-card,
body.theme-light .portfolio-type-card,
body.theme-light .portfolio-approach-card,
body.theme-light .process-step-card,
body.theme-light .process-value-item,
body.theme-light .process-cta-card,
body.theme-light .contact-card,
body.theme-light .contact-mini-card,
body.theme-light .contact-location-card,
body.theme-light .tool-panel,
body.theme-light .tool-action-card,
body.theme-light .login-card,
body.theme-light .dashboard-card,
body.theme-light .about-card,
body.theme-light .about-identity-card,
body.theme-light .about-process-step,
body.theme-light .profile-shell {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ========================================
   07. ICONOS LIGHT MODE
======================================== */
body.theme-light .service-detail-card-icon,
body.theme-light .service-card-icon,
body.theme-light .service-icon,
body.theme-light .portfolio-icon {
  color: var(--light-green) !important;
  opacity: 1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.theme-light .service-detail-card-icon svg,
body.theme-light .service-card-icon svg,
body.theme-light .service-icon svg,
body.theme-light .portfolio-icon svg {
  width: 42px;
  height: 42px;
  display: block;
  overflow: visible;
  color: var(--light-green) !important;
}

body.theme-light .service-detail-card-icon svg *,
body.theme-light .service-card-icon svg *,
body.theme-light .service-icon svg *,
body.theme-light .portfolio-icon svg * {
  stroke: currentColor !important;
  fill: none !important;
  opacity: 1 !important;
  vector-effect: non-scaling-stroke;
}

body.theme-light .service-detail-card-icon svg rect,
body.theme-light .service-card-icon svg rect,
body.theme-light .service-icon svg rect,
body.theme-light .portfolio-icon svg rect,
body.theme-light .service-detail-card-icon svg path,
body.theme-light .service-card-icon svg path,
body.theme-light .service-icon svg path,
body.theme-light .portfolio-icon svg path,
body.theme-light .service-detail-card-icon svg circle,
body.theme-light .service-card-icon svg circle,
body.theme-light .service-icon svg circle,
body.theme-light .portfolio-icon svg circle,
body.theme-light .service-detail-card-icon svg line,
body.theme-light .service-card-icon svg line,
body.theme-light .service-icon svg line,
body.theme-light .portfolio-icon svg line {
  stroke-width: 2.2 !important;
}

body.theme-light .service-code {
  display: none !important;
}

/* ========================================
   08. HOME | HERO Y SERVICIOS
======================================== */
body.theme-light .hero {
  background: transparent !important;
  color: var(--light-text);
}

body.theme-light .hero-kicker {
  color: rgba(16, 36, 31, 0.58) !important;
  text-shadow: none !important;
}

body.theme-light .hero h1 {
  color: var(--light-text) !important;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55), 0 14px 34px rgba(16, 36, 31, 0.08) !important;
}

body.theme-light .hero h1 span {
  color: var(--light-green) !important;
  text-shadow: 0 0 12px rgba(15, 92, 77, 0.18), 0 0 24px rgba(15, 92, 77, 0.08) !important;
}

body.theme-light .hero-description,
body.theme-light .hero p {
  color: var(--light-text-2) !important;
  text-shadow: none !important;
}

body.theme-light .service-card--technical {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 245, 238, 0.92) 100%) !important;
  border: 1px solid var(--light-card-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--light-shadow) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.theme-light .service-card--technical:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 245, 238, 0.96) 100%) !important;
  border-color: rgba(15, 92, 77, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 22px 48px rgba(16, 36, 31, 0.12) !important;
}

body.theme-light .service-card--technical::before {
  background: linear-gradient(to right, transparent, rgba(15, 92, 77, 0.2), transparent) !important;
}

body.theme-light .service-card--technical::after {
  background: linear-gradient(to bottom, transparent, rgba(16, 36, 31, 0.12) 15%, rgba(16, 36, 31, 0.12) 85%, transparent) !important;
}

body.theme-light .service-card--technical h3 {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .service-description,
body.theme-light .service-card--technical ul,
body.theme-light .service-card--technical li {
  color: var(--light-text-2) !important;
}

body.theme-light .service-card--technical li::marker {
  color: var(--light-green) !important;
}

body.theme-light .service-card-link {
  width: fit-content;
}

/* ========================================
   09. HOME | PARA QUIÉN TRABAJAMOS
======================================== */
body.theme-light .who-we-work-with-section {
  background: transparent !important;
}

body.theme-light .who-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 245, 238, 0.92) 100%) !important;
  border: 1px solid var(--light-card-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--light-shadow-soft) !important;
}

body.theme-light .who-card::before {
  background: linear-gradient(to right, transparent, rgba(15, 92, 77, 0.22), transparent) !important;
}

body.theme-light .who-card h3 {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .who-card p {
  color: var(--light-text-2) !important;
}

/* ========================================
   10. HOME | MULTIMEDIA
======================================== */
body.theme-light .portfolio-media-section {
  background: transparent !important;
}

body.theme-light .portfolio-slider {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid var(--light-card-border) !important;
  box-shadow: var(--light-shadow) !important;
}

body.theme-light .portfolio-slide-overlay {
  background: linear-gradient(to top, rgba(10, 23, 20, 0.82) 0%, rgba(10, 23, 20, 0.42) 48%, rgba(10, 23, 20, 0.04) 100%) !important;
}

body.theme-light .portfolio-slide-overlay span {
  background: rgba(15, 92, 77, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

body.theme-light .portfolio-slide-overlay h4 {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28) !important;
}

body.theme-light .portfolio-slide-overlay p {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.theme-light .slider-btn {
  background: rgba(15, 92, 77, 0.88) !important;
  color: #ffffff !important;
}

body.theme-light .slider-btn:hover {
  background: rgba(23, 113, 95, 0.96) !important;
}

body.theme-light .portfolio-thumb {
  background: rgba(255, 255, 255, 0.76) !important;
  border: 1px solid rgba(16, 36, 31, 0.08) !important;
}

body.theme-light .portfolio-thumb.active {
  box-shadow: 0 12px 28px rgba(16, 36, 31, 0.16) !important;
}

/* ========================================
   11. HOME | PORTAFOLIO RESUMIDO
======================================== */
body.theme-light .portfolio-section {
  background: transparent !important;
}

body.theme-light .portfolio-card--technical {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 245, 238, 0.92) 100%) !important;
  border: 1px solid var(--light-card-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--light-shadow-soft) !important;
  backdrop-filter: blur(14px);
}

body.theme-light .portfolio-card--technical::before {
  background: linear-gradient(to right, transparent, rgba(15, 92, 77, 0.18), transparent) !important;
}

body.theme-light .portfolio-card--technical::after {
  background: linear-gradient(to bottom, transparent, rgba(16, 36, 31, 0.12) 15%, rgba(16, 36, 31, 0.12) 85%, transparent) !important;
}

body.theme-light .portfolio-card--technical h3 {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .portfolio-card--technical ul,
body.theme-light .portfolio-card--technical li {
  color: var(--light-text-2) !important;
}

body.theme-light .portfolio-card--technical li::marker {
  color: var(--light-green) !important;
}

/* ========================================
   12. HOME | PROCESO RESUMIDO
======================================== */
body.theme-light .value-prop-section {
  background: transparent !important;
}

body.theme-light .value-title {
  color: var(--light-text) !important;
}

body.theme-light .value-title span {
  color: var(--light-green) !important;
}

body.theme-light .value-title::after {
  background: linear-gradient(to right, transparent, rgba(15, 92, 77, 0.38), transparent) !important;
}

body.theme-light .value-buttons {
  gap: 0.9rem;
}

body.theme-light .value-btn {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(15, 92, 77, 0.18) !important;
  color: var(--light-text) !important;
  box-shadow: var(--light-shadow-soft) !important;
}

body.theme-light .value-btn:hover {
  background: var(--light-green) !important;
  color: #ffffff !important;
  border-color: rgba(15, 92, 77, 0.28) !important;
}

/* ========================================
   13. SERVICIOS | LISTADO Y DETALLE
======================================== */
body.theme-light .services-page,
body.theme-light .service-single-page {
  color: var(--light-text) !important;
}

body.theme-light .services-kicker,
body.theme-light .service-single-kicker {
  color: rgba(16, 36, 31, 0.58) !important;
}

body.theme-light .service-detail-card,
body.theme-light .service-single-card,
body.theme-light .subservice-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 245, 238, 0.92) 100%) !important;
  border: 1px solid var(--light-card-border) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--light-shadow-soft) !important;
}

body.theme-light .service-detail-card h2,
body.theme-light .service-single-card h2,
body.theme-light .service-single-card h3,
body.theme-light .subservice-card h3,
body.theme-light .service-main-title,
body.theme-light .service-main-title-primary,
body.theme-light .service-title-primary {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .service-detail-card p,
body.theme-light .service-single-card p,
body.theme-light .subservice-card p,
body.theme-light .service-text-block p,
body.theme-light .service-detail-card li,
body.theme-light .service-single-list li {
  color: var(--light-text-2) !important;
}

body.theme-light .subservice-card span,
body.theme-light .service-single-link-back,
body.theme-light .service-breadcrumb:hover {
  color: var(--light-green) !important;
}

body.theme-light .service-breadcrumb {
  color: var(--light-text-3) !important;
}

body.theme-light .service-single-media {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid var(--light-card-border) !important;
}

body.theme-light .service-single-media img {
  filter: brightness(0.98) saturate(0.94) contrast(0.98);
}

body.theme-light .service-single-media-overlay {
  background: linear-gradient(to top, rgba(16, 36, 31, 0.78) 0%, rgba(16, 36, 31, 0.36) 48%, rgba(16, 36, 31, 0.04) 100%) !important;
}

body.theme-light .service-single-media-overlay h3 {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28) !important;
}

/* ========================================
   14. PORTAFOLIO PAGE
======================================== */
body.theme-light .portfolio-page {
  color: var(--light-text);
}

body.theme-light .portfolio-page-header,
body.theme-light .portfolio-types-section,
body.theme-light .portfolio-approach-section {
  background: transparent !important;
}

body.theme-light .portfolio-page-kicker {
  color: rgba(16, 36, 31, 0.55) !important;
  text-shadow: none !important;
}

body.theme-light .portfolio-page-title {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .portfolio-page-title span {
  color: var(--light-green) !important;
  text-shadow: 0 0 10px rgba(15, 92, 77, 0.18), 0 0 20px rgba(15, 92, 77, 0.08) !important;
}

body.theme-light .portfolio-page-subtitle {
  color: var(--light-text-2) !important;
  text-shadow: none !important;
}

body.theme-light .portfolio-showcase-card,
body.theme-light .portfolio-type-card,
body.theme-light .portfolio-approach-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 245, 238, 0.94) 100%) !important;
  border: 1px solid rgba(16, 36, 31, 0.11) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 18px 44px rgba(16, 36, 31, 0.12) !important;
  color: var(--light-text) !important;
  overflow: hidden;
}

body.theme-light .portfolio-showcase-card:hover,
body.theme-light .portfolio-type-card:hover,
body.theme-light .portfolio-approach-card:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 245, 238, 0.96) 100%) !important;
  border-color: rgba(15, 92, 77, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 24px 52px rgba(16, 36, 31, 0.15) !important;
}

body.theme-light .portfolio-showcase-image {
  background: rgba(16, 36, 31, 0.06) !important;
}

body.theme-light .portfolio-showcase-image img {
  filter: brightness(0.95) saturate(0.86) contrast(0.98);
}

body.theme-light .portfolio-showcase-content {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 245, 238, 0.96) 100%) !important;
  color: var(--light-text) !important;
}

body.theme-light .portfolio-showcase-tag {
  color: var(--light-green) !important;
  background: rgba(15, 92, 77, 0.08) !important;
  border: 1px solid rgba(15, 92, 77, 0.14) !important;
  text-shadow: none !important;
}

body.theme-light .portfolio-showcase-content h2,
body.theme-light .portfolio-type-card h3,
body.theme-light .portfolio-approach-card h2,
body.theme-light .portfolio-approach-card .section-title {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .portfolio-showcase-content p,
body.theme-light .portfolio-type-card ul,
body.theme-light .portfolio-type-card li,
body.theme-light .portfolio-approach-card p {
  color: var(--light-text-2) !important;
  text-shadow: none !important;
}

body.theme-light .portfolio-type-card li::marker {
  color: var(--light-green) !important;
}

body.theme-light .portfolio-approach-card .section-title span {
  color: var(--light-green) !important;
  text-shadow: 0 0 10px rgba(15, 92, 77, 0.18), 0 0 20px rgba(15, 92, 77, 0.08) !important;
}

/* ========================================
   15. PROCESO PAGE
======================================== */
body.theme-light .process-page {
  color: var(--light-text);
}

body.theme-light .process-header,
body.theme-light .process-values-section,
body.theme-light .process-cta-section {
  background: transparent !important;
}

body.theme-light .process-kicker {
  color: rgba(16, 36, 31, 0.55) !important;
  text-shadow: none !important;
}

body.theme-light .process-title {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .process-title span,
body.theme-light .process-values-section .section-title span,
body.theme-light .process-cta-card .section-title span {
  color: var(--light-green) !important;
  text-shadow: 0 0 10px rgba(15, 92, 77, 0.18), 0 0 20px rgba(15, 92, 77, 0.08) !important;
}

body.theme-light .process-subtitle {
  color: var(--light-text-2) !important;
  text-shadow: none !important;
}

body.theme-light .process-step-card,
body.theme-light .process-value-item,
body.theme-light .process-cta-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 245, 238, 0.94) 100%) !important;
  border: 1px solid rgba(16, 36, 31, 0.11) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 34px rgba(16, 36, 31, 0.09) !important;
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .process-step-card:hover,
body.theme-light .process-value-item:hover,
body.theme-light .process-cta-card:hover {
  border-color: rgba(15, 92, 77, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 20px 44px rgba(16, 36, 31, 0.13) !important;
}

body.theme-light .process-step-dot {
  background: var(--light-green) !important;
  box-shadow: 0 0 0 5px rgba(15, 92, 77, 0.1), 0 0 16px rgba(15, 92, 77, 0.18) !important;
}

body.theme-light .process-step-card h2,
body.theme-light .process-values-section .section-title,
body.theme-light .process-cta-card .section-title {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .process-step-card p,
body.theme-light .process-cta-card p {
  color: var(--light-text-2) !important;
  text-shadow: none !important;
}

body.theme-light .process-value-item:hover {
  color: var(--light-green) !important;
}

/* ========================================
   16. CONTACTO PAGE
======================================== */
body.theme-light .contact-page {
  color: var(--light-text);
}

body.theme-light .contact-header,
body.theme-light .contact-extra-section {
  background: transparent !important;
}

body.theme-light .contact-kicker {
  color: rgba(16, 36, 31, 0.55) !important;
  text-shadow: none !important;
}

body.theme-light .contact-title {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .contact-title span,
body.theme-light .contact-card .section-title span,
body.theme-light .contact-extra-section .section-title span,
body.theme-light .contact-location-copy .section-title span {
  color: var(--light-green) !important;
  text-shadow: 0 0 10px rgba(15, 92, 77, 0.18), 0 0 20px rgba(15, 92, 77, 0.08) !important;
}

body.theme-light .contact-subtitle {
  color: var(--light-text-2) !important;
  text-shadow: none !important;
}

body.theme-light .contact-card,
body.theme-light .contact-mini-card,
body.theme-light .contact-location-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 245, 238, 0.94) 100%) !important;
  border: 1px solid rgba(16, 36, 31, 0.11) !important;
  color: var(--light-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 18px 44px rgba(16, 36, 31, 0.1) !important;
  text-shadow: none !important;
}

body.theme-light .contact-location-card {
  overflow: hidden;
}

body.theme-light .contact-card:hover,
body.theme-light .contact-mini-card:hover {
  border-color: rgba(15, 92, 77, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 22px 48px rgba(16, 36, 31, 0.13) !important;
}

body.theme-light .contact-card .section-title,
body.theme-light .contact-mini-card h3,
body.theme-light .contact-location-card .section-title,
body.theme-light .contact-extra-section .section-title,
body.theme-light .contact-location-copy .section-title {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .contact-info-text,
body.theme-light .contact-form-text,
body.theme-light .contact-mini-card p,
body.theme-light .contact-location-card p,
body.theme-light .contact-info-item p,
body.theme-light .contact-location-copy p {
  color: var(--light-text-2) !important;
  text-shadow: none !important;
}

body.theme-light .contact-info-label,
body.theme-light .contact-field label {
  color: rgba(16, 36, 31, 0.58) !important;
  text-shadow: none !important;
}

body.theme-light .contact-info-item a {
  color: var(--light-green) !important;
  text-shadow: none !important;
}

body.theme-light .contact-tags span {
  background: rgba(15, 92, 77, 0.08) !important;
  border: 1px solid rgba(15, 92, 77, 0.16) !important;
  color: var(--light-green) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.theme-light .contact-form {
  color: var(--light-text) !important;
}

body.theme-light .contact-field input,
body.theme-light .contact-field textarea,
body.theme-light .contact-field select {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(16, 36, 31, 0.14) !important;
  color: var(--light-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px rgba(16, 36, 31, 0.04) !important;
  text-shadow: none !important;
}

body.theme-light .contact-field input:focus,
body.theme-light .contact-field textarea:focus,
body.theme-light .contact-field select:focus {
  background: #ffffff !important;
  border-color: rgba(15, 92, 77, 0.34) !important;
  box-shadow: 0 0 0 4px rgba(15, 92, 77, 0.08), 0 10px 22px rgba(16, 36, 31, 0.06) !important;
  outline: none !important;
}

body.theme-light .contact-field input::placeholder,
body.theme-light .contact-field textarea::placeholder {
  color: rgba(16, 36, 31, 0.4) !important;
}

body.theme-light .contact-field select option {
  color: #10241f !important;
  background: #ffffff !important;
}

body.theme-light .contact-message {
  background: rgba(15, 92, 77, 0.08) !important;
  border: 1px solid rgba(15, 92, 77, 0.16) !important;
  color: var(--light-text) !important;
}

body.theme-light .contact-btn {
  background: var(--light-green) !important;
  border: 1px solid rgba(15, 92, 77, 0.26) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 92, 77, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  text-shadow: none !important;
}

body.theme-light .contact-btn:hover {
  background: var(--light-green-2) !important;
  border-color: rgba(15, 92, 77, 0.36) !important;
  color: #ffffff !important;
}

body.theme-light .contact-location-copy,
body.theme-light .contact-location-card > div:first-child {
  background: transparent !important;
  color: var(--light-text) !important;
}

body.theme-light .contact-map-placeholder {
  background: radial-gradient(circle at center, rgba(15, 92, 77, 0.08) 0%, rgba(15, 92, 77, 0.035) 34%, rgba(255, 255, 255, 0.88) 72%) !important;
  border-left: 1px solid rgba(16, 36, 31, 0.08) !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.theme-light .contact-map-inner {
  min-width: 150px;
  padding: 1.05rem 1.25rem !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 245, 238, 0.98) 100%) !important;
  border: 1px solid rgba(15, 92, 77, 0.14) !important;
  color: var(--light-text) !important;
  box-shadow: 0 18px 38px rgba(16, 36, 31, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  text-align: center !important;
}

body.theme-light .contact-map-inner span {
  display: block !important;
  margin: 0 0 0.18rem !important;
  color: var(--light-green) !important;
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-shadow: 0 0 8px rgba(15, 92, 77, 0.1) !important;
}

body.theme-light .contact-map-inner p {
  margin: 0 !important;
  color: rgba(16, 36, 31, 0.64) !important;
  font-size: 0.92rem !important;
  line-height: 1.25 !important;
  text-shadow: none !important;
}

/* ========================================
   17. HERRAMIENTAS PAGE
======================================== */
body.theme-light .tools-app-page {
  color: var(--light-text);
}

body.theme-light .tools-app-header,
body.theme-light .tools-app-section {
  background: transparent !important;
}

body.theme-light .tools-app-kicker {
  color: rgba(16, 36, 31, 0.55) !important;
  text-shadow: none !important;
}

body.theme-light .tools-app-title {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .tools-app-title span {
  color: var(--light-green) !important;
  text-shadow: 0 0 10px rgba(15, 92, 77, 0.18), 0 0 20px rgba(15, 92, 77, 0.08) !important;
}

body.theme-light .tools-app-subtitle {
  color: var(--light-text-2) !important;
  text-shadow: none !important;
}

body.theme-light .tools-content-container,
body.theme-light .tools-content {
  color: var(--light-text) !important;
}

body.theme-light .tool-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 245, 238, 0.94) 100%) !important;
  border: 1px solid rgba(16, 36, 31, 0.11) !important;
  color: var(--light-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 18px 44px rgba(16, 36, 31, 0.1) !important;
  text-shadow: none !important;
}

body.theme-light .tool-panel.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 245, 238, 0.96) 100%) !important;
}

body.theme-light .tool-panel h2 {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .tool-panel p {
  color: var(--light-text-2) !important;
  text-shadow: none !important;
}

body.theme-light .tool-action-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 245, 238, 0.9) 100%) !important;
  border: 1px solid rgba(15, 92, 77, 0.14) !important;
  color: var(--light-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 10px 26px rgba(16, 36, 31, 0.07) !important;
  text-shadow: none !important;
}

body.theme-light .tool-action-card:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 245, 238, 0.96) 100%) !important;
  border-color: rgba(15, 92, 77, 0.26) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 34px rgba(16, 36, 31, 0.1) !important;
}

body.theme-light .tool-action-card h3 {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .tool-action-card p {
  color: var(--light-text-2) !important;
  text-shadow: none !important;
}

body.theme-light a.tool-action-card {
  text-decoration: none !important;
}

body.theme-light a.tool-action-card:hover h3 {
  color: var(--light-green) !important;
}

/* ========================================
   18. LOGIN PAGE
======================================== */
body.theme-light .login-page {
  color: var(--light-text);
}

body.theme-light .login-section {
  background: transparent !important;
}

body.theme-light .login-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 245, 238, 0.94) 100%) !important;
  border: 1px solid rgba(16, 36, 31, 0.11) !important;
  color: var(--light-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 18px 44px rgba(16, 36, 31, 0.12) !important;
  text-shadow: none !important;
}

body.theme-light .login-kicker {
  color: rgba(16, 36, 31, 0.55) !important;
  text-shadow: none !important;
}

body.theme-light .login-title {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .login-title span {
  color: var(--light-green) !important;
  text-shadow: 0 0 10px rgba(15, 92, 77, 0.18), 0 0 20px rgba(15, 92, 77, 0.08) !important;
}

body.theme-light .login-subtitle {
  color: var(--light-text-2) !important;
  text-shadow: none !important;
}

body.theme-light .login-field label {
  color: rgba(16, 36, 31, 0.62) !important;
  text-shadow: none !important;
}

body.theme-light .login-field input {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(16, 36, 31, 0.14) !important;
  color: var(--light-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 18px rgba(16, 36, 31, 0.04) !important;
  text-shadow: none !important;
}

body.theme-light .login-field input::placeholder {
  color: rgba(16, 36, 31, 0.42) !important;
}

body.theme-light .login-field input:focus {
  background: #ffffff !important;
  border-color: rgba(15, 92, 77, 0.34) !important;
  box-shadow: 0 0 0 4px rgba(15, 92, 77, 0.08), 0 10px 22px rgba(16, 36, 31, 0.06) !important;
  outline: none !important;
}

body.theme-light .login-btn {
  background: var(--light-green) !important;
  border: 1px solid rgba(15, 92, 77, 0.26) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 92, 77, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  text-shadow: none !important;
}

body.theme-light .login-btn:hover {
  background: var(--light-green-2) !important;
  border-color: rgba(15, 92, 77, 0.36) !important;
  color: #ffffff !important;
}

body.theme-light .login-message {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .login-message.is-error {
  background: rgba(180, 40, 40, 0.08) !important;
  border: 1px solid rgba(180, 40, 40, 0.18) !important;
  color: #8f2323 !important;
}

body.theme-light .login-message.is-success {
  background: rgba(15, 92, 77, 0.08) !important;
  border: 1px solid rgba(15, 92, 77, 0.16) !important;
  color: var(--light-green) !important;
}

/* ========================================
   19. DASHBOARD PAGE
======================================== */
body.theme-light .dashboard-page {
  color: var(--light-text);
}

body.theme-light .dashboard-header,
body.theme-light .dashboard-section {
  background: transparent !important;
}

body.theme-light .dashboard-kicker {
  color: rgba(16, 36, 31, 0.55) !important;
  text-shadow: none !important;
}

body.theme-light .dashboard-title {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .dashboard-title span {
  color: var(--light-green) !important;
  text-shadow: 0 0 10px rgba(15, 92, 77, 0.18), 0 0 20px rgba(15, 92, 77, 0.08) !important;
}

body.theme-light .dashboard-subtitle {
  color: var(--light-text-2) !important;
  text-shadow: none !important;
}

body.theme-light .dashboard-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 245, 238, 0.94) 100%) !important;
  border: 1px solid rgba(16, 36, 31, 0.11) !important;
  color: var(--light-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 34px rgba(16, 36, 31, 0.09) !important;
  text-shadow: none !important;
  text-decoration: none !important;
}

body.theme-light .dashboard-card:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 245, 238, 0.96) 100%) !important;
  border-color: rgba(15, 92, 77, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 20px 44px rgba(16, 36, 31, 0.13) !important;
  transform: translateY(-2px);
}

body.theme-light .dashboard-card h3 {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .dashboard-card p {
  color: var(--light-text-2) !important;
  text-shadow: none !important;
}

body.theme-light .dashboard-card:hover h3 {
  color: var(--light-green) !important;
}

/* ========================================
   20. ABOUT PAGE
======================================== */
body.theme-light .about-page {
  color: var(--light-text);
}

body.theme-light .about-header,
body.theme-light .about-section,
body.theme-light .about-identity-section,
body.theme-light .about-process-section {
  background: transparent !important;
}

body.theme-light .about-kicker {
  color: rgba(16, 36, 31, 0.55) !important;
  text-shadow: none !important;
}

body.theme-light .about-title {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .about-title span,
body.theme-light .about-section .section-title span {
  color: var(--light-green) !important;
  text-shadow: 0 0 10px rgba(15, 92, 77, 0.18), 0 0 20px rgba(15, 92, 77, 0.08) !important;
}

body.theme-light .about-subtitle,
body.theme-light .about-identity-intro,
body.theme-light .about-process-intro {
  color: var(--light-text-2) !important;
  text-shadow: none !important;
}

body.theme-light .about-section .section-title {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .about-card,
body.theme-light .about-identity-card,
body.theme-light .about-process-step {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 245, 238, 0.94) 100%) !important;
  border: 1px solid rgba(16, 36, 31, 0.11) !important;
  color: var(--light-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 34px rgba(16, 36, 31, 0.09) !important;
  text-shadow: none !important;
}

body.theme-light .about-card:hover,
body.theme-light .about-identity-card:hover,
body.theme-light .about-process-step:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 245, 238, 0.96) 100%) !important;
  border-color: rgba(15, 92, 77, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 20px 44px rgba(16, 36, 31, 0.13) !important;
}

body.theme-light .about-card h3,
body.theme-light .about-identity-card h3,
body.theme-light .about-process-step h3 {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .about-card p,
body.theme-light .about-identity-card p,
body.theme-light .about-process-step p {
  color: var(--light-text-2) !important;
  text-shadow: none !important;
}

body.theme-light .about-process-line {
  background: linear-gradient(to right, transparent, rgba(15, 92, 77, 0.26), transparent) !important;
}

body.theme-light .about-process-dot {
  background: var(--light-green) !important;
  box-shadow: 0 0 0 5px rgba(15, 92, 77, 0.1), 0 0 16px rgba(15, 92, 77, 0.18) !important;
}

/* ========================================
   21. THEME TOGGLE / WHATSAPP
======================================== */
body.theme-light .theme-toggle {
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--light-text) !important;
  border: 1px solid rgba(16, 36, 31, 0.12) !important;
  box-shadow: 0 12px 30px rgba(16, 36, 31, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

body.theme-light .theme-toggle span {
  color: var(--light-text) !important;
}

body.theme-light .theme-toggle:hover {
  background: #ffffff !important;
  border-color: rgba(15, 92, 77, 0.24) !important;
}

body.theme-light .whatsapp-float,
body.theme-light .whatsapp-button {
  color: #ffffff !important;
}

/* ========================================
   22. RESPONSIVE GLOBAL
======================================== */
@media (max-width: 768px) {
  body.theme-light::before {
    background: linear-gradient(180deg, rgba(246, 243, 237, 0.88) 0%, rgba(246, 243, 237, 0.58) 46%, rgba(246, 243, 237, 0.86) 100%), url("/assets/hero-building-xray.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 1;
    filter: grayscale(100%) brightness(1.06) contrast(0.94);
  }
  body.theme-light::after {
    background: linear-gradient(rgba(16, 36, 31, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 36, 31, 0.05) 1px, transparent 1px), radial-gradient(circle at 72% 42%, rgba(15, 92, 77, 0.08) 0%, rgba(15, 92, 77, 0.035) 32%, transparent 58%);
    background-size: 76px 76px, 76px 76px, cover;
    background-attachment: fixed;
    opacity: 0.5;
  }
  body.theme-light .service-card--technical,
  body.theme-light .portfolio-card--technical,
  body.theme-light .who-card,
  body.theme-light .service-detail-card,
  body.theme-light .service-single-card,
  body.theme-light .subservice-card,
  body.theme-light .portfolio-showcase-card,
  body.theme-light .portfolio-type-card,
  body.theme-light .portfolio-approach-card,
  body.theme-light .process-step-card,
  body.theme-light .process-value-item,
  body.theme-light .process-cta-card,
  body.theme-light .contact-card,
  body.theme-light .contact-mini-card,
  body.theme-light .contact-location-card,
  body.theme-light .tool-panel,
  body.theme-light .tool-action-card,
  body.theme-light .login-card,
  body.theme-light .dashboard-card,
  body.theme-light .about-card,
  body.theme-light .about-identity-card,
  body.theme-light .about-process-step {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 245, 238, 0.96) 100%) !important;
  }
  body.theme-light .service-card--technical::after,
  body.theme-light .portfolio-card--technical::after {
    display: none !important;
  }
  body.theme-light .hero h1 span {
    color: var(--light-green) !important;
  }
  body.theme-light .portfolio-showcase-content p,
  body.theme-light .portfolio-type-card li,
  body.theme-light .portfolio-approach-card p,
  body.theme-light .process-step-card p,
  body.theme-light .process-cta-card p,
  body.theme-light .contact-info-text,
  body.theme-light .contact-form-text,
  body.theme-light .contact-mini-card p,
  body.theme-light .contact-location-card p,
  body.theme-light .tool-panel p,
  body.theme-light .tool-action-card p,
  body.theme-light .login-subtitle,
  body.theme-light .dashboard-card p,
  body.theme-light .about-card p,
  body.theme-light .about-identity-card p,
  body.theme-light .about-process-step p,
  body.theme-light .about-identity-intro,
  body.theme-light .about-process-intro {
    color: rgba(16, 36, 31, 0.76) !important;
  }
  body.theme-light .contact-map-placeholder {
    border-left: 0 !important;
    border-top: 1px solid rgba(16, 36, 31, 0.08) !important;
    min-height: 180px;
  }
  body.theme-light .contact-map-inner {
    min-width: 135px;
  }
}
/* ========================================
   LIGHT MODE | PROFILE PAGE FIX
   Ajuste específico para /perfil
======================================== */
body.theme-light .profile-page {
  color: var(--light-text) !important;
}

body.theme-light .profile-app {
  background: transparent !important;
}

body.theme-light .profile-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 245, 238, 0.94) 100%) !important;
  border: 1px solid rgba(16, 36, 31, 0.11) !important;
  color: var(--light-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 18px 44px rgba(16, 36, 31, 0.1) !important;
  text-shadow: none !important;
}

/* SIDEBAR PERFIL */
body.theme-light .profile-sidebar {
  background: rgba(255, 255, 255, 0.62) !important;
  border-right: 1px solid rgba(16, 36, 31, 0.1) !important;
  box-shadow: none !important;
}

body.theme-light .profile-nav-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: rgba(16, 36, 31, 0.58) !important;
  box-shadow: none !important;
}

body.theme-light .profile-nav-btn svg,
body.theme-light .profile-nav-btn svg * {
  color: currentColor !important;
  stroke: currentColor !important;
}

body.theme-light .profile-nav-btn:hover,
body.theme-light .profile-nav-btn.active {
  background: rgba(15, 92, 77, 0.08) !important;
  border-color: rgba(15, 92, 77, 0.16) !important;
  color: var(--light-green) !important;
  box-shadow: 0 8px 20px rgba(16, 36, 31, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

/* CONTENIDO PRINCIPAL */
body.theme-light .profile-main,
body.theme-light .profile-tab {
  background: transparent !important;
  color: var(--light-text) !important;
}

body.theme-light .profile-topbar h1,
body.theme-light .profile-section-card h2,
body.theme-light .profile-account-actions h3,
body.theme-light #profileDisplayName {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .profile-topbar p,
body.theme-light .profile-user-row p,
body.theme-light .profile-section-card p,
body.theme-light .profile-account-actions p,
body.theme-light .profile-message-item p,
body.theme-light .profile-activity-item p {
  color: var(--light-text-2) !important;
  text-shadow: none !important;
}

/* PORTADA Y USUARIO */
body.theme-light .profile-cover {
  background: linear-gradient(135deg, rgba(15, 92, 77, 0.14) 0%, rgba(255, 255, 255, 0.64) 100%) !important;
  border: 1px solid rgba(15, 92, 77, 0.12) !important;
  box-shadow: none !important;
}

body.theme-light .profile-user-row {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 245, 238, 0.9) 100%) !important;
  border: 1px solid rgba(16, 36, 31, 0.1) !important;
  color: var(--light-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 26px rgba(16, 36, 31, 0.07) !important;
}

body.theme-light .profile-user-avatar {
  background: rgba(15, 92, 77, 0.1) !important;
  border: 1px solid rgba(15, 92, 77, 0.18) !important;
  color: var(--light-green) !important;
  box-shadow: none !important;
}

body.theme-light #profileAvatarText {
  color: var(--light-green) !important;
}

/* FORMULARIOS PERFIL */
body.theme-light .profile-field label {
  color: rgba(16, 36, 31, 0.62) !important;
  text-shadow: none !important;
}

body.theme-light .profile-field input,
body.theme-light .profile-field select {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(16, 36, 31, 0.14) !important;
  color: var(--light-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 18px rgba(16, 36, 31, 0.04) !important;
  text-shadow: none !important;
}

body.theme-light .profile-field input:focus,
body.theme-light .profile-field select:focus {
  background: #ffffff !important;
  border-color: rgba(15, 92, 77, 0.34) !important;
  box-shadow: 0 0 0 4px rgba(15, 92, 77, 0.08), 0 10px 22px rgba(16, 36, 31, 0.06) !important;
  outline: none !important;
}

body.theme-light .profile-field input[readonly] {
  background: rgba(16, 36, 31, 0.045) !important;
  color: rgba(16, 36, 31, 0.66) !important;
}

body.theme-light .profile-field select option {
  color: #10241f !important;
  background: #ffffff !important;
}

/* TARJETAS DE TABS */
body.theme-light .profile-section-card,
body.theme-light .profile-status-card,
body.theme-light .profile-activity-item,
body.theme-light .profile-message-item,
body.theme-light .profile-account-actions {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 245, 238, 0.94) 100%) !important;
  border: 1px solid rgba(16, 36, 31, 0.11) !important;
  color: var(--light-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 34px rgba(16, 36, 31, 0.08) !important;
  text-shadow: none !important;
}

body.theme-light .profile-status-card span {
  color: rgba(16, 36, 31, 0.58) !important;
  text-shadow: none !important;
}

body.theme-light .profile-status-card strong,
body.theme-light .profile-activity-item strong,
body.theme-light .profile-message-item strong {
  color: var(--light-text) !important;
  text-shadow: none !important;
}

body.theme-light .profile-activity-item > span {
  background: var(--light-green) !important;
  box-shadow: 0 0 0 5px rgba(15, 92, 77, 0.1), 0 0 16px rgba(15, 92, 77, 0.18) !important;
}

/* BOTONES PERFIL */
body.theme-light .profile-edit-btn,
body.theme-light .profile-secondary-btn,
body.theme-light .profile-settings-save {
  background: var(--light-green) !important;
  border: 1px solid rgba(15, 92, 77, 0.26) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 92, 77, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  text-shadow: none !important;
}

body.theme-light .profile-edit-btn:hover,
body.theme-light .profile-secondary-btn:hover,
body.theme-light .profile-settings-save:hover {
  background: var(--light-green-2) !important;
  border-color: rgba(15, 92, 77, 0.36) !important;
  color: #ffffff !important;
}

body.theme-light .profile-danger-btn {
  background: rgba(180, 40, 40, 0.08) !important;
  border: 1px solid rgba(180, 40, 40, 0.2) !important;
  color: #8f2323 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.theme-light .profile-danger-btn:hover {
  background: rgba(180, 40, 40, 0.13) !important;
  border-color: rgba(180, 40, 40, 0.3) !important;
  color: #7a1d1d !important;
}

/* MOBILE PERFIL */
@media (max-width: 768px) {
  body.theme-light .profile-shell,
  body.theme-light .profile-user-row,
  body.theme-light .profile-section-card,
  body.theme-light .profile-status-card,
  body.theme-light .profile-activity-item,
  body.theme-light .profile-message-item,
  body.theme-light .profile-account-actions {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 245, 238, 0.96) 100%) !important;
  }
  body.theme-light .profile-topbar p,
  body.theme-light .profile-user-row p,
  body.theme-light .profile-section-card p,
  body.theme-light .profile-account-actions p,
  body.theme-light .profile-message-item p,
  body.theme-light .profile-activity-item p {
    color: rgba(16, 36, 31, 0.76) !important;
  }
}
/* ========================================
   LIGHT MODE | AUTHENTICATED APP OVERRIDES
   Ajuste de consistencia visual para:
   - sidebar autenticado
   - dashboard
   - botones y tarjetas
======================================== */
body.theme-light {
  --inside-light-surface: rgba(255, 255, 255, 0.88);
  --inside-light-surface-2: rgba(250, 248, 244, 0.96);
  --inside-light-surface-strong: rgba(255, 255, 255, 0.98);
  --inside-light-border: rgba(22, 39, 35, 0.10);
  --inside-light-border-strong: rgba(26, 107, 90, 0.22);
  --inside-light-title: #17312b;
  --inside-light-text: rgba(23, 49, 43, 0.78);
  --inside-light-muted: rgba(23, 49, 43, 0.58);
  --inside-light-accent: #1a6b5a;
  --inside-light-accent-2: #2b7c69;
  --inside-light-accent-soft: rgba(26, 107, 90, 0.10);
  --inside-light-accent-soft-2: rgba(26, 107, 90, 0.16);
  --inside-light-shadow-soft: 0 10px 24px rgba(22, 39, 35, 0.07);
  --inside-light-shadow-card: 0 18px 42px rgba(22, 39, 35, 0.10);
  --inside-light-inset: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

/* ========================================
   1. SIDEBAR AUTENTICADO
======================================== */
body.theme-light .app-sidebar {
  background: linear-gradient(180deg, rgba(247, 244, 238, 0.92) 0%, rgba(243, 240, 233, 0.92) 100%) !important;
  border-right: 1px solid rgba(22, 39, 35, 0.1) !important;
  box-shadow: 8px 0 22px rgba(22, 39, 35, 0.04) !important;
}

body.theme-light .app-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(16, 36, 31, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 36, 31, 0.05) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
  opacity: 0.45;
}

body.theme-light .app-sidebar > * {
  position: relative;
  z-index: 1;
}

body.theme-light .app-sidebar-logo {
  border-bottom: 1px solid rgba(22, 39, 35, 0.08) !important;
}

body.theme-light .app-sidebar-link {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(245, 242, 236, 0.88) 100%) !important;
  border: 1px solid rgba(22, 39, 35, 0.1) !important;
  color: var(--inside-light-title) !important;
  box-shadow: var(--inside-light-inset), var(--inside-light-shadow-soft) !important;
}

body.theme-light .app-sidebar-link:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 246, 241, 0.96) 100%) !important;
  border-color: rgba(26, 107, 90, 0.22) !important;
  color: var(--inside-light-title) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 14px 30px rgba(22, 39, 35, 0.09) !important;
  transform: translateY(-1px);
}

body.theme-light .app-sidebar-link.active {
  background: linear-gradient(180deg, rgba(227, 243, 238, 0.98) 0%, rgba(216, 237, 230, 0.96) 100%) !important;
  border-color: rgba(26, 107, 90, 0.26) !important;
  color: var(--inside-light-title) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 26px rgba(22, 39, 35, 0.08) !important;
}

body.theme-light .app-sidebar-profile-link {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(246, 243, 238, 0.92) 100%) !important;
}

body.theme-light .app-sidebar-footer {
  border-top: 1px solid rgba(22, 39, 35, 0.08) !important;
}

body.theme-light .app-sidebar-logout {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(246, 243, 238, 0.94) 100%) !important;
  border: 1px solid rgba(22, 39, 35, 0.1) !important;
  color: var(--inside-light-title) !important;
  box-shadow: var(--inside-light-inset), var(--inside-light-shadow-soft) !important;
}

body.theme-light .app-sidebar-logout:hover {
  background: linear-gradient(180deg, rgba(255, 239, 239, 0.98) 0%, rgba(252, 233, 233, 0.98) 100%) !important;
  border-color: rgba(181, 57, 57, 0.22) !important;
  color: #a03030 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 14px 28px rgba(160, 48, 48, 0.1) !important;
}

body.theme-light .app-sidebar-logout:hover .app-sidebar-logout-icon {
  color: #a03030 !important;
}

/* ========================================
   2. DASHBOARD | CONTENEDORES PRINCIPALES
======================================== */
body.theme-light .dashboard-page {
  color: var(--inside-light-title) !important;
}

body.theme-light .dashboard-header,
body.theme-light .dashboard-section {
  background: transparent !important;
}

/* Hero / bienvenida */
body.theme-light .dashboard-hero,
body.theme-light .dashboard-welcome,
body.theme-light .dashboard-top-card,
body.theme-light .dashboard-intro-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 244, 239, 0.96) 100%) !important;
  border: 1px solid var(--inside-light-border) !important;
  box-shadow: var(--inside-light-inset), var(--inside-light-shadow-card) !important;
  color: var(--inside-light-title) !important;
}

/* Widgets / paneles */
body.theme-light .dashboard-widget,
body.theme-light .dashboard-card,
body.theme-light .dashboard-panel,
body.theme-light .dashboard-module,
body.theme-light .dashboard-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(247, 244, 239, 0.94) 100%) !important;
  border: 1px solid var(--inside-light-border) !important;
  box-shadow: var(--inside-light-inset), var(--inside-light-shadow-card) !important;
  color: var(--inside-light-title) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.theme-light .dashboard-widget:hover,
body.theme-light .dashboard-card:hover,
body.theme-light .dashboard-panel:hover,
body.theme-light .dashboard-module:hover,
body.theme-light .dashboard-box:hover {
  border-color: rgba(26, 107, 90, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 20px 42px rgba(22, 39, 35, 0.11) !important;
}

/* ========================================
   3. DASHBOARD | TITULOS Y TEXTO
======================================== */
body.theme-light .dashboard-kicker,
body.theme-light .dashboard-widget-kicker,
body.theme-light .dashboard-section-label,
body.theme-light .dashboard-mini-kicker,
body.theme-light .dashboard-date-label {
  color: var(--inside-light-accent) !important;
  letter-spacing: 0.18em;
  text-shadow: none !important;
}

body.theme-light .dashboard-title,
body.theme-light .dashboard-widget-title,
body.theme-light .dashboard-card h2,
body.theme-light .dashboard-card h3,
body.theme-light .dashboard-panel h2,
body.theme-light .dashboard-panel h3 {
  color: var(--inside-light-title) !important;
  text-shadow: none !important;
}

body.theme-light .dashboard-title span,
body.theme-light .dashboard-widget-title span {
  color: var(--inside-light-accent) !important;
  text-shadow: 0 0 8px rgba(26, 107, 90, 0.1), 0 0 18px rgba(26, 107, 90, 0.05) !important;
}

body.theme-light .dashboard-subtitle,
body.theme-light .dashboard-card p,
body.theme-light .dashboard-panel p,
body.theme-light .dashboard-widget p,
body.theme-light .dashboard-meta,
body.theme-light .dashboard-description,
body.theme-light .dashboard-muted {
  color: var(--inside-light-text) !important;
  text-shadow: none !important;
}

/* ========================================
   4. DASHBOARD | ITEMS INTERNOS
======================================== */
body.theme-light .dashboard-work-item,
body.theme-light .dashboard-news-item,
body.theme-light .dashboard-list-item,
body.theme-light .dashboard-activity-item,
body.theme-light .dashboard-quick-link,
body.theme-light .dashboard-stat-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(246, 243, 238, 0.82) 100%) !important;
  border: 1px solid rgba(22, 39, 35, 0.1) !important;
  color: var(--inside-light-title) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 10px 24px rgba(22, 39, 35, 0.05) !important;
}

body.theme-light .dashboard-work-item:hover,
body.theme-light .dashboard-news-item:hover,
body.theme-light .dashboard-list-item:hover,
body.theme-light .dashboard-activity-item:hover,
body.theme-light .dashboard-quick-link:hover,
body.theme-light .dashboard-stat-card:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 246, 241, 0.96) 100%) !important;
  border-color: rgba(26, 107, 90, 0.18) !important;
}

body.theme-light .dashboard-news-item.is-highlighted,
body.theme-light .dashboard-card.is-highlighted,
body.theme-light .dashboard-widget.is-highlighted {
  background: linear-gradient(180deg, rgba(231, 245, 240, 0.98) 0%, rgba(220, 239, 232, 0.98) 100%) !important;
  border-color: rgba(26, 107, 90, 0.22) !important;
}

/* ========================================
   5. BOTONES / ACCIONES
======================================== */
body.theme-light .dashboard-layout-reset,
body.theme-light .dashboard-widget-action,
body.theme-light .dashboard-action,
body.theme-light .dashboard-btn-secondary,
body.theme-light .dashboard-chip,
body.theme-light .dashboard-pill,
body.theme-light .dashboard-status-pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 242, 237, 0.96) 100%) !important;
  border: 1px solid rgba(26, 107, 90, 0.18) !important;
  color: var(--inside-light-title) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 8px 18px rgba(22, 39, 35, 0.05) !important;
}

body.theme-light .dashboard-layout-reset:hover,
body.theme-light .dashboard-widget-action:hover,
body.theme-light .dashboard-action:hover,
body.theme-light .dashboard-btn-secondary:hover,
body.theme-light .dashboard-chip:hover,
body.theme-light .dashboard-pill:hover,
body.theme-light .dashboard-status-pill:hover {
  background: linear-gradient(180deg, rgba(228, 244, 238, 0.98) 0%, rgba(216, 238, 230, 0.98) 100%) !important;
  border-color: rgba(26, 107, 90, 0.26) !important;
  color: var(--inside-light-accent) !important;
}

/* Botón principal */
body.theme-light .dashboard-btn-primary,
body.theme-light .dashboard-cta,
body.theme-light .dashboard-open-module {
  background: linear-gradient(180deg, #1f7965 0%, #175f50 100%) !important;
  border: 1px solid rgba(20, 85, 71, 0.34) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(26, 107, 90, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

body.theme-light .dashboard-btn-primary:hover,
body.theme-light .dashboard-cta:hover,
body.theme-light .dashboard-open-module:hover {
  background: linear-gradient(180deg, #27846f 0%, #1b6b59 100%) !important;
  border-color: rgba(20, 85, 71, 0.42) !important;
  color: #ffffff !important;
}

/* ========================================
   6. THEME TOGGLE / FLOATS
======================================== */
body.theme-light .theme-toggle {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(245, 242, 237, 0.96) 100%) !important;
  border: 1px solid rgba(22, 39, 35, 0.1) !important;
  color: var(--inside-light-title) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 12px 26px rgba(22, 39, 35, 0.08) !important;
}

body.theme-light .theme-toggle:hover {
  border-color: rgba(26, 107, 90, 0.22) !important;
  color: var(--inside-light-accent) !important;
}

body.theme-light .language-float {
  box-shadow: 0 12px 28px rgba(22, 39, 35, 0.1) !important;
}

body.theme-light .whatsapp-float,
body.theme-light .whatsapp-button {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12) !important;
}

/* ========================================
   7. RESPONSIVE
======================================== */
@media (max-width: 992px) {
  body.theme-light .app-sidebar {
    box-shadow: none !important;
  }
}
@media (max-width: 768px) {
  body.theme-light .dashboard-hero,
  body.theme-light .dashboard-welcome,
  body.theme-light .dashboard-top-card,
  body.theme-light .dashboard-intro-card,
  body.theme-light .dashboard-widget,
  body.theme-light .dashboard-card,
  body.theme-light .dashboard-panel,
  body.theme-light .dashboard-module,
  body.theme-light .dashboard-box,
  body.theme-light .dashboard-work-item,
  body.theme-light .dashboard-news-item,
  body.theme-light .dashboard-list-item,
  body.theme-light .dashboard-activity-item,
  body.theme-light .dashboard-quick-link,
  body.theme-light .dashboard-stat-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 244, 239, 0.98) 100%) !important;
  }
}
/* ========================================
   LIGHT MODE | HEADER TOOLS DROPDOWN FIX
   Mantiene el header oscuro, pero corrige el dropdown en modo claro.
======================================== */
body.theme-light .nav-tools-menu {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 246, 0.98) 100%) !important;
  border-color: rgba(15, 107, 88, 0.16) !important;
  box-shadow: 0 24px 60px rgba(16, 36, 31, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.theme-light .nav-tools-links a {
  background: transparent !important;
  border-bottom-color: rgba(16, 36, 31, 0.08) !important;
}

body.theme-light .nav-tools-links a:hover {
  background: linear-gradient(180deg, rgba(232, 243, 239, 0.96) 0%, rgba(220, 237, 231, 0.96) 100%) !important;
}

body.theme-light .nav-tools-link-title {
  color: #17312b !important;
  text-shadow: none !important;
}

body.theme-light .nav-tools-link-desc {
  color: rgba(23, 49, 43, 0.68) !important;
  text-shadow: none !important;
}

/* Logout en light mode: fondo rojo y texto verde, igual a la intención visual del modo oscuro */
body.theme-light .nav-tools-logout-link {
  border-color: rgba(255, 92, 92, 0.3) !important;
  background: radial-gradient(circle at left center, rgba(255, 92, 92, 0.2), transparent 45%), rgba(65, 14, 18, 0.86) !important;
  box-shadow: 0 0 0 1px rgba(255, 92, 92, 0.14), 0 0 18px rgba(255, 92, 92, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.theme-light .nav-tools-logout-link .nav-tools-link-title {
  color: #72efd3 !important;
  text-shadow: 0 0 8px rgba(114, 239, 211, 0.2), 0 0 16px rgba(114, 239, 211, 0.1) !important;
}

body.theme-light .nav-tools-logout-link .nav-tools-link-desc {
  color: rgba(114, 239, 211, 0.78) !important;
  text-shadow: none !important;
}

body.theme-light .nav-tools-logout-link:hover {
  border-color: rgba(255, 92, 92, 0.48) !important;
  background: radial-gradient(circle at left center, rgba(255, 92, 92, 0.26), transparent 45%), rgba(80, 16, 20, 0.96) !important;
  box-shadow: 0 0 0 1px rgba(255, 92, 92, 0.22), 0 0 20px rgba(255, 92, 92, 0.24), 0 0 36px rgba(255, 92, 92, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.theme-light .nav-tools-logout-link:hover .nav-tools-link-title {
  color: #72efd3 !important;
  text-shadow: 0 0 10px rgba(114, 239, 211, 0.28), 0 0 20px rgba(114, 239, 211, 0.14) !important;
}

body.theme-light .nav-tools-logout-link:hover .nav-tools-link-desc {
  color: rgba(114, 239, 211, 0.86) !important;
}

/* ========================================
   LIGHT MODE | LOGOUT DROPDOWN FINAL FIX
   Fuerza el estilo rojo del logout sobre los estilos generales del dropdown.
======================================== */
body.theme-light .nav-tools-links a.nav-tools-logout-link {
  background: radial-gradient(circle at left center, rgba(255, 92, 92, 0.22), transparent 45%), rgba(65, 14, 18, 0.92) !important;
  border-top: 1px solid rgba(255, 92, 92, 0.22) !important;
  border-bottom: 0 !important;
  box-shadow: 0 0 0 1px rgba(255, 92, 92, 0.16), 0 0 18px rgba(255, 92, 92, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.theme-light .nav-tools-links a.nav-tools-logout-link .nav-tools-link-title {
  color: #72efd3 !important;
  text-shadow: 0 0 8px rgba(114, 239, 211, 0.24), 0 0 16px rgba(114, 239, 211, 0.12) !important;
}

body.theme-light .nav-tools-links a.nav-tools-logout-link .nav-tools-link-desc {
  color: rgba(114, 239, 211, 0.78) !important;
  text-shadow: none !important;
}

body.theme-light .nav-tools-links a.nav-tools-logout-link:hover {
  background: radial-gradient(circle at left center, rgba(255, 92, 92, 0.3), transparent 45%), rgba(80, 16, 20, 0.98) !important;
  border-top-color: rgba(255, 92, 92, 0.34) !important;
  box-shadow: 0 0 0 1px rgba(255, 92, 92, 0.24), 0 0 20px rgba(255, 92, 92, 0.26), 0 0 36px rgba(255, 92, 92, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.theme-light .nav-tools-links a.nav-tools-logout-link:hover .nav-tools-link-title {
  color: #72efd3 !important;
  text-shadow: 0 0 10px rgba(114, 239, 211, 0.3), 0 0 20px rgba(114, 239, 211, 0.16) !important;
}

body.theme-light .nav-tools-links a.nav-tools-logout-link:hover .nav-tools-link-desc {
  color: rgba(114, 239, 211, 0.88) !important;
}

/* ========================================
   LIGHT MODE | HEADER TOOLS DROPDOWN
   Dropdown claro con logout normal y hover rojo.
======================================== */
body.theme-light .nav-tools-menu {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 246, 0.98) 100%) !important;
  border-color: rgba(15, 107, 88, 0.16) !important;
  box-shadow: 0 24px 60px rgba(16, 36, 31, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.theme-light .nav-tools-links a {
  background: transparent !important;
  border-bottom-color: rgba(16, 36, 31, 0.08) !important;
  box-shadow: none !important;
}

body.theme-light .nav-tools-links a:hover {
  background: linear-gradient(180deg, rgba(232, 243, 239, 0.96) 0%, rgba(220, 237, 231, 0.96) 100%) !important;
}

body.theme-light .nav-tools-link-title {
  color: #17312b !important;
  text-shadow: none !important;
}

body.theme-light .nav-tools-link-desc {
  color: rgba(23, 49, 43, 0.68) !important;
  text-shadow: none !important;
}

/* Logout normal: se ve como el resto del dropdown */
body.theme-light .nav-tools-links a.nav-tools-logout-link {
  background: transparent !important;
  border-top: 1px solid rgba(16, 36, 31, 0.08) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.theme-light .nav-tools-links a.nav-tools-logout-link .nav-tools-link-title {
  color: #17312b !important;
  text-shadow: none !important;
}

body.theme-light .nav-tools-links a.nav-tools-logout-link .nav-tools-link-desc {
  color: rgba(23, 49, 43, 0.68) !important;
  text-shadow: none !important;
}

/* Logout hover: solo aquí se vuelve rojo */
body.theme-light .nav-tools-links a.nav-tools-logout-link:hover {
  background: radial-gradient(circle at left center, rgba(255, 92, 92, 0.18), transparent 46%), linear-gradient(135deg, rgba(103, 24, 31, 0.96) 0%, rgba(78, 18, 24, 0.98) 100%) !important;
  border-top-color: rgba(255, 92, 92, 0.24) !important;
  box-shadow: 0 0 0 1px rgba(255, 92, 92, 0.14), 0 10px 22px rgba(125, 20, 32, 0.14), 0 0 18px rgba(255, 92, 92, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.theme-light .nav-tools-links a.nav-tools-logout-link:hover .nav-tools-link-title {
  color: #ffffff !important;
  text-shadow: none !important;
}

body.theme-light .nav-tools-links a.nav-tools-logout-link:hover .nav-tools-link-desc {
  color: rgba(255, 255, 255, 0.78) !important;
  text-shadow: none !important;
}

/* ========================================
   RESET BASE
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================================
   SCROLL
======================================== */
html {
  scroll-behavior: smooth;
}

/* ========================================
   TIPOGRAFÍA GLOBAL (INTER)
======================================== */
body {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   JERARQUÍA TIPOGRÁFICA
======================================== */
/* HERO */
.hero h1 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

/* TÍTULOS GENERALES */
h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

/* TEXTO */
p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

/* LISTAS */
li {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* LINKS */
a {
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

/* BOTONES */
button {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* INPUTS */
input,
textarea,
select {
  font-family: "Inter", sans-serif;
}

/* ========================================
   CONTAINER
======================================== */
.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

/* ========================================
   SISTEMA DE TÍTULOS DE SECCIÓN
======================================== */
.section-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
}

.section-title span {
  color: #72efd3;
  text-shadow: 0 0 8px rgba(114, 239, 211, 0.35), 0 0 18px rgba(114, 239, 211, 0.12);
}

.section-subtitle {
  max-width: 780px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

/* ========================================
   ESPACIADO GLOBAL DE SECCIONES
======================================== */
.section-spacing {
  padding: 42px 0 46px;
}

@media (max-width: 768px) {
  .section-spacing {
    padding: 30px 0 34px;
  }
  .section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .section-subtitle {
    font-size: 0.95rem;
  }
}
/* ========================================
   THEME TOGGLE BUTTON
======================================== */
.theme-toggle {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 10080;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(114, 239, 211, 0.24);
  background: rgba(5, 19, 31, 0.9);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 239, 211, 0.42);
  background: rgba(15, 60, 50, 0.95);
}

.theme-toggle-icon {
  line-height: 1;
  font-size: 0.95rem;
}

.theme-toggle-text {
  line-height: 1;
}

/* Botón cuando está activo el tema light */
body.theme-light .theme-toggle {
  background: rgba(255, 255, 255, 0.9);
  color: #10241f;
  border-color: rgba(16, 36, 31, 0.14);
  box-shadow: 0 12px 30px rgba(16, 36, 31, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.theme-light .theme-toggle:hover {
  background: #ffffff;
  border-color: rgba(20, 107, 90, 0.28);
}

/* ========================================
   APP LOGGED-IN LAYOUT | SIN HEADER PÚBLICO
======================================== */
:root {
  --app-sidebar-width: 205px;
}

body.inside-app-body {
  min-height: 100vh;
}

.inside-app-body main {
  margin-left: var(--app-sidebar-width);
}

.inside-app-body .site-footer {
  display: none;
}

/* ========================================
   SIDEBAR AUTENTICADO
======================================== */
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: var(--app-sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0.95rem 0.7rem;
  background: linear-gradient(180deg, rgba(2, 26, 32, 0.98) 0%, rgba(2, 18, 25, 0.98) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 16px 0 38px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.app-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(114, 239, 211, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(114, 239, 211, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.55;
  pointer-events: none;
}

.app-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(114, 239, 211, 0.1), transparent 34%), radial-gradient(circle at bottom right, rgba(15, 107, 88, 0.1), transparent 40%);
  pointer-events: none;
}

.app-sidebar > * {
  position: relative;
  z-index: 1;
}

.app-sidebar-logo {
  display: block;
  padding: 0.25rem 0.35rem 0.95rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar-logo img {
  display: block;
  width: 150px;
  height: auto;
  opacity: 1;
}

.app-sidebar-nav {
  display: grid;
  gap: 0.55rem;
  margin: auto 0;
}

.app-sidebar-tools-nav {
  margin: auto 0 0;
}

.app-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 58px;
  padding: 0.72rem 0.78rem;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  text-decoration: none;
  transition: all 0.22s ease;
}

.app-sidebar-link:hover,
.app-sidebar-link.active {
  transform: translateX(3px);
  color: #ffffff;
  background: rgba(14, 67, 56, 0.96);
  border-color: rgba(114, 239, 211, 0.28);
}

.app-sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 0.65rem;
  padding-top: 0.9rem;
}

.app-sidebar-profile-link {
  min-height: 44px;
  padding: 0.62rem 0.85rem;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  font-size: 0.84rem;
}

.app-sidebar-footer {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar-bottom .app-sidebar-footer {
  margin-top: 0.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 40px;
  padding: 0.66rem 0.85rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: all 0.22s ease;
}

.app-sidebar-logout-text {
  display: inline-flex;
  align-items: center;
  order: 1;
}

.app-sidebar-logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 1;
  order: 2;
  transition: transform 0.22s ease;
  flex: 0 0 auto;
}

.app-sidebar-logout-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  color: currentColor;
}

.app-sidebar-logout-icon svg path {
  stroke: currentColor;
}

.app-sidebar-logout:hover {
  color: #ffffff;
  background: rgba(190, 42, 42, 0.92);
  border-color: rgba(255, 99, 99, 0.38);
  box-shadow: 0 10px 20px rgba(160, 28, 28, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.app-sidebar-logout:hover .app-sidebar-logout-icon {
  transform: translateX(2px);
}

/* ========================================
   SIDEBAR EN TEMA LIGHT
======================================== */
body.theme-light .app-sidebar {
  position: fixed;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 246, 240, 0.98) 100%);
  border-right-color: rgba(15, 107, 88, 0.14);
  box-shadow: 18px 0 42px rgba(16, 36, 31, 0.1);
}

body.theme-light .app-sidebar::before {
  background-image: linear-gradient(rgba(15, 107, 88, 0.065) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 107, 88, 0.065) 1px, transparent 1px);
  opacity: 0.85;
}

body.theme-light .app-sidebar::after {
  background: radial-gradient(circle at top left, rgba(114, 239, 211, 0.14), transparent 34%), radial-gradient(circle at bottom right, rgba(15, 107, 88, 0.08), transparent 40%);
}

body.theme-light .app-sidebar-logo,
body.theme-light .app-sidebar-footer {
  border-color: rgba(16, 36, 31, 0.1);
}

body.theme-light .app-sidebar-logo img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(18%) sepia(17%) saturate(1000%) hue-rotate(132deg) brightness(92%) contrast(92%);
}

body.theme-light .app-sidebar-link {
  color: #183832;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(238, 246, 242, 0.88));
  border: 1px solid rgba(15, 107, 88, 0.2);
  box-shadow: 0 8px 20px rgba(16, 36, 31, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.theme-light .app-sidebar-link:hover,
body.theme-light .app-sidebar-link.active {
  color: #0b2d26;
  background: linear-gradient(180deg, rgba(228, 247, 240, 0.96), rgba(207, 235, 225, 0.98));
  border-color: rgba(15, 107, 88, 0.34);
  box-shadow: 0 10px 24px rgba(15, 107, 88, 0.12), inset 4px 0 0 rgba(15, 107, 88, 0.85);
}

body.theme-light .app-sidebar-logout {
  color: rgba(16, 36, 31, 0.76);
  background: rgba(15, 107, 88, 0.06);
  border-color: rgba(15, 107, 88, 0.12);
}

body.theme-light .app-sidebar-logout:hover {
  color: #ffffff;
  background: rgba(190, 42, 42, 0.96);
  border-color: rgba(168, 34, 34, 0.42);
  box-shadow: 0 10px 20px rgba(160, 28, 28, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.theme-light .app-sidebar-bottom .app-sidebar-footer {
  border-top-color: rgba(16, 36, 31, 0.12);
}

/* ========================================
   ESPACIADOS DE VISTAS AUTENTICADAS
======================================== */
.inside-app-body .dashboard-header,
.inside-app-body .tools-app-header,
.inside-app-body .budget-header {
  padding-top: 72px;
}

.inside-app-body .profile-app {
  padding-top: 52px;
}

/* ========================================
   WEBTOOLS | TÍTULOS CONSISTENTES
======================================== */
.inside-app-body .tools-app-title,
.inside-app-body .budget-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.inside-app-body .tools-app-title span,
.inside-app-body .budget-title span {
  color: #72efd3;
  text-shadow: 0 0 10px rgba(114, 239, 211, 0.22);
}

.inside-app-body .tools-app-subtitle,
.inside-app-body .budget-subtitle {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.7;
}

/* ========================================
   HEADER | BOTÓN DIRECTO DE LOGIN
======================================== */
.nav-login-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-login-direct:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ========================================
   FLOATING ACTIONS | VISTAS AUTENTICADAS
======================================== */
.inside-app-body .theme-toggle,
.inside-app-body .language-float,
.inside-app-body .whatsapp-float {
  z-index: 10080;
  pointer-events: auto;
}

.inside-app-body .theme-toggle {
  left: calc(var(--app-sidebar-width) + 18px);
  bottom: 18px;
}

.inside-app-body .language-float {
  right: 28px;
  bottom: 92px;
}

.inside-app-body .whatsapp-float {
  right: 28px;
  bottom: 28px;
}

/* ========================================
   RESPONSIVE APP LAYOUT
======================================== */
@media (max-width: 992px) {
  .app-sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(114, 239, 211, 0.14);
  }
  .app-sidebar-logo {
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    border-bottom: 0;
  }
  .app-sidebar-logo img {
    width: 132px;
    filter: none;
  }
  .app-sidebar-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    margin: 0;
  }
  .app-sidebar-link {
    min-height: auto;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    white-space: nowrap;
  }
  .app-sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
    padding-top: 0;
  }
  .app-sidebar-profile-link {
    min-height: auto;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    opacity: 0.92;
  }
  .app-sidebar-footer,
  .app-sidebar-bottom .app-sidebar-footer {
    margin-top: 0;
    margin-left: auto;
    padding-top: 0;
    border-top: 0;
    flex: 0 0 auto;
  }
  .inside-app-body main {
    margin-left: 0;
  }
  .inside-app-body .theme-toggle {
    left: 16px;
    bottom: 16px;
  }
  .inside-app-body .language-float {
    right: 18px;
    bottom: 86px;
  }
  .inside-app-body .whatsapp-float {
    right: 18px;
    bottom: 24px;
  }
  .inside-app-body .dashboard-header,
  .inside-app-body .tools-app-header,
  .inside-app-body .budget-header {
    padding-top: 42px;
  }
  .inside-app-body .profile-app {
    padding-top: 32px;
  }
}
@media (max-width: 768px) {
  .theme-toggle {
    left: 16px;
    bottom: 16px;
    padding: 0.62rem 0.82rem;
    font-size: 0.78rem;
  }
  .app-sidebar {
    align-items: flex-start;
  }
  .app-sidebar-logo img {
    width: 112px;
  }
  .app-sidebar-logout {
    padding: 0.7rem 0.85rem;
    white-space: nowrap;
  }
}

/*# sourceMappingURL=styles.css.map */


/* ========================================
   PRESUPUESTOS - UNIFICACIÓN VISUAL DE PLANTILLAS
   Alinea plantillas antiguas (Muros y similares) con el estilo compacto
   usado por plantillas discretizadas como Estructuras metálicas.
======================================== */
.budget-template-form .budget-form-section {
  margin-bottom: 12px;
  padding: 18px 14px 14px;
  border: 1px solid rgba(114, 239, 211, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.budget-template-form .budget-form-section-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.budget-template-form .budget-form-section-header > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(114, 239, 211, 0.12);
  color: #72efd3;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.budget-template-form .budget-form-section-header h4 {
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
}

.budget-template-form .budget-form-section-header p {
  margin: 3px 0 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.budget-template-form .budget-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 12px;
}

.budget-template-form .budget-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.budget-template-form .budget-field label,
.budget-template-form .budget-field > span,
.budget-template-form .budget-field .field-label {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
}

.budget-template-form .budget-field input,
.budget-template-form .budget-field select,
.budget-template-form .budget-field textarea,
.budget-template-form .budget-input-group input,
.budget-template-form .budget-input-group select {
  width: 100%;
  min-height: 34px;
  height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(245, 248, 248, 0.94);
  color: #102126;
  font-size: 0.78rem;
  font-weight: 700;
  outline: none;
}

.budget-template-form .budget-input-group {
  display: flex;
  align-items: stretch;
  min-height: 34px;
  height: 34px;
}

.budget-template-form .budget-input-group input,
.budget-template-form .budget-input-group select {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.budget-template-form .budget-input-group span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 0;
  border-radius: 0 9px 9px 0;
  background: rgba(114, 239, 211, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
}

.budget-template-form .budget-field input:focus,
.budget-template-form .budget-field select:focus,
.budget-template-form .budget-field textarea:focus,
.budget-template-form .budget-input-group input:focus,
.budget-template-form .budget-input-group select:focus {
  border-color: rgba(114, 239, 211, 0.65);
  box-shadow: 0 0 0 3px rgba(114, 239, 211, 0.1);
}

body.theme-light .budget-template-form .budget-form-section {
  border-color: rgba(5, 150, 120, 0.18);
  background: rgba(255, 255, 255, 0.78);
}

body.theme-light .budget-template-form .budget-form-section-header h4 {
  color: #102126;
}

body.theme-light .budget-template-form .budget-form-section-header p,
body.theme-light .budget-template-form .budget-field label,
body.theme-light .budget-template-form .budget-field > span,
body.theme-light .budget-template-form .budget-field .field-label {
  color: rgba(16, 33, 38, 0.72);
}

body.theme-light .budget-template-form .budget-input-group span {
  color: #047866;
  background: rgba(5, 150, 120, 0.12);
  border-color: rgba(5, 150, 120, 0.18);
}

@media (max-width: 1100px) {
  .budget-template-form .budget-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ========================================
   HOJALATERIA - AJUSTE VISUAL DE ESPACIADO
======================================== */
.budget-template-form .hojalateria-layout {
  display: grid;
  gap: 1.15rem;
}

.budget-template-form .hojalateria-top-grid {
  grid-template-columns: minmax(220px, 320px) !important;
  margin-bottom: 0.15rem;
}

.budget-template-form .hojalateria-waste-field {
  max-width: 320px;
}

.budget-template-form .hojalateria-line-item {
  padding: 1rem 0.95rem;
  border: 1px solid rgba(114, 239, 211, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(114, 239, 211, 0.04) 100%);
}

.budget-template-form .hojalateria-line-grid {
  gap: 1rem 1.15rem !important;
  align-items: end;
}

.budget-template-form .hojalateria-line-item + .hojalateria-line-item {
  margin-top: 0.1rem;
}

body.theme-light .budget-template-form .hojalateria-line-item {
  border-color: rgba(0, 107, 93, 0.14);
  background: linear-gradient(180deg, rgba(0, 107, 93, 0.04) 0%, rgba(255, 255, 255, 0.7) 100%);
}

body:not(.theme-light) .budget-template-form .hojalateria-line-item,
body.theme-dark .budget-template-form .hojalateria-line-item,
body.dark-mode .budget-template-form .hojalateria-line-item {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

@media (max-width: 1100px) {
  .budget-template-form .hojalateria-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .budget-template-form .hojalateria-waste-field {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .budget-template-form .hojalateria-line-item {
    padding: 0.9rem 0.8rem;
    border-radius: 14px;
  }

  .budget-template-form .hojalateria-top-grid,
  .budget-template-form .hojalateria-line-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
}


/* ========================================
   SUPPORT HELP FLOAT / TICKETS
======================================== */
.inside-support-help-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 10090;
  min-width: 58px;
  height: 58px;
  padding: 0 0.88rem;
  border: 1px solid rgba(114, 239, 211, 0.3);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(13, 51, 72, 0.96), rgba(10, 98, 82, 0.94));
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 0 6px rgba(114, 239, 211, 0.08);
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  letter-spacing: 0.01em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.inside-support-help-float:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(114, 239, 211, 0.5);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 22px rgba(114, 239, 211, 0.16), 0 0 0 7px rgba(114, 239, 211, 0.1);
}

.inside-support-help-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.13);
  color: #72efd3;
  font-size: 1.08rem;
  line-height: 1;
}

.inside-support-help-text { font-size: 0.86rem; }
.inside-support-modal[hidden] { display: none; }
.inside-support-modal { position: fixed; inset: 0; z-index: 10120; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.inside-support-backdrop { position: absolute; inset: 0; background: rgba(2, 10, 17, 0.68); backdrop-filter: blur(8px); }
.inside-support-dialog { position: relative; z-index: 1; width: min(520px, 100%); border: 1px solid rgba(114, 239, 211, 0.18); border-radius: 24px; padding: 1.35rem; background: linear-gradient(180deg, rgba(8, 31, 45, 0.98) 0%, rgba(5, 19, 31, 0.98) 100%); box-shadow: 0 28px 72px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07); color: #ffffff; }
.inside-support-close { position: absolute; top: 0.8rem; right: 0.8rem; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.85); cursor: pointer; font-size: 1.35rem; line-height: 1; }
.inside-support-dialog-header { padding-right: 2.2rem; margin-bottom: 1rem; }
.inside-support-kicker { margin: 0 0 0.2rem; color: #72efd3; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.inside-support-dialog h2 { margin: 0; color: #ffffff; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.inside-support-dialog-header p:last-child { margin: 0.45rem 0 0; color: rgba(255, 255, 255, 0.68); line-height: 1.55; }
.inside-support-form { display: grid; gap: 0.95rem; }
.inside-support-field { display: grid; gap: 0.38rem; }
.inside-support-field span { color: rgba(255, 255, 255, 0.78); font-size: 0.84rem; font-weight: 800; }
.inside-support-field input, .inside-support-field select, .inside-support-field textarea { width: 100%; border: 1px solid rgba(114, 239, 211, 0.16); border-radius: 14px; padding: 0.78rem 0.9rem; background: rgba(255, 255, 255, 0.055); color: #ffffff; font-family: inherit; font-size: 0.95rem; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.inside-support-field select option { color: #10241f; }
.inside-support-field textarea { min-height: 118px; resize: vertical; }
.inside-support-field input:focus, .inside-support-field select:focus, .inside-support-field textarea:focus { border-color: rgba(114, 239, 211, 0.42); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 4px rgba(114, 239, 211, 0.08); }
.inside-support-actions { display: flex; justify-content: flex-end; }
.inside-support-submit { border: 0; border-radius: 999px; padding: 0.78rem 1.15rem; background: linear-gradient(135deg, #72efd3, #4cc3a7); color: #06231e; cursor: pointer; font-family: inherit; font-weight: 900; box-shadow: 0 12px 26px rgba(114, 239, 211, 0.16); }
.inside-support-submit:disabled { cursor: wait; opacity: 0.7; }
.inside-support-feedback { margin: 0; padding: 0.78rem 0.9rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.45; }
.inside-support-feedback[data-type="success"] { border: 1px solid rgba(114, 239, 211, 0.24); background: rgba(114, 239, 211, 0.1); color: #bffbed; }
.inside-support-feedback[data-type="error"] { border: 1px solid rgba(255, 121, 121, 0.24); background: rgba(255, 121, 121, 0.1); color: #ffd1d1; }
body.theme-light .inside-support-help-float { background: linear-gradient(135deg, #ffffff, #e9fbf6); color: var(--inside-light-text); border-color: rgba(15, 92, 77, 0.16); box-shadow: 0 14px 30px rgba(22, 39, 35, 0.12), 0 0 0 6px rgba(15, 92, 77, 0.05); }
body.theme-light .inside-support-help-icon { background: rgba(15, 92, 77, 0.09); color: var(--inside-light-accent); }
body.theme-light .inside-support-dialog { background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 245, 238, 0.98) 100%); color: var(--inside-light-text); border-color: rgba(16, 36, 31, 0.1); }
body.theme-light .inside-support-dialog h2, body.theme-light .inside-support-field span { color: var(--inside-light-text); }
body.theme-light .inside-support-dialog-header p:last-child { color: var(--inside-light-muted); }
body.theme-light .inside-support-field input, body.theme-light .inside-support-field select, body.theme-light .inside-support-field textarea { background: rgba(255, 255, 255, 0.8); color: var(--inside-light-text); border-color: rgba(16, 36, 31, 0.12); }
body.theme-light .inside-support-close { color: var(--inside-light-text); background: rgba(16, 36, 31, 0.05); border-color: rgba(16, 36, 31, 0.1); }
@media (max-width: 992px) { .inside-app-body .inside-support-help-float, .inside-support-help-float { right: 18px; bottom: 18px; } }
@media (max-width: 768px) { .inside-support-help-float { right: 16px; bottom: 18px; width: 54px; min-width: 54px; height: 54px; padding: 0; } .inside-support-help-text { display: none; } .inside-support-dialog { border-radius: 20px; padding: 1.05rem; } }


/* Orden flotante dentro del dashboard autenticado:
   arriba idioma, centro WhatsApp, último Ayuda. */
.inside-app-body .language-float {
  right: 28px;
  bottom: 156px;
}

.inside-app-body .whatsapp-float {
  right: 28px;
  bottom: 92px;
}

.inside-app-body .inside-support-help-float {
  right: 28px;
  bottom: 28px;
}

.inside-support-field-hint {
  margin-top: -0.14rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  line-height: 1.45;
}

.inside-support-file-control {
  display: grid;
  gap: 0.65rem;
}

.inside-support-file-control input[type="file"] {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0 !important;
}

.inside-support-file-label {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(114, 239, 211, 0.2);
  border-radius: 999px;
  background: rgba(114, 239, 211, 0.08);
  color: #72efd3 !important;
  cursor: pointer;
  font-size: 0.84rem !important;
  font-weight: 900 !important;
}

.inside-support-screenshot-preview {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.72rem;
  border: 1px solid rgba(114, 239, 211, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.inside-support-screenshot-preview[hidden] {
  display: none;
}

.inside-support-screenshot-preview-image {
  width: 86px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.inside-support-screenshot-preview-meta {
  min-width: 0;
  display: grid;
  gap: 0.26rem;
}

.inside-support-screenshot-preview-meta strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
}

.inside-support-screenshot-preview-name {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.78rem !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inside-support-remove-screenshot {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: #72efd3;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: underline;
}

body.theme-light .inside-support-field-hint,
body.theme-light .inside-support-screenshot-preview-name {
  color: var(--inside-light-muted) !important;
}

body.theme-light .inside-support-file-label {
  background: rgba(15, 92, 77, 0.06);
  color: var(--inside-light-accent) !important;
  border-color: rgba(15, 92, 77, 0.16);
}

body.theme-light .inside-support-screenshot-preview {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(16, 36, 31, 0.1);
}

body.theme-light .inside-support-screenshot-preview-meta strong {
  color: var(--inside-light-text);
}

@media (max-width: 992px) {
  .inside-app-body .language-float { right: 18px; bottom: 146px; }
  .inside-app-body .whatsapp-float { right: 18px; bottom: 82px; }
  .inside-app-body .inside-support-help-float { right: 18px; bottom: 18px; }
}

@media (max-width: 768px) {
  .inside-app-body .language-float { right: 16px; bottom: 142px; }
  .inside-app-body .whatsapp-float { right: 16px; bottom: 80px; }
  .inside-app-body .inside-support-help-float { right: 16px; bottom: 18px; }
}


/* ========================================
   SUPPORT HELP | SCREENSHOT SELECTION FIX
======================================== */
.inside-support-file-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.inside-support-file-name {
  min-width: 0;
  max-width: min(310px, 100%);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-light .inside-support-file-name {
  color: var(--inside-light-muted) !important;
}

@media (max-width: 520px) {
  .inside-support-file-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .inside-support-file-name {
    max-width: 100%;
  }
}


/* ========================================
   SUPPORT HELP | FILE INPUT CLICK SCOPE FIX
======================================== */
.inside-support-file-label {
  border: 1px solid rgba(114, 239, 211, 0.2);
  appearance: none;
  -webkit-appearance: none;
}

.inside-support-file-label:focus-visible {
  outline: none;
  border-color: rgba(114, 239, 211, 0.5);
  box-shadow: 0 0 0 4px rgba(114, 239, 211, 0.11);
}


/* ========================================
   SUPPORT HELP | SCREENSHOT BUTTON HOVER GLOW
   Aplica únicamente al botón "Seleccionar captura" / "Captura seleccionada".
======================================== */
.inside-support-file-label {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.inside-support-file-label::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(114, 239, 211, 0.32), transparent 62%),
    linear-gradient(135deg, rgba(114, 239, 211, 0.18), rgba(10, 98, 82, 0.08));
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.inside-support-file-label:hover,
.inside-support-file-label:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(114, 239, 211, 0.58);
  background: rgba(114, 239, 211, 0.14);
  color: #ffffff !important;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    0 0 16px rgba(114, 239, 211, 0.22),
    0 0 0 5px rgba(114, 239, 211, 0.08);
}

.inside-support-file-label:hover::before,
.inside-support-file-label:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

body.theme-light .inside-support-file-label:hover,
body.theme-light .inside-support-file-label:focus-visible {
  background: rgba(15, 92, 77, 0.12);
  color: var(--inside-light-accent) !important;
  border-color: rgba(15, 92, 77, 0.32);
  box-shadow:
    0 10px 22px rgba(22, 39, 35, 0.13),
    0 0 16px rgba(15, 92, 77, 0.14),
    0 0 0 5px rgba(15, 92, 77, 0.06);
}


/* ========================================
   DASHBOARD | USER SUPPORT TICKETS
======================================== */
.dashboard-support-widget {
  min-height: 320px;
}

.dashboard-ticket-list {
  display: grid;
  gap: 0.72rem;
}

.dashboard-ticket-card {
  min-width: 0;
}

.dashboard-ticket-open,
.dashboard-ticket-empty {
  width: 100%;
  min-height: 74px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(114, 239, 211, 0.13);
  border-radius: 16px;
  display: grid;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.dashboard-ticket-open:hover,
.dashboard-ticket-open:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(114, 239, 211, 0.36);
  background: rgba(114, 239, 211, 0.075);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18), 0 0 16px rgba(114, 239, 211, 0.08);
  outline: none;
}

.dashboard-ticket-open strong,
.dashboard-ticket-empty strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-ticket-open small,
.dashboard-ticket-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  line-height: 1.45;
}

.dashboard-ticket-status {
  width: fit-content;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(114, 239, 211, 0.11);
  color: #72efd3;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-ticket-status-respondido {
  background: rgba(114, 239, 211, 0.16);
  color: #bffbed;
}

.dashboard-ticket-status-en_revision {
  background: rgba(255, 207, 102, 0.14);
  color: #ffe0a3;
}

.dashboard-ticket-status-cerrado {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.62);
}

.dashboard-ticket-status-abierto {
  background: rgba(94, 179, 255, 0.14);
  color: #b8dcff;
}

.dashboard-ticket-error {
  border-color: rgba(255, 121, 121, 0.2);
  background: rgba(255, 121, 121, 0.08);
}

.dashboard-ticket-modal[hidden] {
  display: none;
}

.dashboard-ticket-modal {
  position: fixed;
  inset: 0;
  z-index: 10130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.dashboard-ticket-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 17, 0.72);
  backdrop-filter: blur(8px);
}

.dashboard-ticket-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(82vh, 780px);
  overflow: auto;
  border: 1px solid rgba(114, 239, 211, 0.18);
  border-radius: 24px;
  padding: 1.3rem;
  background: linear-gradient(180deg, rgba(8, 31, 45, 0.99) 0%, rgba(5, 19, 31, 0.99) 100%);
  color: #ffffff;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.dashboard-ticket-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.dashboard-ticket-detail-header {
  padding-right: 2.3rem;
  margin-bottom: 1rem;
  display: grid;
  gap: 0.4rem;
}

.dashboard-ticket-detail-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.dashboard-ticket-detail-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.9rem;
}

.dashboard-ticket-meta-grid {
  margin: 0 0 1.1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-ticket-meta-grid div {
  padding: 0.72rem;
  border: 1px solid rgba(114, 239, 211, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-ticket-meta-grid dt {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-ticket-meta-grid dd {
  margin: 0.25rem 0 0;
  color: #ffffff;
  font-weight: 800;
}

.dashboard-ticket-conversation {
  display: grid;
  gap: 0.75rem;
}

.dashboard-ticket-conversation h3 {
  margin: 0.2rem 0;
  color: #ffffff;
  font-size: 1.04rem;
}

.dashboard-ticket-message {
  padding: 0.86rem;
  border: 1px solid rgba(114, 239, 211, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.dashboard-ticket-message-soporte,
.dashboard-ticket-message-admin {
  border-color: rgba(114, 239, 211, 0.22);
  background: rgba(114, 239, 211, 0.08);
}

.dashboard-ticket-message > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.dashboard-ticket-message strong {
  color: #72efd3;
  text-transform: uppercase;
}

.dashboard-ticket-message p {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  white-space: pre-wrap;
}

.dashboard-ticket-attachments {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 0.7rem;
}

.dashboard-ticket-attachments a {
  padding: 0.45rem;
  border: 1px solid rgba(114, 239, 211, 0.14);
  border-radius: 14px;
  display: grid;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-ticket-attachments img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
}

.dashboard-ticket-attachments span {
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-ticket-reply-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.dashboard-ticket-reply-form label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 900;
}

.dashboard-ticket-reply-form textarea {
  width: 100%;
  min-height: 92px;
  border: 1px solid rgba(114, 239, 211, 0.16);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  font-family: inherit;
  resize: vertical;
  outline: none;
}

.dashboard-ticket-reply-form textarea:focus {
  border-color: rgba(114, 239, 211, 0.42);
  box-shadow: 0 0 0 4px rgba(114, 239, 211, 0.08);
}

.dashboard-ticket-reply-actions {
  display: flex;
  justify-content: flex-end;
}

.dashboard-ticket-reply-feedback {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 121, 121, 0.1);
  color: #ffd1d1;
  font-size: 0.86rem;
}

.dashboard-ticket-loading {
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

body.theme-light .dashboard-ticket-open,
body.theme-light .dashboard-ticket-empty,
body.theme-light .dashboard-ticket-meta-grid div,
body.theme-light .dashboard-ticket-message,
body.theme-light .dashboard-ticket-attachments a {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(16, 36, 31, 0.1);
}

body.theme-light .dashboard-ticket-open strong,
body.theme-light .dashboard-ticket-empty strong,
body.theme-light .dashboard-ticket-detail-header h2,
body.theme-light .dashboard-ticket-conversation h3,
body.theme-light .dashboard-ticket-meta-grid dd {
  color: var(--inside-light-text);
}

body.theme-light .dashboard-ticket-open small,
body.theme-light .dashboard-ticket-empty p,
body.theme-light .dashboard-ticket-detail-header p,
body.theme-light .dashboard-ticket-message p,
body.theme-light .dashboard-ticket-reply-form label,
body.theme-light .dashboard-ticket-attachments a {
  color: var(--inside-light-muted);
}

body.theme-light .dashboard-ticket-dialog {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 245, 238, 0.98) 100%);
  color: var(--inside-light-text);
  border-color: rgba(16, 36, 31, 0.1);
}

body.theme-light .dashboard-ticket-modal-close {
  color: var(--inside-light-text);
  background: rgba(16, 36, 31, 0.05);
  border-color: rgba(16, 36, 31, 0.1);
}

body.theme-light .dashboard-ticket-reply-form textarea {
  background: rgba(255, 255, 255, 0.8);
  color: var(--inside-light-text);
  border-color: rgba(16, 36, 31, 0.12);
}

@media (max-width: 768px) {
  .dashboard-ticket-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-ticket-dialog {
    max-height: 88vh;
    border-radius: 20px;
    padding: 1.05rem;
  }
}

@media (max-width: 520px) {
  .dashboard-ticket-meta-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-ticket-message > div:first-child {
    flex-direction: column;
    gap: 0.18rem;
  }
}


/* ========================================
   DASHBOARD | SUPPORT WIDGET LAYOUT FIX
======================================== */
.dashboard-support-widget {
  grid-column: span 4;
  min-width: 0;
}

.dashboard-support-widget .dashboard-widget-header {
  align-items: flex-start;
}

.dashboard-support-widget .dashboard-widget-header h2 {
  line-height: 1.08;
}

@media (max-width: 1100px) {
  .dashboard-support-widget,
  .dashboard-quick-widget {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .dashboard-support-widget,
  .dashboard-widget-large,
  .dashboard-news-widget,
  .dashboard-quick-widget,
  .dashboard-pending-widget {
    grid-column: 1 / -1;
  }
}


/* ========================================
   DASHBOARD | SUPPORT TICKET STATUS COLORS / GLOW
======================================== */
.dashboard-ticket-status {
  border: 1px solid rgba(114, 239, 211, 0.2);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

.dashboard-ticket-open:hover .dashboard-ticket-status,
.dashboard-ticket-open:focus-visible .dashboard-ticket-status {
  transform: translateY(-1px);
}

.dashboard-ticket-status-abierto {
  border-color: rgba(114, 239, 211, 0.34);
  background: rgba(114, 239, 211, 0.14);
  color: #9ff7e1;
  box-shadow: 0 0 12px rgba(114, 239, 211, 0.12);
}

.dashboard-ticket-status-en_progreso {
  border-color: rgba(86, 182, 255, 0.34);
  background: rgba(86, 182, 255, 0.14);
  color: #b8dcff;
  box-shadow: 0 0 12px rgba(86, 182, 255, 0.12);
}

.dashboard-ticket-status-esperando_respuesta {
  border-color: rgba(255, 207, 102, 0.38);
  background: rgba(255, 207, 102, 0.16);
  color: #ffe0a3;
  box-shadow: 0 0 12px rgba(255, 207, 102, 0.14);
}

.dashboard-ticket-status-cerrado {
  border-color: rgba(255, 121, 121, 0.34);
  background: rgba(255, 121, 121, 0.15);
  color: #ffd1d1;
  box-shadow: 0 0 12px rgba(255, 121, 121, 0.12);
}

.dashboard-ticket-open:hover .dashboard-ticket-status-abierto,
.dashboard-ticket-open:focus-visible .dashboard-ticket-status-abierto {
  border-color: rgba(114, 239, 211, 0.62);
  background: rgba(114, 239, 211, 0.2);
  box-shadow:
    0 0 18px rgba(114, 239, 211, 0.22),
    0 0 0 5px rgba(114, 239, 211, 0.07);
}

.dashboard-ticket-open:hover .dashboard-ticket-status-en_progreso,
.dashboard-ticket-open:focus-visible .dashboard-ticket-status-en_progreso {
  border-color: rgba(86, 182, 255, 0.62);
  background: rgba(86, 182, 255, 0.2);
  box-shadow:
    0 0 18px rgba(86, 182, 255, 0.2),
    0 0 0 5px rgba(86, 182, 255, 0.07);
}

.dashboard-ticket-open:hover .dashboard-ticket-status-esperando_respuesta,
.dashboard-ticket-open:focus-visible .dashboard-ticket-status-esperando_respuesta {
  border-color: rgba(255, 207, 102, 0.68);
  background: rgba(255, 207, 102, 0.22);
  box-shadow:
    0 0 18px rgba(255, 207, 102, 0.22),
    0 0 0 5px rgba(255, 207, 102, 0.08);
}

.dashboard-ticket-open:hover .dashboard-ticket-status-cerrado,
.dashboard-ticket-open:focus-visible .dashboard-ticket-status-cerrado {
  border-color: rgba(255, 121, 121, 0.64);
  background: rgba(255, 121, 121, 0.22);
  box-shadow:
    0 0 18px rgba(255, 121, 121, 0.2),
    0 0 0 5px rgba(255, 121, 121, 0.07);
}

.dashboard-ticket-closed-note {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 121, 121, 0.24);
  border-radius: 14px;
  background: rgba(255, 121, 121, 0.1);
  color: #ffd1d1;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

body.theme-light .dashboard-ticket-status-abierto {
  border-color: rgba(15, 92, 77, 0.28);
  background: rgba(15, 92, 77, 0.1);
  color: #0f5c4d;
  box-shadow: 0 0 12px rgba(15, 92, 77, 0.08);
}

body.theme-light .dashboard-ticket-status-en_progreso {
  border-color: rgba(30, 105, 170, 0.28);
  background: rgba(30, 105, 170, 0.1);
  color: #1e69aa;
  box-shadow: 0 0 12px rgba(30, 105, 170, 0.08);
}

body.theme-light .dashboard-ticket-status-esperando_respuesta {
  border-color: rgba(160, 104, 10, 0.3);
  background: rgba(255, 207, 102, 0.18);
  color: #875700;
  box-shadow: 0 0 12px rgba(160, 104, 10, 0.08);
}

body.theme-light .dashboard-ticket-status-cerrado {
  border-color: rgba(170, 45, 45, 0.28);
  background: rgba(170, 45, 45, 0.1);
  color: #a52c2c;
  box-shadow: 0 0 12px rgba(170, 45, 45, 0.08);
}

body.theme-light .dashboard-ticket-closed-note {
  background: rgba(170, 45, 45, 0.08);
  border-color: rgba(170, 45, 45, 0.18);
  color: #a52c2c;
}


/* ========================================
   DASHBOARD | SUPPORT TICKET STATUS PULSE GLOW
======================================== */
@keyframes insideTicketStatusPulseGreen {
  0%, 100% { box-shadow: 0 0 10px rgba(114, 239, 211, 0.12), 0 0 0 0 rgba(114, 239, 211, 0.14); }
  50% { box-shadow: 0 0 18px rgba(114, 239, 211, 0.3), 0 0 0 5px rgba(114, 239, 211, 0.06); }
}

@keyframes insideTicketStatusPulseBlue {
  0%, 100% { box-shadow: 0 0 10px rgba(86, 182, 255, 0.12), 0 0 0 0 rgba(86, 182, 255, 0.14); }
  50% { box-shadow: 0 0 18px rgba(86, 182, 255, 0.28), 0 0 0 5px rgba(86, 182, 255, 0.06); }
}

@keyframes insideTicketStatusPulseYellow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 207, 102, 0.12), 0 0 0 0 rgba(255, 207, 102, 0.14); }
  50% { box-shadow: 0 0 18px rgba(255, 207, 102, 0.3), 0 0 0 5px rgba(255, 207, 102, 0.07); }
}

@keyframes insideTicketStatusPulseRed {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 121, 121, 0.12), 0 0 0 0 rgba(255, 121, 121, 0.14); }
  50% { box-shadow: 0 0 18px rgba(255, 121, 121, 0.3), 0 0 0 5px rgba(255, 121, 121, 0.06); }
}

.dashboard-ticket-status-abierto { animation: insideTicketStatusPulseGreen 2.7s ease-in-out infinite; }
.dashboard-ticket-status-en_progreso { animation: insideTicketStatusPulseBlue 2.7s ease-in-out infinite; }
.dashboard-ticket-status-esperando_respuesta { animation: insideTicketStatusPulseYellow 2.7s ease-in-out infinite; }
.dashboard-ticket-status-cerrado { animation: insideTicketStatusPulseRed 2.7s ease-in-out infinite; }

.dashboard-ticket-open:hover .dashboard-ticket-status,
.dashboard-ticket-open:focus-visible .dashboard-ticket-status {
  animation-duration: 1.45s;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-ticket-status-abierto,
  .dashboard-ticket-status-en_progreso,
  .dashboard-ticket-status-esperando_respuesta,
  .dashboard-ticket-status-cerrado {
    animation: none;
  }
}


/* ========================================
   DASHBOARD | USER CLOSE TICKET
======================================== */
.dashboard-ticket-close-form {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 121, 121, 0.18);
  border-radius: 16px;
  display: grid;
  gap: 0.65rem;
  background: rgba(255, 121, 121, 0.065);
}

.dashboard-ticket-close-form label {
  color: #ffd1d1;
  font-size: 0.88rem;
  font-weight: 950;
}

.dashboard-ticket-close-form p {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
  line-height: 1.45;
}

.dashboard-ticket-close-form textarea {
  width: 100%;
  min-height: 76px;
  border: 1px solid rgba(255, 121, 121, 0.2);
  border-radius: 14px;
  padding: 0.78rem 0.9rem;
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  font-family: inherit;
  resize: vertical;
  outline: none;
}

.dashboard-ticket-close-form textarea:focus {
  border-color: rgba(255, 121, 121, 0.46);
  box-shadow: 0 0 0 4px rgba(255, 121, 121, 0.08);
}

.dashboard-ticket-close-button {
  border: 1px solid rgba(255, 121, 121, 0.26);
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  background: rgba(255, 121, 121, 0.16);
  color: #ffd1d1;
  cursor: pointer;
  font-family: inherit;
  font-weight: 950;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-ticket-close-button:hover,
.dashboard-ticket-close-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 121, 121, 0.56);
  background: rgba(255, 121, 121, 0.24);
  box-shadow: 0 0 18px rgba(255, 121, 121, 0.16), 0 0 0 5px rgba(255, 121, 121, 0.06);
  outline: none;
}

.dashboard-ticket-close-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.dashboard-ticket-close-feedback {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 121, 121, 0.12);
  color: #ffd1d1;
  font-size: 0.86rem;
}

body.theme-light .dashboard-ticket-close-form {
  background: rgba(170, 45, 45, 0.06);
  border-color: rgba(170, 45, 45, 0.14);
}

body.theme-light .dashboard-ticket-close-form label,
body.theme-light .dashboard-ticket-close-button {
  color: #a52c2c;
}

body.theme-light .dashboard-ticket-close-form p {
  color: var(--inside-light-muted);
}

body.theme-light .dashboard-ticket-close-form textarea {
  background: rgba(255, 255, 255, 0.8);
  color: var(--inside-light-text);
  border-color: rgba(170, 45, 45, 0.16);
}

body.theme-light .dashboard-ticket-close-button {
  background: rgba(170, 45, 45, 0.08);
  border-color: rgba(170, 45, 45, 0.18);
}

body.theme-light .dashboard-ticket-close-button:hover,
body.theme-light .dashboard-ticket-close-button:focus-visible {
  background: rgba(170, 45, 45, 0.12);
  border-color: rgba(170, 45, 45, 0.32);
  box-shadow: 0 0 18px rgba(170, 45, 45, 0.12), 0 0 0 5px rgba(170, 45, 45, 0.05);
}


/* ========================================
   DASHBOARD | TICKET DETAIL COMPACT META
======================================== */
.dashboard-ticket-meta-grid {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 0.55rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.dashboard-ticket-meta-grid div {
  min-height: 68px;
  padding: 0.62rem 0.68rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
  border-radius: 13px;
}

.dashboard-ticket-meta-grid dt {
  margin: 0;
  line-height: 1.15;
  font-size: 0.66rem;
}

.dashboard-ticket-meta-grid dd {
  margin: 0;
  line-height: 1.22;
  font-size: 0.9rem;
}

.dashboard-ticket-meta-grid div:has(dt + dd) dd {
  display: flex;
  align-items: center;
  min-height: 1.15rem;
}

.dashboard-ticket-detail-header {
  margin-bottom: 0.85rem;
}

.dashboard-ticket-detail-header h2 {
  font-size: clamp(1.16rem, 1.8vw, 1.48rem);
}

.dashboard-ticket-detail-header p {
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .dashboard-ticket-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-ticket-meta-grid div {
    min-height: 64px;
  }
}

@media (max-width: 520px) {
  .dashboard-ticket-meta-grid {
    grid-template-columns: 1fr;
  }
}


/* ========================================
   LIGHT MODE | DASHBOARD TEXTURE / CONTRAST
   Textura sutil para evitar que el modo claro se vea plano.
======================================== */
body.theme-light.inside-app-body::before {
  opacity: 0.96;
  background:
    linear-gradient(180deg, rgba(249, 247, 242, 0.93) 0%, rgba(244, 241, 235, 0.92) 100%),
    linear-gradient(rgba(91, 108, 102, 0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 108, 102, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.42), transparent 26%),
    radial-gradient(circle at 76% 22%, rgba(210, 225, 220, 0.22), transparent 28%),
    url("/assets/hero-building-xray.png") right center/cover no-repeat,
    url("/assets/hero-texture.png") center top/cover no-repeat,
    #f5f1e8;
  background-size:
    auto,
    40px 40px,
    40px 40px,
    860px 640px,
    900px 700px,
    cover,
    cover,
    auto;
  background-blend-mode:
    normal,
    normal,
    normal,
    screen,
    multiply,
    luminosity,
    overlay,
    normal;
  filter: saturate(0.35) contrast(0.92) brightness(1.03);
  mix-blend-mode: normal;
}

body.theme-light .dashboard-welcome-card,
body.theme-light .dashboard-widget {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.91) 0%, rgba(248, 250, 246, 0.87) 100%),
    linear-gradient(135deg, rgba(15, 92, 77, 0.045), rgba(255, 255, 255, 0));
  border-color: rgba(15, 92, 77, 0.13);
  box-shadow:
    0 18px 44px rgba(22, 39, 35, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(15, 92, 77, 0.04);
}

body.theme-light .dashboard-widget::before,
body.theme-light .dashboard-welcome-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(15, 92, 77, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(15, 92, 77, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 78%);
  opacity: 0.62;
}

body.theme-light .dashboard-ticket-open,
body.theme-light .dashboard-news-item,
body.theme-light .dashboard-quick-card,
body.theme-light .dashboard-ticket-meta-grid div,
body.theme-light .dashboard-ticket-message {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(250, 251, 247, 0.66)),
    linear-gradient(135deg, rgba(15, 92, 77, 0.035), transparent);
  border-color: rgba(15, 92, 77, 0.13);
  box-shadow:
    0 10px 24px rgba(22, 39, 35, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body.theme-light .dashboard-ticket-dialog {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(248, 250, 246, 0.975) 100%),
    linear-gradient(135deg, rgba(15, 92, 77, 0.045), transparent);
  box-shadow:
    0 28px 72px rgba(22, 39, 35, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.theme-light .dashboard-ticket-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(15, 92, 77, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(15, 92, 77, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 72%);
  opacity: 0.55;
}

body.theme-light .dashboard-ticket-modal-body {
  position: relative;
  z-index: 1;
}


/* ========================================
   MODALS | CLOSE BUTTON DANGER HOVER + CLICK FIX
======================================== */
.dashboard-ticket-modal-close,
.inside-support-close {
  z-index: 5;
  pointer-events: auto;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.dashboard-ticket-modal-close:hover,
.dashboard-ticket-modal-close:focus-visible,
.inside-support-close:hover,
.inside-support-close:focus-visible {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(255, 121, 121, 0.48);
  background: rgba(255, 121, 121, 0.18);
  color: #ffd1d1;
  box-shadow:
    0 0 18px rgba(255, 121, 121, 0.22),
    0 0 0 5px rgba(255, 121, 121, 0.06);
  outline: none;
}

body.theme-light .dashboard-ticket-modal-close:hover,
body.theme-light .dashboard-ticket-modal-close:focus-visible,
body.theme-light .inside-support-close:hover,
body.theme-light .inside-support-close:focus-visible {
  border-color: rgba(170, 45, 45, 0.32);
  background: rgba(170, 45, 45, 0.1);
  color: #a52c2c;
  box-shadow:
    0 0 18px rgba(170, 45, 45, 0.14),
    0 0 0 5px rgba(170, 45, 45, 0.05);
}

.dashboard-ticket-dialog::before {
  z-index: 0;
}

.dashboard-ticket-modal-body {
  position: relative;
  z-index: 1;
}

/* ========================================
   LIGHT MODE | STRONGER OPEN STATUS PULSE
======================================== */
@keyframes insideTicketStatusPulseGreenLight {
  0%, 100% {
    box-shadow:
      0 0 11px rgba(15, 92, 77, 0.14),
      0 0 0 0 rgba(15, 92, 77, 0.16);
  }
  50% {
    box-shadow:
      0 0 22px rgba(15, 92, 77, 0.34),
      0 0 0 6px rgba(15, 92, 77, 0.08);
  }
}

body.theme-light .dashboard-ticket-status-abierto {
  border-color: rgba(15, 92, 77, 0.38);
  background: rgba(15, 92, 77, 0.13);
  color: #0b5547;
  animation: insideTicketStatusPulseGreenLight 2.25s ease-in-out infinite;
}

body.theme-light .dashboard-ticket-open:hover .dashboard-ticket-status-abierto,
body.theme-light .dashboard-ticket-open:focus-visible .dashboard-ticket-status-abierto {
  border-color: rgba(15, 92, 77, 0.58);
  background: rgba(15, 92, 77, 0.17);
  box-shadow:
    0 0 24px rgba(15, 92, 77, 0.32),
    0 0 0 6px rgba(15, 92, 77, 0.08);
}


/* ========================================
   INSIDE SUPPORT | CUSTOM UNSAVED CHANGES CONFIRM
======================================== */
.inside-unsaved-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10280;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.inside-unsaved-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 17, 0.58);
  backdrop-filter: blur(12px);
}

.inside-unsaved-confirm-dialog {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  border: 1px solid rgba(255, 121, 121, 0.2);
  border-radius: 22px;
  padding: 1.2rem;
  background:
    radial-gradient(circle at top left, rgba(255, 121, 121, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(8, 31, 45, 0.99) 0%, rgba(5, 19, 31, 0.99) 100%);
  color: #ffffff;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.inside-unsaved-confirm-kicker {
  display: inline-flex;
  margin-bottom: 0.35rem;
  color: #72efd3;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.inside-unsaved-confirm-dialog h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.inside-unsaved-confirm-dialog p {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  line-height: 1.55;
}

.inside-unsaved-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}

.inside-unsaved-confirm-secondary,
.inside-unsaved-confirm-danger {
  min-height: 42px;
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.inside-unsaved-confirm-secondary {
  border: 1px solid rgba(114, 239, 211, 0.2);
  background: rgba(114, 239, 211, 0.08);
  color: #bffbed;
}

.inside-unsaved-confirm-danger {
  border: 1px solid rgba(255, 121, 121, 0.28);
  background: rgba(255, 121, 121, 0.14);
  color: #ffd1d1;
}

.inside-unsaved-confirm-secondary:hover,
.inside-unsaved-confirm-secondary:focus-visible,
.inside-unsaved-confirm-danger:hover,
.inside-unsaved-confirm-danger:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.inside-unsaved-confirm-secondary:hover,
.inside-unsaved-confirm-secondary:focus-visible {
  border-color: rgba(114, 239, 211, 0.42);
  background: rgba(114, 239, 211, 0.14);
  box-shadow: 0 0 18px rgba(114, 239, 211, 0.14);
}

.inside-unsaved-confirm-danger:hover,
.inside-unsaved-confirm-danger:focus-visible {
  border-color: rgba(255, 121, 121, 0.5);
  background: rgba(255, 121, 121, 0.22);
  box-shadow: 0 0 18px rgba(255, 121, 121, 0.18);
}

body.theme-light .inside-unsaved-confirm-backdrop {
  background: rgba(12, 25, 22, 0.32);
}

body.theme-light .inside-unsaved-confirm-dialog {
  background:
    radial-gradient(circle at top left, rgba(170, 45, 45, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(248, 250, 246, 0.985) 100%);
  border-color: rgba(170, 45, 45, 0.18);
  color: var(--inside-light-text);
  box-shadow:
    0 28px 72px rgba(22, 39, 35, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.theme-light .inside-unsaved-confirm-dialog h3 {
  color: var(--inside-light-text);
}

body.theme-light .inside-unsaved-confirm-dialog p {
  color: var(--inside-light-muted);
}

body.theme-light .inside-unsaved-confirm-secondary {
  background: rgba(15, 92, 77, 0.06);
  color: var(--inside-light-accent);
  border-color: rgba(15, 92, 77, 0.16);
}

body.theme-light .inside-unsaved-confirm-danger {
  background: rgba(170, 45, 45, 0.08);
  color: #a52c2c;
  border-color: rgba(170, 45, 45, 0.2);
}

@media (max-width: 520px) {
  .inside-unsaved-confirm-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .inside-unsaved-confirm-secondary,
  .inside-unsaved-confirm-danger {
    width: 100%;
  }
}

/* Soporte / tickets: mensajes de validación legibles en modo claro */
body.theme-light .inside-support-feedback[data-type="error"] {
  border-color: rgba(188, 43, 43, 0.32);
  background: rgba(255, 232, 229, 0.96);
  color: #9f1f1f;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(188, 43, 43, 0.08);
}

body.theme-light .inside-support-feedback[data-type="success"] {
  border-color: rgba(15, 112, 89, 0.28);
  background: rgba(224, 250, 242, 0.96);
  color: #0f6b55;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 112, 89, 0.08);
}

/* ========================================
   DASHBOARD | SUPPORT CENTER TRAY + CARD REFINEMENT
======================================== */
.inside-support-help-float {
  position: fixed;
}

.inside-support-help-badge,
.dashboard-support-tray-tab b {
  min-width: 22px;
  height: 22px;
  padding: 0 0.38rem;
  border: 2px solid rgba(5, 19, 31, 0.94);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffd66b, #ff8f5a);
  color: #2c1300;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 0 18px rgba(255, 207, 102, 0.26);
}

.inside-support-help-badge {
  position: absolute;
  top: -7px;
  right: -7px;
}

.inside-support-help-badge[hidden],
.dashboard-support-tray-tab b[hidden] {
  display: none;
}

.inside-support-help-float.has-support-alerts {
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.25),
    0 0 22px rgba(255, 207, 102, 0.18),
    0 0 0 6px rgba(255, 207, 102, 0.07);
}

.dashboard-support-widget .dashboard-widget-summary {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

.dashboard-ticket-list {
  gap: 0.8rem;
}

.dashboard-ticket-open {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.72rem;
  row-gap: 0.34rem;
}

.dashboard-ticket-open .dashboard-ticket-status {
  grid-row: 1 / span 2;
  margin-top: 0.1rem;
}

.dashboard-ticket-card-main {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.dashboard-ticket-open em {
  grid-column: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.dashboard-support-tray {
  position: fixed;
  right: 22px;
  bottom: 104px;
  z-index: 10105;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.dashboard-support-tray-tab,
.dashboard-support-tray-panel {
  pointer-events: auto;
}

.dashboard-support-tray-tab {
  margin-left: auto;
  width: min(250px, calc(100vw - 32px));
  min-height: 58px;
  border: 1px solid rgba(114, 239, 211, 0.24);
  border-radius: 999px;
  padding: 0.54rem 0.64rem 0.54rem 0.58rem;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 0.62rem;
  background: linear-gradient(135deg, rgba(8, 71, 66, 0.96), rgba(8, 104, 88, 0.92));
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.dashboard-support-tray-tab:hover,
.dashboard-support-tray-tab:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(114, 239, 211, 0.54);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(114, 239, 211, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  outline: none;
}

.dashboard-support-tray-tab-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(114, 239, 211, 0.15);
  color: #9ff7e1;
  font-weight: 950;
}

.dashboard-support-tray-tab strong,
.dashboard-support-tray-tab small {
  display: block;
}

.dashboard-support-tray-tab strong {
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 950;
}

.dashboard-support-tray-tab small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-support-tray-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 100%;
  max-height: min(520px, calc(100vh - 150px));
  overflow: auto;
  border: 1px solid rgba(114, 239, 211, 0.2);
  border-radius: 24px;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(8, 31, 45, 0.98), rgba(4, 17, 28, 0.98)),
    rgba(8, 31, 45, 0.98);
  color: #ffffff;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  backdrop-filter: blur(16px);
}

.dashboard-support-tray[data-open="true"] .dashboard-support-tray-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.dashboard-support-tray-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.dashboard-support-tray-header span {
  color: #72efd3;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-support-tray-header h3 {
  margin: 0.18rem 0 0;
  color: #ffffff;
  font-size: 1.12rem;
  line-height: 1.1;
}

.dashboard-support-tray-header button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.dashboard-support-tray-actions {
  margin-top: 0.85rem;
  display: flex;
  justify-content: flex-start;
}

.dashboard-support-tray-summary {
  margin: 0.85rem 0 0.7rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  font-weight: 800;
}

.dashboard-support-tray-list {
  display: grid;
  gap: 0.68rem;
}

.dashboard-ticket-card--tray .dashboard-ticket-open {
  min-height: auto;
  padding: 0.78rem;
  border-radius: 15px;
}

.dashboard-ticket-card--tray .dashboard-ticket-open strong {
  font-size: 0.88rem;
}

.dashboard-ticket-card--tray .dashboard-ticket-open small,
.dashboard-ticket-card--tray .dashboard-ticket-open em {
  font-size: 0.72rem;
}

body.theme-light .inside-support-help-badge,
body.theme-light .dashboard-support-tray-tab b {
  border-color: rgba(255, 255, 255, 0.98);
  color: #3b1a00;
}

body.theme-light .dashboard-support-widget .dashboard-widget-summary {
  color: var(--inside-light-muted);
}

body.theme-light .dashboard-ticket-open em,
body.theme-light .dashboard-support-tray-summary,
body.theme-light .dashboard-support-tray-tab small {
  color: var(--inside-light-muted);
}

body.theme-light .dashboard-support-tray-tab {
  border-color: rgba(15, 92, 77, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(231, 250, 245, 0.96));
  color: var(--inside-light-text);
  box-shadow:
    0 18px 40px rgba(22, 39, 35, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.theme-light .dashboard-support-tray-tab strong,
body.theme-light .dashboard-support-tray-header h3 {
  color: var(--inside-light-text);
}

body.theme-light .dashboard-support-tray-tab-icon {
  background: rgba(15, 92, 77, 0.1);
  color: var(--inside-light-accent);
}

body.theme-light .dashboard-support-tray-panel {
  border-color: rgba(16, 36, 31, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 238, 0.98));
  color: var(--inside-light-text);
  box-shadow:
    0 28px 72px rgba(22, 39, 35, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.theme-light .dashboard-support-tray-header button {
  background: rgba(16, 36, 31, 0.05);
  border-color: rgba(16, 36, 31, 0.1);
  color: var(--inside-light-text);
}

@media (max-width: 992px) {
  .dashboard-support-tray {
    right: 18px;
    bottom: 92px;
  }
}

@media (max-width: 768px) {
  .dashboard-support-tray {
    right: 16px;
    bottom: 86px;
    width: calc(100vw - 32px);
  }

  .dashboard-support-tray-tab {
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .dashboard-support-tray-tab > span:not(.dashboard-support-tray-tab-icon) {
    display: none;
  }

  .dashboard-support-tray-tab b {
    position: absolute;
    top: -6px;
    right: -6px;
  }

  .dashboard-support-tray-panel {
    position: fixed;
    right: 12px;
    bottom: 156px;
    left: 12px;
    width: auto;
    max-height: min(520px, calc(100vh - 190px));
  }
}

@media (max-width: 520px) {
  .dashboard-ticket-open {
    grid-template-columns: 1fr;
  }

  .dashboard-ticket-open .dashboard-ticket-status,
  .dashboard-ticket-open em {
    grid-column: 1;
  }
}


/* ========================================
   DASHBOARD | SUPPORT TICKETS V2 CLEANUP
   - El centro fijo se elimina por ahora para evitar doble botón flotante.
   - El acceso persistente queda resuelto con el badge del botón Ayuda.
======================================== */
.dashboard-support-tray {
  display: none !important;
}

.dashboard-support-widget {
  min-height: auto;
}

.dashboard-support-widget .dashboard-widget-head {
  align-items: center;
}

.dashboard-support-widget .dashboard-widget-summary {
  margin-top: 0.72rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  font-weight: 800;
}

.dashboard-ticket-list {
  gap: 0.72rem;
}

.dashboard-ticket-card {
  min-width: 0;
}

.dashboard-ticket-open {
  min-height: 0;
  padding: 0.84rem 0.88rem;
  border-color: rgba(114, 239, 211, 0.14);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.38rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(114, 239, 211, 0.035));
}

.dashboard-ticket-open:hover,
.dashboard-ticket-open:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(114, 239, 211, 0.34);
  background:
    linear-gradient(135deg, rgba(114, 239, 211, 0.105), rgba(255, 255, 255, 0.055));
}

.dashboard-ticket-open .dashboard-ticket-status {
  width: fit-content;
  margin: 0 0 0.08rem;
  padding: 0.2rem 0.48rem;
  font-size: 0.62rem;
  line-height: 1;
}

.dashboard-ticket-card-main {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.dashboard-ticket-open strong {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.18;
}

.dashboard-ticket-open small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.dashboard-ticket-open em {
  margin-top: 0.12rem;
  padding-left: 0.55rem;
  border-left: 2px solid rgba(114, 239, 211, 0.32);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.34;
}

.dashboard-ticket-status-abierto,
.dashboard-ticket-status-open {
  background: rgba(114, 239, 211, 0.13);
  color: #90f6df;
}

.dashboard-ticket-status-en-progreso {
  background: rgba(92, 176, 255, 0.16);
  color: #9ed0ff;
}

.dashboard-ticket-status-esperando-respuesta {
  background: rgba(255, 214, 107, 0.18);
  color: #ffe08a;
}

.dashboard-ticket-status-cerrado {
  background: rgba(255, 117, 117, 0.16);
  color: #ffb0b0;
}

.inside-support-help-float.has-support-alerts {
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.25),
    0 0 18px rgba(255, 207, 102, 0.16),
    0 0 0 5px rgba(255, 207, 102, 0.06);
}

.inside-support-help-badge {
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  border-width: 2px;
  font-size: 0.68rem;
}

body.theme-light .dashboard-support-widget .dashboard-widget-summary {
  color: var(--inside-light-muted);
}

body.theme-light .dashboard-ticket-open {
  border-color: rgba(15, 92, 77, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(231, 250, 245, 0.72));
  box-shadow: 0 12px 26px rgba(22, 39, 35, 0.07);
}

body.theme-light .dashboard-ticket-open:hover,
body.theme-light .dashboard-ticket-open:focus-visible {
  border-color: rgba(15, 92, 77, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(215, 247, 239, 0.9));
  box-shadow: 0 16px 30px rgba(22, 39, 35, 0.11);
}

body.theme-light .dashboard-ticket-open strong {
  color: var(--inside-light-text);
}

body.theme-light .dashboard-ticket-open small,
body.theme-light .dashboard-ticket-open em {
  color: var(--inside-light-muted);
}

body.theme-light .dashboard-ticket-open em {
  border-left-color: rgba(15, 92, 77, 0.22);
}

@media (max-width: 768px) {
  .dashboard-ticket-open {
    padding: 0.82rem;
  }
}

/* ========================================
   DASHBOARD | SOPORTE FIJO BAJO BIENVENIDA
   Mantiene tickets fuera del grid reordenable para que no se pierdan con scroll.
======================================== */
.dashboard-support-fixed-panel {
  margin: 1.15rem 0 1.35rem;
  scroll-margin-top: 24px;
}

.dashboard-support-fixed-panel .dashboard-support-widget {
  min-height: 0;
  padding: 1.15rem 1.2rem;
  border-color: rgba(114, 239, 211, 0.2);
  background:
    linear-gradient(135deg, rgba(4, 19, 28, 0.86), rgba(5, 46, 48, 0.74)),
    rgba(4, 16, 24, 0.82);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.dashboard-support-fixed-panel .dashboard-widget-header {
  align-items: center;
  margin-bottom: 0.55rem;
}

.dashboard-support-fixed-panel .dashboard-widget-summary {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
}

.dashboard-support-fixed-panel .dashboard-ticket-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-support-fixed-panel .dashboard-ticket-open,
.dashboard-support-fixed-panel .dashboard-ticket-empty {
  min-height: 104px;
  padding: 0.85rem 0.9rem;
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.dashboard-support-fixed-panel .dashboard-ticket-open {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.42rem 0.7rem;
}

.dashboard-support-fixed-panel .dashboard-ticket-card-main {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.dashboard-support-fixed-panel .dashboard-ticket-open em {
  grid-column: 1 / -1;
  margin-top: 0.08rem;
  padding-left: 0.55rem;
  border-left: 2px solid rgba(114, 239, 211, 0.42);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.dashboard-support-fixed-panel.is-support-highlighted .dashboard-support-widget {
  animation: insideSupportPanelHighlight 1.35s ease both;
}

@keyframes insideSupportPanelHighlight {
  0%, 100% {
    border-color: rgba(114, 239, 211, 0.2);
    box-shadow:
      0 20px 54px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.045);
  }
  35% {
    border-color: rgba(114, 239, 211, 0.66);
    box-shadow:
      0 22px 58px rgba(0, 0, 0, 0.3),
      0 0 0 5px rgba(114, 239, 211, 0.08),
      0 0 28px rgba(114, 239, 211, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
}

body.theme-light .dashboard-support-fixed-panel .dashboard-support-widget {
  border-color: rgba(15, 92, 77, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(233, 251, 246, 0.88)),
    rgba(255, 255, 255, 0.9);
  box-shadow:
    0 18px 46px rgba(22, 39, 35, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body.theme-light .dashboard-support-fixed-panel .dashboard-widget-summary {
  color: rgba(16, 33, 38, 0.76);
}

body.theme-light .dashboard-support-fixed-panel .dashboard-ticket-open,
body.theme-light .dashboard-support-fixed-panel .dashboard-ticket-empty {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(15, 92, 77, 0.14);
}

body.theme-light .dashboard-support-fixed-panel .dashboard-ticket-open em {
  border-left-color: rgba(15, 92, 77, 0.38);
  color: rgba(16, 33, 38, 0.66);
}

@media (max-width: 1100px) {
  .dashboard-support-fixed-panel .dashboard-ticket-list {
    grid-template-columns: 1fr;
  }

  .dashboard-support-fixed-panel .dashboard-ticket-open,
  .dashboard-support-fixed-panel .dashboard-ticket-empty {
    min-height: 86px;
  }
}

@media (max-width: 768px) {
  .dashboard-support-fixed-panel {
    margin: 0.95rem 0 1.05rem;
  }

  .dashboard-support-fixed-panel .dashboard-support-widget {
    padding: 1rem;
  }

  .dashboard-support-fixed-panel .dashboard-widget-header {
    align-items: flex-start;
    gap: 0.8rem;
  }
}

/* ========================================
   SUPPORT | DASHBOARD SUMMARY + HELP CENTER PORTAL
======================================== */
.dashboard-support-overview {
  margin: 1.2rem 0 1.35rem;
}

.dashboard-support-overview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(114, 239, 211, 0.16);
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1.05rem;
  background:
    linear-gradient(135deg, rgba(7, 30, 42, 0.92), rgba(8, 45, 45, 0.76)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.dashboard-support-overview-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 0%, rgba(114, 239, 211, 0.13), transparent 34%),
    linear-gradient(90deg, rgba(114, 239, 211, 0.05), transparent 46%);
}

.dashboard-support-overview-main,
.dashboard-support-overview-actions,
.dashboard-support-overview-list {
  position: relative;
  z-index: 1;
}

.dashboard-support-overview-main h2 {
  margin: 0.25rem 0 0.3rem;
  color: #ffffff;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.dashboard-support-overview-main p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 750;
  line-height: 1.45;
}

.dashboard-support-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.dashboard-support-secondary-button {
  background: rgba(255, 255, 255, 0.065);
}

.dashboard-support-overview-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.dashboard-support-mini-ticket,
.dashboard-support-empty-summary {
  min-width: 0;
  min-height: 94px;
  border: 1px solid rgba(114, 239, 211, 0.13);
  border-radius: 17px;
  display: grid;
  gap: 0.42rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-support-mini-ticket:hover,
.dashboard-support-mini-ticket:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(114, 239, 211, 0.36);
  background: rgba(114, 239, 211, 0.075);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18), 0 0 16px rgba(114, 239, 211, 0.08);
  outline: none;
}

.dashboard-support-mini-ticket span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.dashboard-support-mini-ticket strong,
.dashboard-support-empty-summary strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-support-mini-ticket small,
.dashboard-support-empty-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.38;
}

.dashboard-support-mini-ticket em {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.35;
}

.support-portal-page {
  min-height: 100vh;
  padding: 2rem 0 4rem;
}

.support-portal-shell .container {
  display: grid;
  gap: 1.15rem;
}

.support-portal-hero,
.support-portal-panel,
.support-portal-stats article {
  border: 1px solid rgba(114, 239, 211, 0.16);
  background:
    linear-gradient(135deg, rgba(7, 30, 42, 0.92), rgba(8, 45, 45, 0.72)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.support-portal-hero {
  border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.2rem, 2.6vw, 2rem);
}

.support-portal-hero h1 {
  margin: 0.3rem 0 0.45rem;
  color: #ffffff;
  font-size: clamp(2rem, 4.3vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.support-portal-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  font-weight: 700;
  line-height: 1.6;
}

.support-portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.support-portal-ghost-link {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.78rem 1rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 950;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.support-portal-ghost-link:hover,
.support-portal-ghost-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(114, 239, 211, 0.34);
  background: rgba(114, 239, 211, 0.08);
  outline: none;
}

.support-portal-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.support-portal-stats article {
  border-radius: 20px;
  padding: 0.95rem 1rem;
  display: grid;
  gap: 0.25rem;
}

.support-portal-stats span {
  color: rgba(114, 239, 211, 0.82);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-portal-stats strong {
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 1;
}

.support-portal-panel {
  border-radius: 28px;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.support-portal-panel-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.support-portal-panel-header h2 {
  margin: 0.2rem 0 0.25rem;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: -0.05em;
}

.support-portal-panel-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 750;
}

.support-portal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.support-portal-filters button {
  border: 1px solid rgba(114, 239, 211, 0.16);
  border-radius: 999px;
  padding: 0.58rem 0.78rem;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.support-portal-filters button:hover,
.support-portal-filters button:focus-visible,
.support-portal-filters button.is-active {
  transform: translateY(-1px);
  border-color: rgba(114, 239, 211, 0.38);
  background: rgba(114, 239, 211, 0.13);
  color: #bffbed;
  outline: none;
}

.support-portal-list {
  display: grid;
  gap: 0.72rem;
}

.support-portal-ticket-card button,
.support-portal-empty {
  width: 100%;
  min-height: 86px;
  border: 1px solid rgba(114, 239, 211, 0.13);
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, 0.42fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.support-portal-ticket-card button:hover,
.support-portal-ticket-card button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(114, 239, 211, 0.36);
  background: rgba(114, 239, 211, 0.075);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18), 0 0 16px rgba(114, 239, 211, 0.08);
  outline: none;
}

.support-portal-ticket-main {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.support-portal-ticket-main strong,
.support-portal-empty strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-portal-ticket-main small,
.support-portal-empty p,
.support-portal-ticket-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.4;
}

.support-portal-ticket-hint {
  text-align: right;
}

body.theme-light .dashboard-support-overview-card,
body.theme-light .support-portal-hero,
body.theme-light .support-portal-panel,
body.theme-light .support-portal-stats article {
  border-color: rgba(16, 36, 31, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(235, 248, 244, 0.88)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 42px rgba(22, 39, 35, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.theme-light .dashboard-support-overview-main h2,
body.theme-light .dashboard-support-mini-ticket strong,
body.theme-light .dashboard-support-empty-summary strong,
body.theme-light .support-portal-hero h1,
body.theme-light .support-portal-panel-header h2,
body.theme-light .support-portal-stats strong,
body.theme-light .support-portal-ticket-main strong,
body.theme-light .support-portal-empty strong {
  color: var(--inside-light-text);
}

body.theme-light .dashboard-support-overview-main p,
body.theme-light .dashboard-support-mini-ticket small,
body.theme-light .dashboard-support-empty-summary p,
body.theme-light .dashboard-support-mini-ticket em,
body.theme-light .support-portal-hero p,
body.theme-light .support-portal-panel-header p,
body.theme-light .support-portal-ticket-main small,
body.theme-light .support-portal-empty p,
body.theme-light .support-portal-ticket-hint,
body.theme-light .support-portal-ghost-link {
  color: var(--inside-light-muted);
}

body.theme-light .dashboard-support-mini-ticket,
body.theme-light .dashboard-support-empty-summary,
body.theme-light .support-portal-ticket-card button,
body.theme-light .support-portal-empty,
body.theme-light .support-portal-filters button {
  border-color: rgba(16, 36, 31, 0.1);
  background: rgba(255, 255, 255, 0.68);
}

body.theme-light .support-portal-stats span,
body.theme-light .support-portal-filters button.is-active,
body.theme-light .support-portal-filters button:hover,
body.theme-light .support-portal-filters button:focus-visible {
  color: var(--inside-light-accent);
}

@media (max-width: 980px) {
  .dashboard-support-overview-card,
  .support-portal-hero,
  .support-portal-panel-header {
    grid-template-columns: 1fr;
  }

  .dashboard-support-overview-actions,
  .support-portal-hero-actions,
  .support-portal-filters {
    justify-content: flex-start;
  }

  .dashboard-support-overview-list,
  .support-portal-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-portal-ticket-card button,
  .support-portal-empty {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .support-portal-ticket-hint {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .dashboard-support-overview-list,
  .support-portal-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-support-overview-actions,
  .support-portal-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-support-overview-actions .dashboard-widget-action,
  .support-portal-hero-actions .dashboard-widget-action,
  .support-portal-ghost-link {
    justify-content: center;
    text-align: center;
  }
}

/* Support portal light-mode contrast refinements */
body.theme-light .support-portal-ghost-link {
  border-color: rgba(16, 36, 31, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: var(--inside-light-text);
  box-shadow: 0 10px 22px rgba(22, 39, 35, 0.08);
}

body.theme-light .support-portal-ghost-link:hover,
body.theme-light .support-portal-ghost-link:focus-visible {
  border-color: rgba(15, 112, 89, 0.32);
  background: rgba(226, 249, 242, 0.96);
  color: #0f6b55;
  box-shadow: 0 12px 26px rgba(15, 112, 89, 0.11);
}

body.theme-light .support-portal-filters button {
  border-color: rgba(16, 36, 31, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: #445b56;
  box-shadow: 0 8px 18px rgba(22, 39, 35, 0.055);
}

body.theme-light .support-portal-filters button:hover,
body.theme-light .support-portal-filters button:focus-visible {
  border-color: rgba(15, 112, 89, 0.28);
  background: rgba(226, 249, 242, 0.96);
  color: #0f6b55;
  box-shadow: 0 10px 22px rgba(15, 112, 89, 0.09);
}

body.theme-light .support-portal-filters button.is-active {
  border-color: rgba(15, 112, 89, 0.38);
  background: rgba(210, 246, 236, 0.98);
  color: #0c614d;
  box-shadow: 0 10px 22px rgba(15, 112, 89, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

/* Support portal summary cards by ticket state */
.support-portal-stats article {
  position: relative;
  overflow: hidden;
}

.support-portal-stats article::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.95;
}

.support-portal-stats article:nth-child(1)::before {
  background: linear-gradient(135deg, rgba(114, 239, 211, 0.11), rgba(114, 239, 211, 0.025));
}

.support-portal-stats article:nth-child(2) {
  border-color: rgba(241, 196, 15, 0.24);
}

.support-portal-stats article:nth-child(2)::before {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.16), rgba(241, 196, 15, 0.025));
}

.support-portal-stats article:nth-child(3) {
  border-color: rgba(80, 164, 255, 0.24);
}

.support-portal-stats article:nth-child(3)::before {
  background: linear-gradient(135deg, rgba(80, 164, 255, 0.16), rgba(80, 164, 255, 0.025));
}

.support-portal-stats article:nth-child(4) {
  border-color: rgba(255, 99, 99, 0.24);
}

.support-portal-stats article:nth-child(4)::before {
  background: linear-gradient(135deg, rgba(255, 99, 99, 0.16), rgba(255, 99, 99, 0.025));
}

.support-portal-stats article > * {
  position: relative;
  z-index: 1;
}

.support-portal-stats article:nth-child(2) span,
.support-portal-stats article:nth-child(2) strong {
  color: #f4d35e;
}

.support-portal-stats article:nth-child(3) span,
.support-portal-stats article:nth-child(3) strong {
  color: #6eb6ff;
}

.support-portal-stats article:nth-child(4) span,
.support-portal-stats article:nth-child(4) strong {
  color: #ff8a8a;
}

body.theme-light .support-portal-stats article:nth-child(1) {
  border-color: rgba(15, 112, 89, 0.2);
  background: linear-gradient(135deg, rgba(229, 250, 244, 0.98), rgba(255, 255, 255, 0.9));
}

body.theme-light .support-portal-stats article:nth-child(2) {
  border-color: rgba(171, 126, 0, 0.28);
  background: linear-gradient(135deg, rgba(255, 247, 211, 0.98), rgba(255, 255, 255, 0.9));
}

body.theme-light .support-portal-stats article:nth-child(3) {
  border-color: rgba(27, 99, 180, 0.24);
  background: linear-gradient(135deg, rgba(226, 241, 255, 0.98), rgba(255, 255, 255, 0.9));
}

body.theme-light .support-portal-stats article:nth-child(4) {
  border-color: rgba(188, 43, 43, 0.24);
  background: linear-gradient(135deg, rgba(255, 232, 229, 0.98), rgba(255, 255, 255, 0.9));
}

body.theme-light .support-portal-stats article:nth-child(1) span,
body.theme-light .support-portal-stats article:nth-child(1) strong {
  color: #0f6b55;
}

body.theme-light .support-portal-stats article:nth-child(2) span,
body.theme-light .support-portal-stats article:nth-child(2) strong {
  color: #8b6500;
}

body.theme-light .support-portal-stats article:nth-child(3) span,
body.theme-light .support-portal-stats article:nth-child(3) strong {
  color: #1b63b4;
}

body.theme-light .support-portal-stats article:nth-child(4) span,
body.theme-light .support-portal-stats article:nth-child(4) strong {
  color: #a42828;
}


/* ========================================
   LIGHT MODE | AUTHENTICATED AREA BUILDING BACKDROP
   Igualar el lenguaje visual del dashboard y portal de soporte
   con el fondo arquitectónico del área pública de servicios.
======================================== */
body.theme-light .dashboard-page,
body.theme-light .support-portal-page {
  background: transparent;
}

body.theme-light .dashboard-welcome-card,
body.theme-light .dashboard-widget,
body.theme-light .dashboard-support-overview-card,
body.theme-light .support-portal-hero,
body.theme-light .support-portal-panel,
body.theme-light .support-portal-stats article {
  backdrop-filter: blur(10px);
}

body.theme-light .dashboard-support-overview-card,
body.theme-light .support-portal-hero,
body.theme-light .support-portal-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(240, 248, 245, 0.82) 100%),
    linear-gradient(135deg, rgba(15, 92, 77, 0.035), rgba(255, 255, 255, 0));
  box-shadow:
    0 20px 44px rgba(31, 47, 43, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.theme-light .support-portal-ticket-card button,
body.theme-light .support-portal-empty,
body.theme-light .dashboard-support-mini-ticket,
body.theme-light .dashboard-support-empty-summary {
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}


/* ========================================
   LIGHT MODE | TICKET DETAIL META CONTRAST
   Mejorar visibilidad de Category / Status / Priority / Updated
   y dar color semántico al cuadro de Priority.
======================================== */
body.theme-light .dashboard-ticket-meta-grid dt {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  padding: 0.18rem 0.42rem;
  border-radius: 8px;
  background: rgba(15, 92, 77, 0.12);
  color: #0d5f4e;
  box-shadow: inset 0 0 0 1px rgba(15, 92, 77, 0.12);
}

body.theme-light .dashboard-ticket-meta-grid dd {
  margin-top: 0.34rem;
  font-weight: 900;
  color: #28443e;
}

body.theme-light .dashboard-ticket-meta-grid div:nth-child(1) {
  border-color: rgba(15, 112, 89, 0.2);
  background: linear-gradient(180deg, rgba(233, 250, 245, 0.94), rgba(255, 255, 255, 0.82));
}

body.theme-light .dashboard-ticket-meta-grid div:nth-child(1) dt,
body.theme-light .dashboard-ticket-meta-grid div:nth-child(1) dd {
  color: #0f6b55;
}

body.theme-light .dashboard-ticket-meta-grid div:nth-child(1) dt {
  background: rgba(15, 112, 89, 0.12);
  box-shadow: inset 0 0 0 1px rgba(15, 112, 89, 0.14);
}

body.theme-light .dashboard-ticket-meta-grid div:nth-child(2) {
  border-color: rgba(27, 99, 180, 0.18);
  background: linear-gradient(180deg, rgba(232, 242, 255, 0.94), rgba(255, 255, 255, 0.82));
}

body.theme-light .dashboard-ticket-meta-grid div:nth-child(2) dt,
body.theme-light .dashboard-ticket-meta-grid div:nth-child(2) dd {
  color: #1b63b4;
}

body.theme-light .dashboard-ticket-meta-grid div:nth-child(2) dt {
  background: rgba(27, 99, 180, 0.11);
  box-shadow: inset 0 0 0 1px rgba(27, 99, 180, 0.14);
}

body.theme-light .dashboard-ticket-meta-grid div:nth-child(3) {
  border-color: rgba(171, 126, 0, 0.24);
  background: linear-gradient(180deg, rgba(255, 247, 211, 0.96), rgba(255, 255, 255, 0.82));
}

body.theme-light .dashboard-ticket-meta-grid div:nth-child(3) dt,
body.theme-light .dashboard-ticket-meta-grid div:nth-child(3) dd {
  color: #8b6500;
}

body.theme-light .dashboard-ticket-meta-grid div:nth-child(3) dt {
  background: rgba(171, 126, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(171, 126, 0, 0.14);
}

body.theme-light .dashboard-ticket-meta-grid div:nth-child(4) {
  border-color: rgba(27, 99, 180, 0.18);
  background: linear-gradient(180deg, rgba(230, 241, 255, 0.95), rgba(255, 255, 255, 0.82));
}

body.theme-light .dashboard-ticket-meta-grid div:nth-child(4) dt,
body.theme-light .dashboard-ticket-meta-grid div:nth-child(4) dd {
  color: #1b63b4;
}

body.theme-light .dashboard-ticket-meta-grid div:nth-child(4) dt {
  background: rgba(27, 99, 180, 0.11);
  box-shadow: inset 0 0 0 1px rgba(27, 99, 180, 0.14);
}


/* ========================================
   LIGHT MODE | TICKET DETAIL META SIMPLIFIED
   Se retiran colores del cuadro completo. Solo palabras clave:
   estado según estado del ticket y prioridad en verde INSIDE.
======================================== */
body.theme-light .dashboard-ticket-meta-grid div,
body.theme-light .dashboard-ticket-meta-grid div:nth-child(1),
body.theme-light .dashboard-ticket-meta-grid div:nth-child(2),
body.theme-light .dashboard-ticket-meta-grid div:nth-child(3),
body.theme-light .dashboard-ticket-meta-grid div:nth-child(4) {
  border-color: rgba(16, 36, 31, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(250, 251, 247, 0.68)),
    linear-gradient(135deg, rgba(15, 92, 77, 0.028), transparent);
  box-shadow:
    0 10px 24px rgba(22, 39, 35, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body.theme-light .dashboard-ticket-meta-grid dt,
body.theme-light .dashboard-ticket-meta-grid div:nth-child(1) dt,
body.theme-light .dashboard-ticket-meta-grid div:nth-child(2) dt,
body.theme-light .dashboard-ticket-meta-grid div:nth-child(3) dt,
body.theme-light .dashboard-ticket-meta-grid div:nth-child(4) dt {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #526a64;
  font-weight: 950;
  letter-spacing: 0.08em;
  box-shadow: none;
}

body.theme-light .dashboard-ticket-meta-grid dd,
body.theme-light .dashboard-ticket-meta-grid div:nth-child(1) dd,
body.theme-light .dashboard-ticket-meta-grid div:nth-child(2) dd,
body.theme-light .dashboard-ticket-meta-grid div:nth-child(3) dd,
body.theme-light .dashboard-ticket-meta-grid div:nth-child(4) dd {
  color: #2f4741;
  font-weight: 900;
}

.dashboard-ticket-meta-value {
  font-weight: 950;
}

body.theme-light .dashboard-ticket-meta-status-abierto {
  color: #0f6b55;
}

body.theme-light .dashboard-ticket-meta-status-en_progreso {
  color: #1b63b4;
}

body.theme-light .dashboard-ticket-meta-status-esperando_respuesta {
  color: #8b6500;
}

body.theme-light .dashboard-ticket-meta-status-cerrado {
  color: #a42828;
}

body.theme-light .dashboard-ticket-meta-priority-text {
  color: #0f6b55;
}


/* ========================================
   SUPPORT PORTAL | MORE SUBTLE HERO + SIDEBAR SHORTCUT
======================================== */
.support-portal-hero {
  padding: clamp(1rem, 1.8vw, 1.45rem) clamp(1.1rem, 2.4vw, 1.75rem);
}

.support-portal-hero h1 {
  font-size: clamp(1.85rem, 3.05vw, 2.72rem);
  letter-spacing: -0.055em;
}

.support-portal-hero p {
  max-width: 680px;
  font-size: clamp(0.92rem, 1.12vw, 1rem);
}

.app-sidebar-support-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.app-sidebar-support-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar-support-badge {
  min-width: 1.38rem;
  height: 1.38rem;
  padding: 0 0.34rem;
  border: 1px solid rgba(241, 196, 15, 0.42);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(241, 196, 15, 0.18);
  color: #ffe69a;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 0 18px rgba(241, 196, 15, 0.14), 0 0 0 4px rgba(241, 196, 15, 0.045);
}

.app-sidebar-support-badge[hidden] {
  display: none;
}

.app-sidebar-support-link.has-support-alerts {
  border-color: rgba(241, 196, 15, 0.2);
}

body.theme-light .app-sidebar-support-badge {
  border-color: rgba(171, 126, 0, 0.28);
  background: rgba(255, 243, 191, 0.95);
  color: #8b6500;
  box-shadow: 0 8px 18px rgba(171, 126, 0, 0.1), 0 0 0 4px rgba(171, 126, 0, 0.04);
}

body.theme-light .app-sidebar-support-link.has-support-alerts {
  border-color: rgba(171, 126, 0, 0.22);
}

@media (max-width: 992px) {
  .app-sidebar-support-link {
    justify-content: center;
  }

  .app-sidebar-support-text {
    display: none;
  }

  .app-sidebar-support-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 1.08rem;
    height: 1.08rem;
    font-size: 0.64rem;
  }
}


/* ========================================
   SUPPORT PORTAL | CENTERED COMPACT HERO
   Título más sutil y centrado para priorizar el panel de tickets.
======================================== */
.support-portal-hero {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: clamp(0.95rem, 1.55vw, 1.35rem) clamp(1.1rem, 2.4vw, 1.75rem);
}

.support-portal-hero > div:first-child {
  display: grid;
  justify-items: center;
}

.support-portal-hero h1 {
  margin-top: 0.18rem;
  font-size: clamp(1.75rem, 2.55vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.support-portal-hero p {
  max-width: 680px;
  margin-inline: auto;
}

.support-portal-hero-actions {
  justify-content: center;
}


/* ========================================
   SUPPORT PORTAL | V9 HERO LEFT + SIDEBAR LABEL CENTER
   El título del portal vuelve a la izquierda; el shortcut del sidebar
   centra el texto Help Center / Centro de ayuda.
======================================== */
.support-portal-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: stretch;
  text-align: left;
  padding: clamp(1rem, 1.8vw, 1.45rem) clamp(1.1rem, 2.4vw, 1.75rem);
}

.support-portal-hero > div:first-child {
  display: block;
  justify-items: initial;
}

.support-portal-hero h1 {
  margin: 0.2rem 0 0.35rem;
  font-size: clamp(1.9rem, 2.75vw, 2.55rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.support-portal-hero p {
  max-width: 680px;
  margin-inline: 0;
}

.support-portal-hero-actions {
  justify-content: flex-end;
}

.app-sidebar-support-link {
  justify-content: center;
  padding-inline: 1rem 2.25rem;
}

.app-sidebar-support-text {
  flex: 1 1 auto;
  text-align: center;
}

.app-sidebar-support-badge {
  position: absolute;
  right: 0.78rem;
}

@media (max-width: 980px) {
  .support-portal-hero {
    grid-template-columns: 1fr;
  }

  .support-portal-hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .support-portal-hero-actions {
    align-items: stretch;
  }
}


/* ========================================
   INSIDE SUPPORT | TICKET CREATED CONFIRMATION
======================================== */
.inside-support-success-modal {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.inside-support-success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 10, 12, 0.48);
  backdrop-filter: blur(10px);
}

.inside-support-success-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 2rem));
  border: 1px solid rgba(114, 239, 211, 0.22);
  border-radius: 24px;
  padding: 1.35rem;
  display: grid;
  gap: 0.55rem;
  background:
    linear-gradient(135deg, rgba(7, 30, 42, 0.96), rgba(8, 45, 45, 0.88)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-align: center;
}

.inside-support-success-kicker {
  color: #72efd3;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inside-support-success-dialog h3 {
  margin: 0;
  font-size: 1.38rem;
  letter-spacing: -0.04em;
}

.inside-support-success-ticket {
  justify-self: center;
  width: fit-content;
  border: 1px solid rgba(114, 239, 211, 0.24);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  background: rgba(114, 239, 211, 0.1);
  color: #bffbed;
  font-size: 0.92rem;
  font-weight: 950;
}

.inside-support-success-dialog p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
  line-height: 1.5;
}

.inside-support-success-button {
  justify-self: center;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: linear-gradient(135deg, #72efd3, #43d6b7);
  color: #06231e;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(67, 214, 183, 0.22);
}

.inside-support-success-button:hover,
.inside-support-success-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

body.theme-light .inside-support-success-backdrop {
  background: rgba(25, 37, 34, 0.36);
}

body.theme-light .inside-support-success-dialog {
  border-color: rgba(15, 112, 89, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 246, 0.96));
  box-shadow: 0 28px 70px rgba(22, 39, 35, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--inside-light-text);
}

body.theme-light .inside-support-success-dialog p {
  color: var(--inside-light-muted);
}

body.theme-light .inside-support-success-ticket {
  border-color: rgba(15, 112, 89, 0.22);
  background: rgba(226, 249, 242, 0.96);
  color: #0f6b55;
}


/* ========================================
   SUPPORT PORTAL | TICKET NUMBER SEARCH
   Buscador dentro del panel de tickets, a la izquierda de filtros.
======================================== */
.support-portal-panel-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
}

.support-portal-ticket-search {
  min-width: 230px;
  max-width: 320px;
  height: 42px;
  border: 1px solid rgba(114, 239, 211, 0.18);
  border-radius: 999px;
  display: grid;
  grid-template-columns: auto minmax(60px, 1fr) 38px;
  align-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.support-portal-ticket-search-prefix {
  padding-left: 0.9rem;
  color: rgba(114, 239, 211, 0.92);
  font-size: 0.82rem;
  font-weight: 950;
  white-space: nowrap;
}

.support-portal-ticket-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 0.35rem;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  outline: none;
}

.support-portal-ticket-search input::placeholder {
  color: rgba(255, 255, 255, 0.38);
  font-weight: 750;
}

.support-portal-ticket-search button {
  width: 34px;
  height: 34px;
  margin-right: 4px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(114, 239, 211, 0.16);
  color: #bffbed;
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 950;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.support-portal-ticket-search button:hover,
.support-portal-ticket-search button:focus-visible {
  transform: translateY(-1px);
  background: rgba(114, 239, 211, 0.26);
  box-shadow: 0 0 18px rgba(114, 239, 211, 0.12);
  outline: none;
}

body.theme-light .support-portal-ticket-search {
  border-color: rgba(16, 36, 31, 0.14);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(22, 39, 35, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.theme-light .support-portal-ticket-search-prefix {
  color: #0f6b55;
}

body.theme-light .support-portal-ticket-search input {
  color: var(--inside-light-text);
}

body.theme-light .support-portal-ticket-search input::placeholder {
  color: rgba(68, 91, 86, 0.42);
}

body.theme-light .support-portal-ticket-search button {
  background: #26302e;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(22, 39, 35, 0.14);
}

body.theme-light .support-portal-ticket-search button:hover,
body.theme-light .support-portal-ticket-search button:focus-visible {
  background: #0f6b55;
  box-shadow: 0 10px 22px rgba(15, 112, 89, 0.18);
}

@media (max-width: 980px) {
  .support-portal-panel-tools {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .support-portal-ticket-search {
    width: 100%;
    max-width: none;
  }
}

/* ========================================
   ACCESSIBILITY | VISUALLY HIDDEN LABELS
   Evita que labels auxiliares rompan layouts visuales.
======================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ========================================
   SUPPORT PORTAL | SEARCH BAR LAYOUT FIX
   Buscador limpio dentro del cuadro Tickets, a la izquierda de filtros.
======================================== */
.support-portal-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}

.support-portal-panel-tools {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.support-portal-ticket-search {
  flex: 0 1 340px;
  min-width: 280px;
  max-width: 360px;
  height: 46px;
  grid-template-columns: auto minmax(78px, 1fr) 40px;
}

.support-portal-ticket-search-prefix {
  padding-left: 1rem;
  padding-right: 0.3rem;
}

.support-portal-ticket-search input {
  padding: 0 0.45rem;
}

.support-portal-ticket-search button {
  width: 36px;
  height: 36px;
  margin-right: 5px;
}

.support-portal-filters {
  flex: 0 0 auto;
}

@media (max-width: 1180px) {
  .support-portal-panel-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-portal-ticket-search {
    flex: none;
    width: min(100%, 380px);
  }

  .support-portal-filters {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .support-portal-ticket-search {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

/* ========================================
   ADMIN SUPPORT | TICKETS OPERATIVOS
======================================== */
.admin-support-page {
  min-height: 100vh;
  padding: 2rem 0 4rem;
}

.admin-support-shell .container {
  display: grid;
  gap: 1.05rem;
}

.admin-support-hero,
.admin-support-panel,
.admin-support-stats article {
  border: 1px solid rgba(114, 239, 211, 0.16);
  background:
    linear-gradient(135deg, rgba(7, 30, 42, 0.92), rgba(8, 45, 45, 0.72)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.admin-support-hero {
  border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.05rem, 2.2vw, 1.55rem);
}

.admin-support-hero h1 {
  margin: 0.25rem 0 0.35rem;
  color: #ffffff;
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.admin-support-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
  line-height: 1.55;
}

.admin-support-hero-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-support-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-support-stats article {
  border-radius: 20px;
  padding: 0.95rem 1rem;
  display: grid;
  gap: 0.25rem;
}

.admin-support-stats span {
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-support-stats strong {
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 1;
}

.admin-support-stats article:nth-child(1) span,
.admin-support-stats article:nth-child(1) strong {
  color: #72efd3;
}

.admin-support-stats article:nth-child(2) span,
.admin-support-stats article:nth-child(2) strong {
  color: #6eb6ff;
}

.admin-support-stats article:nth-child(3) span,
.admin-support-stats article:nth-child(3) strong {
  color: #f4d35e;
}

.admin-support-stats article:nth-child(4) span,
.admin-support-stats article:nth-child(4) strong {
  color: #ff8a8a;
}

.admin-support-panel {
  border-radius: 28px;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.admin-support-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.admin-support-panel-header h2 {
  margin: 0.2rem 0 0.25rem;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: -0.05em;
}

.admin-support-panel-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 750;
}

.admin-support-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  align-items: center;
}

.admin-support-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.admin-support-filters button {
  border: 1px solid rgba(114, 239, 211, 0.16);
  border-radius: 999px;
  padding: 0.58rem 0.78rem;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.admin-support-filters button:hover,
.admin-support-filters button:focus-visible,
.admin-support-filters button.is-active {
  transform: translateY(-1px);
  border-color: rgba(114, 239, 211, 0.38);
  background: rgba(114, 239, 211, 0.13);
  color: #bffbed;
  outline: none;
}

.admin-support-list {
  display: grid;
  gap: 0.72rem;
}

.admin-support-ticket-card button {
  width: 100%;
  min-height: 86px;
  border: 1px solid rgba(114, 239, 211, 0.13);
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(170px, 0.32fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.admin-support-ticket-card button:hover,
.admin-support-ticket-card button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(114, 239, 211, 0.36);
  background: rgba(114, 239, 211, 0.075);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18), 0 0 16px rgba(114, 239, 211, 0.08);
  outline: none;
}

.admin-support-ticket-main {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.admin-support-ticket-main strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-support-ticket-main small,
.admin-support-ticket-side {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.4;
}

.admin-support-ticket-side {
  display: grid;
  gap: 0.22rem;
  justify-items: end;
  text-align: right;
}

.admin-support-ticket-side em {
  font-style: normal;
  color: #72efd3;
}

.admin-support-dialog {
  max-width: min(820px, calc(100vw - 28px));
}

body.theme-light .admin-support-page {
  background: transparent;
}

body.theme-light .admin-support-hero,
body.theme-light .admin-support-panel,
body.theme-light .admin-support-stats article {
  border-color: rgba(16, 36, 31, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(240, 248, 245, 0.82) 100%),
    linear-gradient(135deg, rgba(15, 92, 77, 0.035), rgba(255, 255, 255, 0));
  box-shadow: 0 20px 44px rgba(31, 47, 43, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

body.theme-light .admin-support-hero h1,
body.theme-light .admin-support-panel-header h2,
body.theme-light .admin-support-ticket-main strong {
  color: var(--inside-light-text);
}

body.theme-light .admin-support-hero p,
body.theme-light .admin-support-panel-header p,
body.theme-light .admin-support-ticket-main small,
body.theme-light .admin-support-ticket-side {
  color: var(--inside-light-muted);
}

body.theme-light .admin-support-ticket-card button {
  border-color: rgba(16, 36, 31, 0.1);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.theme-light .admin-support-ticket-card button:hover,
body.theme-light .admin-support-ticket-card button:focus-visible {
  border-color: rgba(15, 112, 89, 0.28);
  background: rgba(226, 249, 242, 0.96);
  box-shadow: 0 10px 22px rgba(15, 112, 89, 0.09);
}

body.theme-light .admin-support-filters button {
  border-color: rgba(16, 36, 31, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: #445b56;
  box-shadow: 0 8px 18px rgba(22, 39, 35, 0.055);
}

body.theme-light .admin-support-filters button:hover,
body.theme-light .admin-support-filters button:focus-visible,
body.theme-light .admin-support-filters button.is-active {
  border-color: rgba(15, 112, 89, 0.38);
  background: rgba(210, 246, 236, 0.98);
  color: #0c614d;
  box-shadow: 0 10px 22px rgba(15, 112, 89, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

body.theme-light .admin-support-stats article:nth-child(1) span,
body.theme-light .admin-support-stats article:nth-child(1) strong {
  color: #0f6b55;
}

body.theme-light .admin-support-stats article:nth-child(2) span,
body.theme-light .admin-support-stats article:nth-child(2) strong {
  color: #1b63b4;
}

body.theme-light .admin-support-stats article:nth-child(3) span,
body.theme-light .admin-support-stats article:nth-child(3) strong {
  color: #8b6500;
}

body.theme-light .admin-support-stats article:nth-child(4) span,
body.theme-light .admin-support-stats article:nth-child(4) strong {
  color: #a42828;
}

@media (max-width: 980px) {
  .admin-support-hero,
  .admin-support-panel-header {
    grid-template-columns: 1fr;
  }

  .admin-support-hero-actions,
  .admin-support-toolbar,
  .admin-support-filters {
    justify-content: flex-start;
  }

  .admin-support-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-support-ticket-card button {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-support-ticket-side {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .admin-support-stats {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ADMIN SUPPORT | TICKET MANAGEMENT FORM
======================================== */
.admin-ticket-management-form {
  margin: 0 0 1.1rem;
  padding: 0.95rem;
  border: 1px solid rgba(114, 239, 211, 0.16);
  border-radius: 18px;
  display: grid;
  gap: 0.85rem;
  background: rgba(114, 239, 211, 0.055);
}

.admin-ticket-management-header {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.admin-ticket-management-header h3 {
  margin: 0.15rem 0 0;
  color: #ffffff;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.admin-ticket-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.admin-ticket-management-form label {
  display: grid;
  gap: 0.34rem;
  min-width: 0;
}

.admin-ticket-management-form label span,
.admin-ticket-close-reason small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-ticket-management-form input,
.admin-ticket-management-form select,
.admin-ticket-management-form textarea {
  width: 100%;
  border: 1px solid rgba(114, 239, 211, 0.16);
  border-radius: 13px;
  padding: 0.72rem 0.78rem;
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.admin-ticket-management-form select option {
  color: #10241f;
}

.admin-ticket-management-form input:focus,
.admin-ticket-management-form select:focus,
.admin-ticket-management-form textarea:focus {
  border-color: rgba(114, 239, 211, 0.42);
  box-shadow: 0 0 0 4px rgba(114, 239, 211, 0.08);
}

.admin-ticket-close-reason {
  display: none;
}

.admin-ticket-close-reason.is-visible {
  display: grid;
}

.admin-ticket-closed-meta {
  border: 1px solid rgba(255, 138, 138, 0.22);
  border-radius: 14px;
  padding: 0.72rem 0.78rem;
  background: rgba(255, 138, 138, 0.08);
}

.admin-ticket-closed-meta strong {
  color: #ffd1d1;
  font-size: 0.88rem;
}

.admin-ticket-closed-meta p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

body.theme-light .admin-ticket-management-form {
  border-color: rgba(15, 112, 89, 0.16);
  background: rgba(239, 250, 246, 0.88);
}

body.theme-light .admin-ticket-management-header h3 {
  color: var(--inside-light-text);
}

body.theme-light .admin-ticket-management-form label span,
body.theme-light .admin-ticket-close-reason small {
  color: #536963;
}

body.theme-light .admin-ticket-management-form input,
body.theme-light .admin-ticket-management-form select,
body.theme-light .admin-ticket-management-form textarea {
  border-color: rgba(16, 36, 31, 0.13);
  background: rgba(255, 255, 255, 0.86);
  color: var(--inside-light-text);
}

body.theme-light .admin-ticket-closed-meta {
  border-color: rgba(164, 40, 40, 0.18);
  background: rgba(255, 235, 235, 0.86);
}

body.theme-light .admin-ticket-closed-meta strong {
  color: #a42828;
}

body.theme-light .admin-ticket-closed-meta p {
  color: #6b5757;
}

@media (max-width: 720px) {
  .admin-ticket-management-header,
  .admin-ticket-management-grid {
    grid-template-columns: 1fr;
  }

  .admin-ticket-management-header {
    align-items: stretch;
    flex-direction: column;
  }
}


/* Admin soporte — cierre condicional y zona peligrosa */
.admin-ticket-close-reason[hidden] {
  display: none !important;
}

.admin-ticket-close-reason:not(.is-visible) {
  display: none !important;
}

.admin-ticket-close-reason.is-visible {
  display: block;
}

.admin-ticket-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 18px;
  background: rgba(127, 29, 29, 0.16);
}

.admin-ticket-danger-zone h3 {
  margin: 0.15rem 0 0.35rem;
}

.admin-ticket-danger-zone p {
  margin: 0;
  color: var(--muted, rgba(255, 255, 255, 0.7));
}

.admin-ticket-delete-button {
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.admin-ticket-delete-button:hover,
.admin-ticket-delete-button:focus-visible {
  background: rgba(185, 28, 28, 0.45);
  border-color: rgba(248, 113, 113, 0.8);
}

.admin-ticket-delete-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

body.light-mode .admin-ticket-danger-zone,
body[data-theme="light"] .admin-ticket-danger-zone {
  background: rgba(254, 242, 242, 0.92);
  border-color: rgba(248, 113, 113, 0.45);
}

body.light-mode .admin-ticket-danger-zone p,
body[data-theme="light"] .admin-ticket-danger-zone p {
  color: rgba(69, 82, 77, 0.82);
}

body.light-mode .admin-ticket-delete-button,
body[data-theme="light"] .admin-ticket-delete-button {
  background: rgba(254, 226, 226, 0.96);
  color: #991b1b;
  border-color: rgba(248, 113, 113, 0.55);
}

body.light-mode .admin-ticket-delete-button:hover,
body.light-mode .admin-ticket-delete-button:focus-visible,
body[data-theme="light"] .admin-ticket-delete-button:hover,
body[data-theme="light"] .admin-ticket-delete-button:focus-visible {
  background: rgba(254, 202, 202, 0.98);
}


/* INSIDE Support Admin v4 - cierre condicional robusto */
.admin-ticket-close-reason[hidden],
.admin-ticket-close-reason[aria-hidden="true"],
.admin-ticket-close-reason:not(.is-visible) {
  display: none !important;
}

.admin-ticket-close-reason.is-visible {
  display: grid !important;
}

/* ========================================
   ADMIN SUPPORT | SORTED TABLE-LIKE LIST
======================================== */
.admin-support-ticket-table-head {
  display: grid;
  grid-template-columns: minmax(104px, 0.18fr) minmax(0, 1fr) minmax(220px, 0.45fr) minmax(96px, 0.18fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0 1rem 0.18rem;
  color: rgba(114, 239, 211, 0.78);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-support-ticket-card button {
  grid-template-columns: minmax(104px, 0.18fr) minmax(0, 1fr) minmax(220px, 0.45fr) minmax(96px, 0.18fr);
}

.admin-support-ticket-creator {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-support-ticket-priority {
  justify-self: end;
  color: #72efd3;
  font-size: 0.82rem;
  font-weight: 950;
  text-align: right;
}

.admin-support-ticket-priority-urgente {
  color: #ff8d8d;
  text-shadow: 0 0 14px rgba(255, 96, 96, 0.24);
}

.admin-support-ticket-priority-alta {
  color: #ffd166;
}

.admin-support-ticket-priority-normal {
  color: #72efd3;
}

.admin-support-ticket-priority-baja {
  color: rgba(255, 255, 255, 0.58);
}

body.theme-light .admin-support-ticket-table-head {
  color: rgba(15, 97, 77, 0.76);
}

body.theme-light .admin-support-ticket-creator {
  color: #526963;
}

body.theme-light .admin-support-ticket-priority-urgente {
  color: #b42323;
  text-shadow: none;
}

body.theme-light .admin-support-ticket-priority-alta {
  color: #9a6200;
}

body.theme-light .admin-support-ticket-priority-normal {
  color: #0f6b55;
}

body.theme-light .admin-support-ticket-priority-baja {
  color: #6b7f79;
}

@media (max-width: 980px) {
  .admin-support-ticket-table-head {
    display: none;
  }

  .admin-support-ticket-card button {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-support-ticket-creator,
  .admin-support-ticket-priority {
    justify-self: start;
    text-align: left;
  }
}


/* ========================================
   ADMIN SUPPORT | BADGE FIX V11
   Mantiene "Esperando usuario" legible y alineado en la cola admin.
======================================== */
.admin-support-ticket-table-head,
.admin-support-ticket-card button {
  grid-template-columns: minmax(150px, 0.22fr) minmax(0, 1fr) minmax(220px, 0.42fr) minmax(96px, 0.16fr);
}

.admin-support-ticket-card .dashboard-ticket-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 96px;
  max-width: 150px;
  padding: 0.34rem 0.68rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
}

.admin-support-ticket-card .dashboard-ticket-status-esperando_respuesta {
  min-width: 148px;
  font-size: 0.62rem;
  letter-spacing: 0.035em;
}

@media (max-width: 980px) {
  .admin-support-ticket-card .dashboard-ticket-status,
  .admin-support-ticket-card .dashboard-ticket-status-esperando_respuesta {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    line-height: 1.12;
  }
}

/* ========================================
   PRESUPUESTOS | LIGHT EMPTY STATE FIX V2
   Mejora contraste y jerarquía visual del estado inicial.
======================================== */
body.theme-light .budget-active-card.has-no-active-budget {
  background:
    radial-gradient(circle at 12% 0%, rgba(15, 128, 105, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 253, 251, 0.96) 100%) !important;
  border-color: rgba(15, 128, 105, 0.14) !important;
  box-shadow:
    0 22px 52px rgba(16, 36, 31, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

body.theme-light .budget-active-card.has-no-active-budget .budget-start-banner {
  background:
    linear-gradient(135deg, rgba(28, 199, 164, 0.12) 0%, rgba(255, 255, 255, 0.96) 58%, rgba(255, 255, 255, 0.88) 100%) !important;
  border: 1px solid rgba(15, 128, 105, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 12px 28px rgba(16, 36, 31, 0.06) !important;
}

body.theme-light .budget-start-banner h2,
body.theme-light .budget-active-card.has-no-active-budget .budget-start-banner h2 {
  color: #10242a !important;
}

body.theme-light .budget-start-banner p,
body.theme-light .budget-active-card.has-no-active-budget .budget-start-banner p {
  color: rgba(10, 28, 34, 0.68) !important;
}

body.theme-light .budget-start-marker {
  background: linear-gradient(135deg, #52e5c8 0%, #1cc7a4 100%) !important;
  color: #05312a !important;
  box-shadow: 0 12px 26px rgba(28, 199, 164, 0.24) !important;
}

body.theme-light .budget-active-card.has-no-active-budget .budget-active-panel {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(15, 128, 105, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.theme-light .budget-active-card.has-no-active-budget .budget-create-form--featured {
  background:
    linear-gradient(135deg, rgba(240, 250, 247, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%) !important;
  border: 1px solid rgba(15, 128, 105, 0.18) !important;
  box-shadow:
    0 16px 36px rgba(16, 36, 31, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

body.theme-light .budget-active-card.has-no-active-budget .budget-create-field label {
  color: rgba(10, 28, 34, 0.72) !important;
}

body.theme-light .budget-active-card.has-no-active-budget .budget-create-field input {
  background: #ffffff !important;
  border-color: rgba(16, 36, 31, 0.13) !important;
  color: #10242a !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 18px rgba(16, 36, 31, 0.05) !important;
}

body.theme-light .budget-active-card.has-no-active-budget .budget-create-field input:focus {
  border-color: rgba(15, 128, 105, 0.38) !important;
  box-shadow: 0 0 0 4px rgba(15, 128, 105, 0.1), 0 10px 22px rgba(16, 36, 31, 0.07) !important;
}

body.theme-light .budget-active-card.has-no-active-budget .budget-create-submit {
  min-height: 56px;
  background: linear-gradient(135deg, #0f8069 0%, #0b6656 100%) !important;
  border-color: rgba(15, 128, 105, 0.34) !important;
  box-shadow: 0 16px 32px rgba(15, 128, 105, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

body.theme-light .budget-active-card.has-no-active-budget .budget-create-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(15, 128, 105, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

body.theme-light .budget-saved-card .budget-empty-state,
body.theme-light .budget-results-card .budget-empty-state,
body.theme-light .budget-list-intro,
body.theme-light .budget-empty-table-message {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 252, 250, 0.92) 100%) !important;
  border: 1px solid rgba(15, 128, 105, 0.13) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.theme-light .budget-saved-card .budget-empty-state span,
body.theme-light .budget-empty-table-message span:first-child {
  background: rgba(28, 199, 164, 0.16) !important;
  color: #0f6b58 !important;
}

body.theme-light .budget-saved-card .budget-card-header,
body.theme-light .budget-results-card .budget-card-header {
  border-color: rgba(16, 36, 31, 0.08) !important;
}

body.theme-light .budget-new-item-link.is-disabled {
  background: rgba(16, 36, 31, 0.09) !important;
  color: rgba(16, 36, 31, 0.48) !important;
  border-color: rgba(16, 36, 31, 0.12) !important;
  opacity: 1 !important;
  filter: none !important;
}

@media (max-width: 920px) {
  body.theme-light .budget-active-card.has-no-active-budget .budget-create-form--featured {
    gap: 0.85rem;
  }
}

/* ========================================
   PRESUPUESTOS - WIZARD DE CREACIÓN / SELECCIÓN
======================================== */
.budget-create-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(74, 229, 210, 0.18);
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(5, 37, 46, 0.96), rgba(3, 22, 30, 0.96));
}

.budget-create-cta__copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.budget-create-cta__copy strong {
  font-size: 1rem;
  color: #f4fffd;
}

.budget-create-cta__copy p {
  margin: 0;
  color: rgba(222, 245, 242, 0.76);
  font-size: 0.92rem;
  line-height: 1.5;
}

.budget-empty-icon--button {
  border: 0;
  cursor: pointer;
}

.budget-empty-icon--button:hover {
  transform: translateY(-1px) scale(1.02);
}

.budget-wizard-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
}

.budget-wizard-modal[hidden] {
  display: none;
}

.budget-wizard-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 10, 15, 0.74);
  backdrop-filter: blur(14px);
}

.budget-wizard-modal__dialog {
  position: relative;
  width: min(1180px, calc(100vw - 2rem));
  max-height: calc(100vh - 2.5rem);
  margin: 1.25rem auto;
  border-radius: 1.5rem;
  border: 1px solid rgba(74, 229, 210, 0.18);
  background: linear-gradient(180deg, rgba(4, 34, 43, 0.98), rgba(3, 21, 28, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.budget-wizard-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(185, 227, 221, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #eefcf9;
  font-size: 1.4rem;
  cursor: pointer;
}

.budget-wizard-modal__header {
  padding: 1.5rem 1.6rem 0.9rem;
}

.budget-wizard-modal__kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #73f0dd;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.budget-wizard-modal__title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #f7fffd;
}

.budget-wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0 1.6rem 1.1rem;
}

.budget-wizard-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(168, 214, 208, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(231, 244, 242, 0.78);
}

.budget-wizard-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.budget-wizard-step strong {
  font-size: 0.98rem;
}

.budget-wizard-step.is-active,
.budget-wizard-step.is-complete {
  border-color: rgba(74, 229, 210, 0.28);
  background: rgba(74, 229, 210, 0.14);
  color: #f5fffd;
}

.budget-wizard-step.is-active span,
.budget-wizard-step.is-complete span {
  background: linear-gradient(135deg, rgba(74, 229, 210, 0.95), rgba(32, 178, 160, 0.95));
  color: #05262f;
}

.budget-wizard-modal__body {
  padding: 0 1.6rem 1rem;
  overflow: auto;
}

.budget-wizard-panel {
  min-height: 420px;
}

.budget-wizard-step-copy {
  margin-bottom: 1rem;
}

.budget-wizard-step-copy p {
  margin: 0;
  color: rgba(226, 246, 243, 0.82);
  line-height: 1.55;
}

.budget-wizard-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.budget-wizard-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.budget-wizard-field span {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(167, 239, 228, 0.92);
}

.budget-wizard-field input {
  width: 100%;
  min-height: 3.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(140, 214, 204, 0.2);
  background: rgba(7, 36, 45, 0.92);
  color: #f5fffd;
  padding: 0.9rem 1rem;
}

.budget-wizard-dual-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.budget-wizard-dual-selector__panel {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  border-radius: 1.25rem;
  border: 1px solid rgba(157, 216, 209, 0.14);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.budget-wizard-dual-selector__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1rem 0.9rem;
  border-bottom: 1px solid rgba(157, 216, 209, 0.12);
}

.budget-wizard-dual-selector__panel-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #f4fffd;
}

.budget-wizard-dual-selector__panel-header span {
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(74, 229, 210, 0.16);
  color: #8ef2e1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.budget-wizard-dual-selector__panel-body {
  padding: 1rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.budget-wizard-transfer-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}

.budget-wizard-transfer-actions .budget-btn {
  min-width: 3.25rem;
  min-height: 3rem;
  font-weight: 800;
}

.budget-wizard-group {
  border-radius: 1rem;
  border: 1px solid rgba(157, 216, 209, 0.12);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.budget-wizard-group > header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid rgba(157, 216, 209, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.budget-wizard-group > header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(74, 229, 210, 0.18);
  color: #8ef2e1;
  font-weight: 800;
}

.budget-wizard-group > header h4 {
  margin: 0;
  font-size: 1rem;
  color: #f3fffd;
}

.budget-wizard-group__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  padding: 0.9rem;
}

.budget-wizard-template-item {
  width: 100%;
  text-align: left;
  padding: 0.9rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(157, 216, 209, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f4fffd;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.budget-wizard-template-item strong {
  font-size: 0.96rem;
}

.budget-wizard-template-item span {
  font-size: 0.78rem;
  color: rgba(204, 237, 232, 0.72);
}

.budget-wizard-template-item.is-selected {
  border-color: rgba(74, 229, 210, 0.38);
  background: rgba(74, 229, 210, 0.14);
  box-shadow: inset 0 0 0 1px rgba(74, 229, 210, 0.18);
}

.budget-wizard-panel-empty {
  border-radius: 1rem;
  border: 1px dashed rgba(157, 216, 209, 0.18);
  padding: 1rem;
  color: rgba(220, 243, 240, 0.72);
  text-align: center;
}

.budget-wizard-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.budget-wizard-review-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(157, 216, 209, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem 1.05rem;
}

.budget-wizard-review-card h3 {
  margin: 0 0 0.85rem;
  color: #f5fffd;
}

.budget-wizard-review-card dl,
.budget-wizard-review-card ul {
  margin: 0;
}

.budget-wizard-review-card dl {
  display: grid;
  gap: 0.85rem;
}

.budget-wizard-review-card dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(163, 236, 226, 0.86);
  margin-bottom: 0.3rem;
}

.budget-wizard-review-card dd {
  margin: 0;
  color: #f4fffd;
}

.budget-wizard-review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.budget-wizard-review-group + .budget-wizard-review-group {
  margin-top: 0.85rem;
}

.budget-wizard-review-group strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #f4fffd;
}

.budget-wizard-review-group ul {
  padding-left: 1rem;
  color: rgba(218, 243, 239, 0.84);
}

.budget-wizard-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  padding: 1rem 1.6rem 1.4rem;
  border-top: 1px solid rgba(157, 216, 209, 0.12);
}

@media (max-width: 980px) {
  .budget-create-cta,
  .budget-wizard-form-grid,
  .budget-wizard-review-grid,
  .budget-wizard-dual-selector {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .budget-create-cta {
    align-items: stretch;
  }

  .budget-wizard-transfer-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .budget-wizard-dual-selector__panel {
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  .budget-wizard-modal__dialog {
    width: calc(100vw - 1rem);
    margin: 0.5rem auto;
    max-height: calc(100vh - 1rem);
  }

  .budget-wizard-steps {
    grid-template-columns: 1fr;
  }

  .budget-wizard-modal__footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

/* Ajustes v3: selector de plantillas compacto con flechas siempre visibles */
.budget-wizard-dual-selector {
  grid-template-columns: minmax(0, 1fr) 4.4rem minmax(0, 1fr);
  align-items: start;
}

.budget-wizard-transfer-actions {
  position: sticky;
  top: 0.75rem;
  z-index: 5;
  justify-content: flex-start;
  align-self: start;
  padding: 0.65rem 0.45rem;
  border-radius: 1rem;
  border: 1px solid rgba(157, 216, 209, 0.14);
  background: rgba(3, 24, 32, 0.92);
  backdrop-filter: blur(10px);
}

.budget-wizard-transfer-actions .budget-btn {
  min-width: 2.8rem;
  min-height: 2.55rem;
  padding: 0.55rem 0.7rem;
  font-size: 1rem;
  line-height: 1;
}

.budget-wizard-dual-selector__panel {
  min-height: 430px;
}

.budget-wizard-dual-selector__panel-header {
  padding: 0.8rem 0.85rem;
}

.budget-wizard-dual-selector__panel-header h3 {
  font-size: 0.95rem;
}

.budget-wizard-dual-selector__panel-body {
  padding: 0.75rem;
  gap: 0.75rem;
}

.budget-wizard-group > header {
  padding: 0.65rem 0.75rem;
  gap: 0.55rem;
}

.budget-wizard-group > header span {
  min-width: 1.95rem;
  height: 1.75rem;
  font-size: 0.82rem;
}

.budget-wizard-group > header h4 {
  font-size: 0.9rem;
}

.budget-wizard-group__items {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.55rem;
  padding: 0.65rem;
}

.budget-wizard-template-item {
  min-height: auto;
  padding: 0.68rem 0.75rem;
  border-radius: 0.72rem;
  gap: 0;
}

.budget-wizard-template-item strong {
  font-size: 0.86rem;
  line-height: 1.22;
}

.budget-wizard-template-item span {
  display: none;
}

@media (max-width: 980px) {
  .budget-wizard-dual-selector {
    grid-template-columns: 1fr;
  }

  .budget-wizard-transfer-actions {
    position: sticky;
    top: 0;
    flex-direction: row;
    justify-content: center;
    margin: 0;
  }
}

/* ========================================
   WIZARD DE PRESUPUESTOS - LIGHT MODE
======================================== */
body.theme-light .budget-wizard-modal__backdrop {
  background: rgba(231, 236, 235, 0.74);
  backdrop-filter: blur(14px);
}

body.theme-light .budget-wizard-modal__dialog {
  border-color: rgba(16, 36, 31, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 248, 246, 0.98) 100%);
  box-shadow: 0 26px 60px rgba(16, 36, 31, 0.16);
}

body.theme-light .budget-wizard-modal__close {
  border-color: rgba(16, 36, 31, 0.12);
  background: rgba(16, 36, 31, 0.06);
  color: #10241f;
}

body.theme-light .budget-wizard-modal__close:hover,
body.theme-light .budget-wizard-modal__close:focus-visible {
  background: rgba(15, 107, 88, 0.12);
  color: #0f6b58;
}

body.theme-light .budget-wizard-modal__kicker {
  color: #0f6b58;
}

body.theme-light .budget-wizard-modal__title {
  color: #10241f;
}

body.theme-light .budget-wizard-step {
  border-color: rgba(16, 36, 31, 0.10);
  background: rgba(16, 36, 31, 0.04);
  color: rgba(16, 36, 31, 0.70);
}

body.theme-light .budget-wizard-step span {
  background: rgba(16, 36, 31, 0.08);
  color: #10241f;
}

body.theme-light .budget-wizard-step strong {
  color: #10241f;
}

body.theme-light .budget-wizard-step.is-active,
body.theme-light .budget-wizard-step.is-complete {
  border-color: rgba(15, 107, 88, 0.20);
  background: rgba(15, 107, 88, 0.10);
  color: #10241f;
}

body.theme-light .budget-wizard-step.is-active span,
body.theme-light .budget-wizard-step.is-complete span {
  background: linear-gradient(135deg, #39d8bc, #0f6b58);
  color: #ffffff;
}

body.theme-light .budget-wizard-step-copy p {
  color: rgba(16, 36, 31, 0.74);
}

body.theme-light .budget-wizard-field span {
  color: #0f6b58;
}

body.theme-light .budget-wizard-field input {
  border-color: rgba(16, 36, 31, 0.14);
  background: #ffffff;
  color: #10241f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.theme-light .budget-wizard-field input::placeholder {
  color: rgba(16, 36, 31, 0.42);
}

body.theme-light .budget-wizard-dual-selector__panel {
  border-color: rgba(16, 36, 31, 0.10);
  background: rgba(255, 255, 255, 0.84);
}

body.theme-light .budget-wizard-dual-selector__panel-header {
  border-bottom-color: rgba(16, 36, 31, 0.10);
  background: rgba(16, 36, 31, 0.03);
}

body.theme-light .budget-wizard-dual-selector__panel-header h3,
body.theme-light .budget-wizard-group > header h4,
body.theme-light .budget-wizard-review-card h3,
body.theme-light .budget-wizard-review-group strong,
body.theme-light .budget-wizard-review-card dd {
  color: #10241f;
}

body.theme-light .budget-wizard-dual-selector__panel-header span,
body.theme-light .budget-wizard-group > header span {
  background: rgba(15, 107, 88, 0.10);
  color: #0f6b58;
}

body.theme-light .budget-wizard-transfer-actions {
  border-color: rgba(16, 36, 31, 0.10);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(16, 36, 31, 0.08);
}

body.theme-light .budget-wizard-group {
  border-color: rgba(16, 36, 31, 0.10);
  background: rgba(16, 36, 31, 0.025);
}

body.theme-light .budget-wizard-group > header {
  border-bottom-color: rgba(16, 36, 31, 0.08);
  background: rgba(16, 36, 31, 0.03);
}

body.theme-light .budget-wizard-template-item {
  border-color: rgba(16, 36, 31, 0.10);
  background: #ffffff;
  color: #10241f;
  box-shadow: 0 8px 20px rgba(16, 36, 31, 0.04);
}

body.theme-light .budget-wizard-template-item:hover {
  border-color: rgba(15, 107, 88, 0.18);
  background: rgba(15, 107, 88, 0.06);
}

body.theme-light .budget-wizard-template-item.is-selected {
  border-color: rgba(15, 107, 88, 0.24);
  background: rgba(15, 107, 88, 0.10);
  box-shadow: inset 0 0 0 1px rgba(15, 107, 88, 0.12);
}

body.theme-light .budget-wizard-panel-empty {
  border-color: rgba(16, 36, 31, 0.16);
  background: rgba(16, 36, 31, 0.03);
  color: rgba(16, 36, 31, 0.58);
}

body.theme-light .budget-wizard-review-card {
  border-color: rgba(16, 36, 31, 0.10);
  background: rgba(255, 255, 255, 0.88);
}

body.theme-light .budget-wizard-review-card dt {
  color: #0f6b58;
}

body.theme-light .budget-wizard-review-group ul {
  color: rgba(16, 36, 31, 0.72);
}

body.theme-light .budget-wizard-modal__footer {
  border-top-color: rgba(16, 36, 31, 0.10);
  background: rgba(16, 36, 31, 0.02);
}

/* ========================================
   PRESUPUESTOS - Ajuste v5 wizard paneles fijos
======================================== */
.budget-start-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.budget-start-content {
  min-width: 0;
}

.budget-start-create-button {
  align-self: center;
  white-space: nowrap;
  min-height: 2.75rem;
  padding: 0.75rem 1.15rem;
  font-size: 0.9rem;
  box-shadow: 0 14px 28px rgba(16, 165, 139, 0.22);
}

.budget-create-cta:empty {
  display: none;
}

.budget-wizard-modal__body {
  overflow: hidden;
}

.budget-wizard-panel {
  min-height: 0;
}

.budget-wizard-dual-selector {
  grid-template-columns: minmax(0, 1fr) 4rem minmax(0, 1fr);
  align-items: start;
  min-height: 0;
}

.budget-wizard-dual-selector__panel {
  min-height: 0;
  max-height: min(54vh, 560px);
  overflow: hidden;
}

.budget-wizard-dual-selector__panel-header {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 3.1rem;
  backdrop-filter: blur(10px);
}

.budget-wizard-dual-selector__panel-body {
  max-height: calc(min(54vh, 560px) - 3.1rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.budget-wizard-dual-selector__panel:nth-of-type(2) {
  position: sticky;
  top: 0;
  align-self: start;
}

.budget-wizard-transfer-actions {
  position: sticky;
  top: 0;
  align-self: start;
  z-index: 6;
}

.budget-wizard-group__items {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.budget-wizard-template-item {
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.62rem 0.72rem;
  text-align: left;
  overflow: hidden;
}

.budget-wizard-template-item strong {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  line-height: 1.2;
}

.budget-wizard-template-item span {
  display: none !important;
}

.budget-wizard-dual-selector__panel:nth-of-type(2) .budget-wizard-template-item {
  min-height: 3.35rem;
}

.budget-wizard-dual-selector__panel:nth-of-type(2) .budget-wizard-group__items {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

body.theme-light .budget-start-create-button {
  box-shadow: 0 14px 28px rgba(15, 107, 88, 0.16) !important;
}

body.theme-light .budget-wizard-dual-selector__panel-header {
  background: rgba(255, 255, 255, 0.94) !important;
}

body.theme-light .budget-wizard-dual-selector__panel-body {
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .budget-start-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .budget-start-create-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .budget-wizard-dual-selector__panel:nth-of-type(2),
  .budget-wizard-transfer-actions {
    position: sticky;
    top: 0;
  }

  .budget-wizard-dual-selector__panel {
    max-height: min(44vh, 430px);
  }

  .budget-wizard-dual-selector__panel-body {
    max-height: calc(min(44vh, 430px) - 3.1rem);
  }
}

/* ========================================
   PRESUPUESTOS - Wizard selector v6
   Ajuste de paneles, cards y cambio de idioma
======================================== */
.budget-wizard-modal__dialog {
  width: min(1120px, calc(100vw - 2rem));
}

.budget-wizard-modal__body {
  overflow: hidden !important;
}

.budget-wizard-panel {
  min-height: 0 !important;
}

.budget-wizard-dual-selector {
  grid-template-columns: minmax(0, 1fr) 4.15rem minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 0.9rem !important;
  height: min(56vh, 570px);
  min-height: 430px;
}

.budget-wizard-dual-selector__panel {
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.budget-wizard-dual-selector__panel-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 8 !important;
  flex: 0 0 auto !important;
  min-height: 3.15rem !important;
  padding: 0.78rem 0.9rem !important;
  background: rgba(5, 30, 39, 0.96) !important;
  backdrop-filter: blur(12px);
}

.budget-wizard-dual-selector__panel-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0.72rem !important;
  gap: 0.7rem !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.budget-wizard-dual-selector__panel:nth-of-type(2) {
  position: sticky !important;
  top: 0 !important;
  align-self: start !important;
}

.budget-wizard-transfer-actions {
  position: sticky !important;
  top: 0 !important;
  z-index: 12 !important;
  align-self: start !important;
  justify-content: flex-start !important;
  padding: 0.55rem 0.42rem !important;
  border-radius: 1rem !important;
}

.budget-wizard-transfer-actions .budget-btn {
  min-width: 2.85rem !important;
  min-height: 2.55rem !important;
  padding: 0.5rem 0.68rem !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.budget-wizard-group {
  border-radius: 0.95rem !important;
  overflow: hidden !important;
}

.budget-wizard-group > header {
  padding: 0.66rem 0.78rem !important;
  gap: 0.58rem !important;
}

.budget-wizard-group > header span {
  min-width: 1.95rem !important;
  height: 1.75rem !important;
  font-size: 0.82rem !important;
  flex: 0 0 auto !important;
}

.budget-wizard-group > header h4 {
  font-size: 0.9rem !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}

.budget-wizard-group__items {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 0.58rem !important;
  padding: 0.68rem !important;
  align-items: stretch !important;
}

.budget-wizard-template-item {
  min-height: 3.25rem !important;
  padding: 0.68rem 0.76rem !important;
  border-radius: 0.72rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  overflow: hidden !important;
  white-space: normal !important;
}

.budget-wizard-template-item strong {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  font-size: 0.86rem !important;
  line-height: 1.18 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto !important;
}

.budget-wizard-template-item span {
  display: none !important;
}

.budget-wizard-panel-empty {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 3.4rem !important;
  padding: 0.85rem !important;
  font-size: 0.92rem !important;
}

body.theme-light .budget-wizard-dual-selector__panel-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom-color: rgba(16, 36, 31, 0.1) !important;
}

body.theme-light .budget-wizard-group > header {
  background: rgba(15, 107, 88, 0.08) !important;
}

body.theme-light .budget-wizard-group > header h4 {
  color: #10241f !important;
}

body.theme-light .budget-wizard-template-item {
  background: #ffffff !important;
  color: #10241f !important;
  border-color: rgba(16, 36, 31, 0.12) !important;
}

body.theme-light .budget-wizard-template-item strong {
  color: #10241f !important;
}

body.theme-light .budget-wizard-template-item.is-selected,
body.theme-light .budget-wizard-template-item:hover {
  background: rgba(15, 107, 88, 0.08) !important;
  border-color: rgba(15, 107, 88, 0.24) !important;
}

@media (max-width: 980px) {
  .budget-wizard-dual-selector {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .budget-wizard-dual-selector__panel {
    height: min(38vh, 390px) !important;
  }

  .budget-wizard-transfer-actions {
    flex-direction: row !important;
    justify-content: center !important;
  }
}

/* ========================================
   PRESUPUESTOS - Wizard selector v7
   Repara paneles, esquinas y cards de plantillas
======================================== */
.budget-wizard-modal__dialog {
  width: min(1120px, calc(100vw - 2rem)) !important;
}

.budget-wizard-modal__body {
  overflow: hidden !important;
}

.budget-wizard-panel {
  min-height: 0 !important;
}

.budget-wizard-dual-selector {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 4.25rem minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 0.95rem !important;
  height: min(58vh, 590px) !important;
  min-height: 455px !important;
  overflow: visible !important;
}

.budget-wizard-dual-selector__panel {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 1.18rem !important;
  overflow: hidden !important;
  border: 1px solid rgba(157, 216, 209, 0.18) !important;
  background: rgba(6, 31, 40, 0.88) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

.budget-wizard-dual-selector__panel-header {
  position: relative !important;
  top: auto !important;
  z-index: 2 !important;
  flex: 0 0 auto !important;
  min-height: 3.25rem !important;
  padding: 0.86rem 0.98rem !important;
  border-radius: 1.18rem 1.18rem 0 0 !important;
  border-bottom: 1px solid rgba(157, 216, 209, 0.14) !important;
  background: rgba(4, 28, 37, 0.98) !important;
  backdrop-filter: blur(12px) !important;
}

.budget-wizard-dual-selector__panel-header h3 {
  font-size: 0.95rem !important;
  line-height: 1.15 !important;
  color: #f4fffd !important;
}

.budget-wizard-dual-selector__panel-header span {
  width: 2rem !important;
  min-width: 2rem !important;
  height: 2rem !important;
  font-size: 0.88rem !important;
}

.budget-wizard-dual-selector__panel-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0.78rem !important;
  gap: 0.82rem !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
  background: rgba(3, 22, 30, 0.30) !important;
}

.budget-wizard-dual-selector__panel:nth-of-type(2) {
  position: sticky !important;
  top: 0 !important;
  align-self: start !important;
}

.budget-wizard-transfer-actions {
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  align-self: start !important;
  justify-content: flex-start !important;
  padding: 0.58rem 0.45rem !important;
  border-radius: 1.05rem !important;
  border: 1px solid rgba(157, 216, 209, 0.16) !important;
  background: rgba(4, 29, 38, 0.96) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22) !important;
}

.budget-wizard-transfer-actions .budget-btn {
  min-width: 2.85rem !important;
  min-height: 2.55rem !important;
  padding: 0.5rem 0.68rem !important;
  border-radius: 999px !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.budget-wizard-group {
  border-radius: 1rem !important;
  overflow: hidden !important;
  border: 1px solid rgba(157, 216, 209, 0.13) !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

.budget-wizard-group > header {
  display: flex !important;
  align-items: center !important;
  min-height: 2.95rem !important;
  padding: 0.72rem 0.82rem !important;
  gap: 0.62rem !important;
  border-bottom: 1px solid rgba(157, 216, 209, 0.11) !important;
  background: rgba(10, 58, 49, 0.42) !important;
}

.budget-wizard-group > header span {
  min-width: 1.95rem !important;
  height: 1.8rem !important;
  flex: 0 0 auto !important;
  border-radius: 999px !important;
  font-size: 0.82rem !important;
}

.budget-wizard-group > header h4 {
  margin: 0 !important;
  min-width: 0 !important;
  font-size: 0.92rem !important;
  line-height: 1.2 !important;
  color: #f5fffd !important;
  overflow-wrap: anywhere !important;
}

.budget-wizard-group__items {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 0.62rem !important;
  padding: 0.72rem !important;
  align-items: stretch !important;
}

.budget-wizard-template-item {
  min-height: 3.35rem !important;
  height: auto !important;
  padding: 0.7rem 0.78rem !important;
  border-radius: 0.78rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  overflow: visible !important;
  white-space: normal !important;
  border: 1px solid rgba(157, 216, 209, 0.14) !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

.budget-wizard-template-item strong {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  font-size: 0.86rem !important;
  line-height: 1.18 !important;
  color: #f5fffd !important;
  overflow: visible !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: none !important;
}

.budget-wizard-template-item span {
  display: none !important;
}

.budget-wizard-template-item:hover,
.budget-wizard-template-item.is-selected {
  border-color: rgba(74, 229, 210, 0.36) !important;
  background: rgba(74, 229, 210, 0.13) !important;
}

.budget-wizard-panel-empty {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 3.8rem !important;
  padding: 1rem !important;
  border-radius: 0.9rem !important;
  font-size: 0.92rem !important;
}

body.theme-light .budget-wizard-dual-selector__panel {
  border-color: rgba(16, 36, 31, 0.12) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 12px 30px rgba(16, 36, 31, 0.055) !important;
}

body.theme-light .budget-wizard-dual-selector__panel-header {
  border-bottom-color: rgba(16, 36, 31, 0.10) !important;
  background: rgba(255, 255, 255, 0.98) !important;
}

body.theme-light .budget-wizard-dual-selector__panel-header h3 {
  color: #10241f !important;
}

body.theme-light .budget-wizard-dual-selector__panel-body {
  background: rgba(248, 250, 248, 0.74) !important;
}

body.theme-light .budget-wizard-transfer-actions {
  border-color: rgba(16, 36, 31, 0.10) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 14px 30px rgba(16, 36, 31, 0.09) !important;
}

body.theme-light .budget-wizard-group {
  border-color: rgba(16, 36, 31, 0.10) !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

body.theme-light .budget-wizard-group > header {
  border-bottom-color: rgba(16, 36, 31, 0.08) !important;
  background: rgba(15, 107, 88, 0.08) !important;
}

body.theme-light .budget-wizard-group > header h4 {
  color: #10241f !important;
}

body.theme-light .budget-wizard-template-item {
  border-color: rgba(16, 36, 31, 0.12) !important;
  background: #ffffff !important;
  color: #10241f !important;
  box-shadow: 0 6px 14px rgba(16, 36, 31, 0.04) !important;
}

body.theme-light .budget-wizard-template-item strong {
  color: #10241f !important;
}

body.theme-light .budget-wizard-template-item:hover,
body.theme-light .budget-wizard-template-item.is-selected {
  border-color: rgba(15, 107, 88, 0.24) !important;
  background: rgba(15, 107, 88, 0.08) !important;
}

@media (max-width: 980px) {
  .budget-wizard-dual-selector {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .budget-wizard-dual-selector__panel {
    height: min(42vh, 420px) !important;
  }

  .budget-wizard-dual-selector__panel:nth-of-type(2),
  .budget-wizard-transfer-actions {
    position: sticky !important;
    top: 0 !important;
  }

  .budget-wizard-transfer-actions {
    flex-direction: row !important;
    justify-content: center !important;
  }
}

/* ========================================
   PRESUPUESTOS - Wizard selector v8 rollback funcional
   Restaura visibilidad de grupos/subplantillas y conserva paneles fijos
======================================== */
.budget-wizard-modal__dialog {
  width: min(1120px, calc(100vw - 2rem)) !important;
}

.budget-wizard-modal__body {
  overflow: hidden !important;
  padding-bottom: 1rem !important;
}

.budget-wizard-panel {
  min-height: 0 !important;
}

.budget-wizard-dual-selector {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 4.25rem minmax(0, 1fr) !important;
  gap: 0.95rem !important;
  align-items: start !important;
  height: min(56vh, 570px) !important;
  min-height: 430px !important;
  overflow: visible !important;
}

.budget-wizard-dual-selector__panel {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  border-radius: 1.18rem !important;
  border: 1px solid rgba(157, 216, 209, 0.18) !important;
  background: rgba(6, 31, 40, 0.88) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

.budget-wizard-dual-selector__panel-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 8 !important;
  flex: 0 0 auto !important;
  min-height: 3.15rem !important;
  padding: 0.78rem 0.9rem !important;
  border-radius: 1.18rem 1.18rem 0 0 !important;
  border-bottom: 1px solid rgba(157, 216, 209, 0.14) !important;
  background: rgba(5, 30, 39, 0.98) !important;
  backdrop-filter: blur(12px) !important;
}

.budget-wizard-dual-selector__panel-header h3 {
  margin: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.15 !important;
  color: #f4fffd !important;
}

.budget-wizard-dual-selector__panel-header span {
  width: 2rem !important;
  min-width: 2rem !important;
  height: 2rem !important;
  font-size: 0.88rem !important;
}

.budget-wizard-dual-selector__panel-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0.78rem !important;
  gap: 0.82rem !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: rgba(3, 22, 30, 0.3) !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
}

.budget-wizard-dual-selector__panel:nth-of-type(2) {
  position: sticky !important;
  top: 0 !important;
  align-self: start !important;
}

.budget-wizard-transfer-actions {
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  align-self: start !important;
  justify-content: flex-start !important;
  padding: 0.58rem 0.45rem !important;
  border-radius: 1.05rem !important;
  border: 1px solid rgba(157, 216, 209, 0.16) !important;
  background: rgba(4, 29, 38, 0.96) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22) !important;
}

.budget-wizard-transfer-actions .budget-btn {
  min-width: 2.85rem !important;
  min-height: 2.55rem !important;
  padding: 0.5rem 0.68rem !important;
  border-radius: 999px !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.budget-wizard-group {
  display: block !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  visibility: visible !important;
  opacity: 1 !important;
  border-radius: 1rem !important;
  border: 1px solid rgba(157, 216, 209, 0.13) !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

.budget-wizard-group > header {
  display: flex !important;
  align-items: center !important;
  min-height: 2.85rem !important;
  height: auto !important;
  padding: 0.72rem 0.82rem !important;
  gap: 0.62rem !important;
  border-bottom: 1px solid rgba(157, 216, 209, 0.11) !important;
  background: rgba(10, 58, 49, 0.42) !important;
  overflow: visible !important;
}

.budget-wizard-group > header span {
  min-width: 1.95rem !important;
  height: 1.8rem !important;
  flex: 0 0 auto !important;
  border-radius: 999px !important;
  font-size: 0.82rem !important;
}

.budget-wizard-group > header h4 {
  margin: 0 !important;
  min-width: 0 !important;
  font-size: 0.92rem !important;
  line-height: 1.2 !important;
  color: #f5fffd !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

.budget-wizard-group__items {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)) !important;
  gap: 0.62rem !important;
  padding: 0.72rem !important;
  align-items: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.budget-wizard-template-item {
  position: static !important;
  min-height: 3.25rem !important;
  height: auto !important;
  max-height: none !important;
  padding: 0.72rem 0.78rem !important;
  border-radius: 0.78rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  overflow: visible !important;
  white-space: normal !important;
  visibility: visible !important;
  opacity: 1 !important;
  cursor: pointer !important;
  border: 1px solid rgba(157, 216, 209, 0.14) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  transform: none !important;
}

.budget-wizard-template-item strong {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  font-size: 0.88rem !important;
  line-height: 1.2 !important;
  color: #f5fffd !important;
  overflow: visible !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: none !important;
  white-space: normal !important;
}

.budget-wizard-template-item span {
  display: none !important;
}

.budget-wizard-template-item:hover,
.budget-wizard-template-item.is-selected {
  border-color: rgba(74, 229, 210, 0.36) !important;
  background: rgba(74, 229, 210, 0.13) !important;
}

.budget-wizard-panel-empty {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 3.8rem !important;
  padding: 1rem !important;
  border-radius: 0.9rem !important;
  font-size: 0.92rem !important;
}

body.theme-light .budget-wizard-dual-selector__panel {
  border-color: rgba(16, 36, 31, 0.12) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 12px 30px rgba(16, 36, 31, 0.055) !important;
}

body.theme-light .budget-wizard-dual-selector__panel-header {
  border-bottom-color: rgba(16, 36, 31, 0.10) !important;
  background: rgba(255, 255, 255, 0.98) !important;
}

body.theme-light .budget-wizard-dual-selector__panel-header h3,
body.theme-light .budget-wizard-group > header h4,
body.theme-light .budget-wizard-template-item strong {
  color: #10241f !important;
}

body.theme-light .budget-wizard-dual-selector__panel-body {
  background: rgba(248, 250, 248, 0.74) !important;
}

body.theme-light .budget-wizard-transfer-actions {
  border-color: rgba(16, 36, 31, 0.10) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 14px 30px rgba(16, 36, 31, 0.09) !important;
}

body.theme-light .budget-wizard-group {
  border-color: rgba(16, 36, 31, 0.10) !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

body.theme-light .budget-wizard-group > header {
  border-bottom-color: rgba(16, 36, 31, 0.08) !important;
  background: rgba(15, 107, 88, 0.08) !important;
}

body.theme-light .budget-wizard-template-item {
  border-color: rgba(16, 36, 31, 0.12) !important;
  background: #ffffff !important;
  color: #10241f !important;
  box-shadow: 0 6px 14px rgba(16, 36, 31, 0.04) !important;
}

body.theme-light .budget-wizard-template-item:hover,
body.theme-light .budget-wizard-template-item.is-selected {
  border-color: rgba(15, 107, 88, 0.24) !important;
  background: rgba(15, 107, 88, 0.08) !important;
}

@media (max-width: 980px) {
  .budget-wizard-dual-selector {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .budget-wizard-dual-selector__panel {
    height: min(42vh, 420px) !important;
  }

  .budget-wizard-dual-selector__panel:nth-of-type(2),
  .budget-wizard-transfer-actions {
    position: sticky !important;
    top: 0 !important;
  }

  .budget-wizard-transfer-actions {
    flex-direction: row !important;
    justify-content: center !important;
  }
}


/* ========================================
   PRESUPUESTOS - Fix v10 scroll revisión wizard
======================================== */
.budget-wizard-modal__body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: calc(100vh - 14.5rem) !important;
  overscroll-behavior: contain !important;
}

.budget-wizard-panel {
  min-height: 0 !important;
}

.budget-wizard-review-grid {
  max-height: none !important;
  min-height: 0 !important;
  align-items: start !important;
}

.budget-wizard-review-card {
  min-height: 0 !important;
  max-height: none !important;
}

.budget-wizard-review-card:nth-child(2) {
  max-height: none !important;
}

.budget-wizard-review-groups {
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 1rem !important;
}

.budget-wizard-review-group {
  break-inside: avoid !important;
}

.budget-wizard-modal__footer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 12 !important;
}

body.theme-light .budget-wizard-modal__footer {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 -12px 28px rgba(16, 36, 31, 0.06) !important;
}

body:not(.theme-light) .budget-wizard-modal__footer {
  background: rgba(3, 21, 28, 0.96) !important;
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.22) !important;
}

@media (max-width: 980px) {
  .budget-wizard-modal__body {
    max-height: calc(100vh - 16rem) !important;
  }
}


/* ========================================
   PRESUPUESTOS - Fix v11 revisión con paneles fijos
======================================== */
.budget-wizard-review-grid {
  display: grid !important;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.05fr) !important;
  gap: 1rem !important;
  height: min(56vh, 560px) !important;
  max-height: min(56vh, 560px) !important;
  min-height: 360px !important;
  overflow: hidden !important;
  align-items: start !important;
}

.budget-wizard-review-card {
  min-height: 0 !important;
  overflow: hidden !important;
  border-radius: 1.05rem !important;
}

.budget-wizard-review-card:first-child {
  position: sticky !important;
  top: 0 !important;
  align-self: start !important;
  height: fit-content !important;
  max-height: min(56vh, 560px) !important;
  overflow: visible !important;
}

.budget-wizard-review-card:nth-child(2) {
  display: flex !important;
  flex-direction: column !important;
  height: min(56vh, 560px) !important;
  max-height: min(56vh, 560px) !important;
  overflow: hidden !important;
}

.budget-wizard-review-card__header {
  position: sticky !important;
  top: 0 !important;
  z-index: 8 !important;
  flex: 0 0 auto !important;
  margin: -1rem -1.05rem 0.85rem !important;
  padding: 1rem 1.05rem 0.85rem !important;
  border-bottom: 1px solid rgba(157, 216, 209, 0.12) !important;
  background: rgba(4, 34, 43, 0.98) !important;
  backdrop-filter: blur(10px) !important;
}

.budget-wizard-review-card__header h3 {
  margin: 0 !important;
}

.budget-wizard-review-card__header .budget-btn {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.budget-wizard-review-groups {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 0.25rem 1.2rem 0 !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
}

.budget-wizard-review-group {
  break-inside: avoid !important;
  padding-right: 0.35rem !important;
}

.budget-wizard-review-group strong {
  position: sticky !important;
  top: 0 !important;
  display: block !important;
  width: 100% !important;
  padding: 0.25rem 0 0.2rem !important;
  background: inherit !important;
}

body.theme-light .budget-wizard-review-card__header {
  border-bottom-color: rgba(16, 36, 31, 0.10) !important;
  background: rgba(255, 255, 255, 0.98) !important;
}

body.theme-light .budget-wizard-review-groups {
  scrollbar-color: rgba(16, 36, 31, 0.28) transparent;
}

@media (max-width: 980px) {
  .budget-wizard-review-grid {
    grid-template-columns: 1fr !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .budget-wizard-review-card:first-child,
  .budget-wizard-review-card:nth-child(2) {
    position: relative !important;
    height: auto !important;
    max-height: none !important;
  }

  .budget-wizard-review-card:nth-child(2) {
    max-height: min(48vh, 460px) !important;
  }

  .budget-wizard-review-groups {
    max-height: calc(min(48vh, 460px) - 4.2rem) !important;
  }
}


/* ========================================
   PRESUPUESTOS - Fix v12 revisión sin títulos internos sticky
======================================== */
.budget-wizard-review-group strong {
  position: static !important;
  top: auto !important;
  background: transparent !important;
  z-index: auto !important;
}

.budget-wizard-review-card__header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9 !important;
}


@media (max-width: 720px) {
  .budget-active-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .budget-active-delete-button {
    width: 100%;
  }
}


/* Corrección de layout para indicadores de completitud de plantillas */
.budget-dashboard-template-group header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  justify-content: initial;
}

.budget-dashboard-template-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.budget-dashboard-template-heading h4 {
  text-align: left;
}

.budget-template-completion {
  justify-self: end;
}

body.theme-light .budget-btn-dashboard {
  background: linear-gradient(135deg, rgba(13, 128, 105, 0.98), rgba(25, 172, 142, 0.96));
  color: #ffffff;
  border-color: rgba(13, 128, 105, 0.4);
}

@media (max-width: 720px) {
  .budget-dashboard-template-group header {
    grid-template-columns: 1fr;
  }

  .budget-template-completion {
    justify-self: start;
  }
}

/* ============================================================
   PRESUPUESTOS | Completitud visual de plantillas
   Corrige layout de tarjetas, porcentaje y color por estado.
============================================================ */
.budget-dashboard-template-grid {
  align-items: stretch;
}

.budget-dashboard-template-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 152px;
  padding: 1.05rem;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 120, 120, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(5, 20, 25, 0.52) 0%, rgba(5, 20, 25, 0.30) 100%);
}

.budget-dashboard-template-group::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  opacity: 0.9;
  background: rgba(255, 120, 120, 0.72);
}

.budget-dashboard-template-group header,
.budget-dashboard-template-group > header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.85rem;
  margin: 0;
  justify-content: initial !important;
}

.budget-dashboard-template-heading {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 0.75rem;
  text-align: left;
}

.budget-dashboard-template-heading > span,
.budget-dashboard-template-group header > span:first-child {
  grid-row: 1 / span 2;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(114, 239, 211, 0.11);
  color: #72efd3;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.budget-dashboard-template-heading h4,
.budget-dashboard-template-group h4 {
  margin: 0;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 850;
  text-align: left !important;
  justify-self: start;
}

.budget-template-completion {
  justify-self: end;
  min-width: 68px;
  height: 36px;
  padding: 0 0.8rem;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.budget-template-completion strong {
  font-size: 0.86rem;
}

.budget-template-progress {
  height: 9px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.06);
}

.budget-template-progress span {
  min-width: 0;
  box-shadow: 0 0 14px currentColor;
}

.budget-template-completion-note {
  margin: -0.1rem 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.73rem;
  font-weight: 780;
}

.budget-dashboard-template-links {
  margin-top: auto;
}

.budget-dashboard-template-group--empty,
.budget-dashboard-template-group--incomplete {
  border-color: rgba(255, 120, 120, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 120, 120, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(34, 16, 22, 0.50) 0%, rgba(5, 20, 25, 0.34) 100%);
}

.budget-dashboard-template-group--empty::before,
.budget-dashboard-template-group--incomplete::before {
  background: rgba(255, 120, 120, 0.85);
}

.budget-dashboard-template-group--progress {
  border-color: rgba(255, 193, 92, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 193, 92, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(42, 31, 12, 0.48) 0%, rgba(5, 20, 25, 0.34) 100%);
}

.budget-dashboard-template-group--progress::before {
  background: rgba(255, 193, 92, 0.92);
}

.budget-dashboard-template-group--almost {
  border-color: rgba(114, 190, 255, 0.24);
  background:
    radial-gradient(circle at 0% 0%, rgba(114, 190, 255, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(12, 30, 48, 0.48) 0%, rgba(5, 20, 25, 0.34) 100%);
}

.budget-dashboard-template-group--almost::before {
  background: rgba(114, 190, 255, 0.92);
}

.budget-dashboard-template-group--complete {
  border-color: rgba(114, 239, 211, 0.28);
  background:
    radial-gradient(circle at 0% 0%, rgba(114, 239, 211, 0.17), transparent 38%),
    linear-gradient(180deg, rgba(10, 45, 39, 0.52) 0%, rgba(5, 20, 25, 0.34) 100%);
}

.budget-dashboard-template-group--complete::before {
  background: rgba(114, 239, 211, 0.95);
}

.budget-dashboard-template-group--empty .budget-template-progress span,
.budget-dashboard-template-group--incomplete .budget-template-progress span {
  background: rgba(255, 120, 120, 0.86);
  color: rgba(255, 120, 120, 0.86);
}

.budget-dashboard-template-group--progress .budget-template-progress span {
  background: rgba(255, 193, 92, 0.9);
  color: rgba(255, 193, 92, 0.9);
}

.budget-dashboard-template-group--almost .budget-template-progress span {
  background: rgba(114, 190, 255, 0.9);
  color: rgba(114, 190, 255, 0.9);
}

.budget-dashboard-template-group--complete .budget-template-progress span {
  background: rgba(114, 239, 211, 0.92);
  color: rgba(114, 239, 211, 0.92);
}

body.theme-light .budget-dashboard-template-group--empty,
body.theme-light .budget-dashboard-template-group--incomplete {
  border-color: rgba(184, 72, 72, 0.20);
  background: linear-gradient(180deg, rgba(255, 242, 242, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%);
}

body.theme-light .budget-dashboard-template-group--progress {
  border-color: rgba(176, 119, 24, 0.22);
  background: linear-gradient(180deg, rgba(255, 247, 229, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%);
}

body.theme-light .budget-dashboard-template-group--almost {
  border-color: rgba(47, 111, 170, 0.22);
  background: linear-gradient(180deg, rgba(235, 246, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%);
}

body.theme-light .budget-dashboard-template-group--complete {
  border-color: rgba(0, 128, 110, 0.24);
  background: linear-gradient(180deg, rgba(232, 255, 250, 0.94) 0%, rgba(255, 255, 255, 0.78) 100%);
}

body.theme-light .budget-dashboard-template-heading h4,
body.theme-light .budget-dashboard-template-group h4 {
  color: #10242a;
}

@media (max-width: 720px) {
  .budget-dashboard-template-group header,
  .budget-dashboard-template-group > header {
    grid-template-columns: 1fr;
  }

  .budget-template-completion {
    justify-self: start;
  }
}

/* ============================================================
   PRESUPUESTOS | Ajuste Gustavo: color solo en barra de avance
   Mantiene porcentaje y progreso, pero no colorea toda la tarjeta.
============================================================ */
.budget-dashboard-template-group,
.budget-dashboard-template-group--empty,
.budget-dashboard-template-group--incomplete,
.budget-dashboard-template-group--progress,
.budget-dashboard-template-group--almost,
.budget-dashboard-template-group--complete {
  border-color: rgba(255, 255, 255, 0.09) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(114, 239, 211, 0.055), transparent 36%),
    linear-gradient(180deg, rgba(5, 20, 25, 0.52) 0%, rgba(5, 20, 25, 0.30) 100%) !important;
}

.budget-dashboard-template-group::before,
.budget-dashboard-template-group--empty::before,
.budget-dashboard-template-group--incomplete::before,
.budget-dashboard-template-group--progress::before,
.budget-dashboard-template-group--almost::before,
.budget-dashboard-template-group--complete::before {
  display: none !important;
}

.budget-template-completion,
.budget-template-completion--incomplete,
.budget-template-completion--progress,
.budget-template-completion--almost,
.budget-template-completion--complete {
  border-color: rgba(114, 239, 211, 0.20) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

.budget-dashboard-template-group--empty .budget-template-progress span,
.budget-dashboard-template-group--incomplete .budget-template-progress span {
  background: rgba(255, 120, 120, 0.88) !important;
  color: rgba(255, 120, 120, 0.88) !important;
}

.budget-dashboard-template-group--progress .budget-template-progress span {
  background: rgba(255, 193, 92, 0.92) !important;
  color: rgba(255, 193, 92, 0.92) !important;
}

.budget-dashboard-template-group--almost .budget-template-progress span {
  background: rgba(114, 190, 255, 0.9) !important;
  color: rgba(114, 190, 255, 0.9) !important;
}

.budget-dashboard-template-group--complete .budget-template-progress span {
  background: rgba(114, 239, 211, 0.94) !important;
  color: rgba(114, 239, 211, 0.94) !important;
}

body.theme-light .budget-dashboard-template-group,
body.theme-light .budget-dashboard-template-group--empty,
body.theme-light .budget-dashboard-template-group--incomplete,
body.theme-light .budget-dashboard-template-group--progress,
body.theme-light .budget-dashboard-template-group--almost,
body.theme-light .budget-dashboard-template-group--complete {
  border-color: rgba(10, 28, 34, 0.10) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90) 0%, rgba(247, 252, 251, 0.76) 100%) !important;
}

body.theme-light .budget-template-completion,
body.theme-light .budget-template-completion--incomplete,
body.theme-light .budget-template-completion--progress,
body.theme-light .budget-template-completion--almost,
body.theme-light .budget-template-completion--complete {
  border-color: rgba(0, 128, 110, 0.18) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #153238 !important;
}

/* ========================================
   INSIDE | REDISEÑO VISUAL SIDEBAR HERRAMIENTAS WEB
   Alcance: solo panel izquierdo autenticado.
======================================== */
:root {
  --app-sidebar-width: 230px;
  --inside-sidebar-radius: 18px;
  --inside-sidebar-teal: #64e6d2;
  --inside-sidebar-teal-strong: #0f8d78;
  --inside-sidebar-teal-deep: #073d38;
}

.app-sidebar {
  width: var(--app-sidebar-width) !important;
  padding: 18px 16px !important;
  gap: 0 !important;
  background:
    radial-gradient(circle at 22% 9%, rgba(100, 230, 210, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(2, 32, 36, 0.98) 0%, rgba(1, 20, 27, 0.99) 55%, rgba(1, 16, 22, 0.99) 100%) !important;
  border-right: 1px solid rgba(100, 230, 210, 0.13) !important;
  box-shadow: 18px 0 44px rgba(0, 0, 0, 0.28) !important;
}

.app-sidebar::before {
  background-image:
    linear-gradient(rgba(100, 230, 210, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 230, 210, 0.045) 1px, transparent 1px) !important;
  background-size: 30px 30px !important;
  opacity: 0.62 !important;
}

.app-sidebar::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18%),
    radial-gradient(circle at bottom left, rgba(100, 230, 210, 0.10), transparent 38%) !important;
}

.app-sidebar-brand {
  position: relative;
  z-index: 1;
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(100, 230, 210, 0.12);
}

.app-sidebar-logo {
  display: flex !important;
  align-items: center;
  min-height: 42px;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  text-decoration: none;
}

.app-sidebar-logo img {
  width: 148px !important;
  max-width: 100%;
  height: auto;
  display: block;
  filter: none !important;
}

.app-sidebar-logo-light {
  display: none !important;
}

.app-sidebar-context {
  display: block;
  margin-top: 8px;
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(220, 255, 249, 0.46);
}

.app-sidebar-nav {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
}

.app-sidebar-tools-nav {
  margin: 0 !important;
}

.app-sidebar-link {
  position: relative;
  min-height: 42px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px;
  color: rgba(236, 255, 251, 0.76) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  text-align: left !important;
}

.app-sidebar-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(100, 230, 210, 0.12), rgba(100, 230, 210, 0.03));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.app-sidebar-link > * {
  position: relative;
  z-index: 1;
}

.app-sidebar-link-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  color: rgba(157, 238, 226, 0.78);
}

.app-sidebar-link-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.app-sidebar-link-text,
.app-sidebar-support-text {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.app-sidebar-link:hover {
  transform: translateX(2px) !important;
  color: #ffffff !important;
  border-color: rgba(100, 230, 210, 0.13) !important;
  background: rgba(255, 255, 255, 0.035) !important;
}

.app-sidebar-link:hover::before {
  opacity: 0.72;
}

.app-sidebar-link.active {
  transform: none !important;
  color: #ffffff !important;
  background: linear-gradient(90deg, rgba(16, 121, 101, 0.95), rgba(10, 81, 72, 0.76)) !important;
  border-color: rgba(100, 230, 210, 0.26) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 26px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(100, 230, 210, 0.04) !important;
}

.app-sidebar-link.active::before {
  opacity: 0;
}

.app-sidebar-link.active .app-sidebar-link-icon {
  color: var(--inside-sidebar-teal);
}

.app-sidebar-bottom {
  margin-top: auto !important;
  padding-top: 18px !important;
  display: grid !important;
  gap: 8px !important;
}

.app-sidebar-profile-link {
  min-height: 42px !important;
  justify-content: flex-start !important;
  text-align: left !important;
  border-radius: 12px !important;
  font-size: 0.82rem !important;
  opacity: 1 !important;
}

.app-sidebar-support-link {
  min-height: 42px !important;
}

.app-sidebar-footer,
.app-sidebar-bottom .app-sidebar-footer {
  margin-top: 12px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(100, 230, 210, 0.12) !important;
}

.app-sidebar-logout {
  min-height: 42px !important;
  padding: 10px 12px !important;
  justify-content: center !important;
  gap: 8px !important;
  border-radius: 12px !important;
  color: rgba(236, 255, 251, 0.74) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(100, 230, 210, 0.10) !important;
  box-shadow: none !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
}

.app-sidebar-logout:hover {
  color: #ffffff !important;
  background: linear-gradient(90deg, rgba(176, 43, 43, 0.96), rgba(136, 29, 36, 0.92)) !important;
  border-color: rgba(255, 124, 124, 0.34) !important;
  box-shadow: 0 12px 28px rgba(141, 26, 34, 0.18) !important;
}

body.theme-light .app-sidebar {
  background:
    radial-gradient(circle at 16% 8%, rgba(15, 141, 120, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 247, 0.98) 54%, rgba(244, 247, 244, 0.99) 100%) !important;
  border-right: 1px solid rgba(9, 59, 52, 0.10) !important;
  box-shadow: 14px 0 34px rgba(18, 38, 34, 0.08) !important;
}

body.theme-light .app-sidebar::before {
  background-image:
    linear-gradient(rgba(9, 59, 52, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 59, 52, 0.045) 1px, transparent 1px) !important;
  opacity: 0.45 !important;
}

body.theme-light .app-sidebar::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 20%),
    radial-gradient(circle at bottom left, rgba(15, 141, 120, 0.08), transparent 38%) !important;
}

body.theme-light .app-sidebar-brand,
body.theme-light .app-sidebar-footer,
body.theme-light .app-sidebar-bottom .app-sidebar-footer {
  border-color: rgba(9, 59, 52, 0.10) !important;
}

body.theme-light .app-sidebar-logo-dark {
  display: none !important;
}

body.theme-light .app-sidebar-logo-light {
  display: block !important;
}

body.theme-light .app-sidebar-context {
  color: rgba(9, 59, 52, 0.46);
}

body.theme-light .app-sidebar-link {
  color: rgba(10, 42, 36, 0.74) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.theme-light .app-sidebar-link::before {
  background: linear-gradient(90deg, rgba(15, 141, 120, 0.10), rgba(15, 141, 120, 0.03));
}

body.theme-light .app-sidebar-link-icon {
  color: rgba(15, 112, 96, 0.72);
}

body.theme-light .app-sidebar-link:hover {
  color: #092f29 !important;
  background: rgba(15, 141, 120, 0.045) !important;
  border-color: rgba(15, 141, 120, 0.12) !important;
}

body.theme-light .app-sidebar-link.active {
  color: #07322c !important;
  background: linear-gradient(90deg, rgba(210, 241, 233, 0.98), rgba(235, 248, 244, 0.98)) !important;
  border-color: rgba(15, 141, 120, 0.18) !important;
  box-shadow:
    inset 4px 0 0 rgba(15, 141, 120, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(18, 38, 34, 0.07) !important;
}

body.theme-light .app-sidebar-link.active .app-sidebar-link-icon {
  color: #0f7a68;
}

body.theme-light .app-sidebar-logout {
  color: rgba(10, 42, 36, 0.70) !important;
  background: rgba(15, 141, 120, 0.045) !important;
  border-color: rgba(15, 141, 120, 0.12) !important;
}

body.theme-light .app-sidebar-logout:hover {
  color: #ffffff !important;
  background: linear-gradient(90deg, rgba(190, 42, 42, 0.96), rgba(150, 36, 36, 0.94)) !important;
  border-color: rgba(168, 34, 34, 0.34) !important;
}

@media (max-width: 992px) {
  .app-sidebar {
    width: 100% !important;
    padding: 12px 14px !important;
    gap: 10px !important;
  }

  .app-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 0 !important;
  }

  .app-sidebar-context {
    display: none;
  }

  .app-sidebar-logo img {
    width: 124px !important;
  }

  .app-sidebar-nav {
    display: flex !important;
    gap: 8px !important;
  }

  .app-sidebar-link {
    min-height: 38px !important;
    padding: 9px 11px !important;
    white-space: nowrap;
  }

  .app-sidebar-bottom {
    display: flex !important;
    gap: 8px !important;
    padding-top: 0 !important;
  }

  .app-sidebar-footer,
  .app-sidebar-bottom .app-sidebar-footer {
    border-top: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}


/* ========================================
   INSIDE | HEADER SUPERIOR HERRAMIENTAS WEB
   Alcance: barra superior y menú lateral autenticado.
======================================== */
.inside-app-body {
  --inside-app-topbar-height: 74px;
}

.budget-product-topbar {
  position: sticky;
  top: 0;
  z-index: 1080;
  min-height: var(--inside-app-topbar-height);
  margin-left: var(--app-sidebar-width, 230px);
  padding: 14px clamp(20px, 3vw, 42px);
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(260px, 520px) minmax(280px, 1fr);
  align-items: center;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(3, 22, 29, 0.94) 0%, rgba(3, 22, 29, 0.82) 100%);
  border-bottom: 1px solid rgba(100, 230, 210, 0.10);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.budget-product-topbar-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.budget-product-topbar-section {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.budget-product-search {
  position: relative;
  width: 100%;
  min-width: 0;
}

.budget-product-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(220, 255, 249, 0.48);
  transform: translateY(-50%);
  pointer-events: none;
}

.budget-product-search-icon svg {
  width: 17px;
  height: 17px;
}

.budget-product-search input {
  width: 100%;
  min-height: 38px;
  padding: 0 14px 0 40px;
  border-radius: 10px;
  border: 1px solid rgba(100, 230, 210, 0.11);
  background: rgba(1, 19, 27, 0.56);
  color: rgba(255, 255, 255, 0.92);
  font: 700 0.78rem/1.2 "Inter", sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.budget-product-search input::placeholder {
  color: rgba(220, 255, 249, 0.38);
}

.budget-product-search input:focus {
  border-color: rgba(100, 230, 210, 0.34);
  background: rgba(1, 19, 27, 0.76);
  box-shadow: 0 0 0 3px rgba(100, 230, 210, 0.07);
}

.budget-product-topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.budget-product-theme-button,
.budget-product-notification,
.budget-product-language-link,
.budget-product-avatar {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(100, 230, 210, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(236, 255, 251, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.budget-product-theme-button {
  gap: 8px;
  padding: 0 13px;
  font: 800 0.75rem/1 "Inter", sans-serif;
  cursor: pointer;
}

.budget-product-theme-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.budget-product-notification,
.budget-product-language-link,
.budget-product-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.budget-product-notification {
  cursor: pointer;
}

.budget-product-notification svg {
  width: 18px;
  height: 18px;
}

.budget-product-avatar {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(220, 255, 249, 0.92), rgba(166, 219, 210, 0.94));
  color: #07312c;
  border-color: rgba(220, 255, 249, 0.28);
  font-weight: 950;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.budget-product-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.budget-product-theme-button:hover,
.budget-product-notification:hover,
.budget-product-language-link:hover {
  color: #ffffff;
  background: rgba(100, 230, 210, 0.10);
  border-color: rgba(100, 230, 210, 0.28);
  transform: translateY(-1px);
}

.budget-product-avatar:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(100, 230, 210, 0.16);
}

/* Oculta los controles flotantes antiguos dentro de herramientas con topbar */
.budget-page ~ .theme-toggle,
.budget-page ~ .language-float {
  display: none !important;
}

/* Ajusta la cabecera de Presupuestos para convivir con el nuevo topbar */
.budget-product-topbar + .budget-page .budget-header {
  padding-top: 38px !important;
  padding-bottom: 34px !important;
}

.budget-product-topbar + .budget-page {
  min-height: calc(100vh - var(--inside-app-topbar-height));
}

/* Menú lateral: versión limpia del mockup */
.app-sidebar {
  padding-top: 20px !important;
}

.app-sidebar-brand {
  padding-bottom: 20px !important;
  margin-bottom: 18px !important;
}

.app-sidebar-context {
  display: none !important;
}

.app-sidebar-nav {
  gap: 7px !important;
}

.app-sidebar-link {
  min-height: 38px !important;
  padding: 9px 10px !important;
  border-radius: 9px !important;
  font-size: 0.76rem !important;
  font-weight: 850 !important;
}

.app-sidebar-link-icon,
.app-sidebar-link-icon svg {
  width: 16px !important;
  height: 16px !important;
  flex-basis: 16px !important;
}

.app-sidebar-bottom {
  padding-top: 14px !important;
  gap: 7px !important;
}

.app-sidebar-support-link {
  min-height: 38px !important;
}

.app-sidebar-logout {
  min-height: 38px !important;
  font-size: 0.76rem !important;
}

/* Modo claro del nuevo topbar */
body.theme-light .budget-product-topbar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 251, 249, 0.90) 100%);
  border-bottom-color: rgba(9, 59, 52, 0.10);
  box-shadow: 0 14px 34px rgba(18, 38, 34, 0.08);
}

body.theme-light .budget-product-topbar-section {
  color: #102126;
}

body.theme-light .budget-product-search-icon {
  color: rgba(16, 33, 38, 0.42);
}

body.theme-light .budget-product-search input {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(16, 33, 38, 0.10);
  color: #102126;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.theme-light .budget-product-search input::placeholder {
  color: rgba(16, 33, 38, 0.38);
}

body.theme-light .budget-product-search input:focus {
  border-color: rgba(15, 141, 120, 0.32);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 3px rgba(15, 141, 120, 0.08);
}

body.theme-light .budget-product-theme-button,
body.theme-light .budget-product-notification,
body.theme-light .budget-product-language-link {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(16, 33, 38, 0.10);
  color: rgba(16, 33, 38, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.theme-light .budget-product-theme-button:hover,
body.theme-light .budget-product-notification:hover,
body.theme-light .budget-product-language-link:hover {
  color: #07322c;
  background: rgba(232, 247, 243, 0.96);
  border-color: rgba(15, 141, 120, 0.22);
}

body.theme-light .budget-product-avatar {
  background: linear-gradient(180deg, rgba(221, 243, 238, 1), rgba(191, 225, 218, 1));
  color: #07322c;
  border-color: rgba(15, 141, 120, 0.18);
}

/* Responsive */
@media (max-width: 1180px) {
  .budget-product-topbar {
    grid-template-columns: minmax(120px, 200px) minmax(220px, 1fr) auto;
    gap: 12px;
    padding-inline: 18px;
  }

  .budget-product-theme-button span:last-child {
    display: none;
  }
}

@media (max-width: 860px) {
  .budget-product-topbar {
    position: relative;
    margin-left: 0;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .budget-product-topbar-actions {
    justify-self: start;
  }

  .budget-product-topbar + .budget-page .budget-header {
    padding-top: 26px !important;
  }
}

/* ========================================
   INSIDE | HEADER GLOBAL + SIDEBAR BAJO HEADER
   Ajuste visual según referencia: header full-width con logo, sidebar fijo debajo.
======================================== */
.inside-app-body {
  --inside-app-topbar-height: 74px;
  --app-sidebar-width: 205px;
}

.budget-product-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 11020 !important;
  min-height: var(--inside-app-topbar-height) !important;
  margin-left: 0 !important;
  padding: 0 clamp(22px, 2.6vw, 38px) !important;
  display: grid !important;
  grid-template-columns: var(--app-sidebar-width) minmax(120px, 210px) minmax(280px, 560px) minmax(260px, 1fr) !important;
  align-items: center !important;
  column-gap: 22px !important;
  background: linear-gradient(180deg, rgba(2, 22, 29, 0.98) 0%, rgba(2, 22, 29, 0.92) 100%) !important;
  border-bottom: 1px solid rgba(100, 230, 210, 0.12) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.budget-product-topbar-brand {
  height: 100%;
  display: flex;
  align-items: center;
  min-width: 0;
}

.budget-product-logo {
  display: inline-flex;
  align-items: center;
  width: 155px;
  min-width: 0;
  text-decoration: none;
}

.budget-product-logo img {
  display: block;
  width: 155px;
  max-width: 100%;
  height: auto;
}

.budget-product-logo-light {
  display: none !important;
}

.budget-product-topbar-left {
  min-width: 0;
}

.budget-product-topbar-section {
  color: rgba(236, 255, 251, 0.94) !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
}

.budget-product-search {
  max-width: 560px;
  justify-self: stretch;
}

.budget-product-search input {
  min-height: 38px !important;
  border-radius: 9px !important;
}

.budget-product-topbar-actions {
  justify-self: end !important;
}

/* Sidebar queda debajo de la línea del header, como panel lateral del workspace */
.app-sidebar {
  top: var(--inside-app-topbar-height) !important;
  height: calc(100vh - var(--inside-app-topbar-height)) !important;
  z-index: 1090 !important;
  padding-top: 18px !important;
}

.app-sidebar-brand {
  display: none !important;
}

.inside-app-body main {
  margin-left: var(--app-sidebar-width) !important;
}

.budget-product-topbar + .budget-page {
  padding-top: var(--inside-app-topbar-height) !important;
}

.budget-product-topbar + .budget-page .budget-header {
  padding-top: 64px !important;
}

/* Modo claro: header blanco técnico, sidebar claro, verde solo como acento */
body.theme-light .budget-product-topbar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom-color: rgba(9, 59, 52, 0.10) !important;
  box-shadow: 0 10px 28px rgba(18, 38, 34, 0.08) !important;
}

body.theme-light .budget-product-logo-dark {
  display: none !important;
}

body.theme-light .budget-product-logo-light {
  display: block !important;
}

body.theme-light .budget-product-topbar-section {
  color: #102126 !important;
}

body.theme-light .budget-product-search input {
  background: #ffffff !important;
  border-color: rgba(16, 33, 38, 0.11) !important;
  color: #102126 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 20px rgba(16, 36, 31, 0.035) !important;
}

body.theme-light .budget-product-search-icon {
  color: rgba(16, 33, 38, 0.42) !important;
}

body.theme-light .budget-product-theme-button,
body.theme-light .budget-product-notification,
body.theme-light .budget-product-language-link {
  background: #ffffff !important;
  border-color: rgba(16, 33, 38, 0.12) !important;
  color: rgba(16, 33, 38, 0.72) !important;
  box-shadow: 0 8px 20px rgba(16, 36, 31, 0.045) !important;
}

body.theme-light .budget-product-theme-button:hover,
body.theme-light .budget-product-notification:hover,
body.theme-light .budget-product-language-link:hover {
  background: #eef8f5 !important;
  color: #07322c !important;
  border-color: rgba(15, 141, 120, 0.22) !important;
}

body.theme-light .budget-product-avatar {
  background: linear-gradient(180deg, #d8eee9, #bddbd4) !important;
  color: #07322c !important;
  border-color: rgba(15, 141, 120, 0.18) !important;
}

body.theme-light .app-sidebar {
  background:
    radial-gradient(circle at 14% 12%, rgba(15, 141, 120, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 247, 0.99) 100%) !important;
  border-right-color: rgba(9, 59, 52, 0.10) !important;
  box-shadow: 12px 0 28px rgba(18, 38, 34, 0.07) !important;
}

body.theme-light .budget-header {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.52)),
    rgba(248, 250, 248, 0.82) !important;
}

body.theme-light .budget-title {
  color: #102126 !important;
}

body.theme-light .budget-title span {
  color: #0f7a68 !important;
  text-shadow: none !important;
}

body.theme-light .budget-subtitle,
body.theme-light .budget-kicker {
  color: rgba(16, 33, 38, 0.68) !important;
}

/* Oculta controles flotantes antiguos si el topbar nuevo está presente */
.inside-app-body .budget-product-topbar ~ .theme-toggle,
.inside-app-body .budget-product-topbar ~ .language-float {
  display: none !important;
}

@media (max-width: 1180px) {
  .budget-product-topbar {
    grid-template-columns: minmax(150px, var(--app-sidebar-width)) minmax(110px, 170px) minmax(220px, 1fr) auto !important;
    column-gap: 14px !important;
    padding-inline: 18px !important;
  }

  .budget-product-logo,
  .budget-product-logo img {
    width: 138px;
  }
}

@media (max-width: 860px) {
  .budget-product-topbar {
    position: sticky !important;
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding: 12px 16px !important;
    row-gap: 10px !important;
  }

  .budget-product-topbar-brand {
    display: none !important;
  }

  .app-sidebar {
    top: 0 !important;
    height: auto !important;
  }

  .budget-product-topbar + .budget-page {
    padding-top: 0 !important;
  }

  .inside-app-body main {
    margin-left: 0 !important;
  }
}

/* ========================================
   INSIDE | HEADER GLOBAL COMPARTIDO EN DASHBOARD Y PRESUPUESTOS
   Ajuste: topbar full-width visible en /dashboard y /presupuestos.
======================================== */
.inside-app-body {
  --inside-app-topbar-height: 74px;
  --app-sidebar-width: 205px;
}

.inside-app-body .budget-product-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 11020 !important;
  min-height: var(--inside-app-topbar-height) !important;
  margin-left: 0 !important;
  padding: 0 clamp(22px, 2.6vw, 38px) !important;
  display: grid !important;
  grid-template-columns: var(--app-sidebar-width) minmax(120px, 210px) minmax(280px, 560px) minmax(260px, 1fr) !important;
  align-items: center !important;
  column-gap: 22px !important;
  background: linear-gradient(180deg, rgba(2, 22, 29, 0.98) 0%, rgba(2, 22, 29, 0.92) 100%) !important;
  border-bottom: 1px solid rgba(100, 230, 210, 0.12) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.inside-app-body .budget-product-topbar-brand {
  height: 100%;
  display: flex;
  align-items: center;
  min-width: 0;
}

.inside-app-body .budget-product-logo {
  display: inline-flex;
  align-items: center;
  width: 155px;
  min-width: 0;
  text-decoration: none;
}

.inside-app-body .budget-product-logo img {
  display: block;
  width: 155px;
  max-width: 100%;
  height: auto;
}

.inside-app-body .budget-product-logo-light {
  display: none !important;
}

.inside-app-body .budget-product-topbar-left {
  min-width: 0;
  display: flex;
  align-items: center;
}

.inside-app-body .budget-product-topbar-section {
  color: rgba(236, 255, 251, 0.94) !important;
  font-size: 0.86rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
}

.inside-app-body .budget-product-search {
  max-width: 560px;
  justify-self: stretch;
}

.inside-app-body .budget-product-topbar-actions {
  justify-self: end !important;
}

/* Sidebar debajo del header global */
.inside-app-body .app-sidebar {
  top: var(--inside-app-topbar-height) !important;
  height: calc(100vh - var(--inside-app-topbar-height)) !important;
  z-index: 1090 !important;
  padding-top: 18px !important;
}

.inside-app-body .app-sidebar-brand {
  display: none !important;
}

.inside-app-body main {
  margin-left: var(--app-sidebar-width) !important;
}

/* Separación superior para cualquier vista autenticada con header global */
.inside-app-body .budget-product-topbar ~ main {
  padding-top: var(--inside-app-topbar-height) !important;
}

.inside-app-body .budget-product-topbar ~ main.budget-page .budget-header {
  padding-top: 64px !important;
}

.inside-app-body .budget-product-topbar ~ main.dashboard-page .dashboard-home {
  padding-top: 82px !important;
}

/* Oculta controles flotantes antiguos si el topbar global está presente */
.inside-app-body .budget-product-topbar ~ .theme-toggle,
.inside-app-body .budget-product-topbar ~ .language-float {
  display: none !important;
}

body.theme-light .inside-app-body .budget-product-topbar,
body.theme-light.inside-app-body .budget-product-topbar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom-color: rgba(9, 59, 52, 0.10) !important;
  box-shadow: 0 10px 28px rgba(18, 38, 34, 0.08) !important;
}

body.theme-light .budget-product-logo-dark {
  display: none !important;
}

body.theme-light .budget-product-logo-light {
  display: block !important;
}

body.theme-light .budget-product-topbar-section {
  color: #102126 !important;
}

body.theme-light .budget-product-search input {
  background: #ffffff !important;
  border-color: rgba(16, 33, 38, 0.11) !important;
  color: #102126 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 20px rgba(16, 36, 31, 0.035) !important;
}

body.theme-light .budget-product-search-icon {
  color: rgba(16, 33, 38, 0.42) !important;
}

body.theme-light .budget-product-theme-button,
body.theme-light .budget-product-notification,
body.theme-light .budget-product-language-link {
  background: #ffffff !important;
  border-color: rgba(16, 33, 38, 0.12) !important;
  color: rgba(16, 33, 38, 0.72) !important;
  box-shadow: 0 8px 20px rgba(16, 36, 31, 0.045) !important;
}

body.theme-light .budget-product-theme-button:hover,
body.theme-light .budget-product-notification:hover,
body.theme-light .budget-product-language-link:hover {
  background: #eef8f5 !important;
  color: #07322c !important;
  border-color: rgba(15, 141, 120, 0.22) !important;
}

body.theme-light .budget-product-avatar {
  background: linear-gradient(180deg, #d8eee9, #bddbd4) !important;
  color: #07322c !important;
  border-color: rgba(15, 141, 120, 0.18) !important;
}

@media (max-width: 1180px) {
  .inside-app-body .budget-product-topbar {
    grid-template-columns: minmax(150px, var(--app-sidebar-width)) minmax(110px, 170px) minmax(220px, 1fr) auto !important;
    column-gap: 14px !important;
    padding-inline: 18px !important;
  }

  .inside-app-body .budget-product-logo,
  .inside-app-body .budget-product-logo img {
    width: 138px;
  }
}

@media (max-width: 860px) {
  .inside-app-body .budget-product-topbar {
    position: sticky !important;
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding: 12px 16px !important;
    row-gap: 10px !important;
  }

  .inside-app-body .budget-product-topbar-brand {
    display: flex !important;
  }

  .inside-app-body .app-sidebar {
    top: 0 !important;
    height: auto !important;
  }

  .inside-app-body .budget-product-topbar ~ main {
    padding-top: 0 !important;
    margin-left: 0 !important;
  }
}



/* ========================================
   INSIDE | AJUSTE HEADER LIGHT CONTRASTE V6
   Header claro con jerarquía, buscador e iconos visibles.
======================================== */
.inside-app-body {
  --inside-app-topbar-height: 74px;
  --app-sidebar-width: 205px;
}

/* Base del header global */
.inside-app-body .budget-product-topbar {
  overflow: visible !important;
}

.inside-app-body .budget-product-topbar-actions {
  gap: 10px !important;
}

.inside-app-body .budget-product-theme-button,
.inside-app-body .budget-product-notification,
.inside-app-body .budget-product-language-link,
.inside-app-body .budget-product-avatar {
  opacity: 1 !important;
  visibility: visible !important;
}

.inside-app-body .budget-product-theme-button span,
.inside-app-body .budget-product-theme-button span:last-child {
  display: inline-flex !important;
  align-items: center !important;
  color: inherit !important;
}

.inside-app-body .budget-product-notification svg,
.inside-app-body .budget-product-search-icon svg {
  display: block !important;
  stroke: currentColor !important;
}

/* Oculta el control flotante antiguo cuando existe el header global */
.inside-app-body > .theme-toggle,
.inside-app-body > .language-float,
.inside-app-body .theme-toggle:not(.budget-product-theme-button),
.inside-app-body .language-float:not(.budget-product-language-link) {
  display: none !important;
}

/* Light mode: más técnico, menos blanco plano */
body.theme-light.inside-app-body,
body.light-mode.inside-app-body,
body[data-theme="light"].inside-app-body,
html.light-mode body.inside-app-body,
html.light body.inside-app-body {
  background-color: #f3f7f5 !important;
}

body.theme-light.inside-app-body .budget-product-topbar,
body.light-mode.inside-app-body .budget-product-topbar,
body[data-theme="light"].inside-app-body .budget-product-topbar,
html.light-mode body.inside-app-body .budget-product-topbar,
html.light body.inside-app-body .budget-product-topbar {
  background:
    radial-gradient(circle at 13% 0%, rgba(21, 154, 132, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 249, 0.96) 100%) !important;
  border-bottom: 1px solid rgba(9, 59, 52, 0.14) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 14px 30px rgba(18, 38, 34, 0.075) !important;
}

body.theme-light.inside-app-body .budget-product-topbar::after,
body.light-mode.inside-app-body .budget-product-topbar::after,
body[data-theme="light"].inside-app-body .budget-product-topbar::after,
html.light-mode body.inside-app-body .budget-product-topbar::after,
html.light body.inside-app-body .budget-product-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 150, 128, 0.28), transparent);
  pointer-events: none;
}

body.theme-light.inside-app-body .budget-product-topbar-section,
body.light-mode.inside-app-body .budget-product-topbar-section,
body[data-theme="light"].inside-app-body .budget-product-topbar-section,
html.light-mode body.inside-app-body .budget-product-topbar-section,
html.light body.inside-app-body .budget-product-topbar-section {
  color: #102126 !important;
  text-shadow: none !important;
}

/* Buscador light */
body.theme-light.inside-app-body .budget-product-search,
body.light-mode.inside-app-body .budget-product-search,
body[data-theme="light"].inside-app-body .budget-product-search,
html.light-mode body.inside-app-body .budget-product-search,
html.light body.inside-app-body .budget-product-search {
  filter: none !important;
}

body.theme-light.inside-app-body .budget-product-search-icon,
body.light-mode.inside-app-body .budget-product-search-icon,
body[data-theme="light"].inside-app-body .budget-product-search-icon,
html.light-mode body.inside-app-body .budget-product-search-icon,
html.light body.inside-app-body .budget-product-search-icon {
  color: #0f6f61 !important;
  opacity: 0.9 !important;
}

body.theme-light.inside-app-body .budget-product-search input,
body.light-mode.inside-app-body .budget-product-search input,
body[data-theme="light"].inside-app-body .budget-product-search input,
html.light-mode body.inside-app-body .budget-product-search input,
html.light body.inside-app-body .budget-product-search input {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 251, 0.96)) !important;
  border: 1px solid rgba(9, 59, 52, 0.16) !important;
  color: #102126 !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96) inset,
    0 8px 20px rgba(16, 36, 31, 0.055) !important;
}

body.theme-light.inside-app-body .budget-product-search input::placeholder,
body.light-mode.inside-app-body .budget-product-search input::placeholder,
body[data-theme="light"].inside-app-body .budget-product-search input::placeholder,
html.light-mode body.inside-app-body .budget-product-search input::placeholder,
html.light body.inside-app-body .budget-product-search input::placeholder {
  color: rgba(16, 33, 38, 0.48) !important;
}

body.theme-light.inside-app-body .budget-product-search input:focus,
body.light-mode.inside-app-body .budget-product-search input:focus,
body[data-theme="light"].inside-app-body .budget-product-search input:focus,
html.light-mode body.inside-app-body .budget-product-search input:focus,
html.light body.inside-app-body .budget-product-search input:focus {
  border-color: rgba(15, 141, 120, 0.40) !important;
  box-shadow:
    0 0 0 3px rgba(15, 141, 120, 0.10),
    0 12px 24px rgba(16, 36, 31, 0.075) !important;
}

/* Acciones del header light: botón tema, idioma, campana y avatar */
body.theme-light.inside-app-body .budget-product-theme-button,
body.light-mode.inside-app-body .budget-product-theme-button,
body[data-theme="light"].inside-app-body .budget-product-theme-button,
html.light-mode body.inside-app-body .budget-product-theme-button,
html.light body.inside-app-body .budget-product-theme-button {
  min-width: 122px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 249, 0.96)) !important;
  border: 1px solid rgba(9, 59, 52, 0.18) !important;
  color: #173832 !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 18px rgba(16, 36, 31, 0.07) !important;
}

body.theme-light.inside-app-body .budget-product-theme-icon,
body.light-mode.inside-app-body .budget-product-theme-icon,
body[data-theme="light"].inside-app-body .budget-product-theme-icon,
html.light-mode body.inside-app-body .budget-product-theme-icon,
html.light body.inside-app-body .budget-product-theme-icon {
  color: #0f7a68 !important;
  opacity: 1 !important;
}

body.theme-light.inside-app-body .budget-product-notification,
body.light-mode.inside-app-body .budget-product-notification,
body[data-theme="light"].inside-app-body .budget-product-notification,
html.light-mode body.inside-app-body .budget-product-notification,
html.light body.inside-app-body .budget-product-notification,
body.theme-light.inside-app-body .budget-product-language-link,
body.light-mode.inside-app-body .budget-product-language-link,
body[data-theme="light"].inside-app-body .budget-product-language-link,
html.light-mode body.inside-app-body .budget-product-language-link,
html.light body.inside-app-body .budget-product-language-link {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 249, 0.96)) !important;
  border: 1px solid rgba(9, 59, 52, 0.18) !important;
  color: #173832 !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 18px rgba(16, 36, 31, 0.07) !important;
}

body.theme-light.inside-app-body .budget-product-notification svg,
body.light-mode.inside-app-body .budget-product-notification svg,
body[data-theme="light"].inside-app-body .budget-product-notification svg,
html.light-mode body.inside-app-body .budget-product-notification svg,
html.light body.inside-app-body .budget-product-notification svg {
  color: #173832 !important;
  opacity: 0.92 !important;
}

body.theme-light.inside-app-body .budget-product-theme-button:hover,
body.light-mode.inside-app-body .budget-product-theme-button:hover,
body[data-theme="light"].inside-app-body .budget-product-theme-button:hover,
html.light-mode body.inside-app-body .budget-product-theme-button:hover,
html.light body.inside-app-body .budget-product-theme-button:hover,
body.theme-light.inside-app-body .budget-product-notification:hover,
body.light-mode.inside-app-body .budget-product-notification:hover,
body[data-theme="light"].inside-app-body .budget-product-notification:hover,
html.light-mode body.inside-app-body .budget-product-notification:hover,
html.light body.inside-app-body .budget-product-notification:hover,
body.theme-light.inside-app-body .budget-product-language-link:hover,
body.light-mode.inside-app-body .budget-product-language-link:hover,
body[data-theme="light"].inside-app-body .budget-product-language-link:hover,
html.light-mode body.inside-app-body .budget-product-language-link:hover,
html.light body.inside-app-body .budget-product-language-link:hover {
  background: #eaf7f3 !important;
  border-color: rgba(15, 141, 120, 0.32) !important;
  color: #07322c !important;
  transform: translateY(-1px);
}

body.theme-light.inside-app-body .budget-product-avatar,
body.light-mode.inside-app-body .budget-product-avatar,
body[data-theme="light"].inside-app-body .budget-product-avatar,
html.light-mode body.inside-app-body .budget-product-avatar,
html.light body.inside-app-body .budget-product-avatar {
  background: linear-gradient(180deg, #e3f3ef, #c3ddd6) !important;
  color: #07322c !important;
  border: 1px solid rgba(15, 141, 120, 0.28) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 18px rgba(16, 36, 31, 0.08) !important;
}

/* Dark mode: asegura que los iconos no se pierdan */
body:not(.theme-light):not(.light-mode) .inside-app-body .budget-product-search-icon,
body.inside-app-body:not(.theme-light):not(.light-mode) .budget-product-search-icon {
  color: rgba(220, 255, 249, 0.62) !important;
}

body:not(.theme-light):not(.light-mode) .inside-app-body .budget-product-notification,
body.inside-app-body:not(.theme-light):not(.light-mode) .budget-product-notification {
  color: rgba(236, 255, 251, 0.86) !important;
  border-color: rgba(100, 230, 210, 0.18) !important;
}

/* ========================================
   INSIDE | FIX HEADER ICONOS LIGHT V7
   Corrige selectores del modo claro para buscador y campana.
======================================== */
body.theme-light .budget-product-topbar,
body.theme-light .inside-app-body .budget-product-topbar {
  background:
    radial-gradient(circle at 16% -20%, rgba(22, 150, 128, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(244, 250, 247, 0.965) 100%) !important;
  border-bottom: 1px solid rgba(12, 72, 63, 0.16) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 12px 30px rgba(18, 45, 39, 0.085) !important;
}

body.theme-light .budget-product-search {
  position: relative !important;
}

body.theme-light .budget-product-search-icon,
body.theme-light .inside-app-body .budget-product-search-icon {
  color: #0b7566 !important;
  opacity: 1 !important;
  z-index: 3 !important;
  left: 16px !important;
  width: 18px !important;
  height: 18px !important;
}

body.theme-light .budget-product-search-icon svg,
body.theme-light .inside-app-body .budget-product-search-icon svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

body.theme-light .budget-product-search input,
body.theme-light .inside-app-body .budget-product-search input {
  padding-left: 46px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 250, 0.98)) !important;
  border: 1px solid rgba(12, 72, 63, 0.18) !important;
  color: #102126 !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96) inset,
    0 9px 24px rgba(16, 36, 31, 0.06) !important;
}

body.theme-light .budget-product-search input::placeholder,
body.theme-light .inside-app-body .budget-product-search input::placeholder {
  color: rgba(16, 33, 38, 0.48) !important;
}

body.theme-light .budget-product-theme-button,
body.theme-light .inside-app-body .budget-product-theme-button {
  min-width: 128px !important;
  background: linear-gradient(180deg, #ffffff, #f4faf7) !important;
  border: 1px solid rgba(12, 72, 63, 0.20) !important;
  color: #123b34 !important;
  box-shadow: 0 8px 20px rgba(16, 36, 31, 0.07) !important;
}

body.theme-light .budget-product-theme-icon,
body.theme-light .inside-app-body .budget-product-theme-icon {
  color: #0b7566 !important;
}

body.theme-light .budget-product-notification,
body.theme-light .inside-app-body .budget-product-notification {
  display: inline-flex !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  flex: 0 0 40px !important;
  background: linear-gradient(180deg, #ffffff, #f4faf7) !important;
  border: 1px solid rgba(12, 72, 63, 0.20) !important;
  color: #123b34 !important;
  box-shadow: 0 8px 20px rgba(16, 36, 31, 0.07) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.theme-light .budget-product-notification svg,
body.theme-light .inside-app-body .budget-product-notification svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  color: #123b34 !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}

body.theme-light .budget-product-language-link,
body.theme-light .inside-app-body .budget-product-language-link,
body.theme-light .budget-product-avatar,
body.theme-light .inside-app-body .budget-product-avatar {
  border-color: rgba(12, 72, 63, 0.20) !important;
  box-shadow: 0 8px 20px rgba(16, 36, 31, 0.07) !important;
}

body.theme-light .budget-product-theme-button:hover,
body.theme-light .budget-product-notification:hover,
body.theme-light .budget-product-language-link:hover,
body.theme-light .inside-app-body .budget-product-theme-button:hover,
body.theme-light .inside-app-body .budget-product-notification:hover,
body.theme-light .inside-app-body .budget-product-language-link:hover {
  background: #e9f7f3 !important;
  border-color: rgba(15, 141, 120, 0.34) !important;
  color: #07322c !important;
}

/* ========================================
   INSIDE | FIX HEADER ICONOS FORZADOS V8
   Fuerza lupa y campana con pseudo-elementos independientes del SVG.
======================================== */
.budget-product-search {
  position: relative !important;
}

.budget-product-search::before {
  content: "" !important;
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  width: 17px !important;
  height: 17px !important;
  transform: translateY(-50%) !important;
  z-index: 8 !important;
  pointer-events: none !important;
  background: rgba(220, 255, 249, 0.72) !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.8 3a6.8 6.8 0 0 1 5.36 10.98l4.43 4.43a1 1 0 0 1-1.42 1.42l-4.43-4.43A6.8 6.8 0 1 1 9.8 3Zm0 2a4.8 4.8 0 1 0 0 9.6a4.8 4.8 0 0 0 0-9.6Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.8 3a6.8 6.8 0 0 1 5.36 10.98l4.43 4.43a1 1 0 0 1-1.42 1.42l-4.43-4.43A6.8 6.8 0 1 1 9.8 3Zm0 2a4.8 4.8 0 1 0 0 9.6a4.8 4.8 0 0 0 0-9.6Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.budget-product-search-icon {
  opacity: 0 !important;
  visibility: hidden !important;
}

.budget-product-search input {
  padding-left: 46px !important;
}

.budget-product-notification {
  position: relative !important;
  overflow: visible !important;
}

.budget-product-notification::before {
  content: "" !important;
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  flex: 0 0 18px !important;
  background: rgba(236, 255, 251, 0.88) !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 22a2.7 2.7 0 0 0 2.55-1.8h-5.1A2.7 2.7 0 0 0 12 22Zm7.5-5.2c-.86-.95-1.5-2.2-1.5-6A6 6 0 0 0 13 4.92V3a1 1 0 1 0-2 0v1.92a6 6 0 0 0-5 5.88c0 3.8-.64 5.05-1.5 6A1.85 1.85 0 0 0 5.87 20h12.26a1.85 1.85 0 0 0 1.37-3.2ZM6.72 18c.93-1.3 1.28-3.08 1.28-7.2a4 4 0 0 1 8 0c0 4.12.35 5.9 1.28 7.2H6.72Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 22a2.7 2.7 0 0 0 2.55-1.8h-5.1A2.7 2.7 0 0 0 12 22Zm7.5-5.2c-.86-.95-1.5-2.2-1.5-6A6 6 0 0 0 13 4.92V3a1 1 0 1 0-2 0v1.92a6 6 0 0 0-5 5.88c0 3.8-.64 5.05-1.5 6A1.85 1.85 0 0 0 5.87 20h12.26a1.85 1.85 0 0 0 1.37-3.2ZM6.72 18c.93-1.3 1.28-3.08 1.28-7.2a4 4 0 0 1 8 0c0 4.12.35 5.9 1.28 7.2H6.72Z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.budget-product-notification svg {
  display: none !important;
}

body.theme-light .budget-product-search::before,
body.light-mode .budget-product-search::before,
body[data-theme="light"] .budget-product-search::before,
html.light-mode body .budget-product-search::before,
html.light body .budget-product-search::before {
  background: #0b7566 !important;
}

body.theme-light .budget-product-notification::before,
body.light-mode .budget-product-notification::before,
body[data-theme="light"] .budget-product-notification::before,
html.light-mode body .budget-product-notification::before,
html.light body .budget-product-notification::before {
  background: #123b34 !important;
}

body.theme-light .budget-product-notification,
body.light-mode .budget-product-notification,
body[data-theme="light"] .budget-product-notification,
html.light-mode body .budget-product-notification,
html.light body .budget-product-notification {
  background: linear-gradient(180deg, #ffffff, #f1f8f5) !important;
  border: 1px solid rgba(12, 72, 63, 0.24) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 20px rgba(16, 36, 31, 0.085) !important;
}

.budget-product-notification::after {
  content: "" !important;
  position: absolute !important;
  top: 9px !important;
  right: 10px !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: #60e6d2 !important;
  box-shadow: 0 0 0 2px rgba(2, 22, 29, 0.88) !important;
}

body.theme-light .budget-product-notification::after,
body.light-mode .budget-product-notification::after,
body[data-theme="light"] .budget-product-notification::after,
html.light-mode body .budget-product-notification::after,
html.light body .budget-product-notification::after {
  background: #0f8d78 !important;
  box-shadow: 0 0 0 2px #ffffff !important;
}

/* ========================================
   INSIDE | HEADER ICON FIX V10
   Mantiene una sola campana real y refuerza contraste en light/dark.
======================================== */
.budget-product-notification::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  mask: none !important;
  -webkit-mask: none !important;
}

.budget-product-notification {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 999px !important;
  color: rgba(218, 255, 249, 0.92) !important;
}

.budget-product-notification svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  color: currentColor !important;
  stroke: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
  flex: 0 0 auto !important;
}

.budget-product-notification svg path {
  stroke: currentColor !important;
}

body.theme-light .budget-product-notification,
body.light-mode .budget-product-notification,
body[data-theme="light"] .budget-product-notification,
html.light-mode body .budget-product-notification,
html.light body .budget-product-notification,
body.theme-light.inside-app-body .budget-product-notification {
  color: #0b4b42 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 249, 245, 0.96)) !important;
  border: 1px solid rgba(9, 89, 77, 0.24) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 22px rgba(14, 63, 55, 0.11) !important;
}

body.theme-light .budget-product-notification svg,
body.light-mode .budget-product-notification svg,
body[data-theme="light"] .budget-product-notification svg,
html.light-mode body .budget-product-notification svg,
html.light body .budget-product-notification svg,
body.theme-light.inside-app-body .budget-product-notification svg {
  color: #0b4b42 !important;
  stroke: #0b4b42 !important;
}

body:not(.theme-light):not(.light-mode) .budget-product-notification,
body.inside-app-body:not(.theme-light):not(.light-mode) .budget-product-notification {
  color: rgba(218, 255, 249, 0.95) !important;
  background: rgba(3, 31, 38, 0.82) !important;
  border: 1px solid rgba(100, 230, 210, 0.22) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
}

body:not(.theme-light):not(.light-mode) .budget-product-notification svg,
body.inside-app-body:not(.theme-light):not(.light-mode) .budget-product-notification svg {
  color: rgba(218, 255, 249, 0.95) !important;
  stroke: rgba(218, 255, 249, 0.95) !important;
}

.budget-product-search::before {
  display: none !important;
  content: none !important;
}

.budget-product-search-icon {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
  color: rgba(190, 255, 246, 0.72) !important;
}

.budget-product-search-icon svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  color: currentColor !important;
  stroke: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.theme-light .budget-product-search-icon,
body.light-mode .budget-product-search-icon,
body[data-theme="light"] .budget-product-search-icon,
html.light-mode body .budget-product-search-icon,
html.light body .budget-product-search-icon,
body.theme-light.inside-app-body .budget-product-search-icon {
  color: #0b7566 !important;
}

body.theme-light .budget-product-search,
body.light-mode .budget-product-search,
body[data-theme="light"] .budget-product-search,
html.light-mode body .budget-product-search,
html.light body .budget-product-search,
body.theme-light.inside-app-body .budget-product-search {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(9, 89, 77, 0.18) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 24px rgba(13, 54, 47, 0.06) !important;
}


/* ========================================
   INSIDE | AJUSTE SIDEBAR PROYECTO ACTIVO + MENÚ AVATAR
   Alcance: visual/header/sidebar. No afecta lógica de cálculo.
======================================== */
.inside-app-body .budget-product-topbar {
  grid-template-columns: var(--app-sidebar-width) minmax(110px, 190px) minmax(360px, 620px) minmax(260px, 1fr) !important;
}

.inside-app-body .budget-product-search {
  justify-self: end !important;
  width: min(620px, 100%) !important;
  max-width: 620px !important;
}

.inside-app-body .budget-product-topbar-actions {
  justify-self: end !important;
}

.budget-product-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.budget-product-user-menu .budget-product-avatar {
  border: 1px solid rgba(100, 230, 210, 0.22);
  cursor: pointer;
  padding: 0;
}

.budget-product-avatar-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 12020;
  min-width: 178px;
  padding: 7px;
  border-radius: 16px;
  border: 1px solid rgba(100, 230, 210, 0.16);
  background:
    linear-gradient(180deg, rgba(3, 24, 31, 0.98), rgba(2, 18, 26, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.budget-product-avatar-dropdown[hidden] {
  display: none !important;
}

.budget-product-avatar-menu-item {
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(236, 255, 251, 0.86);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 850;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.budget-product-avatar-menu-item:hover {
  color: #ffffff;
  background: rgba(100, 230, 210, 0.10);
  transform: translateX(1px);
}

.budget-product-avatar-menu-item--danger:hover {
  background: rgba(190, 42, 42, 0.18);
  color: #ffd9d9;
}

.budget-product-avatar-menu-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 230, 210, 0.10);
  color: rgba(100, 230, 210, 0.92);
  font-size: 0.78rem;
  line-height: 1;
}

.app-sidebar-project-card {
  min-height: 68px;
  padding: 12px 13px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  border: 1px solid rgba(100, 230, 210, 0.15);
  background:
    linear-gradient(135deg, rgba(100, 230, 210, 0.09), rgba(255, 255, 255, 0.035));
  color: rgba(236, 255, 251, 0.90);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-sidebar-project-label {
  display: block;
  margin-bottom: 5px;
  color: rgba(220, 255, 249, 0.58);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.app-sidebar-project-name {
  display: block;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.app-sidebar-project-arrow {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  color: rgba(100, 230, 210, 0.92);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(100, 230, 210, 0.10);
  font-size: 1.15rem;
  line-height: 1;
}

.app-sidebar-bottom .app-sidebar-footer,
.app-sidebar-logout {
  display: none !important;
}

body.theme-light .budget-product-avatar-dropdown {
  border-color: rgba(9, 59, 52, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 248, 0.98));
  box-shadow: 0 16px 38px rgba(18, 38, 34, 0.13);
}

body.theme-light .budget-product-avatar-menu-item {
  color: rgba(10, 42, 36, 0.78);
}

body.theme-light .budget-product-avatar-menu-item:hover {
  color: #07322c;
  background: rgba(15, 141, 120, 0.08);
}

body.theme-light .budget-product-avatar-menu-item--danger:hover {
  background: rgba(190, 42, 42, 0.10);
  color: #8f1f25;
}

body.theme-light .budget-product-avatar-menu-icon {
  background: rgba(15, 141, 120, 0.10);
  color: #0f7a68;
}

body.theme-light .app-sidebar-project-card {
  border-color: rgba(15, 141, 120, 0.14);
  background:
    linear-gradient(135deg, rgba(240, 250, 247, 0.98), rgba(255, 255, 255, 0.92));
  color: rgba(10, 42, 36, 0.86);
  box-shadow: 0 10px 24px rgba(18, 38, 34, 0.06);
}

body.theme-light .app-sidebar-project-label {
  color: rgba(10, 42, 36, 0.54);
}

body.theme-light .app-sidebar-project-name {
  color: #092f29;
}

body.theme-light .app-sidebar-project-arrow {
  color: #0f7a68;
  background: rgba(15, 141, 120, 0.08);
  border-color: rgba(15, 141, 120, 0.12);
}

@media (max-width: 1180px) {
  .inside-app-body .budget-product-topbar {
    grid-template-columns: minmax(150px, var(--app-sidebar-width)) minmax(95px, 150px) minmax(260px, 1fr) auto !important;
  }

  .inside-app-body .budget-product-search {
    width: min(520px, 100%) !important;
  }
}

@media (max-width: 860px) {
  .inside-app-body .budget-product-search {
    width: 100% !important;
    justify-self: stretch !important;
  }

  .budget-product-avatar-dropdown {
    right: auto;
    left: 0;
  }
}

/* ========================================
   INSIDE | HEADER SEARCH CONTRASTE + PROYECTO ACTIVO V12
   Ajusta posición del buscador, contraste de iconos y card de proyecto funcional.
======================================== */
.inside-app-body .budget-product-topbar {
  grid-template-columns: var(--app-sidebar-width) minmax(170px, 250px) minmax(380px, 640px) minmax(250px, 1fr) !important;
}

.inside-app-body .budget-product-search {
  justify-self: end !important;
  width: min(640px, 100%) !important;
  max-width: 640px !important;
}

.inside-app-body .budget-product-search-icon {
  position: absolute !important;
  left: 17px !important;
  top: 50% !important;
  z-index: 4 !important;
  width: 19px !important;
  height: 19px !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
  transform: translateY(-50%) !important;
  color: rgba(202, 255, 247, 0.82) !important;
}

.inside-app-body .budget-product-search-icon svg,
.inside-app-body .budget-product-search-icon svg path {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  color: currentColor !important;
  stroke: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.inside-app-body .budget-product-search input {
  padding-left: 48px !important;
}

.inside-app-body .budget-product-notification {
  color: rgba(220, 255, 249, 0.96) !important;
}

.inside-app-body .budget-product-notification svg,
.inside-app-body .budget-product-notification svg path {
  display: block !important;
  color: currentColor !important;
  stroke: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.theme-light .inside-app-body .budget-product-search-icon,
body.theme-light.inside-app-body .budget-product-search-icon,
body.light-mode .inside-app-body .budget-product-search-icon,
body[data-theme="light"] .inside-app-body .budget-product-search-icon,
html.light-mode body .budget-product-search-icon,
html.light body .budget-product-search-icon {
  color: #075f53 !important;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.85));
}

body.theme-light .inside-app-body .budget-product-search input,
body.theme-light.inside-app-body .budget-product-search input,
body.light-mode .inside-app-body .budget-product-search input,
body[data-theme="light"] .inside-app-body .budget-product-search input,
html.light-mode body .budget-product-search input,
html.light body .budget-product-search input {
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246,252,250,0.98)) !important;
  border-color: rgba(7, 95, 83, 0.24) !important;
  color: #102126 !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.95) inset, 0 12px 26px rgba(12,54,47,0.08) !important;
}

body.theme-light .inside-app-body .budget-product-notification,
body.theme-light.inside-app-body .budget-product-notification,
body.light-mode .inside-app-body .budget-product-notification,
body[data-theme="light"] .inside-app-body .budget-product-notification,
html.light-mode body .budget-product-notification,
html.light body .budget-product-notification {
  color: #073f38 !important;
  background: linear-gradient(180deg, #ffffff, #edf8f5) !important;
  border-color: rgba(7, 95, 83, 0.26) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.95) inset, 0 10px 22px rgba(12,54,47,0.12) !important;
}

body.theme-light .inside-app-body .budget-product-notification svg,
body.theme-light .inside-app-body .budget-product-notification svg path,
body.theme-light.inside-app-body .budget-product-notification svg,
body.theme-light.inside-app-body .budget-product-notification svg path,
body.light-mode .inside-app-body .budget-product-notification svg,
body.light-mode .inside-app-body .budget-product-notification svg path,
body[data-theme="light"] .inside-app-body .budget-product-notification svg,
body[data-theme="light"] .inside-app-body .budget-product-notification svg path,
html.light-mode body .budget-product-notification svg,
html.light-mode body .budget-product-notification svg path,
html.light body .budget-product-notification svg,
html.light body .budget-product-notification svg path {
  color: #073f38 !important;
  stroke: #073f38 !important;
}

.app-sidebar-project-card {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.app-sidebar-project-card:hover {
  transform: translateY(-1px);
  border-color: rgba(100, 230, 210, 0.32);
  background: linear-gradient(135deg, rgba(100, 230, 210, 0.14), rgba(255, 255, 255, 0.055));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.theme-light .app-sidebar-project-card:hover {
  border-color: rgba(15, 141, 120, 0.28);
  background: linear-gradient(135deg, rgba(226, 248, 242, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 12px 26px rgba(18, 38, 34, 0.10);
}

@media (max-width: 1180px) {
  .inside-app-body .budget-product-topbar {
    grid-template-columns: minmax(150px, var(--app-sidebar-width)) minmax(120px, 180px) minmax(260px, 1fr) auto !important;
  }

  .inside-app-body .budget-product-search {
    width: min(540px, 100%) !important;
  }
}

/* ========================================
   INSIDE | HEADER NOTIFICATIONS DROPDOWN V13
   Campana funcional con badge real y menú de notificaciones.
======================================== */
.budget-product-notification-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.budget-product-notification::after {
  content: none !important;
  display: none !important;
}

.budget-product-notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #60e6d2;
  color: #06252b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  border: 2px solid rgba(2, 22, 29, 0.96);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.budget-product-notification-badge[hidden] {
  display: none !important;
}

.budget-product-notification-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 12030;
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(100, 230, 210, 0.18);
  background:
    linear-gradient(180deg, rgba(3, 24, 31, 0.98), rgba(2, 18, 26, 0.98));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.budget-product-notification-dropdown[hidden] {
  display: none !important;
}

.budget-product-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(100, 230, 210, 0.12);
  color: #f4fffd;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.budget-product-notification-link {
  color: #71f2df;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.budget-product-notification-list {
  max-height: 380px;
  overflow: auto;
  padding: 8px;
}

.budget-product-notification-empty {
  padding: 18px 14px;
  color: rgba(220, 255, 249, 0.66);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.budget-product-notification-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 10px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.budget-product-notification-item:hover {
  background: rgba(100, 230, 210, 0.08);
  border-color: rgba(100, 230, 210, 0.18);
  transform: translateY(-1px);
}

.budget-product-notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: #60e6d2;
  box-shadow: 0 0 0 3px rgba(96, 230, 210, 0.12);
}

.budget-product-notification-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.budget-product-notification-title {
  color: #f5fffd;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.budget-product-notification-message {
  color: rgba(220, 255, 249, 0.70);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.budget-product-notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(113, 242, 223, 0.82);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.theme-light .budget-product-notification-badge,
body.light-mode .budget-product-notification-badge,
body[data-theme="light"] .budget-product-notification-badge,
html.light-mode body .budget-product-notification-badge,
html.light body .budget-product-notification-badge {
  background: #0f8d78;
  color: #ffffff;
  border-color: #ffffff;
}

body.theme-light .budget-product-notification-dropdown,
body.light-mode .budget-product-notification-dropdown,
body[data-theme="light"] .budget-product-notification-dropdown,
html.light-mode body .budget-product-notification-dropdown,
html.light body .budget-product-notification-dropdown {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 251, 249, 0.99));
  border-color: rgba(9, 89, 77, 0.18);
  box-shadow: 0 22px 54px rgba(15, 45, 39, 0.15);
}

body.theme-light .budget-product-notification-head,
body.light-mode .budget-product-notification-head,
body[data-theme="light"] .budget-product-notification-head,
html.light-mode body .budget-product-notification-head,
html.light body .budget-product-notification-head {
  color: #102126;
  border-bottom-color: rgba(9, 89, 77, 0.12);
}

body.theme-light .budget-product-notification-link,
body.light-mode .budget-product-notification-link,
body[data-theme="light"] .budget-product-notification-link,
html.light-mode body .budget-product-notification-link,
html.light body .budget-product-notification-link {
  color: #0f7a68;
}

body.theme-light .budget-product-notification-empty,
body.light-mode .budget-product-notification-empty,
body[data-theme="light"] .budget-product-notification-empty,
html.light-mode body .budget-product-notification-empty,
html.light body .budget-product-notification-empty {
  color: rgba(16, 33, 38, 0.62);
}

body.theme-light .budget-product-notification-item:hover,
body.light-mode .budget-product-notification-item:hover,
body[data-theme="light"] .budget-product-notification-item:hover,
html.light-mode body .budget-product-notification-item:hover,
html.light body .budget-product-notification-item:hover {
  background: rgba(15, 141, 120, 0.08);
  border-color: rgba(15, 141, 120, 0.18);
}

body.theme-light .budget-product-notification-title,
body.light-mode .budget-product-notification-title,
body[data-theme="light"] .budget-product-notification-title,
html.light-mode body .budget-product-notification-title,
html.light body .budget-product-notification-title {
  color: #102126;
}

body.theme-light .budget-product-notification-message,
body.light-mode .budget-product-notification-message,
body[data-theme="light"] .budget-product-notification-message,
html.light-mode body .budget-product-notification-message,
html.light body .budget-product-notification-message {
  color: rgba(16, 33, 38, 0.68);
}

body.theme-light .budget-product-notification-meta,
body.light-mode .budget-product-notification-meta,
body[data-theme="light"] .budget-product-notification-meta,
html.light-mode body .budget-product-notification-meta,
html.light body .budget-product-notification-meta {
  color: #0f7a68;
}


/* ========================================
   INSIDE | FIX V14
   Notificaciones legibles en light + proyecto activo a presupuestos
======================================== */

.app-sidebar-project-card,
.app-sidebar-project-card:visited {
  cursor: pointer;
}

.app-sidebar-project-card:hover {
  transform: translateY(-1px);
}

/* La caja de proyecto activo debe comportarse como acceso directo al dashboard de presupuestos. */
.app-sidebar-project-card[href="/presupuestos"] .app-sidebar-project-arrow {
  color: #062b27;
  background: rgba(100, 230, 210, 0.78);
}

/* Refuerzo de lectura del dropdown de notificaciones en modo claro.
   Se usan selectores amplios porque el tema puede activarse por body, html o data-theme según la vista. */
body.theme-light .budget-product-notification-dropdown,
body.light-mode .budget-product-notification-dropdown,
body[data-theme="light"] .budget-product-notification-dropdown,
html.theme-light body .budget-product-notification-dropdown,
html.light-mode body .budget-product-notification-dropdown,
html.light body .budget-product-notification-dropdown,
html[data-theme="light"] body .budget-product-notification-dropdown {
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf8 100%) !important;
  border: 1px solid rgba(8, 94, 80, 0.22) !important;
  box-shadow: 0 24px 58px rgba(18, 55, 48, 0.22) !important;
}

body.theme-light .budget-product-notification-head,
body.light-mode .budget-product-notification-head,
body[data-theme="light"] .budget-product-notification-head,
html.theme-light body .budget-product-notification-head,
html.light-mode body .budget-product-notification-head,
html.light body .budget-product-notification-head,
html[data-theme="light"] body .budget-product-notification-head {
  color: #062b27 !important;
  background: linear-gradient(180deg, rgba(233, 250, 246, 0.98), rgba(255, 255, 255, 0.98)) !important;
  border-bottom: 1px solid rgba(8, 94, 80, 0.16) !important;
}

body.theme-light .budget-product-notification-link,
body.light-mode .budget-product-notification-link,
body[data-theme="light"] .budget-product-notification-link,
html.theme-light body .budget-product-notification-link,
html.light-mode body .budget-product-notification-link,
html.light body .budget-product-notification-link,
html[data-theme="light"] body .budget-product-notification-link {
  color: #087966 !important;
}

body.theme-light .budget-product-notification-list,
body.light-mode .budget-product-notification-list,
body[data-theme="light"] .budget-product-notification-list,
html.theme-light body .budget-product-notification-list,
html.light-mode body .budget-product-notification-list,
html.light body .budget-product-notification-list,
html[data-theme="light"] body .budget-product-notification-list {
  background: #ffffff !important;
}

body.theme-light .budget-product-notification-item,
body.light-mode .budget-product-notification-item,
body[data-theme="light"] .budget-product-notification-item,
html.theme-light body .budget-product-notification-item,
html.light-mode body .budget-product-notification-item,
html.light body .budget-product-notification-item,
html[data-theme="light"] body .budget-product-notification-item {
  background: rgba(248, 253, 251, 0.98) !important;
  border: 1px solid rgba(8, 94, 80, 0.12) !important;
  color: #092b2a !important;
}

body.theme-light .budget-product-notification-item:hover,
body.light-mode .budget-product-notification-item:hover,
body[data-theme="light"] .budget-product-notification-item:hover,
html.theme-light body .budget-product-notification-item:hover,
html.light-mode body .budget-product-notification-item:hover,
html.light body .budget-product-notification-item:hover,
html[data-theme="light"] body .budget-product-notification-item:hover {
  background: rgba(229, 249, 244, 0.98) !important;
  border-color: rgba(8, 124, 105, 0.28) !important;
}

body.theme-light .budget-product-notification-title,
body.light-mode .budget-product-notification-title,
body[data-theme="light"] .budget-product-notification-title,
html.theme-light body .budget-product-notification-title,
html.light-mode body .budget-product-notification-title,
html.light body .budget-product-notification-title,
html[data-theme="light"] body .budget-product-notification-title {
  color: #071d20 !important;
  opacity: 1 !important;
}

body.theme-light .budget-product-notification-message,
body.light-mode .budget-product-notification-message,
body[data-theme="light"] .budget-product-notification-message,
html.theme-light body .budget-product-notification-message,
html.light-mode body .budget-product-notification-message,
html.light body .budget-product-notification-message,
html[data-theme="light"] body .budget-product-notification-message {
  color: #425e5e !important;
  opacity: 1 !important;
}

body.theme-light .budget-product-notification-meta,
body.light-mode .budget-product-notification-meta,
body[data-theme="light"] .budget-product-notification-meta,
html.theme-light body .budget-product-notification-meta,
html.light-mode body .budget-product-notification-meta,
html.light body .budget-product-notification-meta,
html[data-theme="light"] body .budget-product-notification-meta {
  color: #087966 !important;
  opacity: 1 !important;
}

body.theme-light .budget-product-notification-empty,
body.light-mode .budget-product-notification-empty,
body[data-theme="light"] .budget-product-notification-empty,
html.theme-light body .budget-product-notification-empty,
html.light-mode body .budget-product-notification-empty,
html.light body .budget-product-notification-empty,
html[data-theme="light"] body .budget-product-notification-empty {
  color: #425e5e !important;
  background: rgba(248, 253, 251, 0.98) !important;
}

/* Refuerzo puntual de iconos del header en modo claro. */
body.theme-light .budget-product-search-icon,
body.light-mode .budget-product-search-icon,
body[data-theme="light"] .budget-product-search-icon,
html.theme-light body .budget-product-search-icon,
html.light-mode body .budget-product-search-icon,
html.light body .budget-product-search-icon,
html[data-theme="light"] body .budget-product-search-icon,
body.theme-light .budget-product-notification svg,
body.light-mode .budget-product-notification svg,
body[data-theme="light"] .budget-product-notification svg,
html.theme-light body .budget-product-notification svg,
html.light-mode body .budget-product-notification svg,
html.light body .budget-product-notification svg,
html[data-theme="light"] body .budget-product-notification svg {
  color: #087966 !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}

body.theme-light .budget-product-notification,
body.light-mode .budget-product-notification,
body[data-theme="light"] .budget-product-notification,
html.theme-light body .budget-product-notification,
html.light-mode body .budget-product-notification,
html.light body .budget-product-notification,
html[data-theme="light"] body .budget-product-notification {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(8, 94, 80, 0.20) !important;
  color: #087966 !important;
  box-shadow: 0 8px 18px rgba(18, 55, 48, 0.10) !important;
}

/* El dropdown no debe desaparecer detrás de tarjetas del dashboard. */
.budget-product-notification-menu {
  z-index: 12020;
}

.budget-product-notification-dropdown {
  z-index: 12040;
}


/* ========================================
   INSIDE | HEADER GLOBAL TODAS HERRAMIENTAS V15
   Aplica el header superior a soporte/admin/estructuras/herramientas
   y corrige lectura de notificaciones en modo claro.
======================================== */

/* Separación superior para vistas de herramientas con header global */
.inside-app-body .budget-product-topbar ~ main.admin-support-page,
.inside-app-body .budget-product-topbar ~ main.support-portal-page,
.inside-app-body .budget-product-topbar ~ main.tools-app-page,
.inside-app-body .budget-product-topbar ~ main:not(.budget-page):not(.dashboard-page):not(.profile-page) {
  padding-top: calc(var(--inside-app-topbar-height) + 36px) !important;
}

.inside-app-body .budget-product-topbar ~ main.admin-support-page .admin-support-shell,
.inside-app-body .budget-product-topbar ~ main.support-portal-page .support-portal-shell {
  padding-top: 0 !important;
}

.inside-app-body .budget-product-topbar ~ main.tools-app-page .tools-app-header {
  padding-top: 52px !important;
}

/* Admin soporte y portal de ayuda deben convivir con sidebar + header global */
.inside-app-body .budget-product-topbar ~ main.admin-support-page,
.inside-app-body .budget-product-topbar ~ main.support-portal-page {
  margin-left: var(--app-sidebar-width) !important;
}

/* Refuerzo definitivo de notificaciones en modo claro: ningún texto debe quedar blanco. */
body.theme-light .budget-product-notification-dropdown,
body.light-mode .budget-product-notification-dropdown,
body[data-theme="light"] .budget-product-notification-dropdown,
html.theme-light body .budget-product-notification-dropdown,
html.light-mode body .budget-product-notification-dropdown,
html.light body .budget-product-notification-dropdown,
html[data-theme="light"] body .budget-product-notification-dropdown {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf8 100%) !important;
  color: #102126 !important;
  border-color: rgba(8, 94, 80, 0.24) !important;
}

body.theme-light .budget-product-notification-dropdown *,
body.light-mode .budget-product-notification-dropdown *,
body[data-theme="light"] .budget-product-notification-dropdown *,
html.theme-light body .budget-product-notification-dropdown *,
html.light-mode body .budget-product-notification-dropdown *,
html.light body .budget-product-notification-dropdown *,
html[data-theme="light"] body .budget-product-notification-dropdown * {
  opacity: 1 !important;
  text-shadow: none !important;
}

body.theme-light .budget-product-notification-head,
body.theme-light .budget-product-notification-head > span,
body.light-mode .budget-product-notification-head,
body.light-mode .budget-product-notification-head > span,
body[data-theme="light"] .budget-product-notification-head,
body[data-theme="light"] .budget-product-notification-head > span,
html.light-mode body .budget-product-notification-head,
html.light-mode body .budget-product-notification-head > span,
html.light body .budget-product-notification-head,
html.light body .budget-product-notification-head > span {
  color: #062b27 !important;
}

body.theme-light .budget-product-notification-item,
body.light-mode .budget-product-notification-item,
body[data-theme="light"] .budget-product-notification-item,
html.theme-light body .budget-product-notification-item,
html.light-mode body .budget-product-notification-item,
html.light body .budget-product-notification-item,
html[data-theme="light"] body .budget-product-notification-item {
  background: #f8fdfb !important;
  color: #102126 !important;
  border-color: rgba(8, 94, 80, 0.16) !important;
}

body.theme-light .budget-product-notification-item span:not(.budget-product-notification-dot),
body.light-mode .budget-product-notification-item span:not(.budget-product-notification-dot),
body[data-theme="light"] .budget-product-notification-item span:not(.budget-product-notification-dot),
html.theme-light body .budget-product-notification-item span:not(.budget-product-notification-dot),
html.light-mode body .budget-product-notification-item span:not(.budget-product-notification-dot),
html.light body .budget-product-notification-item span:not(.budget-product-notification-dot),
html[data-theme="light"] body .budget-product-notification-item span:not(.budget-product-notification-dot) {
  color: inherit !important;
}

body.theme-light .budget-product-notification-title,
body.theme-light .budget-product-notification-content .budget-product-notification-title,
body.light-mode .budget-product-notification-title,
body[data-theme="light"] .budget-product-notification-title,
html.light-mode body .budget-product-notification-title,
html.light body .budget-product-notification-title {
  color: #071d20 !important;
  font-weight: 950 !important;
}

body.theme-light .budget-product-notification-message,
body.theme-light .budget-product-notification-content .budget-product-notification-message,
body.light-mode .budget-product-notification-message,
body[data-theme="light"] .budget-product-notification-message,
html.light-mode body .budget-product-notification-message,
html.light body .budget-product-notification-message {
  color: #395b5a !important;
  font-weight: 750 !important;
}

body.theme-light .budget-product-notification-meta,
body.theme-light .budget-product-notification-meta span,
body.light-mode .budget-product-notification-meta,
body.light-mode .budget-product-notification-meta span,
body[data-theme="light"] .budget-product-notification-meta,
body[data-theme="light"] .budget-product-notification-meta span,
html.light-mode body .budget-product-notification-meta,
html.light-mode body .budget-product-notification-meta span,
html.light body .budget-product-notification-meta,
html.light body .budget-product-notification-meta span {
  color: #087966 !important;
  font-weight: 950 !important;
}

body.theme-light .budget-product-notification-link,
body.light-mode .budget-product-notification-link,
body[data-theme="light"] .budget-product-notification-link,
html.light-mode body .budget-product-notification-link,
html.light body .budget-product-notification-link {
  color: #057362 !important;
  font-weight: 950 !important;
}

body.theme-light .budget-product-notification-dot,
body.light-mode .budget-product-notification-dot,
body[data-theme="light"] .budget-product-notification-dot,
html.light-mode body .budget-product-notification-dot,
html.light body .budget-product-notification-dot {
  background: #0f8d78 !important;
  box-shadow: 0 0 0 3px rgba(15, 141, 120, 0.16) !important;
}

@media (max-width: 860px) {
  .inside-app-body .budget-product-topbar ~ main.admin-support-page,
  .inside-app-body .budget-product-topbar ~ main.support-portal-page,
  .inside-app-body .budget-product-topbar ~ main.tools-app-page,
  .inside-app-body .budget-product-topbar ~ main:not(.budget-page):not(.dashboard-page):not(.profile-page) {
    padding-top: 18px !important;
    margin-left: 0 !important;
  }
}

/* ========================================
   INSIDE | FIX LIGHT PRESUPUESTOS HERO + TEMPLATE CARDS V16
   Alcance: solo modo claro en /presupuestos.
   - Fondo del hero uniforme.
   - Tarjetas de plantillas sin encabezado oscuro.
   - Solo la barra conserva color por porcentaje.
======================================== */
body.theme-light .budget-page {
  background:
    linear-gradient(180deg, rgba(249, 252, 250, 0.98) 0%, rgba(243, 248, 246, 0.96) 45%, rgba(248, 250, 248, 0.98) 100%) !important;
  color: #102126 !important;
}

body.theme-light .budget-product-topbar + .budget-page .budget-header,
body.theme-light .budget-header {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(249, 252, 250, 0.90) 100%) !important;
  border-bottom: 1px solid rgba(10, 64, 57, 0.06) !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.92) !important;
}

body.theme-light .budget-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 44px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 248, 246, 0));
}

body.theme-light .budget-header .container {
  position: relative;
  z-index: 1;
}

body.theme-light .budget-kicker {
  color: rgba(28, 55, 56, 0.58) !important;
}

body.theme-light .budget-title {
  color: #102126 !important;
}

body.theme-light .budget-title span {
  color: #0f7a68 !important;
  text-shadow: none !important;
}

body.theme-light .budget-subtitle {
  display: block;
  width: fit-content;
  max-width: 760px;
  padding: 0;
  background: transparent !important;
  color: #5f7474 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.theme-light .budget-app-section {
  background:
    linear-gradient(180deg, rgba(243, 248, 246, 0.98) 0%, rgba(248, 250, 248, 0.98) 100%) !important;
}

body.theme-light .budget-card,
body.theme-light .budget-toolbar,
body.theme-light .budget-app-shell--workspace > .budget-main,
body.theme-light .budget-dashboard-template-selector {
  color: #102126 !important;
}

/* Tarjetas del dashboard de plantillas en light: neutras, sin barra superior oscura. */
body.theme-light .budget-dashboard-template-group,
body.theme-light .budget-dashboard-template-group--empty,
body.theme-light .budget-dashboard-template-group--incomplete,
body.theme-light .budget-dashboard-template-group--progress,
body.theme-light .budget-dashboard-template-group--almost,
body.theme-light .budget-dashboard-template-group--complete {
  border: 1px solid rgba(10, 64, 57, 0.12) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 252, 250, 0.88) 100%) !important;
  box-shadow: 0 16px 34px rgba(18, 38, 34, 0.055) !important;
}

body.theme-light .budget-dashboard-template-group header,
body.theme-light .budget-dashboard-template-group > header,
body.theme-light .budget-dashboard-template-heading {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
}

body.theme-light .budget-dashboard-template-heading {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: start !important;
  gap: 0.75rem !important;
  text-align: left !important;
}

body.theme-light .budget-dashboard-template-heading > span,
body.theme-light .budget-dashboard-template-group header > span:first-child {
  background: rgba(15, 141, 120, 0.12) !important;
  border: 1px solid rgba(15, 141, 120, 0.14) !important;
  color: #0f7a68 !important;
  box-shadow: none !important;
}

body.theme-light .budget-dashboard-template-heading h4,
body.theme-light .budget-dashboard-template-group h4 {
  color: #173032 !important;
  text-align: left !important;
  justify-self: start !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

body.theme-light .budget-template-completion,
body.theme-light .budget-template-completion--incomplete,
body.theme-light .budget-template-completion--progress,
body.theme-light .budget-template-completion--almost,
body.theme-light .budget-template-completion--complete {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(10, 64, 57, 0.14) !important;
  color: #173032 !important;
  box-shadow: 0 8px 18px rgba(18, 38, 34, 0.06) !important;
}

body.theme-light .budget-template-progress {
  background: rgba(18, 55, 50, 0.08) !important;
  border-color: rgba(18, 55, 50, 0.05) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body.theme-light .budget-template-completion-note {
  color: #6d7f7f !important;
}

body.theme-light .budget-dashboard-template-links a {
  background: rgba(255, 255, 255, 0.86) !important;
  border-color: rgba(10, 64, 57, 0.14) !important;
  color: #425b5c !important;
  box-shadow: none !important;
}

body.theme-light .budget-dashboard-template-links a:hover {
  background: rgba(233, 248, 244, 0.96) !important;
  border-color: rgba(15, 141, 120, 0.30) !important;
  color: #0f5f54 !important;
}

body.theme-light .budget-dashboard-template-links a.disabled {
  background: rgba(246, 248, 248, 0.76) !important;
  color: rgba(66, 91, 92, 0.45) !important;
  border-color: rgba(10, 64, 57, 0.08) !important;
}

/* ========================================
   INSIDE | FIX LIGHT FONDO ÚNICO + PORCENTAJE + BUSCADOR V17
   - Presupuestos light usa un solo fondo continuo.
   - El porcentaje vuelve a mostrarse dentro de la píldora.
   - El buscador se desplaza hacia la derecha antes de los controles.
======================================== */
.inside-app-body .budget-product-topbar {
  grid-template-columns: var(--app-sidebar-width) minmax(140px, 1fr) minmax(360px, 520px) auto !important;
  column-gap: 18px !important;
}

.inside-app-body .budget-product-search {
  justify-self: end !important;
  width: min(520px, 100%) !important;
  max-width: 520px !important;
}

.inside-app-body .budget-product-topbar-actions {
  justify-self: end !important;
  flex: 0 0 auto !important;
}

body.theme-light .budget-page,
body.light-mode .budget-page,
body[data-theme="light"] .budget-page,
html.light-mode body .budget-page,
html.light body .budget-page {
  background: transparent !important;
}

body.theme-light .budget-product-topbar + .budget-page .budget-header,
body.theme-light .budget-header,
body.light-mode .budget-header,
body[data-theme="light"] .budget-header,
html.light-mode body .budget-header,
html.light body .budget-header {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.theme-light .budget-header::after,
body.light-mode .budget-header::after,
body[data-theme="light"] .budget-header::after,
html.light-mode body .budget-header::after,
html.light body .budget-header::after {
  content: none !important;
  display: none !important;
}

body.theme-light .budget-app-section,
body.light-mode .budget-app-section,
body[data-theme="light"] .budget-app-section,
html.light-mode body .budget-app-section,
html.light body .budget-app-section {
  background: transparent !important;
}

body.theme-light.inside-app-body,
body.light-mode.inside-app-body,
body[data-theme="light"].inside-app-body,
html.light-mode body.inside-app-body,
html.light body.inside-app-body {
  background:
    linear-gradient(180deg, rgba(248, 251, 249, 0.94), rgba(242, 247, 245, 0.94)),
    url('/images/webtools-bg.jpg') center / cover fixed no-repeat !important;
}

body.theme-light .budget-template-completion,
body.theme-light .budget-template-completion--empty,
body.theme-light .budget-template-completion--incomplete,
body.theme-light .budget-template-completion--progress,
body.theme-light .budget-template-completion--almost,
body.theme-light .budget-template-completion--complete,
body.light-mode .budget-template-completion,
body[data-theme="light"] .budget-template-completion,
html.light-mode body .budget-template-completion,
html.light body .budget-template-completion {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 68px !important;
  height: 36px !important;
  padding: 0 0.8rem !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(9, 89, 77, 0.18) !important;
  color: #14343a !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.theme-light .budget-template-completion strong,
body.light-mode .budget-template-completion strong,
body[data-theme="light"] .budget-template-completion strong,
html.light-mode body .budget-template-completion strong,
html.light body .budget-template-completion strong {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #14343a !important;
  font-size: 0.86rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  -webkit-text-fill-color: #14343a !important;
}

body.theme-light .budget-dashboard-template-group header,
body.theme-light .budget-dashboard-template-group > header,
body.light-mode .budget-dashboard-template-group header,
body[data-theme="light"] .budget-dashboard-template-group header,
html.light-mode body .budget-dashboard-template-group header,
html.light body .budget-dashboard-template-group header {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.theme-light .budget-dashboard-template-group,
body.light-mode .budget-dashboard-template-group,
body[data-theme="light"] .budget-dashboard-template-group,
html.light-mode body .budget-dashboard-template-group,
html.light body .budget-dashboard-template-group {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(9, 89, 77, 0.12) !important;
  box-shadow: 0 16px 34px rgba(18, 38, 34, 0.045) !important;
}

@media (max-width: 1180px) {
  .inside-app-body .budget-product-topbar {
    grid-template-columns: minmax(150px, var(--app-sidebar-width)) minmax(120px, 1fr) minmax(260px, 440px) auto !important;
  }

  .inside-app-body .budget-product-search {
    width: min(440px, 100%) !important;
  }
}


/* ========================================
   INSIDE | FIX V18: presupuesto activo, búsqueda y menú avatar
   Alcance: topbar, buscador y legibilidad light/dark.
======================================== */
.inside-app-body .budget-product-topbar {
  grid-template-columns: var(--app-sidebar-width, 230px) minmax(120px, 1fr) minmax(260px, 420px) auto !important;
  column-gap: clamp(14px, 2vw, 26px) !important;
}

.inside-app-body .budget-product-search {
  justify-self: end !important;
  width: min(420px, 32vw) !important;
  max-width: 420px !important;
}

.inside-app-body .budget-product-search input {
  width: 100% !important;
}

.inside-app-body .budget-product-theme-button {
  flex-direction: row !important;
  gap: 8px !important;
  min-width: max-content !important;
  white-space: nowrap !important;
}

.inside-app-body .budget-product-theme-button #budgetHeaderThemeText {
  order: 1 !important;
}

.inside-app-body .budget-product-theme-button .budget-product-theme-icon {
  order: 2 !important;
}

.inside-app-body .budget-product-avatar-dropdown {
  right: 0 !important;
  min-width: 190px !important;
  padding: 8px !important;
  border-radius: 16px !important;
  background: rgba(5, 28, 35, 0.98) !important;
  border: 1px solid rgba(100, 230, 210, 0.22) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.inside-app-body .budget-product-avatar-menu-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  color: rgba(236, 255, 251, 0.92) !important;
  font-weight: 850 !important;
  text-decoration: none !important;
}

.inside-app-body .budget-product-avatar-menu-item span {
  color: inherit !important;
  opacity: 1 !important;
  -webkit-text-fill-color: currentColor !important;
}

.inside-app-body .budget-product-avatar-menu-item:hover {
  color: #ffffff !important;
  background: rgba(100, 230, 210, 0.12) !important;
}

.inside-app-body .budget-product-avatar-menu-item--danger:hover {
  color: #fff3f3 !important;
  background: rgba(220, 74, 74, 0.18) !important;
}

body.theme-light.inside-app-body .budget-product-avatar-dropdown,
body.light-mode.inside-app-body .budget-product-avatar-dropdown,
body[data-theme="light"].inside-app-body .budget-product-avatar-dropdown,
html.light-mode body.inside-app-body .budget-product-avatar-dropdown,
html.light body.inside-app-body .budget-product-avatar-dropdown {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(9, 89, 77, 0.18) !important;
  box-shadow: 0 18px 42px rgba(12, 40, 34, 0.14) !important;
}

body.theme-light.inside-app-body .budget-product-avatar-menu-item,
body.light-mode.inside-app-body .budget-product-avatar-menu-item,
body[data-theme="light"].inside-app-body .budget-product-avatar-menu-item,
html.light-mode body.inside-app-body .budget-product-avatar-menu-item,
html.light body.inside-app-body .budget-product-avatar-menu-item {
  color: #123b34 !important;
  -webkit-text-fill-color: #123b34 !important;
}

body.theme-light.inside-app-body .budget-product-avatar-menu-item span,
body.light-mode.inside-app-body .budget-product-avatar-menu-item span,
body[data-theme="light"].inside-app-body .budget-product-avatar-menu-item span,
html.light-mode body.inside-app-body .budget-product-avatar-menu-item span,
html.light body.inside-app-body .budget-product-avatar-menu-item span {
  color: #123b34 !important;
  -webkit-text-fill-color: #123b34 !important;
}

body.theme-light.inside-app-body .budget-product-avatar-menu-item:hover,
body.light-mode.inside-app-body .budget-product-avatar-menu-item:hover,
body[data-theme="light"].inside-app-body .budget-product-avatar-menu-item:hover,
html.light-mode body.inside-app-body .budget-product-avatar-menu-item:hover,
html.light body.inside-app-body .budget-product-avatar-menu-item:hover {
  color: #064f43 !important;
  -webkit-text-fill-color: #064f43 !important;
  background: rgba(15, 141, 120, 0.10) !important;
}

body.theme-light.inside-app-body .budget-product-avatar-menu-item--danger:hover,
body.light-mode.inside-app-body .budget-product-avatar-menu-item--danger:hover,
body[data-theme="light"].inside-app-body .budget-product-avatar-menu-item--danger:hover,
html.light-mode body.inside-app-body .budget-product-avatar-menu-item--danger:hover,
html.light body.inside-app-body .budget-product-avatar-menu-item--danger:hover {
  color: #9c2727 !important;
  -webkit-text-fill-color: #9c2727 !important;
  background: rgba(190, 52, 52, 0.10) !important;
}

.budget-dashboard-template-group.is-search-hidden,
.budget-dashboard-template-pill.is-search-hidden,
.budget-template-pill.is-search-hidden,
[data-template-slug].is-search-hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .inside-app-body .budget-product-topbar {
    grid-template-columns: minmax(160px, var(--app-sidebar-width, 230px)) minmax(80px, 1fr) minmax(220px, 360px) auto !important;
  }

  .inside-app-body .budget-product-search {
    width: min(360px, 34vw) !important;
  }
}

@media (max-width: 860px) {
  .inside-app-body .budget-product-topbar {
    grid-template-columns: 1fr auto !important;
  }

  .inside-app-body .budget-product-search {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    order: 3 !important;
  }
}

/* ========================================
   Header search preview + final light contrast fixes
   ======================================== */
.budget-product-search {
  position: relative;
  flex: 0 1 360px;
  max-width: 360px;
  margin-left: auto;
}

.budget-product-search-preview {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 1200;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(98, 242, 211, 0.22);
  background: rgba(2, 22, 28, 0.96);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.budget-product-search-result {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: rgba(239, 255, 251, 0.94);
  text-align: left;
  cursor: pointer;
}

.budget-product-search-result:hover,
.budget-product-search-result:focus-visible {
  outline: none;
  background: rgba(98, 242, 211, 0.12);
}

.budget-product-search-result-type {
  grid-row: span 2;
  align-self: center;
  min-width: 70px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(98, 242, 211, 0.14);
  color: #62f2d3;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.budget-product-search-result-label {
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
}

.budget-product-search-result-detail {
  color: rgba(214, 232, 229, 0.68);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.budget-product-search-preview-empty {
  padding: 12px;
  border-radius: 12px;
  color: rgba(214, 232, 229, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.budget-dashboard-template-group.is-search-focused {
  box-shadow: 0 0 0 3px rgba(98, 242, 211, 0.28), 0 18px 42px rgba(8, 143, 120, 0.16) !important;
}

body.theme-light .budget-product-search-preview,
body.light-mode .budget-product-search-preview,
body[data-theme="light"] .budget-product-search-preview,
html.light-mode body .budget-product-search-preview,
html.light body .budget-product-search-preview,
html[data-theme="light"] body .budget-product-search-preview {
  border-color: rgba(16, 122, 103, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(20, 51, 48, 0.14);
}

body.theme-light .budget-product-search-result,
body.light-mode .budget-product-search-result,
body[data-theme="light"] .budget-product-search-result,
html.light-mode body .budget-product-search-result,
html.light body .budget-product-search-result,
html[data-theme="light"] body .budget-product-search-result {
  color: #173833;
}

body.theme-light .budget-product-search-result:hover,
body.theme-light .budget-product-search-result:focus-visible,
body.light-mode .budget-product-search-result:hover,
body.light-mode .budget-product-search-result:focus-visible,
body[data-theme="light"] .budget-product-search-result:hover,
body[data-theme="light"] .budget-product-search-result:focus-visible,
html.light-mode body .budget-product-search-result:hover,
html.light-mode body .budget-product-search-result:focus-visible,
html.light body .budget-product-search-result:hover,
html.light body .budget-product-search-result:focus-visible,
html[data-theme="light"] body .budget-product-search-result:hover,
html[data-theme="light"] body .budget-product-search-result:focus-visible {
  background: rgba(16, 122, 103, 0.08);
}

body.theme-light .budget-product-search-result-type,
body.light-mode .budget-product-search-result-type,
body[data-theme="light"] .budget-product-search-result-type,
html.light-mode body .budget-product-search-result-type,
html.light body .budget-product-search-result-type,
html[data-theme="light"] body .budget-product-search-result-type {
  background: rgba(16, 122, 103, 0.11);
  color: #087e6d;
}

body.theme-light .budget-product-search-result-detail,
body.light-mode .budget-product-search-result-detail,
body[data-theme="light"] .budget-product-search-result-detail,
html.light-mode body .budget-product-search-result-detail,
html.light body .budget-product-search-result-detail,
html[data-theme="light"] body .budget-product-search-result-detail,
body.theme-light .budget-product-search-preview-empty,
body.light-mode .budget-product-search-preview-empty,
body[data-theme="light"] .budget-product-search-preview-empty,
html.light-mode body .budget-product-search-preview-empty,
html.light body .budget-product-search-preview-empty,
html[data-theme="light"] body .budget-product-search-preview-empty {
  color: #607773;
}

body.theme-light .budget-product-avatar-dropdown,
body.light-mode .budget-product-avatar-dropdown,
body[data-theme="light"] .budget-product-avatar-dropdown,
html.light-mode body .budget-product-avatar-dropdown,
html.light body .budget-product-avatar-dropdown,
html[data-theme="light"] body .budget-product-avatar-dropdown {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(16, 122, 103, 0.18) !important;
  box-shadow: 0 18px 44px rgba(20, 51, 48, 0.16) !important;
}

body.theme-light .budget-product-avatar-menu-item,
body.light-mode .budget-product-avatar-menu-item,
body[data-theme="light"] .budget-product-avatar-menu-item,
html.light-mode body .budget-product-avatar-menu-item,
html.light body .budget-product-avatar-menu-item,
html[data-theme="light"] body .budget-product-avatar-menu-item {
  color: #173833 !important;
  background: transparent;
}

body.theme-light .budget-product-avatar-menu-item:hover,
body.light-mode .budget-product-avatar-menu-item:hover,
body[data-theme="light"] .budget-product-avatar-menu-item:hover,
html.light-mode body .budget-product-avatar-menu-item:hover,
html.light body .budget-product-avatar-menu-item:hover,
html[data-theme="light"] body .budget-product-avatar-menu-item:hover {
  background: rgba(16, 122, 103, 0.08) !important;
}

body.theme-light .budget-product-avatar-menu-item--danger,
body.light-mode .budget-product-avatar-menu-item--danger,
body[data-theme="light"] .budget-product-avatar-menu-item--danger,
html.light-mode body .budget-product-avatar-menu-item--danger,
html.light body .budget-product-avatar-menu-item--danger,
html[data-theme="light"] body .budget-product-avatar-menu-item--danger {
  color: #8b1e1e !important;
}

@media (max-width: 980px) {
  .budget-product-search {
    max-width: 280px;
    flex-basis: 280px;
  }
}


/* Fix: asegurar que el botón activo de borrar presupuesto reciba click sobre capas visuales */
.budget-active-actions,
.budget-active-delete-button {
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

/* ========================================
   Budget items empty state - full width fix
   ======================================== */

.budget-table-body > .budget-table-row-message.budget-empty-table-message,
.budget-table-body > .budget-table-row-message.budget-loading-table-message {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  min-width: 0 !important;
  width: 100% !important;
  align-items: stretch !important;
}

.budget-table-body > .budget-table-row-message.budget-empty-table-message .budget-table-cell,
.budget-table-body > .budget-table-row-message.budget-loading-table-message .budget-table-cell {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  display: block !important;
  padding: 1rem 1.1rem !important;
  border: 1px solid rgba(114, 239, 211, 0.16);
  border-radius: 14px;
  background: rgba(3, 21, 27, 0.46);
}

.budget-table-body > .budget-table-row-message.budget-empty-table-message strong {
  display: block !important;
  width: 100% !important;
  margin: 0 0 0.25rem !important;
  color: #ffffff !important;
  font-size: 0.98rem !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}

.budget-table-body > .budget-table-row-message.budget-empty-table-message span {
  display: block !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 !important;
  color: rgba(226, 242, 239, 0.76) !important;
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}

body.theme-light .budget-table-body > .budget-table-row-message.budget-empty-table-message .budget-table-cell,
body.theme-light .budget-table-body > .budget-table-row-message.budget-loading-table-message .budget-table-cell {
  border-color: rgba(15, 128, 105, 0.14) !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

body.theme-light .budget-table-body > .budget-table-row-message.budget-empty-table-message strong {
  color: #102d29 !important;
}

body.theme-light .budget-table-body > .budget-table-row-message.budget-empty-table-message span {
  color: rgba(24, 56, 50, 0.72) !important;
}

/* ========================================
   Sidebar active project empty state
   ======================================== */

.app-sidebar-project-card--empty {
  cursor: default;
  opacity: 0.82;
}

.app-sidebar-project-card--empty:hover {
  transform: none;
}

.app-sidebar-project-card--empty .app-sidebar-project-name {
  color: rgba(236, 255, 251, 0.66);
  font-weight: 850;
}

body.theme-light .app-sidebar-project-card--empty .app-sidebar-project-name {
  color: rgba(10, 42, 36, 0.62);
}

/* ========================================
   INSIDE | Dashboard de plantillas en tarjetas
   Fix visual sin imports externos
======================================== */
.budget-dashboard-template-grid.is-card-style {
  display: block;
}

.budget-dashboard-template-board--cards {
  display: grid;
  grid-template-columns: minmax(280px, 0.96fr) minmax(320px, 0.84fr);
  gap: 1.35rem;
  align-items: stretch;
}

.budget-dashboard-template-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
}

.budget-template-dynamic-card {
  position: relative;
  min-height: 178px;
  padding: 1.15rem 1.15rem 1.05rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  overflow: hidden;
  text-align: left;
  color: rgba(235, 255, 250, 0.96);
  background:
    radial-gradient(circle at 88% 12%, rgba(111, 238, 214, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(15, 77, 68, 0.92), rgba(8, 38, 44, 0.96));
  border: 1px solid rgba(98, 230, 210, 0.22);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.budget-template-dynamic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(98, 230, 210, 0.48);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.budget-template-dynamic-card.is-selected {
  border-color: rgba(99, 255, 222, 0.9);
  box-shadow:
    0 0 0 2px rgba(99, 255, 222, 0.18),
    0 24px 52px rgba(0, 0, 0, 0.34);
  background:
    radial-gradient(circle at 86% 12%, rgba(111, 238, 214, 0.24), transparent 32%),
    linear-gradient(135deg, rgba(13, 101, 86, 0.98), rgba(7, 49, 54, 0.98));
}

.budget-template-dynamic-card.is-selected::after {
  content: "";
  position: absolute;
  inset: auto 1rem 0.75rem 1rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(99, 255, 222, 0.95), rgba(28, 152, 132, 0.6));
}

.budget-template-dynamic-code {
  width: max-content;
  min-width: 2.45rem;
  padding: 0.42rem 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #bafff1;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  background: rgba(95, 240, 215, 0.18);
  border: 1px solid rgba(95, 240, 215, 0.22);
  border-radius: 11px;
}

.budget-template-dynamic-icon {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(105, 235, 216, 0.92);
}

.budget-template-dynamic-icon svg {
  width: 31px;
  height: 31px;
  display: block;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
}

.budget-template-dynamic-card strong {
  max-width: calc(100% - 3.2rem);
  margin-top: 1.6rem;
  color: inherit;
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  font-weight: 900;
  line-height: 1.16;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

.budget-template-dynamic-card small {
  padding-bottom: 0.25rem;
  color: rgba(222, 250, 246, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
}

.budget-template-dynamic-percent {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  min-width: 3.8rem;
  padding: 0.42rem 0.8rem;
  color: #123f3b;
  text-align: center;
  font-weight: 900;
  font-size: 0.95rem;
  background: rgba(247, 255, 253, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.budget-dashboard-template-detail {
  min-height: 100%;
  padding: 1.25rem;
  color: rgba(232, 255, 250, 0.96);
  background:
    radial-gradient(circle at 14% 6%, rgba(99, 255, 222, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(8, 46, 52, 0.96), rgba(11, 71, 66, 0.86));
  border: 1px solid rgba(98, 230, 210, 0.24);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 42px rgba(0, 0, 0, 0.20);
  animation: insideTemplateDetailIn 190ms ease both;
}

@keyframes insideTemplateDetailIn {
  from {
    opacity: 0;
    transform: translateX(12px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.budget-dashboard-template-detail-eyebrow {
  margin-bottom: 0.85rem;
  color: #78f4dc;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.budget-dashboard-template-detail-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(122, 238, 219, 0.22);
}

.budget-dashboard-template-detail-header > span {
  min-width: 2.5rem;
  padding: 0.4rem 0.55rem;
  color: #bafff1;
  text-align: center;
  font-weight: 900;
  background: rgba(95, 240, 215, 0.16);
  border: 1px solid rgba(95, 240, 215, 0.22);
  border-radius: 10px;
}

.budget-dashboard-template-detail-header h4 {
  margin: 0;
  color: inherit;
  font-size: 1.08rem;
  font-weight: 900;
  text-transform: uppercase;
}

.budget-dashboard-template-detail-header p {
  margin: 0.22rem 0 0;
  color: rgba(225, 249, 246, 0.74);
  font-size: 0.82rem;
  font-weight: 750;
}

.budget-dashboard-template-detail-header strong {
  min-width: 3.7rem;
  padding: 0.42rem 0.72rem;
  color: #123f3b;
  text-align: center;
  background: rgba(247, 255, 253, 0.94);
  border-radius: 999px;
}

.budget-dashboard-template-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.budget-dashboard-template-detail-links a {
  padding: 0.62rem 0.82rem;
  color: rgba(236, 255, 252, 0.94);
  font-weight: 850;
  font-size: 0.82rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(122, 238, 219, 0.20);
  border-radius: 999px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.budget-dashboard-template-detail-links a:not(.disabled):hover {
  transform: translateY(-1px);
  background: rgba(95, 240, 215, 0.16);
  border-color: rgba(95, 240, 215, 0.42);
}

.budget-dashboard-template-detail-links a.disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

body.theme-light .budget-template-dynamic-card {
  color: #123632;
  background:
    radial-gradient(circle at 88% 12%, rgba(25, 161, 139, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(235, 250, 246, 0.90));
  border-color: rgba(24, 136, 122, 0.20);
  box-shadow: 0 16px 34px rgba(12, 52, 48, 0.10);
}

body.theme-light .budget-template-dynamic-card:hover {
  border-color: rgba(20, 143, 125, 0.42);
  box-shadow: 0 20px 42px rgba(12, 52, 48, 0.15);
}

body.theme-light .budget-template-dynamic-card.is-selected {
  color: #073d36;
  background:
    radial-gradient(circle at 88% 12%, rgba(39, 221, 190, 0.22), transparent 32%),
    linear-gradient(145deg, #ffffff, #ddfbf4);
  border-color: rgba(0, 137, 116, 0.76);
  box-shadow:
    0 0 0 2px rgba(0, 137, 116, 0.11),
    0 22px 44px rgba(12, 52, 48, 0.18);
}

body.theme-light .budget-template-dynamic-code {
  color: #006f63;
  background: rgba(26, 210, 180, 0.15);
  border-color: rgba(0, 137, 116, 0.18);
}

body.theme-light .budget-template-dynamic-icon {
  color: rgba(0, 128, 114, 0.82);
}

body.theme-light .budget-template-dynamic-card small {
  color: rgba(50, 84, 80, 0.76);
}

body.theme-light .budget-template-dynamic-percent,
body.theme-light .budget-dashboard-template-detail-header strong {
  color: #075047;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 137, 116, 0.16);
  box-shadow: 0 9px 18px rgba(12, 52, 48, 0.10);
}

body.theme-light .budget-dashboard-template-detail {
  color: #123632;
  background:
    radial-gradient(circle at 14% 6%, rgba(39, 221, 190, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 250, 247, 0.94));
  border-color: rgba(24, 136, 122, 0.22);
  box-shadow: 0 18px 38px rgba(12, 52, 48, 0.10);
}

body.theme-light .budget-dashboard-template-detail-eyebrow {
  color: #00836f;
}

body.theme-light .budget-dashboard-template-detail-header {
  border-bottom-color: rgba(24, 136, 122, 0.18);
}

body.theme-light .budget-dashboard-template-detail-header > span {
  color: #006f63;
  background: rgba(26, 210, 180, 0.13);
  border-color: rgba(0, 137, 116, 0.18);
}

body.theme-light .budget-dashboard-template-detail-header p {
  color: rgba(55, 85, 82, 0.76);
}

body.theme-light .budget-dashboard-template-detail-links a {
  color: #174944;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(24, 136, 122, 0.18);
}

body.theme-light .budget-dashboard-template-detail-links a:not(.disabled):hover {
  background: rgba(26, 210, 180, 0.14);
  border-color: rgba(0, 137, 116, 0.34);
}

/* ========================================
   INSIDE | Perfil - feedback y seguridad
======================================== */
.profile-settings-feedback {
  margin-top: 1rem;
  padding: 0.82rem 1rem;
  font-weight: 850;
  font-size: 0.92rem;
  border-radius: 14px;
  border: 1px solid rgba(99, 255, 222, 0.26);
  background: rgba(99, 255, 222, 0.11);
  color: #aaffee;
}

.profile-settings-feedback.is-error {
  color: #ffd4d4;
  border-color: rgba(255, 116, 116, 0.30);
  background: rgba(255, 116, 116, 0.12);
}

.profile-account-actions {
  margin-top: 1.65rem;
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(99, 255, 222, 0.18);
  background: rgba(4, 31, 35, 0.40);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.profile-account-actions h3 {
  margin: 0 0 1rem;
}

.profile-account-actions p {
  margin: 1rem 0 0;
  color: rgba(232, 255, 250, 0.72);
  line-height: 1.5;
}

body.theme-light .profile-settings-feedback {
  color: #075047;
  border-color: rgba(0, 137, 116, 0.18);
  background: rgba(27, 190, 163, 0.12);
  box-shadow: 0 10px 24px rgba(12, 52, 48, 0.08);
}

body.theme-light .profile-settings-feedback.is-error {
  color: #8f1e1e;
  border-color: rgba(192, 59, 59, 0.22);
  background: rgba(192, 59, 59, 0.09);
}

body.theme-light .profile-account-actions {
  border-color: rgba(24, 136, 122, 0.16);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(12, 52, 48, 0.08);
}

body.theme-light .profile-account-actions p {
  color: rgba(55, 85, 82, 0.78);
}

@media (max-width: 1180px) {
  .budget-dashboard-template-board--cards {
    grid-template-columns: 1fr;
  }

  .budget-dashboard-template-detail {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  .budget-dashboard-template-cards {
    grid-template-columns: 1fr;
  }

  .budget-template-dynamic-card {
    min-height: 154px;
  }
}

/* ========================================
   INSIDE | Tarjetas dinámicas expandibles + floating panel fix
   Mantener sin imports externos
======================================== */
.budget-floating-sidebar {
  z-index: 10140 !important;
}

.budget-floating-sidebar.is-dragging {
  z-index: 10150 !important;
}

.budget-dashboard-template-board--inline-expand {
  display: block;
}

.budget-dashboard-template-board--inline-expand .budget-dashboard-template-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 1rem;
  align-items: start;
}

.budget-dashboard-template-board--inline-expand .budget-dashboard-template-detail {
  display: none !important;
}

.budget-template-dynamic-card {
  appearance: none;
  border: 1px solid rgba(98, 230, 210, 0.22);
  text-align: left;
}

.budget-template-dynamic-card-trigger {
  position: relative;
  width: 100%;
  min-height: 178px;
  padding: 1.15rem 1.15rem 1.05rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  overflow: hidden;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
  font: inherit;
}

.budget-template-dynamic-card-trigger:focus-visible {
  outline: 3px solid rgba(99, 255, 222, 0.46);
  outline-offset: 3px;
}

.budget-template-dynamic-card.is-selected {
  grid-row: span 2;
}

.budget-template-dynamic-expanded {
  margin: 0 1rem 1rem;
  padding: 0.92rem;
  display: block;
  overflow: hidden;
  color: rgba(234, 255, 251, 0.94);
  background: rgba(2, 24, 29, 0.38);
  border: 1px solid rgba(99, 255, 222, 0.18);
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  animation: insideTemplateExpand 220ms ease both;
}

.budget-template-dynamic-expanded[hidden] {
  display: none !important;
}

.budget-template-dynamic-expanded-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(99, 255, 222, 0.16);
}

.budget-template-dynamic-expanded-header span {
  color: #6ff0d7;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.budget-template-dynamic-expanded-header strong {
  margin: 0;
  max-width: none;
  color: inherit;
  font-size: 0.86rem;
  text-transform: none;
  letter-spacing: 0;
}

.budget-template-dynamic-expanded-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.budget-template-dynamic-expanded-links a {
  padding: 0.58rem 0.75rem;
  color: rgba(236, 255, 252, 0.94);
  font-weight: 850;
  font-size: 0.8rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(122, 238, 219, 0.20);
  border-radius: 999px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.budget-template-dynamic-expanded-links a:not(.disabled):hover {
  transform: translateY(-1px);
  background: rgba(95, 240, 215, 0.16);
  border-color: rgba(95, 240, 215, 0.42);
}

.budget-template-dynamic-expanded-links a.disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

@keyframes insideTemplateExpand {
  from {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 360px;
  }
}

body.theme-light .budget-template-dynamic-expanded {
  color: #123632;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(232, 250, 246, 0.88));
  border-color: rgba(0, 137, 116, 0.18);
  box-shadow: 0 10px 24px rgba(12, 52, 48, 0.08);
}

body.theme-light .budget-template-dynamic-expanded-header {
  border-bottom-color: rgba(24, 136, 122, 0.16);
}

body.theme-light .budget-template-dynamic-expanded-header span {
  color: #00836f;
}

body.theme-light .budget-template-dynamic-expanded-links a {
  color: #164640;
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(0, 137, 116, 0.16);
  box-shadow: 0 7px 16px rgba(12, 52, 48, 0.07);
}

body.theme-light .budget-template-dynamic-expanded-links a:not(.disabled):hover {
  color: #005f54;
  background: rgba(222, 252, 245, 0.96);
  border-color: rgba(0, 137, 116, 0.36);
}

body.theme-light .budget-template-dynamic-card.is-selected {
  background:
    radial-gradient(circle at 88% 12%, rgba(39, 221, 190, 0.25), transparent 32%),
    linear-gradient(145deg, #ffffff, #e8fff9);
}

body.theme-light .budget-template-dynamic-card.is-selected::after {
  background: linear-gradient(90deg, rgba(0, 174, 149, 0.95), rgba(49, 221, 192, 0.58));
}

.budget-template-dynamic-icon svg,
.budget-template-dynamic-icon svg * {
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
}

@media (max-width: 1180px) {
  .budget-dashboard-template-board--inline-expand .budget-dashboard-template-cards {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 760px) {
  .budget-dashboard-template-board--inline-expand .budget-dashboard-template-cards {
    grid-template-columns: 1fr;
  }

  .budget-template-dynamic-card.is-selected {
    grid-row: auto;
  }
}


/* ========================================
   INSIDE | Ajuste tarjetas dinámicas
   Estado inicial contraído + expansión suave
======================================== */
.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card.is-selected {
  grid-row: auto;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card.is-selected::after {
  content: none !important;
  display: none !important;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-expanded {
  margin: -0.15rem 0.9rem 0.9rem;
  padding: 0.78rem 0.82rem;
  animation: insideTemplateExpandSmooth 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: top center;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-expanded-header {
  padding-bottom: 0.55rem;
  margin-bottom: 0.58rem;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-expanded-links {
  gap: 0.45rem;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-expanded-links a {
  padding: 0.5rem 0.68rem;
}

@keyframes insideTemplateExpandSmooth {
  0% {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.985);
    max-height: 0;
  }

  55% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    max-height: 420px;
  }
}
/* ========================================
   INSIDE | Tarjetas dinámicas estilo referencia v48
   Ajuste visual únicamente: menos bloque sólido, más técnico y fino
======================================== */
.budget-dashboard-template-board--inline-expand .budget-dashboard-template-cards {
  gap: 1rem;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card {
  min-height: 154px;
  color: rgba(240, 255, 252, 0.96);
  background:
    radial-gradient(circle at 88% 15%, rgba(94, 230, 211, 0.10), transparent 34%),
    linear-gradient(145deg, rgba(6, 48, 52, 0.58), rgba(2, 18, 24, 0.82));
  border: 1px solid rgba(91, 215, 198, 0.30);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 12px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
    background 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card:hover {
  transform: translateY(-2px);
  background:
    radial-gradient(circle at 88% 15%, rgba(94, 230, 211, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(8, 58, 60, 0.68), rgba(3, 24, 30, 0.86));
  border-color: rgba(103, 239, 218, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.24);
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card.is-selected {
  color: rgba(244, 255, 253, 0.98);
  background:
    radial-gradient(circle at 88% 13%, rgba(103, 239, 218, 0.20), transparent 35%),
    linear-gradient(145deg, rgba(7, 67, 67, 0.72), rgba(2, 24, 31, 0.90));
  border-color: rgba(103, 239, 218, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(103, 239, 218, 0.10),
    0 18px 38px rgba(0, 0, 0, 0.28);
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card-trigger {
  min-height: 154px;
  padding: 1rem 1rem 0.95rem;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-code {
  min-width: 2.35rem;
  padding: 0.36rem 0.52rem;
  color: #b7fff2;
  background: linear-gradient(145deg, rgba(73, 216, 196, 0.22), rgba(28, 136, 125, 0.20));
  border-color: rgba(103, 239, 218, 0.28);
  border-radius: 9px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-icon {
  top: 1.02rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  color: rgba(104, 231, 214, 0.86);
  opacity: 0.92;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.65;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card strong {
  margin-top: 1.35rem;
  color: rgba(244, 255, 253, 0.97);
  font-size: clamp(0.98rem, 1.08vw, 1.12rem);
  letter-spacing: -0.018em;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card small {
  color: rgba(216, 243, 239, 0.78);
  font-size: 0.76rem;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-percent {
  right: 0.95rem;
  bottom: 0.82rem;
  min-width: 3.45rem;
  padding: 0.34rem 0.68rem;
  color: #0b3c36;
  background: rgba(250, 255, 254, 0.94);
  border-color: rgba(255, 255, 255, 0.66);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20);
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-expanded {
  margin: -0.2rem 0.85rem 0.85rem;
  background: rgba(1, 18, 24, 0.42);
  border-color: rgba(103, 239, 218, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-expanded-links a {
  color: rgba(239, 255, 252, 0.94);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(103, 239, 218, 0.20);
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-expanded-links a:not(.disabled):hover {
  background: rgba(91, 215, 198, 0.13);
  border-color: rgba(103, 239, 218, 0.42);
}

body.theme-light .budget-dashboard-template-board--inline-expand .budget-template-dynamic-card {
  color: #123632;
  background:
    radial-gradient(circle at 88% 15%, rgba(38, 211, 184, 0.10), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(241, 252, 249, 0.92));
  border-color: rgba(24, 136, 122, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 26px rgba(12, 52, 48, 0.08);
}

body.theme-light .budget-dashboard-template-board--inline-expand .budget-template-dynamic-card:hover {
  background:
    radial-gradient(circle at 88% 15%, rgba(38, 211, 184, 0.15), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(234, 250, 246, 0.96));
  border-color: rgba(0, 137, 116, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    0 16px 32px rgba(12, 52, 48, 0.12);
}

body.theme-light .budget-dashboard-template-board--inline-expand .budget-template-dynamic-card.is-selected {
  color: #073d36;
  background:
    radial-gradient(circle at 88% 13%, rgba(39, 221, 190, 0.20), transparent 35%),
    linear-gradient(145deg, #ffffff, #ecfff9);
  border-color: rgba(0, 137, 116, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 1px rgba(0, 137, 116, 0.08),
    0 17px 34px rgba(12, 52, 48, 0.13);
}

body.theme-light .budget-dashboard-template-board--inline-expand .budget-template-dynamic-card strong {
  color: #123632;
}

body.theme-light .budget-dashboard-template-board--inline-expand .budget-template-dynamic-card small {
  color: rgba(38, 77, 72, 0.72);
}

body.theme-light .budget-dashboard-template-board--inline-expand .budget-template-dynamic-icon {
  color: rgba(0, 128, 114, 0.82);
}

body.theme-light .budget-dashboard-template-board--inline-expand .budget-template-dynamic-expanded {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(0, 137, 116, 0.16);
  box-shadow: 0 9px 20px rgba(12, 52, 48, 0.07);
}


/* ========================================
   INSIDE | Tarjetas dinámicas - columnas independientes
   Evita que una tarjeta expandida estire la tarjeta vecina
======================================== */
.budget-dashboard-template-board--inline-expand .budget-dashboard-template-cards--columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 1rem;
  align-items: start;
}

.budget-dashboard-template-board--inline-expand .budget-dashboard-template-card-column {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.budget-dashboard-template-board--inline-expand .budget-dashboard-template-card-column .budget-template-dynamic-card {
  width: 100%;
}

@media (max-width: 760px) {
  .budget-dashboard-template-board--inline-expand .budget-dashboard-template-cards--columns {
    grid-template-columns: 1fr;
  }
}
   INSIDE | Estado visual de plantillas guardadas
   Permite identificar tareas completadas y pendientes dentro de tarjetas
======================================== */
.budget-template-task-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  line-height: 1.15;
}

.budget-template-task-chip__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.budget-template-task-chip__status {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex: 0 0 auto;
  padding: 0.16rem 0.42rem;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  border-radius: 999px;
  opacity: 0.92;
}

.budget-template-task-chip__check {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  font-size: 0.72rem;
  line-height: 1;
  border-radius: 999px;
}

.budget-template-dynamic-expanded-links a.budget-template-task-chip--saved,
.budget-dashboard-template-links a.budget-template-task-chip--saved {
  color: rgba(235, 255, 251, 0.98);
  background: linear-gradient(135deg, rgba(24, 169, 145, 0.24), rgba(53, 232, 200, 0.12));
  border-color: rgba(103, 239, 218, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 8px 18px rgba(0, 0, 0, 0.16);
}

.budget-template-dynamic-expanded-links a.budget-template-task-chip--saved .budget-template-task-chip__status,
.budget-dashboard-template-links a.budget-template-task-chip--saved .budget-template-task-chip__status {
  color: #043f37;
  background: rgba(105, 255, 225, 0.86);
}

.budget-template-dynamic-expanded-links a.budget-template-task-chip--saved .budget-template-task-chip__check,
.budget-dashboard-template-links a.budget-template-task-chip--saved .budget-template-task-chip__check {
  color: #043f37;
  background: rgba(255, 255, 255, 0.52);
}

.budget-template-dynamic-expanded-links a.budget-template-task-chip--pending,
.budget-dashboard-template-links a.budget-template-task-chip--pending {
  color: rgba(226, 244, 241, 0.72);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(164, 205, 199, 0.16);
}

.budget-template-dynamic-expanded-links a.budget-template-task-chip--pending .budget-template-task-chip__status,
.budget-dashboard-template-links a.budget-template-task-chip--pending .budget-template-task-chip__status {
  color: rgba(224, 243, 240, 0.70);
  background: rgba(255, 255, 255, 0.07);
}

.budget-template-dynamic-expanded-links a.budget-template-task-chip--saved:not(.disabled):hover,
.budget-dashboard-template-links a.budget-template-task-chip--saved:not(.disabled):hover {
  background: linear-gradient(135deg, rgba(31, 194, 166, 0.32), rgba(72, 255, 219, 0.17));
  border-color: rgba(124, 255, 231, 0.74);
}

body.theme-light .budget-template-dynamic-expanded-links a.budget-template-task-chip--saved,
body.theme-light .budget-dashboard-template-links a.budget-template-task-chip--saved {
  color: #063f38;
  background: linear-gradient(135deg, rgba(216, 255, 247, 0.96), rgba(240, 255, 251, 0.94));
  border-color: rgba(0, 145, 123, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 16px rgba(12, 52, 48, 0.09);
}

body.theme-light .budget-template-dynamic-expanded-links a.budget-template-task-chip--saved .budget-template-task-chip__status,
body.theme-light .budget-dashboard-template-links a.budget-template-task-chip--saved .budget-template-task-chip__status {
  color: #ffffff;
  background: #008d78;
}

body.theme-light .budget-template-dynamic-expanded-links a.budget-template-task-chip--saved .budget-template-task-chip__check,
body.theme-light .budget-dashboard-template-links a.budget-template-task-chip--saved .budget-template-task-chip__check {
  color: #008d78;
  background: #ffffff;
}

body.theme-light .budget-template-dynamic-expanded-links a.budget-template-task-chip--pending,
body.theme-light .budget-dashboard-template-links a.budget-template-task-chip--pending {
  color: rgba(22, 70, 64, 0.72);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 137, 116, 0.15);
}

body.theme-light .budget-template-dynamic-expanded-links a.budget-template-task-chip--pending .budget-template-task-chip__status,
body.theme-light .budget-dashboard-template-links a.budget-template-task-chip--pending .budget-template-task-chip__status {
  color: rgba(22, 70, 64, 0.68);
  background: rgba(0, 137, 116, 0.08);
}

@media (max-width: 760px) {
  .budget-template-task-chip {
    width: 100%;
    justify-content: space-between;
  }
}


/* Dashboard de plantillas - header compacto y vistas alternas */
.budget-product-topbar-section {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.budget-dashboard-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
}

.budget-dashboard-view-toolbar__label {
  color: rgba(210, 248, 242, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.budget-dashboard-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(111, 232, 218, 0.22);
  border-radius: 999px;
  background: rgba(3, 24, 30, 0.58);
  color: rgba(230, 255, 252, 0.78);
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.budget-dashboard-view-toggle svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.budget-dashboard-view-toggle:hover,
.budget-dashboard-view-toggle.is-active {
  border-color: rgba(89, 232, 218, 0.82);
  background: rgba(22, 156, 136, 0.28);
  color: #effffd;
  transform: translateY(-1px);
}

.budget-template-dynamic-chevron,
.budget-template-compact-chevron {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid rgba(99, 230, 217, 0.28);
  color: rgba(117, 244, 229, 0.88);
  background: rgba(3, 27, 31, 0.36);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 460ms cubic-bezier(0.2, 0.8, 0.2, 1), background 180ms ease, border-color 180ms ease;
}

.budget-template-dynamic-card.is-selected .budget-template-dynamic-chevron,
.budget-template-compact-row.is-selected .budget-template-compact-chevron {
  transform: rotate(180deg);
  border-color: rgba(99, 230, 217, 0.72);
  background: rgba(27, 196, 170, 0.18);
}

.budget-template-dynamic-expanded-header strong {
  display: none;
}

.budget-template-dynamic-expanded-header {
  justify-content: flex-start;
}

.budget-dashboard-template-board--compact {
  width: 100%;
}

.budget-template-compact-list {
  display: grid;
  gap: 0.58rem;
}

.budget-template-compact-row {
  border: 1px solid rgba(93, 223, 211, 0.22);
  border-radius: 1rem;
  background: rgba(4, 29, 35, 0.46);
  overflow: hidden;
  transition: border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.budget-template-compact-row.is-selected {
  border-color: rgba(89, 232, 218, 0.72);
  background: linear-gradient(135deg, rgba(7, 48, 54, 0.86), rgba(7, 30, 38, 0.68));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.budget-template-compact-trigger {
  position: relative;
  width: 100%;
  min-height: 3.25rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.74rem 3.1rem 0.74rem 0.86rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.budget-template-compact-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 1.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.58rem;
  background: rgba(41, 204, 181, 0.18);
  border: 1px solid rgba(97, 231, 216, 0.28);
  color: #76f0e1;
  font-weight: 900;
}

.budget-template-compact-trigger strong {
  color: rgba(244, 255, 253, 0.95);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.budget-template-compact-count,
.budget-template-compact-total {
  color: rgba(216, 245, 241, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.budget-template-compact-percent {
  min-width: 3rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(240, 255, 253, 0.94);
  color: #10393b;
  font-weight: 900;
  text-align: center;
}

.budget-template-compact-expanded {
  padding: 0 0.86rem 0.86rem 3.85rem;
  animation: budgetCompactExpand 460ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.budget-template-compact-expanded[hidden] {
  display: none;
}

.budget-template-compact-expanded .budget-template-task-chip {
  margin: 0.24rem 0.32rem 0.24rem 0;
}

@keyframes budgetCompactExpand {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.theme-light .budget-dashboard-view-toolbar__label {
  color: rgba(16, 80, 76, 0.62);
}

body.theme-light .budget-dashboard-view-toggle {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(17, 142, 130, 0.18);
  color: rgba(14, 70, 66, 0.76);
  box-shadow: 0 8px 18px rgba(21, 90, 85, 0.07);
}

body.theme-light .budget-dashboard-view-toggle:hover,
body.theme-light .budget-dashboard-view-toggle.is-active {
  border-color: rgba(27, 181, 162, 0.56);
  background: linear-gradient(135deg, rgba(230, 255, 250, 0.96), rgba(255, 255, 255, 0.94));
  color: #0a3d3a;
}

body.theme-light .budget-template-dynamic-chevron,
body.theme-light .budget-template-compact-chevron {
  border-color: rgba(22, 148, 137, 0.18);
  color: rgba(16, 146, 134, 0.86);
  background: rgba(255, 255, 255, 0.86);
}

body.theme-light .budget-template-compact-row {
  border-color: rgba(20, 152, 140, 0.17);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 255, 251, 0.72));
  box-shadow: 0 10px 24px rgba(28, 93, 88, 0.06);
}

body.theme-light .budget-template-compact-row.is-selected {
  border-color: rgba(32, 188, 169, 0.58);
  background: linear-gradient(135deg, rgba(228, 255, 249, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 16px 34px rgba(29, 119, 109, 0.12);
}

body.theme-light .budget-template-compact-code {
  color: #087f74;
  background: rgba(54, 221, 196, 0.16);
  border-color: rgba(19, 155, 143, 0.26);
}

body.theme-light .budget-template-compact-trigger strong {
  color: #0d3434;
}

body.theme-light .budget-template-compact-count,
body.theme-light .budget-template-compact-total {
  color: rgba(25, 82, 78, 0.64);
}

body.theme-light .budget-template-compact-percent {
  background: rgba(255, 255, 255, 0.94);
  color: #12383a;
  box-shadow: 0 8px 18px rgba(21, 90, 85, 0.11);
}

@media (max-width: 900px) {
  .budget-dashboard-view-toolbar {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .budget-template-compact-trigger {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .budget-template-compact-total {
    display: none;
  }
}


/* ========================================
   V53 | Header title, sidebar contextual and compact dashboard refinements
======================================== */
.budget-product-topbar-left {
  min-width: 220px;
}

.budget-product-topbar-section {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  max-width: 100%;
  color: rgba(238, 255, 252, 0.92);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  white-space: nowrap;
}

.budget-product-topbar-section--featured {
  font-size: clamp(1.02rem, 1.2vw, 1.35rem);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.budget-product-topbar-title-main {
  color: rgba(248, 255, 253, 0.96);
}

.budget-product-topbar-title-accent {
  color: #5df2db;
  text-shadow: 0 0 22px rgba(93, 242, 219, 0.18);
}

body.theme-light .budget-product-topbar-section {
  color: rgba(9, 33, 36, 0.94);
  text-shadow: none;
}

body.theme-light .budget-product-topbar-title-main {
  color: rgba(8, 31, 35, 0.96);
}

body.theme-light .budget-product-topbar-title-accent {
  color: #087f73;
  text-shadow: 0 8px 22px rgba(18, 143, 130, 0.12);
}

.budget-app-section {
  padding-top: clamp(1.1rem, 1.7vw, 1.85rem);
}

.budget-app-shell--workspace {
  padding-top: clamp(0.7rem, 1.2vw, 1.15rem);
}

.app-sidebar-nav {
  gap: 0.72rem;
}

.app-sidebar-tools-nav--main {
  margin-top: 0.55rem;
}

.app-sidebar-tools-nav--section {
  margin-top: 0.35rem;
}

.app-sidebar-link {
  min-height: 50px;
  gap: 0.78rem;
  padding: 0.78rem 0.9rem;
  align-items: center;
}

.app-sidebar-link-icon {
  flex: 0 0 auto;
  width: 1.18rem;
  height: 1.18rem;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

.app-sidebar-link-icon svg {
  width: 1.18rem;
  height: 1.18rem;
  display: block;
  vector-effect: non-scaling-stroke;
}

.app-sidebar-link-text {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  line-height: 1.25;
  letter-spacing: 0.005em;
}

/* Chevron moved beside activity code, avoiding collision with the activity icon */
.budget-template-dynamic-code-wrap,
.budget-template-compact-code-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  width: max-content;
}

.budget-template-dynamic-chevron,
.budget-template-compact-chevron {
  position: static;
  flex: 0 0 auto;
  width: 1.36rem;
  height: 1.36rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(99, 230, 217, 0.28);
  color: rgba(117, 244, 229, 0.88);
  background: rgba(3, 27, 31, 0.36);
  font-size: 0.96rem;
  line-height: 1;
  transition:
    transform 460ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 180ms ease,
    border-color 180ms ease;
}

.budget-template-dynamic-card.is-selected .budget-template-dynamic-chevron,
.budget-template-compact-row.is-selected .budget-template-compact-chevron {
  transform: rotate(180deg);
  border-color: rgba(99, 230, 217, 0.72);
  background: rgba(27, 196, 170, 0.18);
}

.budget-template-dynamic-icon {
  top: 1.15rem;
  right: 1.15rem;
}

/* Compact dashboard must behave like one vertical detail list */
.budget-dashboard-template-grid.is-compact-style {
  display: block;
  width: 100%;
}

.budget-dashboard-template-board--compact {
  width: 100%;
  max-width: 100%;
}

.budget-template-compact-list {
  display: flex;
  flex-direction: column;
  gap: 0.54rem;
  width: 100%;
}

.budget-template-compact-row {
  width: 100%;
  border: 1px solid rgba(93, 223, 211, 0.22);
  border-radius: 0.86rem;
  background:
    linear-gradient(135deg, rgba(4, 39, 43, 0.74), rgba(3, 22, 29, 0.58));
  overflow: hidden;
  transition:
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease,
    transform 220ms ease;
}

.budget-template-compact-row:hover {
  transform: translateY(-1px);
  border-color: rgba(93, 223, 211, 0.42);
}

.budget-template-compact-row.is-selected {
  border-color: rgba(89, 232, 218, 0.72);
  background:
    radial-gradient(circle at 12% 18%, rgba(84, 242, 218, 0.11), transparent 38%),
    linear-gradient(135deg, rgba(7, 48, 54, 0.86), rgba(7, 30, 38, 0.68));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.budget-template-compact-trigger {
  position: relative;
  width: 100%;
  min-height: 3.05rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.72rem;
  padding: 0.68rem 0.86rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.budget-template-compact-trigger strong {
  min-width: 0;
  color: rgba(244, 255, 253, 0.95);
  font-size: 0.88rem;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.budget-template-compact-code {
  min-width: 2.2rem;
  min-height: 1.6rem;
  padding: 0.18rem 0.52rem;
  border-radius: 0.52rem;
}

.budget-template-compact-count,
.budget-template-compact-total {
  font-size: 0.75rem;
}

.budget-template-compact-expanded {
  padding: 0 0.86rem 0.78rem 4.25rem;
  animation: budgetCompactExpand 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.budget-template-compact-expanded .budget-template-task-chip {
  margin: 0.22rem 0.3rem 0.22rem 0;
}

body.theme-light .budget-template-compact-row {
  border-color: rgba(20, 152, 140, 0.17);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 255, 251, 0.8));
  box-shadow: 0 10px 24px rgba(28, 93, 88, 0.06);
}

body.theme-light .budget-template-compact-row:hover {
  border-color: rgba(31, 176, 162, 0.38);
}

body.theme-light .budget-template-compact-row.is-selected {
  border-color: rgba(32, 188, 169, 0.58);
  background:
    radial-gradient(circle at 12% 18%, rgba(50, 230, 202, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(228, 255, 249, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 16px 34px rgba(29, 119, 109, 0.12);
}

body.theme-light .budget-template-compact-trigger strong {
  color: #0d3434;
}

body.theme-light .budget-template-dynamic-chevron,
body.theme-light .budget-template-compact-chevron {
  border-color: rgba(22, 148, 137, 0.18);
  color: rgba(16, 146, 134, 0.86);
  background: rgba(255, 255, 255, 0.86);
}

@media (max-width: 1100px) {
  .budget-template-compact-trigger {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .budget-template-compact-total {
    display: none;
  }
}

@media (max-width: 760px) {
  .budget-product-topbar-section--featured {
    font-size: 1rem;
  }

  .budget-template-compact-trigger {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .budget-template-compact-count {
    display: none;
  }

  .budget-template-compact-expanded {
    padding-left: 0.86rem;
  }
}



/* ========================================
   V54 | Compact view switch hardening + sharper sidebar icons
======================================== */
.budget-dashboard-template-grid[data-dashboard-style="compact"] {
  display: block !important;
  width: 100%;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-dashboard-template-board--compact {
  display: block !important;
  width: 100%;
  max-width: 100%;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.56rem;
  width: 100%;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-row {
  width: 100%;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-trigger {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  min-height: 3.15rem;
}

.app-sidebar-link {
  min-height: 54px;
  gap: 0.88rem;
  padding-top: 0.86rem;
  padding-bottom: 0.86rem;
}

.app-sidebar-link-icon {
  width: 1.42rem;
  height: 1.42rem;
  min-width: 1.42rem;
}

.app-sidebar-link-icon svg {
  width: 1.42rem;
  height: 1.42rem;
  shape-rendering: geometricPrecision;
}

.app-sidebar-link-icon svg path,
.app-sidebar-link-icon svg circle,
.app-sidebar-link-icon svg rect,
.app-sidebar-link-icon svg line,
.app-sidebar-link-icon svg polyline,
.app-sidebar-link-icon svg polygon {
  vector-effect: non-scaling-stroke;
  stroke-width: 1.95;
}

.app-sidebar-link-text {
  font-size: 0.9rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.app-sidebar-nav {
  gap: 0.84rem;
}

@media (max-width: 1100px) {
  .budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-trigger {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }
}

@media (max-width: 760px) {
  .budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-trigger {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}


/* ========================================
   INSIDE | V58 Compact dashboard chips + universal chevron
   Alcance visual exclusivo para la vista compacta de plantillas.
======================================== */
.budget-template-compact-chevron {
  width: 1.42rem;
  height: 1.42rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(99, 230, 217, 0.32);
  color: rgba(117, 244, 229, 0.92);
  background:
    radial-gradient(circle at 50% 30%, rgba(103, 239, 218, 0.16), transparent 62%),
    rgba(2, 24, 30, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.18);
  transition:
    transform 240ms ease,
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.budget-template-compact-chevron svg {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.budget-template-compact-row.is-selected .budget-template-compact-chevron {
  transform: rotate(180deg);
  color: #dffffa;
  border-color: rgba(99, 230, 217, 0.72);
  background:
    radial-gradient(circle at 50% 30%, rgba(119, 255, 235, 0.24), transparent 62%),
    rgba(19, 156, 139, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 7px 16px rgba(0, 0, 0, 0.22);
}

.budget-template-compact-expanded {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.46rem;
  padding: 0.18rem 0.86rem 0.82rem 4.25rem;
  border-top: 1px solid rgba(99, 230, 217, 0.10);
}

.budget-template-compact-expanded[hidden] {
  display: none !important;
}

.budget-template-compact-expanded .budget-template-task-chip {
  min-height: 2.06rem;
  max-width: 100%;
  margin: 0;
  padding: 0.42rem 0.56rem 0.42rem 0.72rem;
  border: 1px solid rgba(123, 222, 211, 0.18);
  border-radius: 999px;
  color: rgba(231, 250, 247, 0.86);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(12, 54, 61, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  text-decoration: none;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.budget-template-compact-expanded .budget-template-task-chip__label {
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.005em;
}

.budget-template-compact-expanded .budget-template-task-chip__status {
  padding: 0.18rem 0.46rem;
  font-size: 0.6rem;
  letter-spacing: 0.055em;
  border: 1px solid transparent;
}

.budget-template-compact-expanded a.budget-template-task-chip--saved {
  color: rgba(238, 255, 252, 0.98);
  background:
    linear-gradient(135deg, rgba(24, 169, 145, 0.34), rgba(71, 235, 207, 0.14));
  border-color: rgba(103, 239, 218, 0.50);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 8px 18px rgba(0, 0, 0, 0.14);
}

.budget-template-compact-expanded a.budget-template-task-chip--saved .budget-template-task-chip__status {
  color: #063b35;
  background: rgba(116, 255, 229, 0.88);
  border-color: rgba(196, 255, 244, 0.48);
}

.budget-template-compact-expanded a.budget-template-task-chip--saved .budget-template-task-chip__check {
  color: #063b35;
  background: rgba(255, 255, 255, 0.52);
}

.budget-template-compact-expanded a.budget-template-task-chip--pending,
.budget-template-compact-expanded a.budget-template-task-chip--pending.disabled {
  color: rgba(215, 236, 232, 0.68);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(151, 194, 188, 0.16);
  box-shadow: none;
}

.budget-template-compact-expanded a.budget-template-task-chip--pending .budget-template-task-chip__status {
  color: rgba(219, 240, 237, 0.68);
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(151, 194, 188, 0.10);
}

.budget-template-compact-expanded a.budget-template-task-chip:not(.disabled):hover,
.budget-template-compact-expanded a.budget-template-task-chip.active {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(124, 255, 231, 0.64);
  background:
    linear-gradient(135deg, rgba(31, 194, 166, 0.34), rgba(72, 255, 219, 0.16));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

body.theme-light .budget-template-compact-chevron {
  color: rgba(12, 126, 115, 0.94);
  border-color: rgba(22, 148, 137, 0.20);
  background:
    radial-gradient(circle at 50% 30%, rgba(29, 189, 169, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 5px 13px rgba(10, 73, 68, 0.08);
}

body.theme-light .budget-template-compact-row.is-selected .budget-template-compact-chevron {
  color: #ffffff;
  border-color: rgba(0, 137, 116, 0.42);
  background:
    radial-gradient(circle at 50% 30%, rgba(72, 255, 219, 0.20), transparent 62%),
    rgba(0, 137, 116, 0.82);
}

body.theme-light .budget-template-compact-expanded {
  border-top-color: rgba(0, 137, 116, 0.10);
}

body.theme-light .budget-template-compact-expanded .budget-template-task-chip {
  color: rgba(18, 67, 61, 0.78);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(0, 137, 116, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 6px 14px rgba(12, 52, 48, 0.06);
}

body.theme-light .budget-template-compact-expanded a.budget-template-task-chip--saved {
  color: #053d36;
  background: linear-gradient(135deg, rgba(216, 255, 247, 0.98), rgba(241, 255, 252, 0.96));
  border-color: rgba(0, 145, 123, 0.36);
}

body.theme-light .budget-template-compact-expanded a.budget-template-task-chip--saved .budget-template-task-chip__status {
  color: #ffffff;
  background: #008d78;
  border-color: rgba(0, 111, 95, 0.24);
}

body.theme-light .budget-template-compact-expanded a.budget-template-task-chip--saved .budget-template-task-chip__check {
  color: #008d78;
  background: #ffffff;
}

body.theme-light .budget-template-compact-expanded a.budget-template-task-chip--pending,
body.theme-light .budget-template-compact-expanded a.budget-template-task-chip--pending.disabled {
  color: rgba(24, 76, 70, 0.68);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(0, 137, 116, 0.12);
}

body.theme-light .budget-template-compact-expanded a.budget-template-task-chip--pending .budget-template-task-chip__status {
  color: rgba(22, 70, 64, 0.68);
  background: rgba(0, 137, 116, 0.075);
  border-color: rgba(0, 137, 116, 0.08);
}

body.theme-light .budget-template-compact-expanded a.budget-template-task-chip:not(.disabled):hover,
body.theme-light .budget-template-compact-expanded a.budget-template-task-chip.active {
  color: #053d36;
  background: linear-gradient(135deg, rgba(220, 255, 248, 1), rgba(255, 255, 255, 0.98));
  border-color: rgba(0, 137, 116, 0.40);
  box-shadow: 0 10px 20px rgba(12, 52, 48, 0.10);
}

@media (max-width: 760px) {
  .budget-template-compact-expanded {
    padding-left: 0.86rem;
  }

  .budget-template-compact-expanded .budget-template-task-chip {
    width: 100%;
    justify-content: space-between;
    border-radius: 0.76rem;
  }
}

/* ========================================
   INSIDE | V59 Compact render hardening + card title refinement
   Alcance: visual/presentación del dashboard de plantillas.
======================================== */
.budget-template-compact-chevron {
  position: relative;
  font-size: 0;
  width: 1.44rem;
  height: 1.44rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(99, 230, 217, 0.34);
  color: rgba(131, 255, 237, 0.94);
  background:
    radial-gradient(circle at 50% 30%, rgba(103, 239, 218, 0.18), transparent 62%),
    rgba(2, 24, 30, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.18);
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.budget-template-compact-chevron::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.08rem) rotate(45deg);
  transition: transform 220ms ease;
}

.budget-template-compact-row.is-selected .budget-template-compact-chevron {
  color: #e8fffb;
  border-color: rgba(99, 230, 217, 0.76);
  background:
    radial-gradient(circle at 50% 30%, rgba(119, 255, 235, 0.25), transparent 62%),
    rgba(19, 156, 139, 0.32);
}

.budget-template-compact-row.is-selected .budget-template-compact-chevron::before {
  transform: translateY(0.08rem) rotate(225deg);
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-dashboard-template-board--compact,
.budget-dashboard-template-grid.is-compact-style .budget-dashboard-template-board--compact {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-list,
.budget-dashboard-template-grid.is-compact-style .budget-template-compact-list {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 0.62rem !important;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-row,
.budget-dashboard-template-grid.is-compact-style .budget-template-compact-row {
  width: 100% !important;
}

.budget-template-compact-expanded {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.48rem;
  padding: 0.2rem 0.92rem 0.88rem 4.3rem;
  border-top: 1px solid rgba(99, 230, 217, 0.10);
}

.budget-template-compact-expanded[hidden] {
  display: none !important;
}

.budget-template-compact-expanded .budget-template-task-chip {
  min-height: 2.04rem;
  max-width: 100%;
  margin: 0;
  padding: 0.42rem 0.58rem 0.42rem 0.72rem;
  border: 1px solid rgba(123, 222, 211, 0.18);
  border-radius: 999px;
  color: rgba(232, 250, 247, 0.88);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(12, 54, 61, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  text-decoration: none;
}

.budget-template-compact-expanded .budget-template-task-chip__label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.004em;
}

.budget-template-compact-expanded .budget-template-task-chip__status {
  padding: 0.18rem 0.48rem;
  font-size: 0.59rem;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
}

.budget-template-compact-expanded a.budget-template-task-chip--saved {
  color: rgba(241, 255, 252, 0.98);
  background: linear-gradient(135deg, rgba(22, 155, 134, 0.38), rgba(68, 230, 203, 0.15));
  border-color: rgba(103, 239, 218, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 8px 18px rgba(0, 0, 0, 0.14);
}

.budget-template-compact-expanded a.budget-template-task-chip--saved .budget-template-task-chip__status {
  color: #063b35;
  background: rgba(116, 255, 229, 0.88);
  border-color: rgba(196, 255, 244, 0.48);
}

.budget-template-compact-expanded a.budget-template-task-chip--pending,
.budget-template-compact-expanded a.budget-template-task-chip--pending.disabled {
  color: rgba(213, 235, 231, 0.70);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(151, 194, 188, 0.16);
  box-shadow: none;
}

.budget-template-compact-expanded a.budget-template-task-chip--pending .budget-template-task-chip__status {
  color: rgba(219, 240, 237, 0.70);
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(151, 194, 188, 0.10);
}

.budget-template-compact-expanded a.budget-template-task-chip:not(.disabled):hover,
.budget-template-compact-expanded a.budget-template-task-chip.active {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(124, 255, 231, 0.64);
  background: linear-gradient(135deg, rgba(31, 194, 166, 0.34), rgba(72, 255, 219, 0.16));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card:not(.is-selected) .budget-template-dynamic-card-trigger {
  display: flex;
  min-height: 154px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem 4.25rem 1.18rem;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card:not(.is-selected) .budget-template-dynamic-code-wrap {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card:not(.is-selected) .budget-template-dynamic-icon {
  top: 1rem;
  right: 1rem;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card:not(.is-selected) .budget-template-dynamic-card-trigger strong {
  margin: 0;
  max-width: 100%;
  color: rgba(247, 255, 253, 0.98);
  font-size: clamp(1.02rem, 1.12vw, 1.18rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card:not(.is-selected) .budget-template-dynamic-card-trigger small {
  margin-top: 0.52rem;
  color: rgba(213, 246, 241, 0.76);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card:not(.is-selected) .budget-template-dynamic-percent {
  right: 1rem;
  bottom: 0.92rem;
}

body.theme-light .budget-template-compact-chevron {
  color: rgba(12, 126, 115, 0.94);
  border-color: rgba(22, 148, 137, 0.20);
  background:
    radial-gradient(circle at 50% 30%, rgba(29, 189, 169, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.92);
}

body.theme-light .budget-template-compact-row.is-selected .budget-template-compact-chevron {
  color: #ffffff;
  border-color: rgba(0, 137, 116, 0.42);
  background:
    radial-gradient(circle at 50% 30%, rgba(72, 255, 219, 0.20), transparent 62%),
    rgba(0, 137, 116, 0.82);
}

body.theme-light .budget-template-compact-expanded {
  border-top-color: rgba(0, 137, 116, 0.10);
}

body.theme-light .budget-template-compact-expanded .budget-template-task-chip {
  color: rgba(18, 67, 61, 0.78);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(0, 137, 116, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 6px 14px rgba(12, 52, 48, 0.06);
}

body.theme-light .budget-template-compact-expanded a.budget-template-task-chip--saved {
  color: #053d36;
  background: linear-gradient(135deg, rgba(216, 255, 247, 0.98), rgba(241, 255, 252, 0.96));
  border-color: rgba(0, 145, 123, 0.36);
}

body.theme-light .budget-template-compact-expanded a.budget-template-task-chip--saved .budget-template-task-chip__status {
  color: #ffffff;
  background: #008d78;
  border-color: rgba(0, 111, 95, 0.24);
}

body.theme-light .budget-template-compact-expanded a.budget-template-task-chip--pending,
body.theme-light .budget-template-compact-expanded a.budget-template-task-chip--pending.disabled {
  color: rgba(24, 76, 70, 0.68);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(0, 137, 116, 0.12);
}

body.theme-light .budget-template-compact-expanded a.budget-template-task-chip--pending .budget-template-task-chip__status {
  color: rgba(22, 70, 64, 0.68);
  background: rgba(0, 137, 116, 0.075);
  border-color: rgba(0, 137, 116, 0.08);
}

body.theme-light .budget-dashboard-template-board--inline-expand .budget-template-dynamic-card:not(.is-selected) .budget-template-dynamic-card-trigger strong {
  color: #0d3434;
  text-shadow: none;
}

body.theme-light .budget-dashboard-template-board--inline-expand .budget-template-dynamic-card:not(.is-selected) .budget-template-dynamic-card-trigger small {
  color: rgba(25, 82, 78, 0.66);
}

@media (max-width: 760px) {
  .budget-template-compact-expanded {
    padding-left: 0.86rem;
  }

  .budget-template-compact-expanded .budget-template-task-chip {
    width: 100%;
    justify-content: space-between;
    border-radius: 0.76rem;
  }

  .budget-dashboard-template-board--inline-expand .budget-template-dynamic-card:not(.is-selected) .budget-template-dynamic-card-trigger {
    padding-right: 3.75rem;
    padding-left: 3.75rem;
  }
}


/* ========================================
   V60 | Fix carga Compacta + tarjetas normales más finas
   Alcance: solo dashboard visual de plantillas
======================================== */

/* Chevron universal por CSS: abajo contraído, arriba al expandir */
.budget-template-dynamic-chevron,
.budget-template-compact-chevron {
  font-size: 0 !important;
}

.budget-template-dynamic-chevron::before,
.budget-template-compact-chevron::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transform-origin: center;
}

.budget-template-dynamic-card.is-selected .budget-template-dynamic-chevron,
.budget-template-compact-row.is-selected .budget-template-compact-chevron {
  transform: rotate(180deg) !important;
}

/* Refuerzo visual de la vista compacta como lista vertical real */
.budget-dashboard-template-grid[data-dashboard-style="compact"],
.budget-dashboard-template-grid.is-compact-style {
  display: block !important;
  width: 100% !important;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-dashboard-template-board,
.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-dashboard-template-board--compact,
.budget-dashboard-template-grid.is-compact-style .budget-dashboard-template-board--compact {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-list,
.budget-dashboard-template-grid.is-compact-style .budget-template-compact-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  width: 100% !important;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-row,
.budget-dashboard-template-grid.is-compact-style .budget-template-compact-row {
  width: 100% !important;
  min-height: unset !important;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-trigger,
.budget-dashboard-template-grid.is-compact-style .budget-template-compact-trigger {
  min-height: 2.82rem !important;
  padding: 0.54rem 0.78rem !important;
}

/* Chips internos de compacta: sobrios, técnicos y sin colores fuera de paleta INSIDE */
.budget-template-compact-expanded {
  padding: 0 0.78rem 0.72rem 3.85rem !important;
}

.budget-template-compact-expanded .budget-template-task-chip {
  min-height: 2rem;
  padding: 0.34rem 0.56rem;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.1;
  box-shadow: none;
}

.budget-template-compact-expanded a.budget-template-task-chip--saved {
  color: rgba(236, 255, 251, 0.96) !important;
  border-color: rgba(93, 242, 219, 0.58) !important;
  background:
    linear-gradient(135deg, rgba(24, 166, 144, 0.34), rgba(5, 54, 58, 0.70)) !important;
}

.budget-template-compact-expanded a.budget-template-task-chip--pending,
.budget-template-compact-expanded a.budget-template-task-chip--pending.disabled {
  color: rgba(215, 236, 233, 0.78) !important;
  border-color: rgba(164, 198, 194, 0.18) !important;
  background: rgba(9, 29, 34, 0.64) !important;
}

.budget-template-compact-expanded .budget-template-task-chip__status {
  padding: 0.18rem 0.36rem;
  border-radius: 999px;
  font-size: 0.58rem;
  letter-spacing: 0.045em;
}

/* Tarjetas normales más finas y profesionales */
.budget-dashboard-template-board--inline-expand .budget-dashboard-template-cards {
  gap: 0.72rem !important;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card {
  min-height: unset !important;
  border-radius: 0.95rem !important;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card-trigger {
  min-height: 118px !important;
  padding: 0.72rem 0.82rem 0.7rem !important;
  grid-template-rows: auto 1fr auto !important;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-code {
  min-width: 2rem !important;
  min-height: 1.45rem !important;
  padding: 0.16rem 0.44rem !important;
  border-radius: 0.5rem !important;
  font-size: 0.74rem !important;
}

.budget-template-dynamic-code-wrap {
  gap: 0.28rem !important;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-chevron {
  width: 1.1rem !important;
  height: 1.1rem !important;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-icon {
  top: 0.72rem !important;
  right: 0.78rem !important;
  width: 24px !important;
  height: 24px !important;
  opacity: 0.82;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-icon svg {
  width: 21px !important;
  height: 21px !important;
  stroke-width: 1.55 !important;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card strong {
  justify-self: center !important;
  align-self: center !important;
  max-width: min(78%, 360px) !important;
  margin: 0.3rem auto 0 !important;
  text-align: center !important;
  font-size: clamp(0.88rem, 0.95vw, 1rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.018em !important;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-card small {
  justify-self: center !important;
  margin-top: 0.14rem !important;
  padding-bottom: 0 !important;
  text-align: center !important;
  font-size: 0.7rem !important;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-percent {
  right: 0.78rem !important;
  bottom: 0.64rem !important;
  min-width: 2.95rem !important;
  padding: 0.27rem 0.55rem !important;
  font-size: 0.78rem !important;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-expanded {
  margin: -0.08rem 0.68rem 0.68rem !important;
  padding: 0.72rem !important;
}

body.theme-light .budget-template-compact-expanded a.budget-template-task-chip--saved {
  color: #063f3a !important;
  border-color: rgba(16, 156, 141, 0.42) !important;
  background: linear-gradient(135deg, rgba(211, 255, 248, 0.98), rgba(240, 255, 252, 0.88)) !important;
}

body.theme-light .budget-template-compact-expanded a.budget-template-task-chip--pending,
body.theme-light .budget-template-compact-expanded a.budget-template-task-chip--pending.disabled {
  color: rgba(28, 66, 62, 0.78) !important;
  border-color: rgba(16, 122, 113, 0.16) !important;
  background: rgba(255, 255, 255, 0.76) !important;
}

@media (max-width: 760px) {
  .budget-dashboard-template-board--inline-expand .budget-template-dynamic-card-trigger {
    min-height: 108px !important;
  }

  .budget-template-compact-expanded {
    padding-left: 0.78rem !important;
  }
}

/* ========================================
   V61 | Ajuste compacto + iconos tarjetas + editar plantillas
   Alcance: solo dashboard visual de plantillas y acciones del presupuesto activo
======================================== */

/* Compacta: filas más limpias, sin rayas/glitches entre header y chips */
.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-list,
.budget-dashboard-template-grid.is-compact-style .budget-template-compact-list {
  gap: 0.62rem !important;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-row,
.budget-dashboard-template-grid.is-compact-style .budget-template-compact-row {
  position: relative;
  overflow: hidden !important;
  border-color: rgba(93, 223, 211, 0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 8px 20px rgba(0, 0, 0, 0.10) !important;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-row:hover,
.budget-dashboard-template-grid.is-compact-style .budget-template-compact-row:hover {
  transform: none !important;
  border-color: rgba(93, 223, 211, 0.42) !important;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-row.is-selected,
.budget-dashboard-template-grid.is-compact-style .budget-template-compact-row.is-selected {
  border-color: rgba(93, 242, 219, 0.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 12px 26px rgba(0, 0, 0, 0.16) !important;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-trigger,
.budget-dashboard-template-grid.is-compact-style .budget-template-compact-trigger {
  min-height: 3rem !important;
  padding: 0.58rem 0.84rem !important;
  column-gap: 0.78rem !important;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-row.is-selected .budget-template-compact-trigger,
.budget-dashboard-template-grid.is-compact-style .budget-template-compact-row.is-selected .budget-template-compact-trigger {
  padding-bottom: 0.52rem !important;
}

.budget-template-compact-expanded {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.38rem !important;
  margin: 0 0.84rem 0.72rem 4.16rem !important;
  padding: 0.62rem 0 0 !important;
  border-top: 1px solid rgba(93, 223, 211, 0.16) !important;
  background: transparent !important;
}

.budget-template-compact-expanded[hidden] {
  display: none !important;
}

.budget-template-compact-expanded .budget-template-task-chip {
  margin: 0 !important;
  max-width: 100%;
}

/* Tarjetas normales: recuperar y reforzar icono superior derecho */
.budget-dashboard-template-board--inline-expand .budget-template-dynamic-icon {
  position: absolute !important;
  top: 0.74rem !important;
  right: 0.82rem !important;
  z-index: 2 !important;
  width: 31px !important;
  height: 31px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(109, 242, 226, 0.96) !important;
  opacity: 1 !important;
  border: 1px solid rgba(93, 223, 211, 0.26) !important;
  border-radius: 0.52rem !important;
  background: rgba(3, 30, 36, 0.46) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
  pointer-events: none !important;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-icon svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  color: currentColor !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}

.budget-dashboard-template-board--inline-expand .budget-template-dynamic-icon svg *,
.budget-dashboard-template-board--inline-expand .budget-template-dynamic-icon path,
.budget-dashboard-template-board--inline-expand .budget-template-dynamic-icon line,
.budget-dashboard-template-board--inline-expand .budget-template-dynamic-icon polyline,
.budget-dashboard-template-board--inline-expand .budget-template-dynamic-icon rect,
.budget-dashboard-template-board--inline-expand .budget-template-dynamic-icon circle {
  stroke: currentColor !important;
  vector-effect: non-scaling-stroke;
}

/* Presupuesto activo: acción para volver a editar/agregar plantillas */
.budget-active-edit-templates-button {
  min-width: 126px;
  min-height: 34px;
  padding-inline: 0.78rem;
  color: rgba(226, 255, 250, 0.94) !important;
  border-color: rgba(93, 223, 211, 0.34) !important;
  background: rgba(20, 139, 125, 0.18) !important;
  text-decoration: none !important;
}

.budget-active-edit-templates-button:hover {
  color: #ffffff !important;
  border-color: rgba(93, 242, 219, 0.62) !important;
  background: rgba(20, 139, 125, 0.30) !important;
}

.budget-active-edit-templates-button[hidden] {
  display: none !important;
}

body.theme-light .budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-row,
body.theme-light .budget-dashboard-template-grid.is-compact-style .budget-template-compact-row {
  border-color: rgba(20, 152, 140, 0.20) !important;
  box-shadow: 0 8px 18px rgba(28, 93, 88, 0.055) !important;
}

body.theme-light .budget-template-compact-expanded {
  border-top-color: rgba(20, 152, 140, 0.14) !important;
}

body.theme-light .budget-dashboard-template-board--inline-expand .budget-template-dynamic-icon {
  color: rgba(0, 125, 112, 0.96) !important;
  border-color: rgba(20, 152, 140, 0.22) !important;
  background: rgba(255, 255, 255, 0.76) !important;
}

body.theme-light .budget-active-edit-templates-button {
  color: #07534b !important;
  border-color: rgba(20, 152, 140, 0.28) !important;
  background: rgba(229, 255, 250, 0.88) !important;
}

body.theme-light .budget-active-edit-templates-button:hover {
  border-color: rgba(20, 152, 140, 0.46) !important;
  background: rgba(209, 255, 247, 0.98) !important;
}

@media (max-width: 760px) {
  .budget-template-compact-expanded {
    margin-left: 0.84rem !important;
  }

  .budget-active-edit-templates-button {
    width: 100%;
  }
}

/* ========================================
   V62 | Dashboard plantillas: compact spacing, icons and sidebar dashboard link
======================================== */
.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-list {
  gap: 0.68rem !important;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-row {
  border-color: rgba(93, 223, 211, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transform: none !important;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-row:hover {
  transform: none !important;
  border-color: rgba(93, 223, 211, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 10px 22px rgba(0, 0, 0, 0.13);
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-trigger {
  min-height: 3.38rem;
  padding: 0.78rem 1rem;
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-expanded {
  margin: 0 1rem 0.82rem 4.55rem;
  padding: 0.74rem 0 0;
  border-top: 1px solid rgba(93, 223, 211, 0.22);
}

.budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-expanded .budget-template-task-chip {
  margin: 0.26rem 0.34rem 0.26rem 0;
}

.budget-template-dynamic-icon {
  padding: 0.36rem;
  border: 1px solid rgba(99, 230, 217, 0.24);
  border-radius: 0.58rem;
  background: rgba(7, 42, 47, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.budget-template-dynamic-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.app-sidebar-tools-nav--main .app-sidebar-link.active {
  color: #ffffff;
  background: rgba(31, 181, 157, 0.46);
  border-color: rgba(99, 255, 222, 0.38);
}

body.theme-light .budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-row {
  border-color: rgba(20, 152, 140, 0.22);
  box-shadow: 0 8px 18px rgba(28, 93, 88, 0.055);
}

body.theme-light .budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-expanded {
  border-top-color: rgba(20, 152, 140, 0.18);
}

body.theme-light .budget-template-dynamic-icon {
  color: rgba(0, 128, 114, 0.9);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(0, 137, 116, 0.2);
}

@media (max-width: 760px) {
  .budget-dashboard-template-grid[data-dashboard-style="compact"] .budget-template-compact-expanded {
    margin-left: 1rem;
  }
}

/* ========================================
   V63 | Plantillas no disponibles + sidebar con iconos más legibles
======================================== */
.budget-template-dynamic-expanded-links .budget-template-task-chip--unavailable,
.budget-dashboard-template-links .budget-template-task-chip--unavailable,
.budget-template-compact-expanded .budget-template-task-chip--unavailable {
  color: rgba(218, 231, 228, 0.58) !important;
  background: linear-gradient(135deg, rgba(203, 215, 212, 0.07), rgba(98, 119, 116, 0.045)) !important;
  padding: 0.58rem 0.75rem !important;
  border: 1px solid rgba(188, 205, 201, 0.16) !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(0.35);
}

.budget-template-dynamic-expanded-links .budget-template-task-chip--unavailable .budget-template-task-chip__status,
.budget-dashboard-template-links .budget-template-task-chip--unavailable .budget-template-task-chip__status,
.budget-template-compact-expanded .budget-template-task-chip--unavailable .budget-template-task-chip__status {
  color: rgba(222, 235, 232, 0.58) !important;
  background: rgba(206, 220, 216, 0.085) !important;
  border: 1px solid rgba(206, 220, 216, 0.08);
}

body.theme-light .budget-template-dynamic-expanded-links .budget-template-task-chip--unavailable,
body.theme-light .budget-dashboard-template-links .budget-template-task-chip--unavailable,
body.theme-light .budget-template-compact-expanded .budget-template-task-chip--unavailable {
  color: rgba(54, 76, 72, 0.58) !important;
  background: linear-gradient(135deg, rgba(92, 114, 110, 0.075), rgba(255, 255, 255, 0.78)) !important;
  border-color: rgba(61, 86, 82, 0.14) !important;
  box-shadow: none !important;
}

body.theme-light .budget-template-dynamic-expanded-links .budget-template-task-chip--unavailable .budget-template-task-chip__status,
body.theme-light .budget-dashboard-template-links .budget-template-task-chip--unavailable .budget-template-task-chip__status,
body.theme-light .budget-template-compact-expanded .budget-template-task-chip--unavailable .budget-template-task-chip__status {
  color: rgba(54, 76, 72, 0.56) !important;
  background: rgba(54, 76, 72, 0.075) !important;
}

.app-sidebar-link {
  gap: 0.95rem !important;
  min-height: 58px !important;
  padding-top: 0.86rem !important;
  padding-bottom: 0.86rem !important;
}

.app-sidebar-link-icon {
  width: 2rem !important;
  height: 2rem !important;
  min-width: 2rem !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid rgba(114, 234, 219, 0.16);
  border-radius: 0.74rem;
  color: rgba(221, 250, 246, 0.88);
  background: rgba(7, 42, 47, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.10);
}

.app-sidebar-link-icon svg {
  width: 1.36rem !important;
  height: 1.36rem !important;
  overflow: visible;
  shape-rendering: geometricPrecision;
  filter: drop-shadow(0 0 5px rgba(91, 231, 213, 0.12));
}

.app-sidebar-link-icon svg path,
.app-sidebar-link-icon svg circle,
.app-sidebar-link-icon svg rect,
.app-sidebar-link-icon svg line,
.app-sidebar-link-icon svg polyline,
.app-sidebar-link-icon svg polygon {
  stroke-width: 2.18 !important;
  vector-effect: non-scaling-stroke;
}

.app-sidebar-link:hover .app-sidebar-link-icon,
.app-sidebar-link.active .app-sidebar-link-icon {
  color: #74ffea;
  border-color: rgba(116, 255, 234, 0.36);
  background: linear-gradient(135deg, rgba(25, 166, 145, 0.32), rgba(6, 61, 67, 0.45));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.16),
    0 0 18px rgba(46, 216, 194, 0.12);
}

.app-sidebar-link-text {
  font-size: 0.94rem !important;
  letter-spacing: 0.01em;
}

body.theme-light .app-sidebar-link-icon {
  color: rgba(0, 105, 95, 0.86);
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(0, 130, 116, 0.13);
  box-shadow: 0 8px 16px rgba(17, 63, 58, 0.08);
}

body.theme-light .app-sidebar-link:hover .app-sidebar-link-icon,
body.theme-light .app-sidebar-link.active .app-sidebar-link-icon {
  color: #006f64;
  background: linear-gradient(135deg, rgba(220, 255, 250, 0.92), rgba(255, 255, 255, 0.82));
  border-color: rgba(0, 145, 130, 0.25);
  box-shadow: 0 10px 20px rgba(17, 63, 58, 0.10);
}

@media (max-width: 760px) {
  .app-sidebar-link-icon {
    width: 1.86rem !important;
    height: 1.86rem !important;
    min-width: 1.86rem !important;
  }

  .app-sidebar-link-icon svg {
    width: 1.24rem !important;
    height: 1.24rem !important;
  }
}

/* ========================================
   V64 | Sidebar typography balance + light header readability
======================================== */
.app-sidebar-link {
  gap: 0.82rem !important;
}

.app-sidebar-link-text {
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.002em !important;
  line-height: 1.12 !important;
}

body.theme-light .app-sidebar-link-text {
  color: rgba(20, 56, 55, 0.82) !important;
}

body.theme-light .app-sidebar-link:hover .app-sidebar-link-text,
body.theme-light .app-sidebar-link.active .app-sidebar-link-text {
  color: rgba(6, 48, 47, 0.96) !important;
}

body.theme-light.inside-app-body .budget-product-topbar-section,
body.theme-light .inside-app-body .budget-product-topbar-section,
body.theme-light .budget-product-topbar-section {
  color: rgba(7, 39, 43, 0.96) !important;
  text-shadow: none !important;
}

body.theme-light.inside-app-body .budget-product-topbar-title-main,
body.theme-light .inside-app-body .budget-product-topbar-title-main,
body.theme-light .budget-product-topbar-title-main,
body.theme-light.inside-app-body .budget-product-topbar-section .budget-product-topbar-title-main,
body.theme-light .inside-app-body .budget-product-topbar-section .budget-product-topbar-title-main {
  color: rgba(7, 39, 43, 0.98) !important;
  text-shadow: none !important;
}

body.theme-light.inside-app-body .budget-product-topbar-title-accent,
body.theme-light .inside-app-body .budget-product-topbar-title-accent,
body.theme-light .budget-product-topbar-title-accent,
body.theme-light.inside-app-body .budget-product-topbar-section .budget-product-topbar-title-accent,
body.theme-light .inside-app-body .budget-product-topbar-section .budget-product-topbar-title-accent {
  color: #00796e !important;
  text-shadow: 0 6px 18px rgba(0, 121, 110, 0.12) !important;
}

body.theme-light.inside-app-body .budget-product-topbar-section *,
body.theme-light .inside-app-body .budget-product-topbar-section * {
  text-shadow: none !important;
}

@media (max-width: 760px) {
  .app-sidebar-link-text {
    font-size: 0.78rem !important;
  }
}

/* ========================================
   V71 | Recuperación header, modal y selección activa de plantillas
======================================== */
.budget-wizard-modal {
  z-index: 12080 !important;
}

.inside-app-body .budget-product-topbar-section--featured,
.budget-product-topbar-section--featured {
  display: inline-flex;
  align-items: baseline;
  gap: 0.34rem;
  color: rgba(238, 255, 252, 0.92) !important;
  font-size: clamp(1.02rem, 1.2vw, 1.35rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.05 !important;
  white-space: nowrap;
}

.inside-app-body .budget-product-topbar-title-main,
.budget-product-topbar-title-main {
  color: rgba(248, 255, 253, 0.96) !important;
}

.inside-app-body .budget-product-topbar-title-accent,
.budget-product-topbar-title-accent {
  color: #5df2db !important;
  text-shadow: 0 0 22px rgba(93, 242, 219, 0.18) !important;
}

body.theme-light .inside-app-body .budget-product-topbar-title-main,
body.theme-light .budget-product-topbar-title-main {
  color: rgba(8, 31, 35, 0.96) !important;
  text-shadow: none !important;
}

body.theme-light .inside-app-body .budget-product-topbar-title-accent,
body.theme-light .budget-product-topbar-title-accent {
  color: #087f73 !important;
  text-shadow: 0 8px 22px rgba(18, 143, 130, 0.12) !important;
}

/* ========================================
   V72 | Wizard plantillas activas: contraste light mode
======================================== */
body.theme-light .budget-wizard-group > header {
  background: linear-gradient(135deg, rgba(224, 249, 244, 0.96), rgba(238, 252, 249, 0.88)) !important;
  border-bottom-color: rgba(18, 143, 130, 0.18) !important;
}

body.theme-light .budget-wizard-group > header span {
  min-width: 2rem !important;
  height: 2rem !important;
  color: #053f3c !important;
  background: linear-gradient(135deg, rgba(92, 226, 209, 0.95), rgba(31, 181, 157, 0.95)) !important;
  border: 1px solid rgba(8, 127, 115, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 18px rgba(18, 143, 130, 0.12) !important;
}

body.theme-light .budget-wizard-group > header h4 {
  color: #087f73 !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
  text-shadow: 0 6px 18px rgba(18, 143, 130, 0.10) !important;
}

body.theme-light .budget-wizard-dual-selector__panel-header h3 {
  color: rgba(8, 31, 35, 0.94) !important;
}

body.theme-light .budget-wizard-dual-selector__panel-header span {
  color: #053f3c !important;
  background: linear-gradient(135deg, rgba(92, 226, 209, 0.92), rgba(31, 181, 157, 0.92)) !important;
  border: 1px solid rgba(8, 127, 115, 0.16) !important;
  box-shadow: 0 8px 18px rgba(18, 143, 130, 0.10) !important;
}

body.theme-light .budget-wizard-template-item strong {
  color: rgba(8, 31, 35, 0.94) !important;
}

/* ========================================
   V73 | Dashboard topbar title with INSIDE accent
======================================== */
.budget-product-topbar-section--featured {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  font-size: clamp(1.02rem, 1.2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.budget-product-topbar-section--featured .budget-product-topbar-title-main,
.budget-product-topbar-section--featured .budget-product-topbar-title-accent {
  line-height: 1;
}

.budget-product-topbar-title-main {
  color: rgba(248, 255, 253, 0.96);
}

.budget-product-topbar-title-accent {
  color: #5df2db;
  text-shadow: 0 0 22px rgba(93, 242, 219, 0.18);
}

body.theme-light .budget-product-topbar-section--featured .budget-product-topbar-title-main {
  color: rgba(8, 31, 35, 0.98) !important;
}

body.theme-light .budget-product-topbar-section--featured .budget-product-topbar-title-accent {
  color: #00796e !important;
  text-shadow: 0 6px 18px rgba(0, 121, 110, 0.12) !important;
}

@media (max-width: 760px) {
  .budget-product-topbar-section--featured {
    gap: 0.2rem;
    font-size: 0.98rem;
  }
}

/* ========================================
   V74 | Dashboard partidas recientes + capas flotantes
======================================== */
.dashboard-latest-items-widget .dashboard-items-list {
  display: grid;
  gap: 0.7rem;
}

.dashboard-item-entry strong {
  line-height: 1.22;
}

.dashboard-item-entry p {
  line-height: 1.42;
}

.budget-wizard-modal {
  z-index: 12050 !important;
}

.inside-confirm-modal,
.inside-support-modal,
.dashboard-ticket-modal,
.inside-unsaved-confirm-modal,
.inside-support-success-modal {
  z-index: 12100 !important;
}

.budget-edit-panel {
  position: sticky !important;
  top: calc(var(--inside-app-topbar-height, 74px) + 0.85rem) !important;
  z-index: 11010 !important;
  scroll-margin-top: calc(var(--inside-app-topbar-height, 74px) + 1.25rem) !important;
}

body.theme-light .dashboard-latest-items-widget .dashboard-work-item {
  background: rgba(255, 255, 255, 0.76);
}

/* ========================================
   V75 | Dashboard grid flexible widget layout
======================================== */
.inside-app-body .dashboard-page .dashboard-home > .container {
  width: min(1540px, calc(100vw - 3rem));
  max-width: none;
}

.dashboard-portal-grid {
  grid-template-columns: repeat(12, minmax(72px, 1fr));
  gap: 1rem;
  align-items: start;
}

.dashboard-widget-large,
.dashboard-latest-items-widget {
  grid-column: span 6;
  min-height: 290px;
}

.dashboard-news-widget {
  grid-column: span 4;
  min-height: 290px;
}

.dashboard-quick-widget,
.dashboard-pending-widget {
  grid-column: span 4;
}

.dashboard-widget[data-widget="recent-work"],
.dashboard-widget[data-widget="recent-items"] {
  min-width: 0;
}

.dashboard-widget[data-widget="recent-work"] .dashboard-work-list,
.dashboard-widget[data-widget="recent-items"] .dashboard-work-list {
  min-height: 0;
}

.dashboard-widget[data-widget="recent-work"] .dashboard-work-item,
.dashboard-widget[data-widget="recent-items"] .dashboard-work-item {
  min-width: 0;
}

.dashboard-widget[data-widget="recent-work"] .dashboard-work-item p,
.dashboard-widget[data-widget="recent-items"] .dashboard-work-item p {
  overflow-wrap: anywhere;
}

.dashboard-widget.is-dragging {
  max-width: min(100%, 760px);
}

.dashboard-widget-placeholder {
  min-height: 210px;
}

@media (min-width: 1380px) {
  .inside-app-body .dashboard-page .dashboard-home > .container {
    width: min(1620px, calc(100vw - 4rem));
  }
}

@media (max-width: 1180px) {
  .dashboard-widget-large,
  .dashboard-latest-items-widget,
  .dashboard-news-widget,
  .dashboard-quick-widget,
  .dashboard-pending-widget {
    grid-column: span 12;
  }
}


/* ========================================
   Reportes | Presupuestos base
======================================== */
.reports-page {
  min-height: 100vh;
  padding: calc(var(--inside-app-topbar-height, 74px) + 3rem) 0 4rem;
}

.reports-app-shell {
  width: min(1480px, calc(100vw - 3rem));
  max-width: none;
  margin: 0 auto;
}

.reports-hero-card,
.reports-card {
  border: 1px solid rgba(77, 232, 209, 0.22);
  border-radius: 1.4rem;
  background: linear-gradient(145deg, rgba(2, 23, 31, 0.94), rgba(9, 51, 57, 0.84));
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.28);
  color: #f4fffb;
}

.reports-hero-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
}

.reports-hero-marker {
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #45e6c5, #11947f);
  color: #042d2f;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.reports-kicker,
.reports-card-header span {
  color: #64f0d4;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.reports-hero-content h1,
.reports-card-header h2 {
  margin: 0;
  color: #f7fffc;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.reports-hero-content p {
  margin: 0.35rem 0 0;
  color: rgba(231, 250, 246, 0.72);
}

.reports-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.reports-card {
  padding: 1.25rem;
}

.reports-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reports-card-header--with-actions {
  align-items: center;
}

.reports-field {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.reports-field label {
  color: rgba(231, 250, 246, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.reports-field select {
  width: 100%;
  border: 1px solid rgba(77, 232, 209, 0.22);
  border-radius: 0.9rem;
  background: rgba(2, 19, 26, 0.94);
  color: #f7fffc;
  font-weight: 800;
  padding: 0.9rem 1rem;
}

.reports-budget-list {
  display: grid;
  gap: 0.65rem;
}

.reports-budget-option {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(77, 232, 209, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.045);
  color: #f7fffc;
  cursor: pointer;
  padding: 0.85rem 1rem;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.reports-budget-option:hover {
  border-color: rgba(77, 232, 209, 0.54);
  background: rgba(42, 210, 185, 0.1);
  transform: translateY(-1px);
}

.reports-budget-option strong,
.reports-budget-option span {
  display: block;
}

.reports-budget-option span,
.reports-muted {
  color: rgba(231, 250, 246, 0.62);
  font-size: 0.86rem;
  margin-top: 0.2rem;
}

.reports-summary-empty,
.reports-table-empty {
  border: 1px solid rgba(77, 232, 209, 0.16);
  border-radius: 1rem;
  background: rgba(1, 15, 22, 0.46);
  padding: 1rem;
  color: rgba(231, 250, 246, 0.72);
}

.reports-summary-empty strong,
.reports-table-empty strong {
  display: block;
  color: #f7fffc;
  margin-bottom: 0.25rem;
}

.reports-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.reports-summary-grid > div,
.reports-summary-link {
  border: 1px solid rgba(77, 232, 209, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.85rem 1rem;
}

.reports-summary-main {
  grid-column: 1 / -1;
}

.reports-summary-grid span {
  display: block;
  color: #64f0d4;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.reports-summary-grid strong {
  color: #f7fffc;
  font-weight: 900;
}

.reports-summary-grid p {
  margin: 0.2rem 0 0;
  color: rgba(231, 250, 246, 0.62);
}

.reports-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.reports-actions .budget-btn[disabled] {
  opacity: 0.68;
  cursor: not-allowed;
}

.reports-actions small {
  display: block;
  font-size: 0.62rem;
  opacity: 0.74;
}

.reports-table-wrap {
  overflow-x: auto;
}

.reports-table {
  min-width: 840px;
}

.reports-table-head,
.reports-table-row {
  display: grid;
  grid-template-columns: 1.3fr 1.5fr 0.75fr 0.65fr 0.9fr 0.95fr;
  gap: 0.6rem;
  align-items: center;
}

.reports-table-head {
  border-radius: 0.9rem 0.9rem 0 0;
  background: rgba(41, 213, 190, 0.2);
  color: #cffff4;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 0.8rem 0.95rem;
  text-transform: uppercase;
}

.reports-table-row {
  border-bottom: 1px solid rgba(77, 232, 209, 0.12);
  color: rgba(247, 255, 252, 0.82);
  padding: 0.85rem 0.95rem;
}

.reports-table-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.025);
}

.reports-table-row > div:nth-child(n+3),
.reports-table-head > div:nth-child(n+3) {
  text-align: right;
}

body.theme-light .reports-hero-card,
body.theme-light .reports-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(7, 127, 111, 0.18);
  color: #103a3a;
  box-shadow: 0 1.4rem 3.2rem rgba(7, 42, 42, 0.12);
}

body.theme-light .reports-hero-content h1,
body.theme-light .reports-card-header h2,
body.theme-light .reports-budget-option strong,
body.theme-light .reports-summary-empty strong,
body.theme-light .reports-table-empty strong,
body.theme-light .reports-summary-grid strong {
  color: #103a3a;
}

body.theme-light .reports-hero-content p,
body.theme-light .reports-field label,
body.theme-light .reports-budget-option span,
body.theme-light .reports-muted,
body.theme-light .reports-summary-grid p {
  color: rgba(16, 58, 58, 0.65);
}

body.theme-light .reports-field select,
body.theme-light .reports-budget-option,
body.theme-light .reports-summary-grid > div,
body.theme-light .reports-summary-empty,
body.theme-light .reports-table-empty {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(7, 127, 111, 0.16);
  color: #103a3a;
}

body.theme-light .reports-table-head {
  background: rgba(53, 217, 193, 0.16);
  color: #087865;
}

body.theme-light .reports-table-row {
  color: rgba(16, 58, 58, 0.78);
  border-bottom-color: rgba(7, 127, 111, 0.12);
}

@media (max-width: 980px) {
  .reports-hero-card,
  .reports-grid {
    grid-template-columns: 1fr;
  }

  .reports-hero-actions,
  .reports-actions {
    justify-content: flex-start;
  }

  .reports-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   REPORTES - ANALISIS Y FILTROS
======================================== */
.reports-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.reports-breakdown-empty {
  border: 1px solid rgba(77, 232, 209, 0.16);
  border-radius: 1rem;
  background: rgba(1, 15, 22, 0.46);
  padding: 1rem;
  color: rgba(231, 250, 246, 0.72);
}

.reports-breakdown-empty strong {
  display: block;
  color: #f7fffc;
  margin-bottom: 0.25rem;
}

.reports-breakdown-empty p {
  margin: 0;
}

.reports-breakdown-list,
.reports-cost-composition {
  display: grid;
  gap: 0.75rem;
}

.reports-breakdown-row,
.reports-cost-row {
  border: 1px solid rgba(77, 232, 209, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.85rem 1rem;
}

.reports-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(120px, 0.65fr) minmax(120px, 0.65fr);
  gap: 0.8rem;
  align-items: center;
}

.reports-breakdown-row strong,
.reports-cost-row strong {
  color: #f7fffc;
  font-weight: 900;
}

.reports-breakdown-row span,
.reports-cost-row small {
  color: rgba(231, 250, 246, 0.62);
  font-size: 0.78rem;
}

.reports-breakdown-total {
  text-align: right;
}

.reports-breakdown-total strong {
  display: block;
}

.reports-breakdown-meter {
  width: 100%;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.reports-breakdown-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(54, 221, 197, 0.92), rgba(17, 148, 127, 0.9));
}

.reports-cost-row__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.reports-cost-row__header span {
  color: #64f0d4;
  font-weight: 900;
}

.reports-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.45fr);
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.reports-filter-field {
  display: grid;
  gap: 0.45rem;
}

.reports-filter-field span {
  color: rgba(231, 250, 246, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reports-filter-field input,
.reports-filter-field select {
  width: 100%;
  border: 1px solid rgba(77, 232, 209, 0.22);
  border-radius: 0.9rem;
  background: rgba(2, 19, 26, 0.94);
  color: #f7fffc;
  font-weight: 800;
  padding: 0.86rem 1rem;
}

.reports-filter-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(77, 232, 209, 0.18);
  border-radius: 0.95rem;
  background: rgba(41, 213, 190, 0.08);
  color: rgba(231, 250, 246, 0.82);
  margin-bottom: 0.9rem;
  padding: 0.75rem 0.9rem;
}

.reports-filter-summary strong,
.reports-filter-summary span {
  color: #64f0d4;
  font-weight: 900;
}

.reports-table {
  min-width: 1040px;
}

.reports-table-head,
.reports-table-row {
  grid-template-columns: 1.2fr 1.35fr 0.65fr 0.55fr 0.85fr 0.85fr 0.75fr;
}

.reports-table-row > div:nth-child(7),
.reports-table-head > div:nth-child(7) {
  text-align: center;
}

.reports-item-link {
  justify-content: center;
  min-width: 0;
  width: 100%;
}

body.theme-light .reports-breakdown-empty,
body.theme-light .reports-breakdown-row,
body.theme-light .reports-cost-row,
body.theme-light .reports-filter-field input,
body.theme-light .reports-filter-field select,
body.theme-light .reports-filter-summary {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(7, 127, 111, 0.16);
  color: #103a3a;
}

body.theme-light .reports-breakdown-empty strong,
body.theme-light .reports-breakdown-row strong,
body.theme-light .reports-cost-row strong {
  color: #103a3a;
}

body.theme-light .reports-breakdown-row span,
body.theme-light .reports-cost-row small,
body.theme-light .reports-filter-field span {
  color: rgba(16, 58, 58, 0.65);
}

body.theme-light .reports-cost-row__header span,
body.theme-light .reports-filter-summary strong,
body.theme-light .reports-filter-summary span {
  color: #087865;
}

body.theme-light .reports-breakdown-meter {
  background: rgba(7, 127, 111, 0.12);
}

@media (max-width: 980px) {
  .reports-analysis-grid,
  .reports-filter-bar {
    grid-template-columns: 1fr;
  }

  .reports-breakdown-row {
    grid-template-columns: 1fr;
  }

  .reports-breakdown-total {
    text-align: left;
  }
}

/* ========================================
   INSIDE | FIX V85 WIZARD PLANTILLAS
   Mantiene la columna de acciones compacta y evita que los botones invadan los paneles.
======================================== */
.budget-wizard-dual-selector {
  grid-template-columns: minmax(0, 1fr) 3.6rem minmax(0, 1fr);
  column-gap: 0.9rem;
}

.budget-wizard-transfer-actions {
  width: 3.6rem;
  min-width: 3.6rem;
  max-width: 3.6rem;
  align-items: center;
  justify-content: center;
  justify-self: center;
  overflow: hidden;
}

.budget-wizard-transfer-actions .budget-btn,
.budget-wizard-transfer-button {
  width: 2.55rem;
  min-width: 2.55rem;
  max-width: 2.55rem;
  height: 2.55rem;
  min-height: 2.55rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  font-size: 1.35rem;
  line-height: 1;
}

@media (max-width: 860px) {
  .budget-wizard-dual-selector {
    grid-template-columns: 1fr;
  }

  .budget-wizard-transfer-actions {
    position: relative;
    top: auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    flex-direction: row;
    justify-content: center;
  }
}
