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

:root {
  --dark: #10151d;
  --text: #17202a;
  --muted: #657180;
  --line: #e7ebef;
  --accent: #ff9d00;
  --accent-dark: #d98200;
  --bg: #f7f9fb;
  --surface: #fff;
  --header: rgba(255,255,255,.94);
  --hero: #f7f9fb;
  --shadow: rgba(16,21,29,.16);
  --success: #10b981;
  --danger: #ef4444;
  --info: #3b82f6;
  --purple: #a855f7;
}

:root[data-theme="dark"] {
  --text: #edf2f7;
  --muted: #aeb9c5;
  --line: #303945;
  --bg: #151b23;
  --surface: #1b222c;
  --header: rgba(16,21,29,.94);
  --hero: #111820;
  --dark: #090d12;
  --shadow: rgba(0,0,0,.35);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  transition: background .25s,color .25s;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1160px, 92%);
  margin: auto;
}


/* =========================
   HEADER
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.logo {
  font-weight: 900;
  letter-spacing: -.8px;
  font-size: 20px;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

nav a {
  position: relative;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
  padding: 8px 0;
  transition: color .2s;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s;
}

nav a:hover {
  color: var(--text);
}

nav a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 0;
}


/* =========================
   TEMA
========================= */

.theme-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s,border-color .2s,background .2s,box-shadow .2s;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 6px 18px var(--shadow);
}

.theme-icon {
  grid-area: 1/1;
  font-size: 20px;
  line-height: 1;
  transition: opacity .2s,transform .25s;
}

.moon {
  opacity: 0;
  transform: translateY(8px) rotate(-30deg);
}

:root[data-theme="dark"] .sun {
  opacity: 0;
  transform: translateY(-8px) rotate(30deg);
}

:root[data-theme="dark"] .moon {
  opacity: 1;
  transform: none;
}


/* =========================
   CUENTA
========================= */

.nav-account {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 11px 16px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s,border-color .2s,box-shadow .2s,background .2s;
}

.nav-account:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--shadow);
}


/* =========================
   HERO
========================= */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,157,0,.10), transparent 30%),
    linear-gradient(135deg,var(--hero) 0%,var(--surface) 62%);
  padding: 92px 0 88px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255,157,0,.10);
  right: -120px;
  top: -130px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 58px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 850;
  color: #8b6200;
  margin-bottom: 14px;
  text-transform: uppercase;
}

:root[data-theme="dark"] .eyebrow {
  color: #ffb52e;
}

h1 {
  font-size: clamp(44px,6vw,76px);
  line-height: 1.01;
  letter-spacing: -3.5px;
  max-width: 760px;
}

h1 span {
  color: var(--accent);
}

.hero-text {
  font-size: 19px;
  color: var(--muted);
  max-width: 650px;
  margin: 24px 0 17px;
}

.offer-note {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 28px;
}

.offer-note strong:first-child {
  color: var(--accent);
}

.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  min-height: 48px;
  padding: 13px 21px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .2s,transform .15s,box-shadow .2s,border-color .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(.98);
}

.primary {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 9px 24px rgba(16,21,29,.15);
}

.primary:hover {
  box-shadow: 0 12px 28px rgba(16,21,29,.22);
}

:root[data-theme="dark"] .primary {
  background: var(--accent);
  color: #000;
}

.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 22px var(--shadow);
}


/* =========================
   TARJETA HERO / LOGO
========================= */

.hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,157,0,.18), transparent 35%),
    var(--dark);
  color: #fff;
  border-radius: 26px;
  padding: 38px;
  box-shadow: 0 25px 60px var(--shadow);
  border: 1px solid rgba(255,255,255,.06);
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid rgba(255,157,0,.13);
  right: -75px;
  bottom: -75px;
  pointer-events: none;
}

.brand-logo-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.hero-card .brand-logo {
  width: 150px;
  height: 150px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.22));
  transition: transform .25s;
}

.hero-card:hover .brand-logo {
  transform: scale(1.035);
}

.bolt {
  font-size: 54px;
  margin-bottom: 20px;
}

.hero-card h2 {
  position: relative;
  z-index: 1;
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -.8px;
}

.hero-card p {
  position: relative;
  z-index: 1;
  color: #c8d0d8;
}

.line {
  height: 1px;
  background: #3a424d;
  margin: 25px 0 17px;
}

.small {
  font-size: 14px;
}


/* =========================
   SECCIONES
========================= */

.section {
  padding: 90px 0;
}

.section-title {
  font-size: clamp(32px,4vw,48px);
  line-height: 1.08;
  letter-spacing: -1.7px;
}

.section-intro {
  color: var(--muted);
  max-width: 680px;
  margin: 15px 0 40px;
}


/* =========================
   SERVICIOS
========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 27px;
  background: var(--surface);
  transition: transform .22s,border-color .22s,box-shadow .22s;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,157,0,.65);
  box-shadow: 0 14px 35px var(--shadow);
}

.card:hover::before {
  transform: scaleX(1);
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(255,157,0,.10);
  border: 1px solid rgba(255,157,0,.16);
  font-size: 28px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 9px;
}

.card p {
  font-size: 14px;
  color: var(--muted);
}


/* =========================
   SOBRE NOSOTROS
========================= */

.dark {
  background: var(--dark);
  color: #fff;
}

.dark .eyebrow {
  color: #ffb52e;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about p {
  color: #c7ced6;
  font-size: 18px;
}


/* =========================
   CONTACTO
========================= */

.contact {
  background: var(--bg);
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 35px var(--shadow);
}

.contact-box p {
  color: var(--muted);
  margin-top: 10px;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.email {
  font-weight: 800;
  font-size: 17px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  white-space: nowrap;
}


/* =========================
   FOOTER
========================= */

footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}


/* =========================
   MODALES
========================= */

.modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 0;
  overflow: hidden;
}

.modal.open {
  display: flex !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 0;
}


/* =========================
   TARJETA DEL MODAL
========================= */

.modal-card {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  max-width: 500px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 34px 34px;
  box-shadow: 0 30px 90px rgba(0,0,0,.3);
  isolation: isolate;
  animation: modalIn .2s ease-out;
}

.modal-card.admin-card {
  width: min(760px, 100%);
  max-width: 760px;
}


/* =========================
   ANIMACIÓN
========================= */

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* =========================
   BOTÓN CERRAR
========================= */

.modal-close {
  position: absolute;
  top: 22px;
  right: 18px;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 20;
  transition: border-color .2s, transform .2s, background .2s;
}

.modal-close:hover {
  border-color: var(--accent);
  background: rgba(255,157,0,.08);
  transform: rotate(3deg);
}


/* =========================
   TÍTULOS DEL MODAL
========================= */

.modal-card h2 {
  position: relative;
  z-index: 2;
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -1px;
}

.modal-text {
  position: relative;
  z-index: 2;
  color: var(--muted);
  margin: 0 0 22px;
}


/* =========================
   PANEL ADMINISTRADOR
========================= */

.admin-requests {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
  max-height: 62vh;
  overflow-y: auto;
  padding: 2px 6px 4px 2px;
  scrollbar-width: thin;
}

.admin-request {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s,box-shadow .2s;
}

.admin-request:hover {
  border-color: rgba(255,157,0,.45);
  box-shadow: 0 8px 24px var(--shadow);
}

.admin-request-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.admin-request-number {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .7px;
  display: block;
  margin-bottom: 3px;
}

.admin-request-header h3 {
  font-size: 18px;
  font-weight: 850;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}


/* =========================
   BADGES DE ESTADO
========================= */

.admin-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  border-width: 1px;
  border-style: solid;
}

.admin-status.status-pendiente {
  background: rgba(255,157,0,.15);
  color: #ff9d00;
  border-color: rgba(255,157,0,.3);
}

.admin-status.status-aceptada {
  background: rgba(16,185,129,.15);
  color: #10b981;
  border-color: rgba(16,185,129,.3);
}

.admin-status.status-rechazada {
  background: rgba(239,68,68,.15);
  color: #ef4444;
  border-color: rgba(239,68,68,.3);
}

.admin-status.status-en_proceso {
  background: rgba(59,130,246,.15);
  color: #3b82f6;
  border-color: rgba(59,130,246,.3);
}

.admin-status.status-completada {
  background: rgba(168,85,247,.15);
  color: #a855f7;
  border-color: rgba(168,85,247,.3);
}

.admin-client {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  background: var(--surface);
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text);
}

.admin-description {
  background: var(--surface);
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
}

.admin-description strong {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.admin-description p {
  font-size: 14px;
  color: var(--text);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-date {
  font-size: 12px;
  color: var(--muted);
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  align-items: end;
  background: var(--surface);
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.admin-actions label {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: -3px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.admin-status-select {
  min-height: 42px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 9px 11px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: border-color .2s,box-shadow .2s;
}

.admin-status-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,157,0,.10);
}

.admin-save-status {
  min-height: 42px;
  padding: 9px 17px;
  font-size: 13px;
}

.admin-loading,
.admin-empty {
  text-align: center;
  padding: 30px 10px;
  color: var(--muted);
}

.logout-option {
  margin-top: 15px;
}


/* =========================
   GESTIONAR CLIENTES
========================= */

.admin-clients {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 4px;
  max-height: 62vh;
  overflow-y: auto;
  padding: 2px 6px 4px 2px;
  scrollbar-width: thin;
}

.admin-client-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: border-color .2s,box-shadow .2s;
}

.admin-client-card:hover {
  border-color: rgba(255,157,0,.45);
  box-shadow: 0 8px 24px var(--shadow);
}

.admin-client-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-client-header h3 {
  font-size: 18px;
  font-weight: 850;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.admin-client-id {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 3px;
}

.admin-client-data {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.admin-client-data-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  min-width: 0;
}

.admin-client-data-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 4px;
}

.admin-client-data-value {
  display: block;
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}

.admin-client-request-count {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,157,0,.08);
  border: 1px solid rgba(255,157,0,.18);
  border-radius: 11px;
  padding: 10px 13px;
  color: var(--text);
  font-size: 13px;
}

.admin-client-request-count strong {
  color: var(--accent);
}

.admin-client-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.admin-delete-client {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 13px;
}

.admin-delete-client:hover {
  opacity: .92;
}

.admin-clients-empty {
  text-align: center;
  padding: 30px 10px;
  color: var(--muted);
}


/* =========================
   OPCIONES DE CONTACTO
========================= */

.modal-actions {
  display: grid;
  gap: 12px;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px;
  background: var(--surface);
  color: var(--text);
  transition: transform .2s,border-color .2s,box-shadow .2s;
  cursor: pointer;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.contact-option:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 22px var(--shadow);
}

.contact-option strong,
.contact-option small {
  display: block;
}

.contact-option small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 13px;
}

.option-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
  font-size: 20px;
  flex: 0 0 auto;
}

.modal-email {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* =========================
   FORMULARIOS
========================= */

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 7px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s,box-shadow .2s,background .2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,157,0,.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
}

.form-submit {
  width: 100%;
  margin-top: 10px;
}

.form-submit:hover {
  opacity: .92;
}

.form-message {
  margin-top: 15px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  min-height: 22px;
}

.switch-auth {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  margin-top: 18px;
  text-align: center;
}

.switch-auth:hover {
  text-decoration: underline;
}


/* =========================
   CAMPO CONTRASEÑA
========================= */

.password-group {
  position: relative;
  display: flex;
  align-items: center;
}

.password-group input {
  padding-right: 46px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s;
}

.toggle-password:hover {
  color: var(--text);
}


/* =========================
   CAMPO TELÉFONO CON PREFIJO
========================= */

.phone-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.phone-prefix {
  position: absolute;
  left: 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.phone-group input {
  width: 100%;
  padding-left: 52px;
}


/* =========================
   REQUISITOS DE CONTRASEÑA
========================= */

.password-requirements,
.req-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 2px;
  padding: 0;
  list-style: none;
}

.requirement-item,
.req-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  margin: 0;
  padding: 0;
}

.password-requirements .req-item .icon,
.password-requirements .requirement-item .icon,
.req-list .req-item .icon,
.req-list .requirement-item .icon,
.requirement-icon,
.req-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  text-align: center;
  background: rgba(255, 157, 0, 0.15);
  color: var(--muted);
  overflow: hidden;
}

.req-icon.invalid,
.req-item.invalid .icon,
.requirement-item.invalid .icon,
.requirement-item.invalid span:first-child,
.req-item.invalid span:first-child {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.req-icon.valid,
.req-item.valid .icon,
.requirement-item.valid .icon,
.requirement-item.valid span:first-child,
.req-item.valid span:first-child {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.password-requirements .req-item > span:not(.icon),
.password-requirements .requirement-item > span:not(.icon),
.req-list .req-item > span:not(.req-icon),
.req-list .requirement-item > span:not(.requirement-icon) {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  line-height: 1.35;
}


/* =========================
   DATOS DE CUENTA
========================= */

.account-data {
  display: grid;
  gap: 12px;
  margin: 24px 0 16px;
}

.account-data-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.account-data-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.account-data-item strong {
  font-size: 15px;
  color: var(--text);
  word-break: break-word;
}

.account-readonly {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}


/* ======================================================
   EDICIÓN DE CORREO Y ZONA DE PELIGRO (MODAL MIS DATOS)
====================================================== */

.account-data-editable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.account-data-input {
  flex: 1;
  background: transparent !important;
  border: 1px solid transparent;
  padding: 0 !important; /* Mantiene la misma alineación que Nombre y Teléfono */
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  transition: all 0.2s ease;
  width: 100%;
}

/* Solo cuando está habilitado para editar añade padding y borde */
.account-data-input:not(:disabled) {
  background-color: var(--bg) !important;
  border-color: var(--line);
  padding: 0.25rem 0.5rem !important;
}

.account-data-input:not(:disabled):focus {
  border-color: var(--accent);
  outline: none;
}

.icon-edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  line-height: 1;
  border-radius: 4px;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
  pointer-events: auto !important; /* CRÍTICO: Garantiza que el botón responda al clic */
  user-select: none;
}

.icon-edit-btn:hover {
  transform: scale(1.15);
  color: var(--text);
}

.hidden-action {
  display: none !important;
}

.account-danger-zone {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.danger-button-link {
  background: none;
  border: none;
  color: var(--danger);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.danger-button-link:hover {
  opacity: 0.8;
}

.danger-option {
  border-color: rgba(239, 68, 68, .2);
}

.danger-option:hover {
  border-color: #ef4444;
}

.danger-icon {
  background: #ef4444;
  color: #fff;
}

.danger-button {
  background: #ef4444;
  color: #fff;
}

.danger-button:hover {
  background: #dc2626;
  opacity: 1;
}

:root[data-theme="dark"] .danger-button {
  background: #ef4444;
  color: #fff;
}

/* Estilos para el botón de Eliminar Cuenta dentro del modal */
.contact-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-surface, var(--bg));
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.contact-option span:not(.option-icon) {
  display: flex;
  flex-direction: column;
}

.option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.2rem;
  flex-shrink: 0;
}


/* =========================
   SCROLLBAR
========================= */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}


/* ==========================================
   OCULTAR CONTENIDO EXTRA DESPUÉS DEL FOOTER
========================================== */

footer ~ *:not(.modal) {
  display: none !important;
}

/* ==================================================
   CONFIGURACIÓN
================================================== */

.settings-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.settings-section-title {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 800;
}

.settings-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.settings-info-row span {
  color: var(--muted);
  font-size: 14px;
}

.settings-info-row strong {
  color: var(--text);
  font-size: 14px;
}

/* =========================
   MEDIA QUERIES (RESPONSIVE)
========================= */

@media(max-width:950px) {
  nav {
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-card {
    max-width: 620px;
  }

  .cards {
    grid-template-columns: repeat(2,1fr);
  }

  .about {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}


@media(max-width:760px) {
  .nav {
    min-height: 70px;
    gap: 10px;
  }

  nav {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero {
    padding: 70px 0;
  }

  .hero-grid {
    gap: 34px;
  }

  h1 {
    font-size: clamp(42px,11vw,62px);
  }

  .section {
    padding: 76px 0;
  }

  .modal {
    padding: 14px;
  }

  .modal-card {
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    padding: 56px 22px 26px;
    border-radius: 21px;
  }

  .modal-card.admin-card {
    width: min(100%,680px);
  }

  .modal-close {
    top: 18px;
    right: 16px;
    width: 38px;
    height: 38px;
  }

  .modal-card h2 {
    font-size: 28px;
    line-height: 1.12;
    margin-bottom: 12px;
  }

  .modal-text {
    margin-bottom: 20px;
  }
  
  .settings-info-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  
}


@media(max-width:520px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .nav {
    min-height: 66px;
  }

  .logo {
    font-size: 17px;
  }

  .theme-toggle {
    width: 41px;
    height: 41px;
  }

  .nav-account {
    padding: 9px 11px;
    font-size: 12px;
  }

  .hero {
    padding: 58px 0 65px;
  }

  h1 {
    letter-spacing: -2.3px;
  }

  .hero-text {
    font-size: 17px;
  }

  .buttons {
    flex-direction: column;
  }

  .buttons .btn {
    width: 100%;
  }

  .hero-card {
    padding: 27px;
    border-radius: 21px;
  }

  .brand-logo-wrap {
    min-height: 135px;
  }

  .hero-card .brand-logo {
    width: 125px;
    height: 125px;
  }

  .hero-card h2 {
    font-size: 25px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px;
  }

  .section {
    padding: 65px 0;
  }

  .footer {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 20px 0;
    text-align: center;
  }

  .email {
    white-space: normal;
    word-break: break-word;
  }

  .contact-box {
    padding: 27px 22px;
    border-radius: 20px;
  }

  .contact-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .modal {
    padding: 12px;
    align-items: center;
  }

  .modal-card {
    width: 100%;
    max-width: none;
    max-height: 94vh;
    margin: 0;
    padding: 60px 18px 24px;
    border-radius: 20px;
  }

  .modal-card.admin-card {
    width: 100%;
    max-width: none;
  }

  .modal-close {
    top: 24px;
    right: 18px;
    width: 38px;
    height: 38px;
    font-size: 24px;
    z-index: 50;
  }

  .modal-card h2 {
    font-size: 26px;
    line-height: 1.12;
    margin-bottom: 12px;
    padding-right: 0;
  }

  .modal-text {
    margin-bottom: 22px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-group label {
    font-size: 13px;
    margin-bottom: 7px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 52px;
    padding: 13px 14px;
  }

  .form-group + .form-group {
    margin-top: 2px;
  }

  .admin-client-data {
    grid-template-columns: 1fr;
  }

  .admin-client-header {
    flex-direction: column;
  }

  .admin-client-actions,
  .admin-delete-client {
    width: 100%;
  }

  .account-data-item {
    padding: 13px 14px;
  }
}

/* ==================================================
   BOTÓN OJO MOSTRAR CONTRASEÑA (DERECHA)
================================================== */
/* ==================================================
   BOTÓN OJO MOSTRAR CONTRASEÑA (CENTRADO EXACTO)
================================================== */
.password-field-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Posicionar y centrar el ojo a la derecha dentro del input */
.toggle-password-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%); /* Centra el icono verticalmente respecto al input */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1;
  user-select: none;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Margen derecho en el texto para no escribir sobre el icono */
.password-field-group input[type="password"],
.password-field-group input[type="text"] {
  width: 100%;
  padding-right: 42px !important; /* Mantiene hueco para el ojo */
}

/* ==========================================
   AJUSTES ESPECÍFICOS PARA ESCRITORIO (PC)
========================================== */

@media (min-width: 521px) {
  .phone-group {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
  }

  .phone-group input {
    grid-area: auto !important;
    width: 100% !important;
    min-width: 0;
    padding-left: 52px !important;
  }

  .phone-prefix {
    grid-area: auto !important;
    position: absolute !important;
    top: 50% !important;
    left: 14px !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    z-index: 2 !important;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
  }

  .password-requirements .req-item,
  .req-list .req-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 30px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .password-requirements .req-item > .icon,
  .req-list .req-item > .icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    flex: 0 0 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 6px !important;
    box-sizing: border-box;
    font-size: 11px !important;
    line-height: 1 !important;
    overflow: hidden !important;
  }
}

/* ==================================================
   DASHBOARD - ESTADÍSTICAS ADMIN
================================================== */

.admin-dashboard {
  margin: 24px 0 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 10px 28px var(--shadow);
}

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

.admin-dashboard-header h3 {
  margin-top: 4px;
  font-size: 21px;
  line-height: 1.2;
  color: var(--text);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-stat-card {
  min-height: 105px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 22px var(--shadow);
}

.admin-stat-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 22px;
}

.admin-stat-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.admin-stat-value {
  display: block;
  color: var(--text);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 850;
}

.admin-dashboard-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.admin-dashboard-actions .btn {
  min-width: 190px;
}

@media (max-width: 430px) {

  .admin-dashboard-actions {
    justify-content: stretch;
  }

  .admin-dashboard-actions .btn {
    width: 100%;
  }

}

/* =========================
   DASHBOARD RESPONSIVE
========================= */

@media (max-width: 700px) {

  .admin-dashboard {
    padding: 16px;
    margin-top: 18px;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-stat-card {
    min-height: 92px;
    padding: 14px;
    gap: 10px;
  }

  .admin-stat-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 19px;
  }

  .admin-stat-value {
    font-size: 22px;
  }

}


@media (max-width: 430px) {

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

}

/* =========================
   VISTA PREVIA DE FOTOS
========================= */

.photo-preview {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.photo-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.form-help {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

/* ==================================================
   SUBIDA DE FOTOS - SOLICITUD DE PRESUPUESTO
================================================== */

.quote-photo-group {
  margin-top: 8px;
}


.photo-upload-message {
  min-height: 18px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}


.photo-upload-message.error {
  color: var(--danger);
}


.photo-upload-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  width: 100%;

  padding: 10px 12px;

  margin-top: 8px;

  border: 1px solid rgba(16, 185, 129, .35);

  border-radius: 12px;

  background: rgba(16, 185, 129, .08);
}


.photo-upload-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}


.photo-upload-check {
  width: 28px;
  height: 28px;

  flex: 0 0 28px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #10b981;
  color: #fff;

  font-size: 16px;
  font-weight: 900;
}


.photo-upload-info {
  display: flex;
  flex-direction: column;

  min-width: 0;
  gap: 2px;
}


.photo-upload-info strong {
  color: var(--success);
  font-size: 13px;
}


.photo-upload-info span {
  color: var(--muted);
  font-size: 12px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.photo-upload-remove {
  width: 30px;
  height: 30px;

  flex: 0 0 30px;

  border: 1px solid var(--line);
  border-radius: 9px;

  background: var(--surface);
  color: var(--muted);

  cursor: pointer;

  font-size: 18px;
  line-height: 1;

  transition:
    color .2s ease,
    border-color .2s ease,
    background .2s ease;
}


.photo-upload-remove:hover {
  color: var(--danger);
  border-color: var(--danger);
}


/* INPUT DE ARCHIVOS */

#quotePhotos {
  width: 100%;
  padding: 10px;

  border: 1px solid var(--line);
  border-radius: 12px;

  background: var(--surface);
  color: var(--text);

  cursor: pointer;
}


#quotePhotos::file-selector-button {
  margin-right: 10px;

  padding: 8px 12px;

  border: 0;
  border-radius: 8px;

  background: var(--accent);
  color: #111;

  font-weight: 750;

  cursor: pointer;
}


#quotePhotos::file-selector-button:hover {
  background: var(--accent-dark);
}


@media (max-width: 600px) {

  .photo-upload-item {
    padding: 9px 10px;
  }

  .photo-upload-info span {
    max-width: 210px;
  }

}

/* =========================
   VISTA PREVIA FOTOS COMPLETA
========================= */

.photo-preview-full {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
  max-height: 70vh;
  overflow-y: auto;
}

.photo-preview-full img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 0 auto;
  display: block;
}

/* =========================
   FOTOS EN SOLICITUDES
========================= */

.request-photos {
  background: var(--bg);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.photo-names {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
  word-break: break-word;
}

/* ==================================================
   ADMIN - VISOR DE FOTOS
================================================== */

.admin-photo-modal {
  width: min(680px, 100%);
  max-width: 680px;
}


.admin-photo-container {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 280px;

  margin-top: 18px;
  padding: 12px;

  border: 1px solid var(--line);
  border-radius: 16px;

  background: var(--bg);

  overflow: hidden;
}


.admin-photo-container img {
  display: block;

  width: 100%;
  max-width: 580px;

  max-height: 58vh;

  object-fit: contain;

  border-radius: 12px;
}


.admin-photo-download {
  display: flex;
  justify-content: center;

  margin-top: 14px;
}


.admin-photo-download .btn {
  min-width: 190px;
}


.admin-photo-navigation {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  margin-top: 14px;
}


#adminPhotoCounter {
  min-width: 110px;

  text-align: center;

  color: var(--muted);

  font-size: 13px;
  font-weight: 700;
}


@media (max-width: 600px) {

  .admin-photo-modal {
    width: 100%;
  }

  .admin-photo-container {
    min-height: 220px;
  }

  .admin-photo-container img {
    max-height: 48vh;
  }

  .admin-photo-navigation {
    gap: 8px;
  }

  .admin-photo-navigation .btn {
    flex: 1;
  }

  .admin-photo-download .btn {
    width: 100%;
  }

}

/* ==================================================
   AVISO DE PRIVACIDAD - REGISTRO
================================================== */

.privacy-notice {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 13px;
}

.privacy-notice strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 14px;
  font-weight: 700;
}

.privacy-notice p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}


/* ==================================================
   ACEPTACIÓN DE PRIVACIDAD
================================================== */

.privacy-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.65rem;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.privacy-acceptance input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}


/* ==================================================
   ENLACE POLÍTICA DE PRIVACIDAD
================================================== */

.privacy-inline-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.privacy-inline-link:hover {
  color: var(--accent-dark);
}

/* ==================================================
   MODALES - POLÍTICA DE PRIVACIDAD
              Y TÉRMINOS Y CONDICIONES
================================================== */

#privacyModal .modal-card,
#termsModal .modal-card {
  width: min(680px, 100%);
  max-height: 85vh;
  overflow-y: auto;

  padding: 34px 38px;

  border-radius: 24px;

  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.28);
}


/* ==================================================
   SCROLLBAR
================================================== */

#privacyModal .modal-card::-webkit-scrollbar,
#termsModal .modal-card::-webkit-scrollbar {
  width: 7px;
}

#privacyModal .modal-card::-webkit-scrollbar-track,
#termsModal .modal-card::-webkit-scrollbar-track {
  background: transparent;
}

#privacyModal .modal-card::-webkit-scrollbar-thumb,
#termsModal .modal-card::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

#privacyModal .modal-card::-webkit-scrollbar-thumb:hover,
#termsModal .modal-card::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}


/* ==================================================
   CABECERA
================================================== */

#privacyModal .eyebrow,
#termsModal .eyebrow {
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

#privacyModal h2,
#termsModal h2 {
  margin-bottom: 22px;
  line-height: 1.1;
  font-size: 32px;
}


/* ==================================================
   CONTENIDO
================================================== */

#privacyModal .privacy-content,
#termsModal .privacy-content {
  padding-right: 4px;
}

#privacyModal p,
#termsModal p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

#privacyModal h3,
#termsModal h3 {
  margin-top: 26px;
  margin-bottom: 8px;

  font-size: 18px;
  line-height: 1.3;
}


/* ==================================================
   SEPARACIÓN ENTRE SECCIONES
================================================== */

#privacyModal h3 + p,
#termsModal h3 + p {
  margin-bottom: 16px;
}


/* ==================================================
   ÚLTIMO TEXTO
================================================== */

#privacyModal .privacy-note,
#termsModal .privacy-note {
  margin-top: 28px;
  padding-top: 18px;

  border-top: 1px solid var(--line);

  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}


/* ==================================================
   BOTÓN CERRAR
================================================== */

#privacyModal .modal-close,
#termsModal .modal-close {
  top: 18px;
  right: 18px;

  width: 38px;
  height: 38px;

  border-radius: 50%;
}


/* ==================================================
   MÓVIL
================================================== */

@media (max-width: 600px) {

  #privacyModal,
  #termsModal {
    padding: 12px;
  }

  #privacyModal .modal-card,
  #termsModal .modal-card {
    width: 100%;
    max-height: 90vh;

    padding: 28px 22px;

    border-radius: 20px;
  }

  #privacyModal h2,
  #termsModal h2 {
    font-size: 29px;
    padding-right: 35px;
    margin-bottom: 20px;
  }

  #privacyModal h3,
  #termsModal h3 {
    font-size: 17px;
    margin-top: 22px;
  }

  #privacyModal p,
  #termsModal p {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 14px;
  }

  #privacyModal .privacy-note,
  #termsModal .privacy-note {
    margin-top: 24px;
    padding-top: 16px;
    font-size: 12.5px;
  }

  #privacyModal .modal-close,
  #termsModal .modal-close {
    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;
  }

}

/* =========================
   ELEMENTOS OCULTOS
========================= */

.hidden {
  display: none !important;
}

/* ==========================================
   ADMIN - FORMULARIO EDITAR CLIENTE
========================================== */

.admin-client-edit.hidden {
  display: none !important;
}

/* ==================================================
   TELÉFONO - AJUSTE MÓVIL +34
================================================== */

@media (max-width: 520px) {

  .phone-group {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
  }

  .phone-prefix {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 5 !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;

    color: var(--muted) !important;

    pointer-events: none !important;
    user-select: none !important;
  }

  .phone-group input {
    width: 100% !important;
    min-width: 0 !important;

    padding-left: 58px !important;
    padding-right: 14px !important;
  }
}

/* ==================================================
   NOTIFICACIONES
   BLOQUE ÚNICO
   PC + MÓVIL
================================================== */


/* ==================================================
   BOTÓN NOTIFICACIONES
================================================== */

#notificationsBtn {
  position: relative;
}


/* ==================================================
   CONTADOR
================================================== */

#notificationsBadge {
  position: absolute;
  top: -7px;
  right: -7px;

  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin: 0;

  border-radius: 999px;

  background: var(--danger);
  color: #fff;

  font-size: 11px;
  font-weight: 800;
  line-height: 1;

  white-space: nowrap;

  border: 2px solid var(--surface);

  z-index: 5;
}


/* ==================================================
   LISTA
================================================== */

.notifications-list {
  display: flex;
  flex-direction: column;

  width: 100%;
  min-width: 0;
  min-height: 0;

  gap: 14px;

  margin-top: 22px;

  max-height: 58vh;

  overflow-y: auto;
  overflow-x: hidden;

  padding: 4px 6px 8px 0;

  box-sizing: border-box;

  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}


/* ==================================================
   SCROLL CHROME / EDGE / SAFARI
================================================== */

.notifications-list::-webkit-scrollbar {
  width: 7px;
}

.notifications-list::-webkit-scrollbar-track {
  background: transparent;
}

.notifications-list::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}


/* ==================================================
   TARJETA
================================================== */

.notification-item {
  position: relative;

  display: flex;
  flex-direction: column;

  flex: 0 0 auto;

  width: 100%;
  min-width: 0;

  padding: 20px;

  box-sizing: border-box;

  border: 1px solid var(--line);
  border-radius: 18px;

  background: var(--surface);

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.06);

  overflow: hidden;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}


/* ==================================================
   HOVER
================================================== */

.notification-item:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.09);
}


/* ==================================================
   ELEMENTOS INTERNOS
================================================== */

.notification-item > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;

  box-sizing: border-box;
}


/* ==================================================
   CABECERA
================================================== */

.notification-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  width: 100%;
  min-width: 0;

  gap: 14px;

  margin: 0 0 12px;
}


/* ==================================================
   TÍTULO
================================================== */

.notification-header h3 {
  display: flex;
  align-items: flex-start;

  min-width: 0;

  margin: 0;

  gap: 8px;

  color: var(--text);

  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;

  overflow-wrap: anywhere;
  word-break: break-word;
}


/* ==================================================
   NUEVA
================================================== */

.notification-new {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 5px 9px;

  border-radius: 999px;

  background: var(--accent);
  color: #111;

  font-size: 11px;
  line-height: 1;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* ==================================================
   MENSAJE
================================================== */

.notification-message {
  display: block;

  width: 100%;
  min-width: 0;

  margin: 0;
  padding: 0;

  color: var(--text);

  font-size: 14px;
  line-height: 1.7;

  text-align: left;

  white-space: pre-wrap;

  overflow-wrap: anywhere;
  word-break: break-word;
}


/* ==================================================
   ZONA MARCAR COMO LEÍDO
================================================== */

.notification-read-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  width: 100%;
  min-width: 0;

  margin-top: 16px;

  box-sizing: border-box;
}


/* ==================================================
   BOTÓN MARCAR COMO LEÍDO
================================================== */

.notification-read-btn {
  flex: 0 0 auto;

  min-height: 38px;
  max-width: 100%;

  margin: 0;

  border-radius: 10px;

  font-size: 13px;
  font-weight: 700;

  white-space: normal;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.notification-read-btn:hover {
  transform: translateY(-1px);
}


/* ==================================================
   TEXTO LEÍDA
================================================== */

.notification-read-label {
  display: inline-flex;
  align-items: center;

  width: auto;

  gap: 5px;

  margin: 0;

  color: var(--success);

  font-size: 12px;
  font-weight: 700;
}


/* ==================================================
   PIE DE LA TARJETA
   FECHA IZQUIERDA
   ELIMINAR DERECHA
================================================== */

.notification-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-width: 0;

  gap: 12px;

  margin-top: 14px;

  box-sizing: border-box;
}


/* ==================================================
   FECHA
================================================== */

.notification-date {
  flex: 1 1 auto;

  display: block;

  min-width: 0;

  margin: 0;
  padding: 0;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.4;

  text-align: left;

  overflow-wrap: anywhere;
}


/* ==================================================
   BOTÓN ELIMINAR
   SOLO APARECE CUANDO JS LO CREA
================================================== */

.notification-delete-btn {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;

  margin: 0 0 0 auto;

  padding: 9px 13px;

  border-radius: 10px;

  font-size: 13px;
  font-weight: 700;

  white-space: nowrap;

  cursor: pointer;
}


/* ==================================================
   NO LEÍDA
================================================== */

.notification-unread {
  border-color: rgba(255, 157, 0, 0.55);

  background:
    linear-gradient(
      135deg,
      rgba(255, 157, 0, 0.08),
      var(--surface)
    );

  box-shadow:
    0 10px 28px rgba(255, 157, 0, 0.10);
}


.notification-unread::before {
  content: "";

  position: absolute;

  left: 0;
  top: 16px;
  bottom: 16px;

  width: 4px;

  border-radius: 0 6px 6px 0;

  background: var(--accent);
}


/* ==================================================
   LEÍDA
================================================== */

.notification-read {
  opacity: 0.78;

  background: var(--surface);
}

.notification-read:hover {
  opacity: 0.95;
}


/* ==================================================
   CARGANDO
================================================== */

.notifications-loading {
  width: 100%;

  padding: 30px 20px;

  box-sizing: border-box;

  text-align: center;

  color: var(--muted);

  font-size: 14px;
}


/* ==================================================
   SIN NOTIFICACIONES
================================================== */

.notifications-empty {
  width: 100%;

  padding: 42px 24px;

  box-sizing: border-box;

  text-align: center;

  border: 1px dashed var(--line);
  border-radius: 20px;

  background: var(--surface);
}


.notifications-empty .success-icon {
  margin: 0 auto 16px;
}


.notifications-empty h3 {
  margin: 0 0 8px;

  color: var(--text);

  font-size: 18px;
}


.notifications-empty p {
  max-width: 380px;

  margin: 0 auto;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.6;
}


/* ==================================================
   CONTADOR - MI PANEL
   FLOTANTE EN LA ESQUINA
================================================== */

#accountBtn {
  position: relative;
}

#panelNotificationsBadge {
  position: absolute;

  top: -7px;
  right: -7px;

  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 21px;
  height: 21px;

  padding: 0 5px;
  margin: 0;

  border-radius: 999px;

  background: var(--danger);
  color: #fff;

  font-size: 10px;
  font-weight: 800;
  line-height: 1;

  white-space: nowrap;

  border: 2px solid var(--surface);

  z-index: 10;

  animation: panelNotificationPulse 2s ease-in-out infinite;
}

#panelNotificationsBadge.hidden {
  display: none;
}


/* ==================================================
   EFECTO VISUAL
================================================== */

@keyframes panelNotificationPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12);
  }

}

/* ==================================================
   MÓVIL
================================================== */

@media (max-width: 600px) {

  #notificationsBadge {
    top: -7px;
    right: -7px;

    min-width: 21px;
    height: 21px;

    padding: 0 5px;

    font-size: 10px;
  }

    #panelNotificationsBadge {
    top: -7px;
    right: -7px;

    min-width: 20px;
    height: 20px;

    font-size: 9px;
  }


  .notifications-list {
    gap: 12px;

    margin-top: 18px;

    max-height: 62vh;

    padding: 4px 4px 8px 0;
  }


  .notification-item {
    padding: 17px 16px;

    border-radius: 16px;
  }


  .notification-unread::before {
    top: 14px;
    bottom: 14px;

    width: 3px;
  }


  .notification-header {
    gap: 9px;

    margin-bottom: 10px;
  }


  .notification-header h3 {
    font-size: 15px;
  }


  .notification-new {
    padding: 4px 7px;

    font-size: 10px;
  }


  .notification-message {
    font-size: 13px;
    line-height: 1.65;
  }


  .notification-read-action {
    margin-top: 14px;
  }


  .notification-read-btn {
    width: auto;

    max-width: 100%;

    min-height: 38px;

    white-space: normal;
  }


  .notification-read-label {
    font-size: 11px;
  }


  .notification-footer {
    align-items: center;

    gap: 8px;

    margin-top: 12px;
  }


  .notification-date {
    font-size: 11px;
  }


  .notification-delete-btn {
    flex: 0 0 auto;

    min-height: 36px;

    padding: 8px 10px;

    font-size: 12px;
  }


  .notifications-empty {
    padding: 34px 18px;
  }

}

/* ==================================================
   PWA - PANEL DE INSTALACIÓN
================================================== */

.pwa-install-panel {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);

  width: min(460px, calc(100% - 32px));

  display: flex;
  align-items: center;
  gap: 15px;

  padding: 18px 20px;

  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;

  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);

  z-index: 99999;
}

.pwa-install-panel.hidden {
  display: none;
}

.pwa-install-icon {
  width: 48px;
  height: 48px;

  flex: 0 0 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: var(--accent);
  color: #10151d;

  font-size: 24px;
  font-weight: 900;
}

.pwa-install-content {
  min-width: 0;
  flex: 1;
}

.pwa-install-content strong {
  display: block;

  color: var(--text);

  font-size: 16px;
  font-weight: 800;

  margin-bottom: 4px;
}

.pwa-install-content p {
  margin: 0;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.45;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 9px;

  margin-top: 12px;
}

.pwa-install-btn {
  border: 0;
  border-radius: 10px;

  padding: 9px 15px;

  background: var(--accent);
  color: #10151d;

  font-size: 13px;
  font-weight: 800;

  cursor: pointer;

  transition:
    transform .15s ease,
    opacity .15s ease;
}

.pwa-install-btn:hover {
  transform: translateY(-1px);
  opacity: .92;
}

.pwa-install-dismiss {
  border: 0;
  background: transparent;

  color: var(--muted);

  padding: 9px 8px;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.pwa-install-dismiss:hover {
  color: var(--text);
}

/* ==================================================
   PWA - PANEL EN MÓVIL
================================================== */

@media (max-width: 600px) {

  .pwa-install-panel {
    bottom: 14px;

    width: calc(100% - 24px);

    padding: 16px;
    gap: 12px;

    border-radius: 16px;
  }

  .pwa-install-icon {
    width: 42px;
    height: 42px;

    flex-basis: 42px;

    font-size: 21px;
  }

  .pwa-install-content strong {
    font-size: 15px;
  }

  .pwa-install-content p {
    font-size: 12px;
  }

}

/* ==================================================
   MIS DIRECCIONES
   DISEÑO DE TARJETAS
================================================== */

.addresses-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 22px;
}


/* ==================================================
   TARJETA DE CADA DIRECCIÓN
================================================== */

.address-card {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface, #ffffff);

  display: flex;
  flex-direction: column;
  gap: 7px;

  box-shadow: 0 5px 18px rgba(16, 21, 29, 0.06);
}


/* Dirección */

.address-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
}


/* Código postal + ciudad */

.address-card > span:not(.address-default) {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}


/* ==================================================
   DIRECCIÓN PREDETERMINADA
================================================== */

.address-default {
  display: inline-flex !important;
  align-items: center;
  align-self: flex-start;

  margin-top: 5px;
  padding: 6px 10px;

  border-radius: 999px;

  font-size: 12px !important;
  font-weight: 700;

  color: var(--text) !important;
  background: rgba(255, 157, 0, 0.12);
}


/* ==================================================
   BOTÓN FIJAR COMO PREDETERMINADA
================================================== */

.set-default-address-btn {
  width: 100%;
  margin-top: 7px;

  min-height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
}


/* Efecto al pasar el ratón */

.set-default-address-btn:hover {
  transform: translateY(-1px);
}


/* ==================================================
   MENSAJES DE CARGA / SIN DIRECCIONES
================================================== */

.addresses-list > p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}


/* ==================================================
   MÓVIL
================================================== */

@media (max-width: 600px) {

  .addresses-list {
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 18px;
  }

  .address-card {
    padding: 16px;
    border-radius: 14px;
    gap: 6px;
  }

  .address-card strong {
    font-size: 15px;
  }

  .address-card > span:not(.address-default) {
    font-size: 13px;
  }

  .address-default {
    font-size: 11px !important;
    padding: 5px 9px;
  }

  .set-default-address-btn {
    min-height: 44px;
    margin-top: 8px;
    font-size: 13px;
  }

}


/* ==================================================
   MODO OSCURO
================================================== */

.dark-mode .address-card {
  background: var(--surface, #171d26);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}

/* ==================================================
   CONFIGURACIÓN
   DISEÑO LIMPIO — PC + MÓVIL
================================================== */

/*
 * Todo este bloque está limitado a #settingsModal
 * para no modificar otros modales ni componentes.
 */


/* ==================================================
   MODAL DE CONFIGURACIÓN
================================================== */

#settingsModal .modal-card {
  width: min(620px, calc(100vw - 40px));
  max-width: 620px;
  max-height: calc(100vh - 40px);

  padding: 30px;

  overflow-y: auto;
  overflow-x: hidden;

  border: 1px solid var(--line);
  border-radius: 22px;

  background: var(--surface);
  color: var(--text);

  box-shadow: 0 20px 55px var(--shadow);
}


/* ==================================================
   CABECERA
================================================== */

#settingsModal #settingsModalTitle {
  margin: 0;
  padding-right: 45px;

  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -1px;
}

#settingsModal > .modal-card > .modal-text {
  margin: 9px 0 24px;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}


/* ==================================================
   SECCIONES
================================================== */

#settingsModal .settings-section {
  width: 100%;
  margin-top: 16px;
  padding: 18px;

  border: 1px solid var(--line);
  border-radius: 16px;

  background: var(--surface);
}

#settingsModal .settings-section:first-of-type {
  margin-top: 0;
}


/* ==================================================
   TÍTULO DE SECCIÓN
================================================== */

#settingsModal .settings-section-title {
  display: flex;
  align-items: center;

  min-height: 24px;
  margin-bottom: 12px;
  padding-bottom: 11px;

  border-bottom: 1px solid var(--line);

  color: var(--text);

  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}


/* ==================================================
   FILAS
================================================== */

#settingsModal .settings-info-row {
  width: 100%;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;

  column-gap: 18px;
  row-gap: 10px;

  padding: 12px 0;
}

#settingsModal .settings-info-row + .settings-info-row {
  border-top: 1px solid var(--line);
}


/* Texto descriptivo de cada fila */

#settingsModal .settings-info-row > span:first-child {
  min-width: 0;

  color: var(--text);

  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}


/* ==================================================
   BOTONES SECUNDARIOS
================================================== */

#settingsModal .settings-info-row > .btn.secondary {
  width: auto;
  min-height: 40px;

  padding: 9px 14px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: var(--surface);
  color: var(--text);

  font-size: 13px;
  font-weight: 750;

  white-space: nowrap;

  transition:
    border-color .18s,
    box-shadow .18s,
    transform .18s;
}

#settingsModal .settings-info-row > .btn.secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 5px 16px var(--shadow);
  transform: translateY(-1px);
}


/* ==================================================
   OPCIONES TIPO TARJETA
================================================== */

#settingsModal .settings-info-row > .contact-option {
  width: 100%;
  max-width: 330px;
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 11px;

  padding: 11px 13px;

  border: 1px solid var(--line);
  border-radius: 13px;

  background: var(--surface);
  color: var(--text);

  text-align: left;

  cursor: pointer;

  transition:
    border-color .18s,
    box-shadow .18s,
    transform .18s,
    background .18s;
}

#settingsModal .settings-info-row > .contact-option:hover {
  border-color: rgba(255,157,0,.65);

  background:
    linear-gradient(
      135deg,
      rgba(255,157,0,.055),
      var(--surface)
    );

  box-shadow: 0 7px 20px var(--shadow);

  transform: translateY(-1px);
}

#settingsModal .settings-info-row > .contact-option:active {
  transform: translateY(0);
}


/* ==================================================
   ICONOS
================================================== */

#settingsModal .contact-option .option-icon {
  flex: 0 0 38px;

  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,157,0,.18);
  border-radius: 10px;

  background: rgba(255,157,0,.09);

  font-size: 19px;
  line-height: 1;
}


/* ==================================================
   TEXTO DE LAS OPCIONES
================================================== */

#settingsModal .contact-option > span:last-child {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 2px;
}

#settingsModal .contact-option strong {
  display: block;

  color: var(--text);

  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

#settingsModal .contact-option small {
  display: block;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.35;
}


/* ==================================================
   INFORMAR SOBRE UN ERROR
================================================== */

#settingsModal #settingsReportErrorBtn {
  border-color: rgba(255,157,0,.30);
}

#settingsModal #settingsReportErrorBtn .option-icon {
  background: rgba(255,157,0,.12);
}


/* ==================================================
   VERSIÓN
================================================== */

#settingsModal .settings-info-row > strong {
  display: inline-flex;
  align-items: center;

  min-height: 30px;
  padding: 5px 9px;

  border: 1px solid rgba(255,157,0,.18);
  border-radius: 8px;

  background: rgba(255,157,0,.08);

  color: var(--accent-dark);

  font-size: 12px;
  font-weight: 800;

  white-space: nowrap;
}

:root[data-theme="dark"]
#settingsModal .settings-info-row > strong {
  color: #ffb52e;
}


/* ==================================================
   BOTÓN CERRAR
================================================== */

#settingsModal .modal-close {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 10px;
}


/* ==================================================
   SCROLL DEL PANEL
================================================== */

#settingsModal .modal-card {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

#settingsModal .modal-card::-webkit-scrollbar {
  width: 6px;
}

#settingsModal .modal-card::-webkit-scrollbar-track {
  background: transparent;
}

#settingsModal .modal-card::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 10px;
}


/* ==================================================
   MÓVIL
================================================== */

@media (max-width: 640px) {

  #settingsModal {
    padding: 12px;
  }

  #settingsModal .modal-card {
    width: 100%;
    max-width: none;

    max-height: calc(100vh - 24px);

    padding: 22px 16px;

    border-radius: 18px;
  }

  #settingsModal #settingsModalTitle {
    font-size: 27px;
  }

  #settingsModal > .modal-card > .modal-text {
    margin-bottom: 20px;
  }

  #settingsModal .settings-section {
    margin-top: 12px;
    padding: 14px;

    border-radius: 14px;
  }

  /*
   * En móvil cada fila pasa a vertical.
   * Así ningún botón queda comprimido.
   */

  #settingsModal .settings-info-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 9px;

    padding: 12px 0;
  }

  #settingsModal .settings-info-row > span:first-child {
    width: 100%;
  }

  #settingsModal .settings-info-row > .btn.secondary {
    width: 100%;
  }

  #settingsModal .settings-info-row > .contact-option {
    width: 100%;
    max-width: none;
  }

  #settingsModal .settings-info-row > strong {
    align-self: flex-start;
  }

}


/* ==================================================
   PANTALLAS MUY PEQUEÑAS
================================================== */

@media (max-width: 380px) {

  #settingsModal .modal-card {
    padding: 20px 13px;
  }

  #settingsModal .settings-section {
    padding: 12px;
  }

  #settingsModal #settingsModalTitle {
    font-size: 25px;
  }

}


/* ==================================================
   REDUCIR ANIMACIONES
================================================== */

@media (prefers-reduced-motion: reduce) {

  #settingsModal .settings-info-row > .btn.secondary,
  #settingsModal .settings-info-row > .contact-option {
    transition: none;
  }

}

/* ==================================================
   INFORMAR SOBRE UN ERROR
   SELECT
================================================== */

#reportErrorModal #reportErrorType {
  width: 100%;
  min-height: 46px;

  padding: 11px 42px 11px 13px;

  border: 1px solid var(--line);
  border-radius: 12px;

  background-color: var(--surface);
  color: var(--text);

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  outline: none;

  transition:
    border-color .18s,
    box-shadow .18s;
}

#reportErrorModal #reportErrorType:focus {
  border-color: var(--accent);

  box-shadow:
    0 0 0 3px rgba(255,157,0,.12);
}

#reportErrorModal #reportErrorType:hover {
  border-color: rgba(255,157,0,.55);
}

#reportErrorModal #reportErrorType option {
  background: var(--surface);
  color: var(--text);
}

/* ==================================================
   CONTADOR DE INFORMES DE APP
================================================== */

#adminReportsBtn {
  position: relative;
}


#adminReportsBadge {
  position: absolute;

  top: 9px;
  right: 10px;

  width: 22px;
  height: 22px;
  min-width: 22px;

  margin: 0;
  padding: 0;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #ef4444;
  color: #ffffff;

  font-size: 11px;
  font-weight: 800;
  line-height: 1;

  text-align: center;

  z-index: 5;
}


#adminReportsBadge.hidden {
  display: none;
}

/* ==================================================
   INFORMES DE APLICACIÓN
================================================== */

#adminReports {
  display: flex;
  flex-direction: column;

  gap: 16px;

  width: 100%;

  max-height: 58vh;

  margin: 20px 0;

  padding: 2px 4px 6px 2px;

  overflow-y: auto;
}


/* ==================================================
   TARJETA DEL INFORME
================================================== */

.admin-report-card {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 14px;

  padding: 18px;

  background: var(--bg);

  border: 1px solid var(--line);

  border-radius: 16px;

  box-sizing: border-box;

  overflow: hidden;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}


.admin-report-card:hover {
  border-color: rgba(255,157,0,.45);

  box-shadow:
    0 8px 24px var(--shadow);
}


/* ==================================================
   CABECERA
================================================== */

.admin-report-header {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 14px;

  width: 100%;
}


.admin-report-client {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}


.admin-report-client strong {
  color: var(--text);

  font-size: 16px;
  font-weight: 800;

  line-height: 1.3;
}


.admin-report-client small {
  color: var(--muted);

  font-size: 12px;

  line-height: 1.4;

  overflow-wrap: anywhere;
}


/* ==================================================
   PROBLEMA
================================================== */

.admin-report-type {
  flex: 0 1 auto;

  max-width: 52%;

  padding: 6px 10px;

  border-radius: 999px;

  border: 1px solid rgba(255,157,0,.3);

  background: rgba(255,157,0,.12);

  color: var(--accent);

  font-size: 11px;
  font-weight: 800;

  line-height: 1.35;

  text-align: center;

  overflow-wrap: anywhere;
}


/* ==================================================
   INFORME DEL CLIENTE
================================================== */

.admin-report-content {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 7px;

  padding: 13px 14px;

  box-sizing: border-box;

  background: var(--surface);

  border: 1px solid var(--line);

  border-radius: 12px;
}


.admin-report-label {
  color: var(--muted);

  font-size: 10px;
  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: .6px;
}


.admin-report-description {
  margin: 0;

  color: var(--text);

  font-size: 14px;

  line-height: 1.6;

  white-space: pre-wrap;

  overflow-wrap: anywhere;
}


/* ==================================================
   FECHA
================================================== */

.admin-report-date {
  color: var(--muted);

  font-size: 11px;

  line-height: 1.4;
}


/* ==================================================
   BOTÓN RESPONDER
================================================== */

.admin-report-actions {
  display: flex;

  justify-content: flex-end;

  width: 100%;
}


.admin-report-reply-btn {
  min-height: 40px;

  padding: 9px 16px;

  white-space: nowrap;
}


/* ==================================================
   CAJA DE RESPUESTA
================================================== */

.admin-report-reply-box {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 10px;

  padding: 14px;

  box-sizing: border-box;

  background: var(--surface);

  border: 1px solid var(--line);

  border-radius: 13px;
}


.admin-report-reply-box[hidden] {
  display: none;
}


.admin-report-reply-box label {
  color: var(--text);

  font-size: 13px;
  font-weight: 700;
}


.admin-report-reply-text {
  display: block;

  width: 100%;

  min-height: 110px;

  box-sizing: border-box;

  resize: vertical;

  padding: 12px 13px;

  line-height: 1.5;
}


/* ==================================================
   BOTONES RESPUESTA
================================================== */

.admin-report-reply-actions {
  display: flex;

  justify-content: flex-end;
  align-items: center;

  gap: 9px;

  width: 100%;
}


/* ==================================================
   CARGANDO / ERROR / VACÍO
================================================== */

.admin-reports-loading,
.admin-reports-error,
.admin-reports-empty {
  width: 100%;

  box-sizing: border-box;

  padding: 28px 18px;

  text-align: center;

  color: var(--muted);

  background: var(--surface);

  border: 1px dashed var(--line);

  border-radius: 15px;
}


.admin-reports-loading p,
.admin-reports-error p,
.admin-reports-empty p {
  margin: 0;
}


/* ==================================================
   MÓVIL
================================================== */

@media (max-width: 600px) {

  #adminReports {
    max-height: 62vh;

    gap: 12px;

    margin: 16px 0;

    padding: 2px 2px 5px 1px;
  }


  .admin-report-card {
    padding: 15px;

    gap: 13px;

    border-radius: 14px;
  }


  .admin-report-header {
    flex-direction: column;

    gap: 10px;
  }


  .admin-report-client {
    width: 100%;
  }


  .admin-report-type {
    max-width: 100%;

    align-self: flex-start;

    text-align: left;
  }


  .admin-report-content {
    padding: 12px;
  }


  .admin-report-description {
    font-size: 14px;

    line-height: 1.55;
  }


  .admin-report-actions {
    width: 100%;
  }


  .admin-report-reply-btn {
    width: 100%;
  }


  .admin-report-reply-box {
    padding: 12px;
  }


  .admin-report-reply-text {
    min-height: 125px;
  }


  .admin-report-reply-actions {
    flex-direction: column-reverse;

    align-items: stretch;

    width: 100%;
  }


  .admin-report-reply-actions .btn {
    width: 100%;
  }

}

/* ==================================================
   INTERIOR DEL INFORME EN NOTIFICACIONES
================================================== */

.report-notification-content {
  display: flex;
  flex-direction: column;

  gap: 9px;

  width: 100%;

  margin: 0;
  padding: 0;
}


/* TÍTULO */

.report-notification-heading {
  display: block;

  margin: 0;

  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;

  color: var(--text);
}


/* SECCIÓN */

.report-notification-section {
  display: flex;
  flex-direction: column;

  gap: 4px;

  width: 100%;

  margin: 0;
  padding: 0;
}


/* ETIQUETA */

.report-notification-label {
  display: block;

  margin: 0;

  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;

  color: var(--muted);
}


/* PROBLEMA */

.report-notification-problem {
  display: block;

  width: fit-content;
  max-width: 100%;

  box-sizing: border-box;

  padding: 5px 9px;

  border: 1px solid var(--line);
  border-radius: 7px;

  background: var(--bg);
  color: var(--text);

  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;

  overflow-wrap: anywhere;
  word-break: break-word;
}


/* MENSAJE DEL CLIENTE */

.report-notification-client-message {
  display: block;

  width: 100%;

  box-sizing: border-box;

  padding: 8px 10px;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: var(--bg);
  color: var(--text);

  font-size: 12px;
  line-height: 1.4;

  white-space: pre-wrap;

  overflow-wrap: anywhere;
  word-break: break-word;
}


/* SEPARADOR */

.report-notification-divider {
  width: 100%;
  height: 1px;

  margin: 2px 0;

  background: var(--line);
}


/* RESPUESTA */

.report-notification-reply {
  display: block;

  width: 100%;

  box-sizing: border-box;

  padding: 8px 10px;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: var(--bg);
  color: var(--text);

  font-size: 12px;
  line-height: 1.4;

  white-space: pre-wrap;

  overflow-wrap: anywhere;
  word-break: break-word;
}


/* MÓVIL */

@media (max-width: 600px) {

  .report-notification-content {
    gap: 8px;
  }

  .report-notification-client-message,
  .report-notification-reply {
    font-size: 12px;
    line-height: 1.4;
  }

}

/* ==================================================
   ==================================================
   PRESUPUESTOS - ESTILOS COMPLETOS
   ELECTROMS VALENCIA
   PC + TABLET + MÓVIL
   ==================================================
   ================================================== */


/* ==================================================
   EDITOR DE PRESUPUESTOS
================================================== */

.budget-editor-card {
  width: min(1000px, 94vw);
  max-width: 1000px;
}


/* ==================================================
   DOCUMENTO DEL PRESUPUESTO - ADMIN
================================================== */

.budget-document {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface, #fff);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}


/* ==================================================
   CABECERA ADMIN
================================================== */

.budget-document-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.budget-company-name {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .04em;
}

.budget-company-subtitle {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.budget-document-info {
  display: grid;
  gap: 10px;
  min-width: 190px;
}

.budget-document-info div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.budget-document-info span {
  color: var(--muted);
  font-size: 13px;
}

.budget-document-info strong {
  font-size: 14px;
}


/* ==================================================
   SECCIONES ADMIN
================================================== */

.budget-client-section,
.budget-work-section,
.budget-items-section,
.budget-notes-section {
  margin-top: 28px;
}

.budget-document h3 {
  margin: 0 0 15px;
  font-size: 16px;
  font-weight: 800;
}


/* ==================================================
   DATOS CLIENTE
================================================== */

.budget-client-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.budget-client-grid label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}

.budget-client-grid input[readonly] {
  opacity: .85;
  cursor: default;
}


/* ==================================================
   CABECERA CONCEPTOS
================================================== */

.budget-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.budget-section-header h3 {
  margin-bottom: 0;
}


/* ==================================================
   TABLA CONCEPTOS ADMIN
================================================== */

.budget-items-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface, #fff);
}

.budget-items-head,
.budget-item-row {
  display: grid;

  grid-template-columns:
    minmax(220px, 1fr)
    80px
    120px
    120px
    48px;

  align-items: center;
  gap: 10px;
  min-width: 650px;
}

.budget-items-head {
  padding: 12px 14px;
  background: var(--surface-soft, #f6f7f8);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.budget-items-body {
  display: grid;
}

.budget-item-row {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.budget-item-row:last-child {
  border-bottom: 0;
}

.budget-item-row input {
  width: 100%;
}

.budget-item-amount {
  font-weight: 700;
  text-align: right;
}

.budget-remove-item-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
  transition:
    background .18s ease,
    transform .18s ease;
}

.budget-remove-item-btn:hover {
  background: rgba(255, 0, 0, .08);
  transform: scale(1.05);
}


/* ==================================================
   TOTALES ADMIN
================================================== */

.budget-totals {
  width: min(360px, 100%);
  margin: 28px 0 0 auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.budget-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
}

.budget-total-row span {
  color: var(--muted);
  font-size: 14px;
}

.budget-tax-control {
  display: flex;
  align-items: center;
  gap: 7px;
}

.budget-tax-control input {
  width: 80px;
}

.budget-total-final {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.budget-total-final span,
.budget-total-final strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}


/* ==================================================
   OBSERVACIONES
================================================== */

.budget-notes-section textarea,
.budget-work-section textarea {
  width: 100%;
  resize: vertical;
}


/* ==================================================
   ACCIONES EDITOR ORIGINAL
================================================== */

.budget-editor-card > .admin-client-actions {
  margin-top: 20px;
}


/* ==================================================
   ADMIN - EDITAR PRESUPUESTO
================================================== */

.admin-budget-edit-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* ==================================================
   TARJETA CONCEPTO
================================================== */

.admin-budget-edit-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft, #f6f7f8);

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.admin-budget-edit-item:hover {
  border-color: var(--accent);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .06);
}


/* ==================================================
   CAMPOS EDITOR
================================================== */

.admin-budget-edit-item-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.admin-budget-edit-item-field label,
.admin-budget-edit-input + label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}


/* ==================================================
   FILA CONCEPTO
================================================== */

.admin-budget-edit-item-row {
  display: grid;

  grid-template-columns:
    minmax(100px, 1fr)
    minmax(140px, 1fr)
    minmax(140px, 1fr)
    auto;

  align-items: end;
  gap: 12px;
  margin-top: 14px;
}


/* ==================================================
   INPUTS EDITOR
================================================== */

.admin-budget-edit-input,
.admin-budget-edit-item input,
.admin-budget-edit-item textarea,
.admin-budget-edit-item select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: var(--surface, #fff);
  color: var(--text);

  font: inherit;
  outline: none;

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.admin-budget-edit-input:focus,
.admin-budget-edit-item input:focus,
.admin-budget-edit-item textarea:focus,
.admin-budget-edit-item select:focus {
  border-color: var(--accent);

  box-shadow:
    0 0 0 3px rgba(255, 157, 0, .12);
}


/* ==================================================
   DESCRIPCIÓN
================================================== */

#editBudgetDescription {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}


/* ==================================================
   ESTADO
================================================== */

#editBudgetStatus {
  max-width: 280px;
  cursor: pointer;
}


/* ==================================================
   IMPORTE CALCULADO
================================================== */

.admin-budget-edit-amount {
  font-weight: 800 !important;
  text-align: right;
  background: var(--surface-soft, #f6f7f8) !important;
}


/* ==================================================
   ELIMINAR CONCEPTO
================================================== */

.admin-budget-remove-item {
  min-height: 44px;
  white-space: nowrap;
}


/* ==================================================
   AÑADIR CONCEPTO
================================================== */

#adminBudgetAddItemBtn {
  margin-top: 16px;
}


/* ==================================================
   TOTALES EDITOR
================================================== */

.admin-budget-edit-items ~ .admin-budget-totals {
  margin-top: 24px;
}


/* ==================================================
   ACCIONES EDITAR
================================================== */

.admin-budget-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 24px;
  padding-top: 20px;

  border-top: 1px solid var(--line);
}


/* ==================================================
   BOTONES EDITOR
================================================== */

#adminBudgetSaveEditBtn {
  min-width: 180px;
}

#adminBudgetCancelEditBtn {
  min-width: 110px;
}


/* ==================================================
   ADMIN - LISTAS DE PRESUPUESTOS
================================================== */

.admin-budgets-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}


/* ==================================================
   TARJETA PRESUPUESTO ADMIN
================================================== */

.admin-budget-card {
  position: relative;

  padding: 20px;

  border: 1px solid var(--line);
  border-radius: 16px;

  background: var(--surface, #fff);

  cursor: pointer;

  box-shadow:
    0 4px 14px rgba(0, 0, 0, .06);

  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.admin-budget-card:hover {
  transform: translateY(-2px);

  border-color: var(--accent);

  box-shadow:
    0 10px 28px rgba(0, 0, 0, .12);
}


/* ==================================================
   CABECERA TARJETA ADMIN
================================================== */

.admin-budget-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 14px;
  padding-bottom: 12px;

  border-bottom: 1px solid var(--line);
}


/* ==================================================
   DATOS TARJETA
================================================== */

.admin-budget-number {
  font-size: 1.05rem;
  font-weight: 800;
}

.admin-budget-date {
  font-size: .82rem;
  color: var(--muted);
}

.admin-budget-client {
  margin-bottom: 6px;
  font-size: .98rem;
  font-weight: 800;
}

.admin-budget-service {
  font-size: .9rem;
  color: var(--muted);
}


/* ==================================================
   ESTADO TARJETA ADMIN
================================================== */

.admin-budget-card .admin-budget-status {
  display: inline-flex;
  align-items: center;

  width: fit-content;

  margin-top: 14px;
  padding: 6px 11px;

  border: 1px solid rgba(255, 157, 0, .25);
  border-radius: 999px;

  font-size: .78rem;
  font-weight: 800;

  background: rgba(255, 157, 0, .12);
  color: var(--text);
}


/* ==================================================
   ESTADOS ESPECÍFICOS
================================================== */

.admin-budget-status.status-accepted,
.admin-budget-status.accepted {
  border-color: rgba(40, 180, 90, .25);
  background: rgba(40, 180, 90, .12);
}

.admin-budget-status.status-rejected,
.admin-budget-status.rejected {
  border-color: rgba(220, 60, 60, .25);
  background: rgba(220, 60, 60, .12);
}

.admin-budget-status.status-sent,
.admin-budget-status.sent {
  border-color: rgba(255, 157, 0, .25);
  background: rgba(255, 157, 0, .12);
}


/* ==================================================
   FICHA ADMIN
================================================== */

.admin-budget-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* ==================================================
   CABECERA FICHA ADMIN
================================================== */

.admin-budget-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;

  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-budget-detail-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
}

.admin-budget-detail-date {
  margin-top: 5px;
  font-size: .85rem;
  color: var(--muted);
}


/* ==================================================
   SECCIONES FICHA ADMIN
================================================== */

.admin-budget-section {
  padding: 18px;

  border: 1px solid var(--line);
  border-radius: 15px;

  background: var(--surface, #fff);

  box-shadow:
    0 3px 12px rgba(0, 0, 0, .04);
}

.admin-budget-section h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
}


/* ==================================================
   DATOS CLIENTE ADMIN
================================================== */

.admin-budget-client-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.admin-budget-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-budget-field-label {
  font-size: .76rem;
  font-weight: 700;
  color: var(--muted);
}

.admin-budget-field-value {
  font-weight: 600;
  word-break: break-word;
}


/* ==================================================
   TABLA ADMIN
================================================== */

.admin-budget-items {
  width: 100%;
  overflow-x: auto;

  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-budget-items table {
  width: 100%;
  border-collapse: collapse;
}

.admin-budget-items th,
.admin-budget-items td {
  padding: 11px 9px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.admin-budget-items th {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 800;
}

.admin-budget-items td {
  font-size: .9rem;
}

.admin-budget-items tr:last-child td {
  border-bottom: 0;
}

.admin-budget-items td:nth-child(2),
.admin-budget-items td:nth-child(3),
.admin-budget-items td:nth-child(4),
.admin-budget-items th:nth-child(2),
.admin-budget-items th:nth-child(3),
.admin-budget-items th:nth-child(4) {
  text-align: right;
}


/* ==================================================
   TOTALES FICHA ADMIN
================================================== */

.admin-budget-totals {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;

  margin-top: 18px;
}

.admin-budget-total-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  min-width: 250px;
}

.admin-budget-total-final {
  padding-top: 11px;
  margin-top: 6px;

  border-top: 2px solid var(--line);

  font-size: 1.15rem;
  font-weight: 800;
}


/* ==================================================
   BOTÓN VOLVER ADMIN
================================================== */

.admin-budget-back-btn {
  align-self: flex-start;

  display: inline-flex;
  align-items: center;
  gap: 7px;
}


/* ==================================================
   ==================================================
   CLIENTE - MIS PRESUPUESTOS
   ==================================================
   ================================================== */

.client-budget-card {
  position: relative;

  padding: 20px;
  margin-bottom: 16px;

  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;

  background: rgba(255, 255, 255, .035);

  cursor: pointer;

  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.client-budget-card:hover {
  transform: translateY(-2px);

  border-color: var(--accent);

  background: rgba(255, 255, 255, .055);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, .18);
}


/* ==================================================
   CABECERA TARJETA CLIENTE
================================================== */

.client-budget-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.client-budget-number {
  display: block;
  font-size: 17px;
  font-weight: 700;
}

.client-budget-service {
  display: block;
  margin-top: 5px;
  opacity: .7;
  font-size: 14px;
}

.client-budget-date {
  font-size: 13px;
  opacity: .6;
  white-space: nowrap;
}

.client-budget-description {
  margin-top: 16px;
  line-height: 1.5;
  opacity: .85;
}


/* ==================================================
   FOOTER TARJETA CLIENTE
================================================== */

.client-budget-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-top: 18px;
  padding-top: 15px;

  border-top: 1px solid rgba(255, 255, 255, .07);
}

.client-budget-status {
  font-size: 13px;
  font-weight: 600;
}

.client-budget-open {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}


/* ==================================================
   ESTADOS CLIENTE
================================================== */

.client-budget-card:has(.client-budget-status:first-child) {
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}


/* ==================================================
   DOCUMENTO CLIENTE
================================================== */

.client-budget-document {
  width: 100%;
}


/* ==================================================
   BOTÓN VOLVER
================================================== */

.client-budget-back {
  display: inline-flex;

  align-items: center;
  gap: 8px;

  margin-bottom: 16px;
  padding: 9px 14px;

  border: 0;
  border-radius: 10px;

  background: transparent;
  color: inherit;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background .2s ease,
    transform .2s ease;
}

.client-budget-back:hover {
  background: rgba(255, 255, 255, .07);
  transform: translateX(-3px);
}


/* ==================================================
   PAPEL DEL PRESUPUESTO
================================================== */

.client-budget-paper {
  width: 100%;
  max-width: 900px;

  margin: 0 auto;
  padding: 34px;

  border-radius: 8px;

  background: #fff;
  color: #171717;

  box-shadow:
    0 25px 70px rgba(0, 0, 0, .28);
}


/* ==================================================
   CABECERA DOCUMENTO CLIENTE
================================================== */

.client-budget-paper-header {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 30px;
}

.client-budget-brand-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.5px;
}

.client-budget-brand-name span {
  color: var(--accent);
}

.client-budget-brand-subtitle {
  margin-top: 4px;

  font-size: 13px;
  color: #777;
}

.client-budget-document-info {
  display: flex;
  flex-direction: column;

  align-items: flex-end;

  gap: 4px;

  text-align: right;
}

.client-budget-document-label {
  font-size: 12px;
  font-weight: 800;

  letter-spacing: 1.5px;

  color: #888;
}

.client-budget-document-info strong {
  font-size: 20px;
}

.client-budget-document-info span:last-child {
  font-size: 13px;
  color: #777;
}

.client-budget-divider {
  height: 2px;

  margin: 25px 0;

  background: #e9e9e9;
}


/* ==================================================
   DATOS CLIENTE DOCUMENTO
================================================== */

.client-budget-info-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 20px;

  margin-bottom: 28px;
}

.client-budget-info-box {
  display: flex;
  flex-direction: column;

  gap: 5px;

  padding: 17px;

  border-radius: 8px;

  background: #f7f7f7;
}

.client-budget-info-label {
  margin-bottom: 5px;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 1px;

  color: #888;
}

.client-budget-info-box strong {
  font-size: 14px;
}

.client-budget-info-box span:not(.client-budget-info-label) {
  font-size: 13px;
  color: #666;
}


/* ==================================================
   SECCIONES DOCUMENTO
================================================== */

.client-budget-document-section {
  margin-top: 28px;
}

.client-budget-section-title {
  margin-bottom: 12px;
  padding-bottom: 8px;

  border-bottom: 2px solid #222;

  font-size: 14px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .5px;
}

.client-budget-service-main {
  padding: 5px 0;
}

.client-budget-service-main strong {
  font-size: 16px;
}

.client-budget-service-main p {
  margin: 9px 0 0;

  line-height: 1.55;

  font-size: 14px;
  color: #555;
}


/* ==================================================
   TABLA DOCUMENTO
================================================== */

.client-budget-table {
  width: 100%;
}

.client-budget-table-header,
.client-budget-table-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    80px
    120px
    130px;

  gap: 12px;

  align-items: center;
}

.client-budget-table-header {
  padding: 10px 12px;

  background: #f1f1f1;

  font-size: 11px;
  font-weight: 800;

  text-transform: uppercase;

  color: #666;
}

.client-budget-table-row {
  padding: 14px 12px;

  border-bottom: 1px solid #e7e7e7;

  font-size: 14px;
}

.client-budget-table-row > div:not(.client-budget-concept),
.client-budget-table-row > strong {
  text-align: right;
}

.client-budget-concept {
  font-weight: 600;
}

.client-budget-table-empty {
  padding: 20px;

  text-align: center;

  color: #777;
}


/* ==================================================
   RESUMEN
================================================== */

.client-budget-summary {
  display: grid;

  grid-template-columns:
    1fr
    minmax(280px, 360px);

  gap: 30px;

  margin-top: 25px;
}

.client-budget-totals > div {
  display: flex;

  align-items: center;
  justify-content: space-between;

  padding: 9px 0;

  font-size: 14px;
}

.client-budget-total-final {
  margin-top: 8px;

  padding: 15px 0 !important;

  border-top: 2px solid #222;

  font-size: 18px !important;
}

.client-budget-total-final strong {
  font-size: 22px;
}


/* ==================================================
   ESTADO DEL PRESUPUESTO
================================================== */

.client-budget-status-box {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-top: 30px;
  padding: 14px 17px;

  border-radius: 8px;

  background: #f5f5f5;
}

.client-budget-status-box span {
  font-size: 12px;
  font-weight: 700;
  color: #777;
}

.client-budget-status-box strong {
  font-size: 14px;
}


/* ==================================================
   ACCIONES CLIENTE
================================================== */

.client-budget-actions {
  display: flex;

  justify-content: center;

  gap: 14px;

  margin-top: 25px;
  padding-top: 24px;

  border-top: 1px solid #e5e5e5;
}

.client-budget-actions .btn {
  min-height: 44px;
}

.client-budget-final-message {
  margin-top: 25px;
  padding: 16px;

  border-radius: 8px;

  background: #f5f5f5;

  text-align: center;

  font-weight: 700;
}


/* ==================================================
   BOTÓN DESCARGAR PDF
   AÑADIDO PARA PRESUPUESTOS ACEPTADOS
================================================== */

.client-budget-download {
  display: flex;

  justify-content: center;

  margin-top: 16px;
}

.client-budget-download .btn,
#clientBudgetDownloadBtn {
  min-width: 210px;
  min-height: 44px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  font-weight: 800;
}


/* ==================================================
   CONTENEDOR ACCIONES + DESCARGA
================================================== */

.client-budget-final-actions {
  display: flex;

  justify-content: center;
  align-items: center;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 20px;
}


/* ==================================================
   PIE DOCUMENTO
================================================== */

.client-budget-paper-footer {
  margin-top: 35px;

  padding-top: 18px;

  border-top: 1px solid #e5e5e5;

  text-align: center;

  font-size: 12px;

  color: #888;
}


/* ==================================================
   ESTADO FINAL - ACEPTADO
================================================== */

.client-budget-final-message.accepted,
.client-budget-status-box.accepted {
  border: 1px solid rgba(40, 180, 90, .20);
  background: rgba(40, 180, 90, .08);
}


/* ==================================================
   ESTADO FINAL - RECHAZADO
================================================== */

.client-budget-final-message.rejected,
.client-budget-status-box.rejected {
  border: 1px solid rgba(220, 60, 60, .20);
  background: rgba(220, 60, 60, .08);
}


/* ==================================================
   ==================================================
   RESPONSIVE - EDITOR ADMIN
   ==================================================
   ================================================== */

@media (max-width: 750px) {

  .admin-budget-edit-item-row {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .admin-budget-edit-item-row
    .admin-budget-remove-item {
    width: 100%;
  }

  #editBudgetStatus {
    max-width: 100%;
  }

}


/* ==================================================
   RESPONSIVE - GENERAL
================================================== */

@media (max-width: 700px) {

  .budget-editor-card {
    width: 96vw;
  }

  .budget-document {
    padding: 18px;
  }

  .budget-document-header {
    flex-direction: column;
  }

  .budget-document-info {
    width: 100%;
  }

  .budget-client-grid {
    grid-template-columns: 1fr;
  }

  .budget-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

}


/* ==================================================
   RESPONSIVE - ADMIN PRESUPUESTOS
================================================== */

@media (max-width: 650px) {

  .admin-budget-detail-header {
    flex-direction: column;
  }

  .admin-budget-client-grid {
    grid-template-columns: 1fr;
  }

  .admin-budget-total-row {
    min-width: 100%;
  }

  .admin-budget-card {
    padding: 16px;
  }

  .admin-budget-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-budget-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-budget-detail-actions .btn {
    width: 100%;
  }

}


/* ==================================================
   RESPONSIVE - CONCEPTOS MÓVIL
================================================== */

@media (max-width: 480px) {

  .admin-budget-edit-item {
    padding: 14px;
  }

  .admin-budget-edit-item-row {
    grid-template-columns: 1fr;
  }

  .admin-budget-edit-item-row
    .admin-budget-edit-item-field {
    width: 100%;
  }

  .admin-budget-edit-amount {
    text-align: left !important;
  }

  .admin-budget-edit-item-row
    .admin-budget-remove-item {
    width: 100%;
  }

}


/* ==================================================
   ==================================================
   RESPONSIVE - CLIENTE
   ==================================================
   ================================================== */

@media (max-width: 700px) {

  /* -----------------------------------------------
     TARJETAS
  ----------------------------------------------- */

  .client-budget-card {
    padding: 16px;
    border-radius: 15px;
  }

  .client-budget-card-header {
    flex-direction: column;
    gap: 8px;
  }

  .client-budget-date {
    white-space: normal;
  }

  .client-budget-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }


  /* -----------------------------------------------
     DOCUMENTO
  ----------------------------------------------- */

  .client-budget-paper {
    padding: 20px;
    border-radius: 6px;
  }

  .client-budget-paper-header {
    flex-direction: column;
    gap: 20px;
  }

  .client-budget-document-info {
    align-items: flex-start;
    text-align: left;
  }


  /* -----------------------------------------------
     DATOS CLIENTE
  ----------------------------------------------- */

  .client-budget-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }


  /* -----------------------------------------------
     TABLA
  ----------------------------------------------- */

  .client-budget-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .client-budget-table-header,
  .client-budget-table-row {
    min-width: 500px;

    grid-template-columns:
      minmax(180px, 1fr)
      55px
      90px
      100px;

    gap: 7px;
  }


  /* -----------------------------------------------
     TOTALES
  ----------------------------------------------- */

  .client-budget-summary {
    grid-template-columns: 1fr;
    gap: 15px;
  }


  /* -----------------------------------------------
     BOTONES
  ----------------------------------------------- */

  .client-budget-actions {
    flex-direction: column;
    gap: 10px;
  }

  .client-budget-actions .btn {
    width: 100%;
  }

  .client-budget-final-actions {
    flex-direction: column;
    width: 100%;
  }

  .client-budget-final-actions .btn {
    width: 100%;
  }

  .client-budget-download {
    width: 100%;
  }

  .client-budget-download .btn,
  #clientBudgetDownloadBtn {
    width: 100%;
    min-width: 0;
  }


  /* -----------------------------------------------
     ESTADO
  ----------------------------------------------- */

  .client-budget-status-box {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

}


/* ==================================================
   RESPONSIVE - MÓVILES PEQUEÑOS
================================================== */

@media (max-width: 480px) {

  .client-budget-paper {
    padding: 15px;
  }

  .client-budget-brand-name {
    font-size: 20px;
  }

  .client-budget-document-info strong {
    font-size: 18px;
  }

  .client-budget-divider {
    margin: 18px 0;
  }

  .client-budget-document-section {
    margin-top: 22px;
  }

  .client-budget-section-title {
    font-size: 12px;
  }

  .client-budget-service-main strong {
    font-size: 15px;
  }

  .client-budget-table-header {
    font-size: 10px;
  }

  .client-budget-table-row {
    font-size: 13px;
    padding: 12px 10px;
  }

  .client-budget-total-final {
    font-size: 17px !important;
  }

  .client-budget-total-final strong {
    font-size: 20px;
  }

  .client-budget-status-box {
    padding: 13px;
  }

  .client-budget-back {
    padding: 8px 11px;
  }

}


/* ==================================================
   EVITAR DESBORDAMIENTOS
================================================== */

.budget-document,
.admin-budget-detail,
.client-budget-document,
.client-budget-paper,
.client-budget-info-box,
.admin-budget-section {
  box-sizing: border-box;
  max-width: 100%;
}

.budget-document *,
.admin-budget-detail *,
.client-budget-document *,
.client-budget-paper * {
  box-sizing: border-box;
}


/* ==================================================
   MEJORA TÁCTIL MÓVIL
================================================== */

@media (max-width: 700px) {

  .client-budget-card,
  .admin-budget-card {
    -webkit-tap-highlight-color: transparent;
  }

  .client-budget-back,
  .client-budget-actions .btn,
  .client-budget-download .btn,
  .admin-budget-detail-actions .btn,
  .admin-budget-back-btn {
    min-height: 44px;
  }

}


/* ==================================================
   IMPRESIÓN / PDF DESDE NAVEGADOR
================================================== */

@media print {

  body {
    background: #fff !important;
  }

  .client-budget-document {
    width: 100% !important;
  }

  .client-budget-paper {
    max-width: none !important;

    margin: 0 !important;
    padding: 20mm !important;

    border-radius: 0 !important;

    box-shadow: none !important;
  }

  .client-budget-back,
  .client-budget-actions,
  .client-budget-download,
  .client-budget-final-actions {
    display: none !important;
  }

  .client-budget-paper-footer {
    margin-top: 25px;
  }

  .client-budget-table-header,
  .client-budget-table-row {
    break-inside: avoid;
  }

  .client-budget-document-section,
  .client-budget-info-box,
  .client-budget-status-box {
    break-inside: avoid;
  }

}

/* ==================================================
   PRESUPUESTO - IMPRESIÓN / PDF
================================================== */

.budget-print-page {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #222222;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.budget-print-document {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.budget-print-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid #ff9d00;
}

.budget-print-brand {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: .4px;
  color: #111111;
}

.budget-print-brand span {
  color: #ff9d00;
}

.budget-print-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #666666;
}

.budget-print-info {
  text-align: right;
  flex-shrink: 0;
}

.budget-print-info > span {
  display: block;
}

.budget-print-info > strong {
  display: block;
  margin: 3px 0;
  font-size: 22px;
  font-weight: 900;
  color: #111111;
}

.budget-print-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #888888;
}

.budget-print-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.budget-print-info-box {
  padding: 15px;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  background: #fafafa;
}

.budget-print-info-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #111111;
}

.budget-print-info-box span {
  display: block;
  font-size: 12px;
  color: #555555;
}

.budget-print-info-label {
  margin-bottom: 7px;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: 1px;
  color: #888888 !important;
}

.budget-print-section {
  margin-top: 25px;
}

.budget-print-section-title {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555555;
}

.budget-print-service {
  padding: 13px 16px;
  border-left: 4px solid #ff9d00;
  background: #fafafa;
}

.budget-print-service > strong {
  font-size: 15px;
  font-weight: 800;
  color: #111111;
}

.budget-print-service .description {
  margin-top: 7px;
  color: #555555;
  white-space: pre-wrap;
  word-break: break-word;
}

.budget-print-table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  table-layout: fixed;
}

.budget-print-table thead {
  display: table-header-group;
}

.budget-print-table th {
  padding: 10px 8px;
  background: #222222;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
}

.budget-print-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
  font-size: 12px;
  word-break: break-word;
}

.budget-print-table tbody tr {
  page-break-inside: avoid;
}

.budget-print-table th:nth-child(2),
.budget-print-table td:nth-child(2) {
  width: 65px;
  text-align: center;
}

.budget-print-table th:nth-child(3),
.budget-print-table td:nth-child(3) {
  width: 100px;
  text-align: right;
}

.budget-print-table th:nth-child(4),
.budget-print-table td:nth-child(4) {
  width: 105px;
  text-align: right;
}

.budget-print-table .center {
  text-align: center;
}

.budget-print-table .right {
  text-align: right;
}

.budget-print-table .empty {
  padding: 20px;
  text-align: center;
  color: #777777;
}

.budget-print-totals-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.budget-print-totals {
  width: 290px;
}

.budget-print-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0;
  color: #555555;
}

.budget-print-total-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
  padding: 13px 14px;
  border-radius: 9px;
  background: #222222;
  color: #ffffff;
}

.budget-print-total-final span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.budget-print-total-final strong {
  font-size: 19px;
}

.budget-print-accepted {
  margin-top: 28px;
  padding: 13px 15px;
  border: 1px solid #d9e7dc;
  border-radius: 9px;
  background: #f4faf5;
  page-break-inside: avoid;
}

.budget-print-accepted span {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #68806e;
}

.budget-print-accepted strong {
  font-size: 15px;
  font-weight: 900;
  color: #28733d;
}

.budget-print-footer {
  margin-top: 35px;
  padding-top: 15px;
  border-top: 1px solid #dddddd;
  text-align: center;
  font-size: 11px;
  color: #777777;
}

.budget-print-footer strong {
  color: #333333;
}


/* ==================================================
   IMPRESIÓN A4
================================================== */

@page {
  size: A4;
  margin: 14mm;
}

@media print {

  .budget-print-page {
    background: #ffffff;
  }

  .budget-print-document {
    max-width: none;
  }

}


/* ==================================================
   PANTALLAS PEQUEÑAS
================================================== */

@media screen and (max-width: 700px) {

  .budget-print-page {
    padding: 15px;
  }

  .budget-print-header {
    flex-direction: column;
  }

  .budget-print-info {
    text-align: left;
  }

  .budget-print-info-grid {
    grid-template-columns: 1fr;
  }

  .budget-print-totals-wrapper {
    justify-content: stretch;
  }

  .budget-print-totals {
    width: 100%;
  }

}

/* ==================================================
   BOTÓN RUTA GOOGLE MAPS
================================================== */

.admin-request-address-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}


.admin-request-address {
  flex: 1;
  min-width: 0;
}


.admin-route-button,
.admin-client-route {
  white-space: nowrap;
}

/* ==================================================
   CLIENTE - MODAL CONFIRMAR ACEPTACIÓN DE PRESUPUESTO
   PC + MÓVIL
================================================== */

/* --------------------------------------------------
   CONTENEDOR GENERAL DEL MODAL
-------------------------------------------------- */

#clientBudgetAcceptModal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 24px;

  box-sizing: border-box;
}


/* Cuando está abierto */

#clientBudgetAcceptModal.open {
  display: flex;
}


/* --------------------------------------------------
   FONDO OSCURO
-------------------------------------------------- */

#clientBudgetAcceptModal .modal-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(10, 12, 16, 0.72);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}


/* --------------------------------------------------
   TARJETA PRINCIPAL
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-accept-modal-card {

  position: relative;
  z-index: 2;

  width: min(520px, 100%);

  max-height: calc(100vh - 48px);

  overflow-y: auto;
  overflow-x: hidden;

  box-sizing: border-box;

  background: #ffffff;

  border: 1px solid rgba(0, 0, 0, 0.08);

  border-radius: 24px;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.30),
    0 10px 30px rgba(0, 0, 0, 0.14);

  scrollbar-width: thin;

  animation:
    clientBudgetAcceptModalIn
    0.22s
    ease-out;
}


/* --------------------------------------------------
   ANIMACIÓN
-------------------------------------------------- */

@keyframes clientBudgetAcceptModalIn {

  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

}


/* --------------------------------------------------
   BARRA SUPERIOR SUTIL
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-accept-modal-card::before {

  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 4px;

  background: #ff9d00;

  border-radius:
    24px 24px 0 0;
}


/* --------------------------------------------------
   BOTÓN CERRAR
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-accept-modal-card
.modal-close {

  position: absolute;

  top: 16px;
  right: 16px;

  z-index: 10;

  width: 38px;
  height: 38px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;

  border-radius: 50%;

  background: #f3f3f3;

  color: #555555;

  font-size: 25px;

  line-height: 1;

  cursor: pointer;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}


#clientBudgetAcceptModal
.client-budget-accept-modal-card
.modal-close:hover {

  background: #e8e8e8;

  color: #111111;

  transform: scale(1.05);
}


#clientBudgetAcceptModal
.client-budget-accept-modal-card
.modal-close:active {

  transform: scale(0.96);
}


/* --------------------------------------------------
   CONTENIDO
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-accept-content {

  width: 100%;

  box-sizing: border-box;

  padding:
    42px
    42px
    34px;
}


/* --------------------------------------------------
   ICONO DE CONFIRMACIÓN
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-accept-icon {

  width: 62px;
  height: 62px;

  margin:
    0 auto 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    rgba(255, 157, 0, 0.12);

  border:
    1px solid
    rgba(255, 157, 0, 0.25);

  color: #ff9d00;

  font-size: 28px;

  font-weight: 800;

  box-sizing: border-box;
}


/* --------------------------------------------------
   TÍTULO
-------------------------------------------------- */

#clientBudgetAcceptModal
#clientBudgetAcceptTitle {

  margin: 0;

  padding: 0 35px;

  text-align: center;

  color: #181818;

  font-size: 27px;

  line-height: 1.2;

  font-weight: 800;

  letter-spacing: -0.02em;
}


/* --------------------------------------------------
   TEXTO INTRODUCTORIO
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-accept-intro {

  max-width: 420px;

  margin:
    14px auto 30px;

  text-align: center;

  color: #666666;

  font-size: 15px;

  line-height: 1.65;

  font-weight: 400;
}


/* --------------------------------------------------
   SECCIÓN MÉTODO DE PAGO
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-payment-section {

  width: 100%;

  margin-top: 4px;
}


/* --------------------------------------------------
   LABEL
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-payment-label {

  display: block;

  margin-bottom: 9px;

  color: #242424;

  font-size: 13px;

  line-height: 1.4;

  font-weight: 800;

  letter-spacing: 0.02em;
}


/* --------------------------------------------------
   SELECT
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-payment-select {

  width: 100%;

  min-height: 54px;

  box-sizing: border-box;

  padding:
    0
    44px
    0
    16px;

  border:
    1px solid #d8d8d8;

  border-radius: 13px;

  background-color: #fafafa;

  color: #222222;

  font-family: inherit;

  font-size: 15px;

  font-weight: 600;

  outline: none;

  cursor: pointer;

  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}


#clientBudgetAcceptModal
.client-budget-payment-select:hover {

  border-color: #bdbdbd;

  background-color: #ffffff;
}


#clientBudgetAcceptModal
.client-budget-payment-select:focus {

  border-color: #ff9d00;

  background-color: #ffffff;

  box-shadow:
    0 0 0 4px
    rgba(255, 157, 0, 0.13);
}


/* --------------------------------------------------
   OPCIONES DEL SELECT
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-payment-select option {

  background: #ffffff;

  color: #222222;

  font-size: 15px;
}


/* --------------------------------------------------
   MENSAJE DE ERROR
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-payment-error {

  display: none;

  width: 100%;

  box-sizing: border-box;

  margin-top: 10px;

  padding:
    11px
    13px;

  border:
    1px solid #ffd39a;

  border-radius: 10px;

  background:
    #fff7ec;

  color:
    #985800;

  font-size: 13px;

  line-height: 1.45;

  font-weight: 600;
}


#clientBudgetAcceptModal
.client-budget-payment-error.visible {

  display: block;
}


/* --------------------------------------------------
   TOTAL
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-accept-total {

  width: 100%;

  box-sizing: border-box;

  margin-top: 27px;

  padding:
    18px
    20px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  border:
    1px solid #e4e4e4;

  border-radius: 15px;

  background:
    #f7f7f7;
}


/* Texto */

#clientBudgetAcceptModal
.client-budget-accept-total span {

  color: #666666;

  font-size: 14px;

  line-height: 1.4;

  font-weight: 500;
}


/* Importe */

#clientBudgetAcceptModal
.client-budget-accept-total strong {

  color: #171717;

  font-size: 21px;

  line-height: 1.2;

  font-weight: 800;

  white-space: nowrap;

  letter-spacing: -0.02em;
}


/* --------------------------------------------------
   BOTONES
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-accept-actions {

  width: 100%;

  box-sizing: border-box;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1.35fr);

  gap: 12px;

  margin-top: 26px;
}


/* --------------------------------------------------
   BOTONES GENERALES
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-accept-actions
.btn {

  min-height: 52px;

  width: 100%;

  box-sizing: border-box;

  border-radius: 12px;

  font-family: inherit;

  font-size: 14px;

  font-weight: 750;

  cursor: pointer;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}


#clientBudgetAcceptModal
.client-budget-accept-actions
.btn:hover {

  transform: translateY(-1px);
}


#clientBudgetAcceptModal
.client-budget-accept-actions
.btn:active {

  transform: translateY(0);
}


/* --------------------------------------------------
   BOTÓN VOLVER
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-accept-actions
.btn.secondary {

  background: #f2f2f2;

  border:
    1px solid #dddddd;

  color: #333333;

  box-shadow: none;
}


#clientBudgetAcceptModal
.client-budget-accept-actions
.btn.secondary:hover {

  background: #e9e9e9;

  border-color: #d3d3d3;
}


/* --------------------------------------------------
   BOTÓN ACEPTAR
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-accept-actions
.btn.primary {

  background: #ff9d00;

  border:
    1px solid #ff9d00;

  color: #111111;

  box-shadow:
    0 7px 18px
    rgba(255, 157, 0, 0.22);
}


#clientBudgetAcceptModal
.client-budget-accept-actions
.btn.primary:hover {

  background: #f39200;

  border-color: #f39200;

  box-shadow:
    0 9px 24px
    rgba(255, 157, 0, 0.30);
}


/* --------------------------------------------------
   ESTADO FOCUS DE BOTONES
-------------------------------------------------- */

#clientBudgetAcceptModal
.client-budget-accept-actions
.btn:focus-visible {

  outline: 3px solid
    rgba(255, 157, 0, 0.25);

  outline-offset: 2px;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 700px) {

  #clientBudgetAcceptModal {

    padding: 18px;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-modal-card {

    width: min(520px, 100%);

    max-height:
      calc(100vh - 36px);

    border-radius: 22px;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-content {

    padding:
      38px
      30px
      30px;
  }

}


/* ==================================================
   MÓVIL
================================================== */

@media (max-width: 520px) {

  #clientBudgetAcceptModal {

    padding: 12px;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-modal-card {

    width: 100%;

    max-height:
      calc(100vh - 24px);

    border-radius: 20px;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-modal-card::before {

    height: 3px;

    border-radius:
      20px 20px 0 0;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-modal-card
  .modal-close {

    top: 12px;
    right: 12px;

    width: 36px;
    height: 36px;

    font-size: 23px;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-content {

    padding:
      32px
      20px
      24px;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-icon {

    width: 56px;
    height: 56px;

    margin-bottom: 16px;

    font-size: 25px;
  }


  #clientBudgetAcceptModal
  #clientBudgetAcceptTitle {

    padding:
      0 28px;

    font-size: 23px;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-intro {

    margin:
      12px auto 25px;

    font-size: 14px;

    line-height: 1.6;
  }


  #clientBudgetAcceptModal
  .client-budget-payment-label {

    font-size: 13px;
  }


  #clientBudgetAcceptModal
  .client-budget-payment-select {

    min-height: 52px;

    font-size: 15px;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-total {

    margin-top: 22px;

    padding:
      16px;

    flex-direction: column;

    align-items: flex-start;

    gap: 7px;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-total span {

    font-size: 13px;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-total strong {

    font-size: 21px;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-actions {

    grid-template-columns: 1fr;

    gap: 10px;

    margin-top: 22px;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-actions
  .btn {

    min-height: 52px;
  }

}


/* ==================================================
   MÓVILES MUY PEQUEÑOS
================================================== */

@media (max-width: 360px) {

  #clientBudgetAcceptModal {

    padding: 8px;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-modal-card {

    max-height:
      calc(100vh - 16px);

    border-radius: 18px;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-content {

    padding:
      28px
      16px
      20px;
  }


  #clientBudgetAcceptModal
  #clientBudgetAcceptTitle {

    font-size: 21px;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-intro {

    font-size: 13px;
  }


  #clientBudgetAcceptModal
  .client-budget-accept-total strong {

    font-size: 19px;
  }

}

/* ==================================================
   TEMA - MODAL ACEPTAR PRESUPUESTO
   USA data-theme REAL DE LA APLICACIÓN
================================================== */

html[data-theme="dark"]
#clientBudgetAcceptModal
.client-budget-accept-modal-card {

  background: var(--card, #1d1f22);

  border-color:
    rgba(255, 255, 255, 0.08);

  color: var(--text, #ffffff);
}


/* --------------------------------------------------
   TÍTULO
-------------------------------------------------- */

html[data-theme="dark"]
#clientBudgetAcceptModal
#clientBudgetAcceptTitle {

  color: var(--text, #ffffff);
}


/* --------------------------------------------------
   TEXTO INTRODUCTORIO
-------------------------------------------------- */

html[data-theme="dark"]
#clientBudgetAcceptModal
.client-budget-accept-intro {

  color: var(--muted, #b8b8b8);
}


/* --------------------------------------------------
   LABEL MÉTODO DE PAGO
-------------------------------------------------- */

html[data-theme="dark"]
#clientBudgetAcceptModal
.client-budget-payment-label {

  color: var(--text, #eeeeee);
}


/* --------------------------------------------------
   SELECT MÉTODO DE PAGO
-------------------------------------------------- */

html[data-theme="dark"]
#clientBudgetAcceptModal
.client-budget-payment-select {

  background-color:
    var(--bg, #26282c);

  border-color:
    var(--line, #414348);

  color:
    var(--text, #ffffff);
}


/* --------------------------------------------------
   OPCIONES SELECT
-------------------------------------------------- */

html[data-theme="dark"]
#clientBudgetAcceptModal
.client-budget-payment-select option {

  background:
    #26282c;

  color:
    #ffffff;
}


/* --------------------------------------------------
   TOTAL DEL PRESUPUESTO
-------------------------------------------------- */

html[data-theme="dark"]
#clientBudgetAcceptModal
.client-budget-accept-total {

  background:
    var(--bg, #26282c);

  border-color:
    var(--line, #3a3c40);
}


html[data-theme="dark"]
#clientBudgetAcceptModal
.client-budget-accept-total span {

  color:
    var(--muted, #aaaaaa);
}


html[data-theme="dark"]
#clientBudgetAcceptModal
.client-budget-accept-total strong {

  color:
    var(--text, #ffffff);
}


/* --------------------------------------------------
   BOTÓN CERRAR
-------------------------------------------------- */

html[data-theme="dark"]
#clientBudgetAcceptModal
.client-budget-accept-modal-card
.modal-close {

  background:
    var(--bg, #2b2d31);

  color:
    var(--text, #cccccc);
}


html[data-theme="dark"]
#clientBudgetAcceptModal
.client-budget-accept-modal-card
.modal-close:hover {

  background:
    #35383d;

  color:
    #ffffff;
}


/* --------------------------------------------------
   BOTÓN VOLVER
-------------------------------------------------- */

html[data-theme="dark"]
#clientBudgetAcceptModal
.client-budget-accept-actions
.btn.secondary {

  background:
    var(--bg, #2b2d31);

  border-color:
    var(--line, #404247);

  color:
    var(--text, #eeeeee);
}


html[data-theme="dark"]
#clientBudgetAcceptModal
.client-budget-accept-actions
.btn.secondary:hover {

  background:
    #35383d;

  border-color:
    #50535a;
}


/* ==================================================
   EDITOR ADMIN - CONCEPTOS
   TEMA OSCURO
================================================== */


/* --------------------------------------------------
   TARJETA DE CADA CONCEPTO
-------------------------------------------------- */

html[data-theme="dark"]
.admin-budget-edit-item {

  background:
    var(--card, #1d1f22);

  border-color:
    var(--line, #383b40);

  color:
    var(--text, #ffffff);
}


/* --------------------------------------------------
   LABELS
-------------------------------------------------- */

html[data-theme="dark"]
.admin-budget-edit-item-field label {

  color:
    var(--muted, #aaaaaa);
}


/* --------------------------------------------------
   CAMPOS DE TEXTO Y NÚMERO
-------------------------------------------------- */

html[data-theme="dark"]
.admin-budget-edit-item-field input {

  background:
    var(--bg, #26282c);

  border-color:
    var(--line, #414348);

  color:
    var(--text, #ffffff);
}


/* --------------------------------------------------
   IMPORTE
-------------------------------------------------- */

html[data-theme="dark"]
.admin-budget-edit-amount {

  background:
    var(--bg, #202226) !important;

  border-color:
    var(--line, #414348) !important;

  color:
    var(--text, #ffffff) !important;

  opacity: 1;
}


/* --------------------------------------------------
   FOCUS DE LOS CAMPOS
-------------------------------------------------- */

html[data-theme="dark"]
.admin-budget-edit-item-field input:focus {

  border-color:
    #ff9d00;

  background:
    var(--bg, #292c31);

  color:
    var(--text, #ffffff);

  outline: none;

  box-shadow:
    0 0 0 3px
    rgba(255, 157, 0, 0.12);
}


/* --------------------------------------------------
   BOTÓN ELIMINAR CONCEPTO
-------------------------------------------------- */

html[data-theme="dark"]
.admin-budget-remove-item {

  background:
    var(--bg, #2b2d31);

  border-color:
    var(--line, #404247);

  color:
    var(--text, #eeeeee);
}


html[data-theme="dark"]
.admin-budget-remove-item:hover {

  background:
    #35383d;

  border-color:
    #55585f;
}


/* --------------------------------------------------
   BOTÓN AÑADIR CONCEPTO
-------------------------------------------------- */

html[data-theme="dark"]
#adminBudgetAddItemBtn {

  background:
    var(--bg, #2b2d31);

  border-color:
    var(--line, #404247);

  color:
    var(--text, #eeeeee);
}


/* --------------------------------------------------
   TOTALES DEL EDITOR
-------------------------------------------------- */

html[data-theme="dark"]
.admin-budget-totals {

  color:
    var(--text, #ffffff);
}


html[data-theme="dark"]
.admin-budget-total-row {

  color:
    var(--text, #eeeeee);

  border-color:
    var(--line, #383b40);
}


/* --------------------------------------------------
   TOTAL FINAL
-------------------------------------------------- */

html[data-theme="dark"]
.admin-budget-total-final {

  background:
    #25282d;

  border-color:
    #3d4046;

  color:
    #ffffff;
}


html[data-theme="dark"]
.admin-budget-total-final strong {

  color:
    #ffffff;
}

/* ==================================================
   CLIENTE - PANEL PRESUPUESTO ACEPTADO
   PC + MÓVIL
================================================== */

/* --------------------------------------------------
   MODAL
-------------------------------------------------- */

#clientBudgetSuccessModal {
  position: fixed;
  inset: 0;

  z-index: 10000;

  display: none;

  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  padding: 20px;
}

#clientBudgetSuccessModal.open {
  display: flex;
}


/* --------------------------------------------------
   FONDO OSCURO
-------------------------------------------------- */

#clientBudgetSuccessModal
.client-budget-success-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(10, 12, 16, 0.74);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}


/* --------------------------------------------------
   TARJETA
-------------------------------------------------- */

#clientBudgetSuccessModal
.client-budget-success-card {
  position: relative;
  z-index: 2;

  width: min(460px, 100%);

  max-height: calc(100vh - 40px);

  overflow-y: auto;
  overflow-x: hidden;

  box-sizing: border-box;

  background: #ffffff;

  border: 1px solid rgba(0, 0, 0, 0.08);

  border-radius: 24px;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.30),
    0 10px 30px rgba(0, 0, 0, 0.14);

  animation:
    clientBudgetSuccessIn
    0.22s
    ease-out;
}


/* --------------------------------------------------
   ANIMACIÓN
-------------------------------------------------- */

@keyframes clientBudgetSuccessIn {

  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

}


/* --------------------------------------------------
   BARRA SUPERIOR VERDE
-------------------------------------------------- */

#clientBudgetSuccessModal
.client-budget-success-card::before {

  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 4px;

  background: #10b981;

  border-radius:
    24px 24px 0 0;
}


/* --------------------------------------------------
   BOTÓN CERRAR
-------------------------------------------------- */

#clientBudgetSuccessModal
.client-budget-success-close {

  position: absolute;

  top: 16px;
  right: 16px;

  z-index: 5;

  width: 38px;
  height: 38px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  border: 0;
  border-radius: 50%;

  background: #f3f3f3;

  color: #555555;

  font-family: inherit;
  font-size: 24px;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}


#clientBudgetSuccessModal
.client-budget-success-close:hover {

  background: #e8e8e8;

  color: #111111;

  transform: scale(1.05);
}


#clientBudgetSuccessModal
.client-budget-success-close:active {

  transform: scale(0.96);
}


/* --------------------------------------------------
   CONTENIDO
-------------------------------------------------- */

#clientBudgetSuccessModal
.client-budget-success-content {

  width: 100%;

  box-sizing: border-box;

  padding:
    48px
    42px
    38px;

  text-align: center;
}


/* --------------------------------------------------
   ICONO
-------------------------------------------------- */

#clientBudgetSuccessModal
.client-budget-success-icon {

  width: 68px;
  height: 68px;

  margin:
    0 auto 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  border-radius: 50%;

  background:
    rgba(16, 185, 129, 0.12);

  border:
    1px solid
    rgba(16, 185, 129, 0.25);

  color: #10b981;

  font-size: 34px;
  font-weight: 800;

  line-height: 1;
}


/* --------------------------------------------------
   TÍTULO
-------------------------------------------------- */

#clientBudgetSuccessModal
#clientBudgetSuccessTitle {

  margin: 0;

  padding: 0 20px;

  color: #181818;

  font-family: inherit;

  font-size: 24px;

  line-height: 1.3;

  font-weight: 800;

  letter-spacing: -0.02em;
}


/* --------------------------------------------------
   MENSAJE
-------------------------------------------------- */

#clientBudgetSuccessModal
#clientBudgetSuccessMessage {

  margin:
    14px auto 26px;

  max-width: 360px;

  color: #666666;

  font-family: inherit;

  font-size: 15px;

  line-height: 1.6;

  font-weight: 400;
}


/* --------------------------------------------------
   BOTÓN CONTINUAR
-------------------------------------------------- */

#clientBudgetSuccessModal
#clientBudgetSuccessOkBtn {

  width: 100%;

  min-height: 52px;

  padding:
    12px
    18px;

  box-sizing: border-box;

  border:
    1px solid #10b981;

  border-radius: 12px;

  background: #10b981;

  color: #ffffff;

  font-family: inherit;

  font-size: 14px;

  font-weight: 750;

  line-height: 1.2;

  cursor: pointer;

  box-shadow:
    0 7px 18px
    rgba(16, 185, 129, 0.20);

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}


#clientBudgetSuccessModal
#clientBudgetSuccessOkBtn:hover {

  background: #0ea371;

  border-color: #0ea371;

  box-shadow:
    0 9px 24px
    rgba(16, 185, 129, 0.28);

  transform: translateY(-1px);
}


#clientBudgetSuccessModal
#clientBudgetSuccessOkBtn:active {

  transform: translateY(0);
}


#clientBudgetSuccessModal
#clientBudgetSuccessOkBtn:focus-visible {

  outline: 3px solid
    rgba(16, 185, 129, 0.25);

  outline-offset: 2px;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 700px) {

  #clientBudgetSuccessModal {

    padding: 16px;
  }


  #clientBudgetSuccessModal
  .client-budget-success-card {

    width: min(460px, 100%);

    max-height:
      calc(100vh - 32px);

    border-radius: 22px;
  }


  #clientBudgetSuccessModal
  .client-budget-success-card::before {

    height: 4px;

    border-radius:
      22px 22px 0 0;
  }


  #clientBudgetSuccessModal
  .client-budget-success-content {

    padding:
      44px
      30px
      32px;
  }

}


/* ==================================================
   MÓVIL
================================================== */

@media (max-width: 520px) {

  #clientBudgetSuccessModal {

    padding: 12px;
  }


  #clientBudgetSuccessModal
  .client-budget-success-card {

    width: 100%;

    max-height:
      calc(100vh - 24px);

    border-radius: 20px;
  }


  #clientBudgetSuccessModal
  .client-budget-success-card::before {

    height: 3px;

    border-radius:
      20px 20px 0 0;
  }


  #clientBudgetSuccessModal
  .client-budget-success-close {

    top: 12px;
    right: 12px;

    width: 36px;
    height: 36px;

    font-size: 23px;
  }


  #clientBudgetSuccessModal
  .client-budget-success-content {

    padding:
      42px
      20px
      26px;
  }


  #clientBudgetSuccessModal
  .client-budget-success-icon {

    width: 60px;
    height: 60px;

    margin-bottom: 18px;

    font-size: 30px;
  }


  #clientBudgetSuccessModal
  #clientBudgetSuccessTitle {

    padding: 0 10px;

    font-size: 21px;

    line-height: 1.3;
  }


  #clientBudgetSuccessModal
  #clientBudgetSuccessMessage {

    margin:
      12px auto 22px;

    font-size: 14px;

    line-height: 1.55;
  }


  #clientBudgetSuccessModal
  #clientBudgetSuccessOkBtn {

    min-height: 52px;
  }

}


/* ==================================================
   MÓVIL MUY PEQUEÑO
================================================== */

@media (max-width: 360px) {

  #clientBudgetSuccessModal {

    padding: 8px;
  }


  #clientBudgetSuccessModal
  .client-budget-success-card {

    max-height:
      calc(100vh - 16px);

    border-radius: 18px;
  }


  #clientBudgetSuccessModal
  .client-budget-success-card::before {

    border-radius:
      18px 18px 0 0;
  }


  #clientBudgetSuccessModal
  .client-budget-success-content {

    padding:
      38px
      16px
      22px;
  }


  #clientBudgetSuccessModal
  .client-budget-success-icon {

    width: 56px;
    height: 56px;

    font-size: 28px;
  }


  #clientBudgetSuccessModal
  #clientBudgetSuccessTitle {

    font-size: 20px;
  }


  #clientBudgetSuccessModal
  #clientBudgetSuccessMessage {

    font-size: 13px;
  }

}


/* ==================================================
   MODO OSCURO
================================================== */

.dark-mode
#clientBudgetSuccessModal
.client-budget-success-card,

.dark
#clientBudgetSuccessModal
.client-budget-success-card,

body.dark
#clientBudgetSuccessModal
.client-budget-success-card {

  background: #1d1f22;

  border-color:
    rgba(255, 255, 255, 0.08);
}


.dark-mode
#clientBudgetSuccessModal
#clientBudgetSuccessTitle,

.dark
#clientBudgetSuccessModal
#clientBudgetSuccessTitle,

body.dark
#clientBudgetSuccessModal
#clientBudgetSuccessTitle {

  color: #ffffff;
}


.dark-mode
#clientBudgetSuccessModal
#clientBudgetSuccessMessage,

.dark
#clientBudgetSuccessModal
#clientBudgetSuccessMessage,

body.dark
#clientBudgetSuccessModal
#clientBudgetSuccessMessage {

  color: #b8b8b8;
}


.dark-mode
#clientBudgetSuccessModal
.client-budget-success-close,

.dark
#clientBudgetSuccessModal
.client-budget-success-close,

body.dark
#clientBudgetSuccessModal
.client-budget-success-close {

  background: #2b2d31;

  color: #cccccc;
}


.dark-mode
#clientBudgetSuccessModal
.client-budget-success-close:hover,

.dark
#clientBudgetSuccessModal
.client-budget-success-close:hover,

body.dark
#clientBudgetSuccessModal
.client-budget-success-close:hover {

  background: #36383d;

  color: #ffffff;
}

/* ==================================================
   CLIENTE - SECCIONES DE MIS PRESUPUESTOS
   PENDIENTES / ACEPTADOS
   PC + TABLET + MÓVIL
================================================== */


/* ==================================================
   CONTENEDOR DE LAS PESTAÑAS
================================================== */

.client-budgets-tabs {

  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 12px;

  margin:
    22px 0 20px;

  box-sizing: border-box;
}


/* ==================================================
   BOTÓN / PESTAÑA
================================================== */

.client-budgets-tab {

  width: 100%;

  min-width: 0;

  display: flex;

  align-items: center;

  gap: 12px;

  padding:
    15px;

  box-sizing: border-box;

  border:
    1px solid var(--line);

  border-radius:
    14px;

  background:
    var(--surface);

  color:
    var(--text);

  font-family:
    inherit;

  text-align:
    left;

  cursor:
    pointer;

  appearance:
    none;

  -webkit-appearance:
    none;

  transition:
    border-color .18s ease,
    background-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}


/* ==================================================
   HOVER
================================================== */

.client-budgets-tab:hover {

  transform:
    translateY(-1px);

  border-color:
    rgba(255, 157, 0, .45);

  box-shadow:
    0 4px 14px
    rgba(0, 0, 0, .06);
}


/* ==================================================
   PESTAÑA ACTIVA
================================================== */

.client-budgets-tab.active {

  border-color:
    #ff9d00;

  background:
    rgba(255, 157, 0, .08);

  box-shadow:
    0 5px 18px
    rgba(255, 157, 0, .10);
}


/* ==================================================
   ESTADO FOCUS
================================================== */

.client-budgets-tab:focus-visible {

  outline:
    3px solid
    rgba(255, 157, 0, .25);

  outline-offset:
    2px;
}


/* ==================================================
   ICONO
================================================== */

.client-budgets-tab .option-icon {

  width:
    42px;

  height:
    42px;

  min-width:
    42px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  box-sizing:
    border-box;

  border-radius:
    12px;

  background:
    var(--bg);

  font-size:
    20px;

  line-height:
    1;

  flex-shrink:
    0;
}


/* ==================================================
   TEXTO DE LA PESTAÑA
================================================== */

.client-budgets-tab > span:last-child {

  min-width:
    0;

  flex:
    1;
}


/* ==================================================
   TÍTULO
================================================== */

.client-budgets-tab strong {

  display:
    block;

  margin:
    0 0 3px;

  color:
    var(--text);

  font-size:
    14px;

  line-height:
    1.3;

  font-weight:
    800;
}


/* ==================================================
   DESCRIPCIÓN
================================================== */

.client-budgets-tab small {

  display:
    block;

  color:
    var(--muted);

  font-size:
    12px;

  line-height:
    1.4;

  font-weight:
    500;
}


/* ==================================================
   PESTAÑA ACTIVA - TEXTO
================================================== */

.client-budgets-tab.active strong {

  color:
    var(--text);
}


/* ==================================================
   PESTAÑA ACTIVA - ICONO
================================================== */

.client-budgets-tab.active .option-icon {

  background:
    rgba(255, 157, 0, .14);
}


/* ==================================================
   MÓVIL
================================================== */

@media (max-width: 520px) {

  .client-budgets-tabs {

    grid-template-columns:
      1fr;

    gap:
      10px;

    margin:
      20px 0 18px;
  }


  .client-budgets-tab {

    padding:
      13px;

    gap:
      11px;

    border-radius:
      13px;
  }


  .client-budgets-tab .option-icon {

    width:
      40px;

    height:
      40px;

    min-width:
      40px;

    border-radius:
      11px;

    font-size:
      19px;
  }


  .client-budgets-tab strong {

    font-size:
      14px;
  }


  .client-budgets-tab small {

    font-size:
      12px;
  }

}


/* ==================================================
   MÓVILES MUY PEQUEÑOS
================================================== */

@media (max-width: 360px) {

  .client-budgets-tabs {

    gap:
      8px;

    margin:
      18px 0 16px;
  }


  .client-budgets-tab {

    padding:
      12px;

    gap:
      10px;

    border-radius:
      12px;
  }


  .client-budgets-tab .option-icon {

    width:
      38px;

    height:
      38px;

    min-width:
      38px;

    font-size:
      18px;
  }


  .client-budgets-tab strong {

    font-size:
      13px;
  }


  .client-budgets-tab small {

    font-size:
      11px;

    line-height:
      1.35;
  }

}


/* ==================================================
   MODO OSCURO
================================================== */

.dark-mode .client-budgets-tab,
.dark .client-budgets-tab,
body.dark .client-budgets-tab {

  background:
    var(--surface, #171d26);

  border-color:
    rgba(255, 255, 255, .08);

  color:
    var(--text, #ffffff);
}


/* ==================================================
   MODO OSCURO - HOVER
================================================== */

.dark-mode .client-budgets-tab:hover,
.dark .client-budgets-tab:hover,
body.dark .client-budgets-tab:hover {

  border-color:
    rgba(255, 157, 0, .45);

  box-shadow:
    0 4px 14px
    rgba(0, 0, 0, .18);
}


/* ==================================================
   MODO OSCURO - ACTIVA
================================================== */

.dark-mode .client-budgets-tab.active,
.dark .client-budgets-tab.active,
body.dark .client-budgets-tab.active {

  background:
    rgba(255, 157, 0, .10);

  border-color:
    #ff9d00;

  box-shadow:
    0 5px 18px
    rgba(255, 157, 0, .12);
}


/* ==================================================
   MODO OSCURO - ICONO
================================================== */

.dark-mode .client-budgets-tab .option-icon,
.dark .client-budgets-tab .option-icon,
body.dark .client-budgets-tab .option-icon {

  background:
    rgba(255, 255, 255, .06);
}


/* ==================================================
   MODO OSCURO - ICONO ACTIVO
================================================== */

.dark-mode .client-budgets-tab.active .option-icon,
.dark .client-budgets-tab.active .option-icon,
body.dark .client-budgets-tab.active .option-icon {

  background:
    rgba(255, 157, 0, .14);
}


/* ==================================================
   MODO OSCURO - TEXTO
================================================== */

.dark-mode .client-budgets-tab strong,
.dark .client-budgets-tab strong,
body.dark .client-budgets-tab strong {

  color:
    var(--text, #ffffff);
}


.dark-mode .client-budgets-tab small,
.dark .client-budgets-tab small,
body.dark .client-budgets-tab small {

  color:
    var(--muted, #aeb4bd);
}
