:root {
  color-scheme: light;
  --brand-red: #d71920;
  --brand-red-dark: #a90f15;
  --brand-red-soft: #fff0f0;
  --brand-yellow: #f5b800;
  --brand-yellow-dark: #d99d00;
  --ink: #11171b;
  --ink-2: #1d272d;
  --yellow: var(--brand-yellow);
  --yellow-dark: var(--brand-yellow-dark);
  --green: #315a42;
  --surface: #ffffff;
  --surface-soft: #f7f7f4;
  --bg: #f2f3ef;
  --muted: #69767d;
  --muted-strong: #4d5a61;
  --border: #dde2df;
  --danger: #b9382e;
  --success: #247143;
  --shadow: 0 12px 35px rgba(22, 31, 36, .09);
  --shadow-lg: 0 28px 70px rgba(14, 20, 23, .18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container: min(1480px, calc(100% - 36px));
  --transition-fast: 180ms ease;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur-base: 350ms;
}


* { box-sizing: border-box; }
html {
  min-width: 320px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Bloqueo estricto de scroll en el body cuando un modal está abierto (Evita el bug táctil en móviles) */
body.modal-scroll-lock,
body:has(dialog[open]) {
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: contain !important;
}
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(245,184,0,.35); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: 'Roboto Slab', Georgia, serif; }
.container { width: var(--container); margin-inline: auto; }
.page-section { padding: 64px 0; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading h1 { margin: 0 0 7px; font-size: clamp(1.8rem, 4vw, 2.55rem); }
.page-heading p { color: var(--muted); margin: 0; }
.eyebrow { color: var(--yellow-dark); text-transform: uppercase; font-size: .75rem; letter-spacing: .16em; font-weight: 800; }
.btn { border: 0; border-radius: 9px; padding: 11px 17px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: #ffc823; }
.btn-dark { background: var(--ink); color: white; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-danger { background: #fff1ef; color: var(--danger); border: 1px solid #f0c7c2; }
.btn-sm { padding: 7px 10px; font-size: .78rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 15px; box-shadow: 0 4px 18px rgba(22,31,36,.04); }
.loading, .empty-state { padding: 54px 20px; text-align: center; color: var(--muted); }
.loading::before { content: ''; display: block; width: 34px; height: 34px; border: 3px solid #e1e5e2; border-top-color: var(--yellow); border-radius: 50%; margin: 0 auto 14px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-banner { padding: 13px 16px; border-radius: 9px; background: #fff0ee; color: #8b2921; border: 1px solid #f1c8c4; margin-bottom: 18px; font-size: .9rem; }
.table-wrap { overflow-x: auto; border-radius: 15px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; background: white; }
.data-table th { background: #f8f9f6; color: #657178; text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 15px 16px; border-bottom: 1px solid #edf0ee; font-size: .88rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #fffdf6; }
.actions { display: flex; gap: 7px; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.badge-maquinaria { background: #fff1bd; color: #6c5000; }
.badge-implemento { background: #dceee2; color: #285b3a; }
.badge-repuesto { background: #dde8f2; color: #274f70; }
.badge-success { background: #dff2e5; color: #21653a; }
.badge-muted { background: #e9edeb; color: #5d696f; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .78rem; font-weight: 800; color: #465158; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #ced5d1; background: #fff; border-radius: 9px; padding: 11px 12px; color: var(--ink); }
.form-field textarea { min-height: 90px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--yellow-dark); outline: 3px solid rgba(245,184,0,.12); }
.field-error { font-size: .72rem; color: var(--danger); }
.checkbox-field { flex-direction: row; align-items: center; padding-top: 25px; }
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--yellow-dark); }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(10,16,19,.68); backdrop-filter: blur(5px); padding: 30px 20px; display: grid; place-items: center; overflow-y: auto; }
.modal { background: white; width: min(760px,100%); border-radius: 17px; box-shadow: 0 30px 70px rgba(0,0,0,.3); overflow: hidden; max-height: calc(100vh - 60px); display: flex; flex-direction: column; }
.modal-header { padding: 21px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.modal-header h2 { margin: 0; font-size: 1.25rem; }
.modal-close { border: 0; background: #f1f3f1; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.15rem; }
.modal-body { padding: 23px 24px; overflow-y: auto; }
.modal-footer { padding: 17px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.search-row { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.search-row input, .search-row select { border: 1px solid var(--border); border-radius: 9px; padding: 11px 13px; background: white; min-width: 180px; }
.search-row input { flex: 1; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 25px; color: var(--muted); font-size: .85rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.stat-card { padding: 22px; position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; width: 70px; height: 70px; border-radius: 50%; background: rgba(245,184,0,.12); right: -14px; top: -20px; }
.stat-card small { color: var(--muted); font-weight: 700; }
.stat-card strong { display: block; font-size: 2rem; margin-top: 7px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) {
  .container { width: min(100% - 26px, 1180px); }
  .page-section { padding: 38px 0; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .stat-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; place-items: end center; }
  .modal { border-radius: 17px 17px 0 0; max-height: 94vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


:root {
  --brand-red-deep: #980909;
  --brand-red-mid: #ce1010;
  --brand-red-bright: #ed1b1b;
  --brand-yellow-soft: #ffd54d;
  --brand-yellow-industrial: #ffcd00;
  --ink-900: #0f172a;
  --ink-800: #292927;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --line: #e2e8f0;
  --surface-industrial: #ffffff;
  --surface-muted: #f8fafc;
  --gutter: 18px;
  --container: 1480px;
}
body { padding-top: 84px; }

.page-content {
  display: block;
  flex: 1;
  min-width: 0;
}

.route-loading {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: #f5f4f2;
  color: #5f5a56;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.route-loading__spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #e2ddd9;
  border-top-color: #f5b800;
  border-radius: 50%;
  animation: route-spin 0.75s linear infinite;
}

@keyframes route-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Login page */
.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  background-image: linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)), url("/assets/images/hero/tractor-principal.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Capa de difuminado sobre la imagen de fondo */
.login-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
}

.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  width: 100%;
  max-width: 470px;
  min-width: 0;
  background: #ffffff;
  border-radius: 16px;
  padding: 45px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  animation: fadeIn 0.6s ease;
}

.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.logo img {
  width: 170px;
  max-width: 100%;
  object-fit: contain;
}

.login-card h1 {
  margin: 0;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  color: #1f2937;
}

.subtitle {
  margin-top: 14px;
  margin-bottom: 32px;
  text-align: center;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.7;
}

.error-banner {
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 8px;
  background: #fdecec;
  color: #c62828;
  border: 1px solid #f5bcbc;
  font-size: 14px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.input-box {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: 0.25s;
}

.input-box:hover {
  border-color: #b91c1c;
}

.input-box:focus-within {
  border-color: #b91c1c;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.12);
}

.input-icon {
  width: 20px;
  height: 20px;
  margin-left: 14px;
  margin-right: 12px;
  color: #9ca3af;
  flex-shrink: 0;
}

.input-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 15px 0;
  font-size: 15px;
  color: #374151;
}

.input-box input::placeholder {
  color: #9ca3af;
}

.toggle-password {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  padding: 0 18px;
  cursor: pointer;
  transition: 0.25s;
}

.toggle-password:hover {
  color: #c62828;
}

.field-error {
  display: block;
  margin-top: 6px;
  color: #d32f2f;
  font-size: 13px;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 28px;
  gap: 15px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: 14px;
  cursor: pointer;
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: #c62828;
}

.login-options a {
  text-decoration: none;
  color: #c62828;
  font-size: 14px;
  transition: 0.25s;
}

.login-options a:hover {
  text-decoration: underline;
}

.login-button {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 8px;
  background: #c62828;
  color: white;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.login-button:hover:not(:disabled) {
  background: #a61d1d;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(198, 40, 40, 0.25);
}

.login-button:active {
  transform: scale(0.98);
}

.login-button:disabled {
  background: #bdbdbd;
  cursor: not-allowed;
}

.separator {
  display: flex;
  align-items: center;
  margin: 32px 0 20px;
}

.separator span {
  width: 100%;
  height: 1px;
  background: #e5e7eb;
}

.support {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.support a {
  color: #6b7280;
  text-decoration: none;
  font-size: 13px;
  transition: 0.25s;
}

.support a:hover {
  color: #c62828;
}

.support span {
  color: #c5c5c5;
}

.login-footer {
  position: absolute;
  bottom: 18px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #555;
  font-size: 13px;
  z-index: 3;
}

.login-footer p {
  margin: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .login-page {
    min-height: 100dvh;
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px 12px max(16px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }
  .login-container {
    flex: 1 0 auto;
    align-items: center;
    padding: 0;
  }
  .login-card {
    padding: 30px 24px;
    border-radius: 14px;
  }
  .logo img {
    width: 130px;
  }
  .login-card h1 {
    font-size: 28px;
  }
  .subtitle {
    font-size: 14px;
  }
  .login-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .login-footer {
    position: static;
    width: 100%;
    margin-top: 18px;
    flex: 0 0 auto;
  }
}
@media (max-width: 480px) {
  .login-card {
    padding: 24px 18px;
  }
  .login-card h1 {
    font-size: 24px;
  }
  .logo {
    margin-bottom: 18px;
  }
  .subtitle {
    margin: 10px 0 22px;
    line-height: 1.55;
  }
  .form-group {
    margin-bottom: 17px;
  }
  .toggle-password {
    padding: 0 12px;
  }
  .login-options {
    margin-bottom: 20px;
  }
  .separator {
    margin: 24px 0 16px;
  }
  .input-box input {
    font-size: 14px;
  }
  .login-button {
    height: 50px;
    font-size: 16px;
  }
}
.admin-page {
  padding: 32px 40px;
  background: #f8f9fb;
  min-height: calc(100vh - 72px);
}

.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 20px;
}
@media (max-width: 600px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}

.page-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666666;
  margin-bottom: 4px;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #202124;
  margin: 0 0 4px 0;
}

.page-description {
  font-size: 0.9rem;
  color: #666666;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  height: 44px;
}
.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: #ef1b1b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 27, 27, 0.3);
}
.btn-primary:hover {
  background: #cc1515;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239, 27, 27, 0.4);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: #666666;
  padding: 6px 12px;
  height: auto;
}
.btn-ghost:hover {
  background: #f5f5f5;
  color: #202124;
}

.btn-danger {
  background: transparent;
  color: #c62828;
  padding: 6px 12px;
  height: auto;
}
.btn-danger:hover {
  background: #fde8e8;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 4px 12px;
}

.search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

.search-wrapper {
  flex: 1;
  position: relative;
  max-width: 480px;
}
@media (max-width: 600px) {
  .search-wrapper {
    max-width: 100%;
  }
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999999;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 11px 16px 11px 44px;
  border: 1px solid #ececec;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #ffffff;
  color: #202124;
  transition: border-color 0.2s ease;
  height: 44px;
}
.search-input:focus {
  outline: none;
  border-color: #ef1b1b;
  box-shadow: 0 0 0 3px rgba(239, 27, 27, 0.1);
}
.search-input::placeholder {
  color: #aaaaaa;
}

.result-count {
  font-size: 0.8rem;
  color: #666666;
  white-space: nowrap;
  padding: 8px 0;
}

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 0;
  color: #666666;
  font-size: 0.95rem;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #ececec;
  border-top-color: #ef1b1b;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #ececec;
  text-align: center;
}
.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #202124;
  margin: 0 0 4px 0;
}
.empty-state p {
  color: #666666;
  font-size: 0.9rem;
  margin: 0 0 20px 0;
}

.table-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #ececec;
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  -webkit-overflow-scrolling: touch;
}

.mobile-label {
  display: none;
}

.data-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table thead tr {
  background: #f8f9fb;
}
.data-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666666;
  border-bottom: 1px solid #ececec;
}
.data-table thead .actions-header {
  text-align: right;
}
.data-table tbody tr {
  transition: background 0.15s ease;
}
.data-table tbody tr:hover {
  background: #fafafb;
}
.data-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid #f0f0f0;
}
.data-table tbody td {
  padding: 14px 18px;
  color: #202124;
  vertical-align: middle;
}
.data-table .col-id {
  color: #666666;
  font-size: 0.8rem;
  white-space: nowrap;
  width: 60px;
}
.data-table .col-name {
  font-weight: 500;
}
.data-table .col-actions {
  text-align: right;
  white-space: nowrap;
  width: 140px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-maquinaria {
  background: #e8f0fe;
  color: #1a5c9e;
}

.badge-implemento {
  background: #e6f4ea;
  color: #1e7e34;
}

.badge-repuesto {
  background: #fef3e2;
  color: #a56300;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  overflow-y: auto;
  animation: backdropFadeIn 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes backdropFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.category-modal-form {
  width: 100%;
  max-width: min(92vw, 600px);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(245, 184, 0, 0.15);
  overflow: hidden;
  animation: modalSlideUp 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.modal-header {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.6rem 1.15rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  flex-shrink: 0;
}

.modal-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.modal-badge-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
@media (max-width: 640px) {
  .modal-badge-group {
    flex: 1;
  }
}

.modal-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.22);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.08);
}

.modal-badge {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 9999px;
  color: #92400e;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .modal-badge {
    flex: 1;
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
  }
}

.modal-title-text {
  font-size: 1.25rem;
  font-weight: 850;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
  word-break: break-word;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
  transition: all 180ms ease;
  flex-shrink: 0;
}
.modal-close svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}
.modal-close:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  transform: rotate(90deg) scale(1.05);
}
.modal-close:focus-visible {
  outline: 2px solid #f5b800;
  outline-offset: 2px;
}

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 28px 24px 28px;
  border-top: 1px solid #ececec;
  flex-shrink: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 500px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.full {
  grid-column: 1/-1;
}
.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #202124;
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 10px 14px;
  border: 1px solid #ececec;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #ffffff;
  color: #202124;
  transition: border-color 0.2s ease;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #ef1b1b;
  box-shadow: 0 0 0 3px rgba(239, 27, 27, 0.1);
}
.form-field input.error,
.form-field select.error,
.form-field textarea.error {
  border-color: #c62828;
}
.form-field textarea {
  resize: vertical;
  min-height: 80px;
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23666666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.field-error {
  font-size: 0.75rem;
  color: #c62828;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .admin-page {
    padding: 16px 12px;
  }
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .page-header .btn {
    width: 100%;
    justify-content: center;
  }
  .table-card {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }
  .data-table {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .data-table thead {
    display: none;
  }
  .data-table tbody {
    display: grid;
    gap: 0.85rem;
  }
  .data-table tbody tr {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    gap: 0.75rem;
    transition: transform 180ms ease, box-shadow 180ms ease;
  }
  .data-table tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  }
  .data-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: none !important;
  }
  .data-table tbody td.col-id {
    width: auto;
    font-weight: 700;
    color: #94a3b8;
    font-size: 0.75rem;
  }
  .data-table tbody td.col-name {
    width: 100%;
  }
  .data-table tbody td.col-type {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .data-table tbody td.col-desc {
    width: 100%;
    font-size: 0.85rem;
  }
  .data-table tbody td.col-desc .desc-text {
    color: #64748b;
    font-weight: 400;
    line-height: 1.4;
  }
  .data-table tbody td.col-actions {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-top: 0.5rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px dashed #e2e8f0 !important;
  }
  .data-table tbody td.col-actions .btn {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 42px !important;
    min-height: 42px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 0.6rem !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }
  .data-table tbody td.col-actions .btn-ghost {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
  }
  .data-table tbody td.col-actions .btn-ghost:hover, .data-table tbody td.col-actions .btn-ghost:active {
    background: #e2e8f0 !important;
    color: #0f172a !important;
  }
  .data-table tbody td.col-actions .btn-danger {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
  }
  .data-table tbody td.col-actions .btn-danger:hover, .data-table tbody td.col-actions .btn-danger:active {
    background: #fee2e2 !important;
    color: #b91c1c !important;
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .modal-body {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .form-grid {
    gap: 14px;
  }
}
@media (max-width: 480px) {
  .page-title {
    font-size: 1.3rem;
  }
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .result-count {
    text-align: right;
  }
  .modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
    padding: 14px 18px 18px;
  }
  .modal-footer .btn {
    width: 100%;
    justify-content: center;
    height: 44px;
  }
}
.confirm-dialog {
  width: 100%;
  max-width: min(90vw, 420px);
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #fecaca;
  box-shadow: 0 20px 40px -15px rgba(220, 38, 38, 0.25), 0 0 0 1px rgba(220, 38, 38, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: modalSlideUp 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 480px) {
  .confirm-dialog {
    padding: 1.25rem 1rem;
    border-radius: 1rem;
  }
}

.confirm-icon-danger {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #fef2f2;
  border: 2px solid #fecaca;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.confirm-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.01em;
}

.confirm-subtitle {
  font-size: 0.9rem;
  color: #475569;
  margin: 0 0 1rem 0;
}
.confirm-subtitle strong {
  color: #0f172a;
}

.confirm-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 0.75rem;
  color: #b45309;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: left;
  margin-bottom: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}
.confirm-warning-box svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #d97706;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  width: 100%;
}
.confirm-actions .btn {
  flex: 1;
  justify-content: center;
  height: 42px;
  font-size: 0.88rem;
  border-radius: 0.65rem;
}
@media (max-width: 480px) {
  .confirm-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }
}

.btn-danger-solid {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.btn-danger-solid:hover {
  background: #b91c1c;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}
.btn-danger-solid:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.admin-page {
  padding: 32px 40px;
  background: #f8f9fb;
  min-height: calc(100vh - 72px);
}

.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 20px;
}
@media (max-width: 600px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}

.page-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666666;
  margin-bottom: 4px;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #202124;
  margin: 0 0 4px 0;
}

.page-description {
  font-size: 0.9rem;
  color: #666666;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  height: 44px;
}
.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: #ef1b1b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 27, 27, 0.3);
}
.btn-primary:hover {
  background: #cc1515;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239, 27, 27, 0.4);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: #666666;
  padding: 6px 12px;
  height: auto;
}
.btn-ghost:hover {
  background: #f5f5f5;
  color: #202124;
}

.btn-danger {
  background: transparent;
  color: #c62828;
  padding: 6px 12px;
  height: auto;
}
.btn-danger:hover {
  background: #fde8e8;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 4px 12px;
}

.search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

.search-wrapper {
  flex: 1;
  position: relative;
  max-width: 480px;
}
@media (max-width: 600px) {
  .search-wrapper {
    max-width: 100%;
  }
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999999;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 11px 16px 11px 44px;
  border: 1px solid #ececec;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #ffffff;
  color: #202124;
  transition: border-color 0.2s ease;
  height: 44px;
}
.search-input:focus {
  outline: none;
  border-color: #ef1b1b;
  box-shadow: 0 0 0 3px rgba(239, 27, 27, 0.1);
}
.search-input::placeholder {
  color: #aaaaaa;
}

.result-count {
  font-size: 0.8rem;
  color: #666666;
  white-space: nowrap;
  padding: 8px 0;
}

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 0;
  color: #666666;
  font-size: 0.95rem;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #ececec;
  border-top-color: #ef1b1b;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #ececec;
  text-align: center;
}
.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #202124;
  margin: 0 0 4px 0;
}
.empty-state p {
  color: #666666;
  font-size: 0.9rem;
  margin: 0 0 20px 0;
}

.table-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #ececec;
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  -webkit-overflow-scrolling: touch;
}

.mobile-label {
  display: none;
}

.data-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table thead tr {
  background: #f8f9fb;
}
.data-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666666;
  border-bottom: 1px solid #ececec;
}
.data-table thead .actions-header {
  text-align: right;
}
.data-table tbody tr {
  transition: background 0.15s ease;
}
.data-table tbody tr:hover {
  background: #fafafb;
}
.data-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid #f0f0f0;
}
.data-table tbody td {
  padding: 14px 18px;
  color: #202124;
  vertical-align: middle;
}
.data-table .col-id {
  color: #666666;
  font-size: 0.8rem;
  white-space: nowrap;
  width: 60px;
}
.data-table .col-name {
  width: 40%;
}
.data-table .col-country {
  color: #666666;
}
.data-table .col-actions {
  text-align: right;
  white-space: nowrap;
  width: 140px;
}

.brand-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #ef1b1b;
  color: #ffffff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  flex-shrink: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  overflow-y: auto;
  animation: backdropFadeIn 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes backdropFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.brand-modal-form {
  width: 100%;
  max-width: min(92vw, 540px);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(245, 184, 0, 0.15);
  overflow: hidden;
  animation: modalSlideUp 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.modal-header {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.6rem 1.15rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  flex-shrink: 0;
}

.modal-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.modal-badge-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
@media (max-width: 640px) {
  .modal-badge-group {
    flex: 1;
  }
}

.modal-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.22);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.08);
}

.modal-badge {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 9999px;
  color: #92400e;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .modal-badge {
    flex: 1;
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
  }
}

.modal-title-text {
  font-size: 1.25rem;
  font-weight: 850;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
  word-break: break-word;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
  transition: all 180ms ease;
  flex-shrink: 0;
}
.modal-close svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}
.modal-close:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  transform: rotate(90deg) scale(1.05);
}
.modal-close:focus-visible {
  outline: 2px solid #f5b800;
  outline-offset: 2px;
}

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 28px 24px 28px;
  border-top: 1px solid #ececec;
  flex-shrink: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.full {
  grid-column: 1/-1;
}
.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #202124;
}
.form-field input {
  padding: 10px 14px;
  border: 1px solid #ececec;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #ffffff;
  color: #202124;
  transition: border-color 0.2s ease;
  width: 100%;
}
.form-field input:focus {
  outline: none;
  border-color: #ef1b1b;
  box-shadow: 0 0 0 3px rgba(239, 27, 27, 0.1);
}
.form-field input.error {
  border-color: #c62828;
}

.field-error {
  font-size: 0.75rem;
  color: #c62828;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .admin-page {
    padding: 16px 12px;
  }
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .page-header .btn {
    width: 100%;
    justify-content: center;
  }
  .table-card {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }
  .data-table {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .data-table thead {
    display: none;
  }
  .data-table tbody {
    display: grid;
    gap: 0.85rem;
  }
  .data-table tbody tr {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    gap: 0.75rem;
    transition: transform 180ms ease, box-shadow 180ms ease;
  }
  .data-table tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  }
  .data-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: none !important;
  }
  .data-table tbody td.col-id {
    width: auto;
    font-weight: 700;
    color: #94a3b8;
    font-size: 0.75rem;
  }
  .data-table tbody td.col-name {
    width: 100%;
  }
  .data-table tbody td.col-country {
    width: 100%;
    font-size: 0.85rem;
  }
  .data-table tbody td.col-country .country-text {
    color: #64748b;
    font-weight: 500;
  }
  .data-table tbody td.col-actions {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-top: 0.5rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px dashed #e2e8f0 !important;
  }
  .data-table tbody td.col-actions .btn {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 42px !important;
    min-height: 42px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 0.6rem !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }
  .data-table tbody td.col-actions .btn-ghost {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
  }
  .data-table tbody td.col-actions .btn-ghost:hover, .data-table tbody td.col-actions .btn-ghost:active {
    background: #e2e8f0 !important;
    color: #0f172a !important;
  }
  .data-table tbody td.col-actions .btn-danger {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
  }
  .data-table tbody td.col-actions .btn-danger:hover, .data-table tbody td.col-actions .btn-danger:active {
    background: #fee2e2 !important;
    color: #b91c1c !important;
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .modal-body {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}
@media (max-width: 480px) {
  .page-title {
    font-size: 1.3rem;
  }
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .result-count {
    text-align: right;
  }
  .brand-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }
  .modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
    padding: 14px 18px 18px;
  }
  .modal-footer .btn {
    width: 100%;
    justify-content: center;
    height: 44px;
  }
}
.confirm-dialog {
  width: 100%;
  max-width: min(90vw, 420px);
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #fecaca;
  box-shadow: 0 20px 40px -15px rgba(220, 38, 38, 0.25), 0 0 0 1px rgba(220, 38, 38, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: modalSlideUp 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 480px) {
  .confirm-dialog {
    padding: 1.25rem 1rem;
    border-radius: 1rem;
  }
}

.confirm-icon-danger {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #fef2f2;
  border: 2px solid #fecaca;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.confirm-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.01em;
}

.confirm-subtitle {
  font-size: 0.9rem;
  color: #475569;
  margin: 0 0 1rem 0;
}
.confirm-subtitle strong {
  color: #0f172a;
}

.confirm-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 0.75rem;
  color: #b45309;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: left;
  margin-bottom: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}
.confirm-warning-box svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #d97706;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  width: 100%;
}
.confirm-actions .btn {
  flex: 1;
  justify-content: center;
  height: 42px;
  font-size: 0.88rem;
  border-radius: 0.65rem;
}
@media (max-width: 480px) {
  .confirm-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }
}

.btn-danger-solid {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.btn-danger-solid:hover {
  background: #b91c1c;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}
.btn-danger-solid:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
@charset "UTF-8";
.admin-layout {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
  grid-template-columns: 245px minmax(0, 1fr);
  background: #f5f4f2;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  overflow: hidden;
  flex-direction: column;
  border-right: 1px solid #e4dfdc;
  background: #ffffff;
  color: #292625;
}

.sidebar::before {
  width: 100%;
  height: 5px;
  flex: 0 0 auto;
  background: #f5b800;
  content: "";
}

.sidebar-brand {
  padding: 22px 18px 20px;
  border-bottom: 1px solid #eeeae7;
}

.sidebar-brand img {
  display: block;
  width: 170px;
  height: 58px;
  margin: 0 auto;
  object-fit: contain;
}

/* Dejamos únicamente el logo */
.sidebar-brand div {
  display: none;
}

.sidebar-menu {
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  gap: 4px;
  padding: 18px 12px;
}

.menu-label {
  margin: 15px 12px 6px;
  color: #99938f;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-menu a,
.sidebar-footer a,
.sidebar-footer button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #69635f;
  cursor: pointer;
  font: inherit;
  font-size: 0.77rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sidebar-menu a:hover,
.sidebar-footer a:hover,
.sidebar-footer button:hover {
  background: #f5f3f1;
  color: #292625;
  transform: translateX(2px);
}

.sidebar-menu a.active {
  background: #e91b23;
  color: #ffffff;
  box-shadow: 0 7px 17px rgba(211, 20, 27, 0.17);
}

.sidebar-menu svg,
.sidebar-footer svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.sidebar-footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 14px 12px 18px;
  border-top: 1px solid #eeeae7;
}

.sidebar-footer button {
  width: 100%;
}

.sidebar-footer button:hover {
  background: #fff0f0;
  color: #c9171e;
}

.admin-content {
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
}

.admin-topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid #e8e3e0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}

.topbar-left,
.topbar-right,
.profile {
  display: flex;
  align-items: center;
  min-width: 0;
}

.topbar-left {
  gap: 13px;
}

.topbar-left strong,
.topbar-left small,
.profile strong,
.profile small {
  display: block;
}

.topbar-left strong {
  color: #292625;
  font-size: 0.83rem;
}

.topbar-left small {
  margin-top: 2px;
  color: #928c88;
  font-size: 0.64rem;
}

.topbar-right {
  gap: 22px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #68625f;
  font-size: 0.66rem;
  font-weight: 750;
}

.system-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #29a95b;
  box-shadow: 0 0 0 4px rgba(41, 169, 91, 0.12);
}

.profile {
  gap: 10px;
  padding-left: 20px;
  border-left: 1px solid #ebe6e3;
}

.profile img {
  width: 38px;
  height: 38px;
  border: 2px solid #f5b800;
  border-radius: 50%;
  object-fit: cover;
}

.profile strong {
  color: #292625;
  font-size: 0.73rem;
}

.profile small {
  margin-top: 2px;
  color: #96908c;
  font-size: 0.59rem;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: #e91b23;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.1rem;
}

.admin-body {
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
}

.aside-overlay {
  display: none;
}

@media (max-width: 900px) {
  .admin-layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: -265px;
    width: min(245px, 100vw - 48px);
    height: 100dvh;
    transition: left 220ms ease;
  }
  .sidebar.open {
    left: 0;
  }
  .aside-overlay {
    position: fixed;
    z-index: 1900;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(30, 27, 26, 0.48);
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .system-status {
    display: none;
  }
}
@media (max-width: 560px) {
  .admin-topbar {
    height: 62px;
    padding: 0 14px;
  }
  .profile div,
  .topbar-left > div {
    display: none;
  }
  .topbar-right {
    gap: 8px;
  }
  .profile {
    padding-left: 0;
    border-left: 0;
  }
}
.admin-page {
  min-height: calc(100vh - 68px);
  padding: 32px 36px 42px;
}

.container-fluid {
  max-width: 1380px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}

.page-badge {
  display: block;
  margin-bottom: 7px;
  color: #d71920;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.page-title {
  margin: 0;
  color: #292625;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.page-description {
  margin: 8px 0 0;
  color: #77716d;
  font-size: 0.87rem;
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn-primary {
  background: #e91b23;
  color: #ffffff;
  box-shadow: 0 7px 17px rgba(211, 20, 27, 0.16);
}

.btn-primary:hover {
  background: #c9141b;
  box-shadow: 0 9px 20px rgba(211, 20, 27, 0.22);
  transform: translateY(-1px);
}

.loading-state {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #77716d;
  font-size: 0.85rem;
}

.spinner {
  width: 27px;
  height: 27px;
  border: 3px solid #e4dfdc;
  border-top-color: #e91b23;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(54, 41, 36, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.stat-card:hover {
  border-color: #d7d0cc;
  box-shadow: 0 9px 23px rgba(54, 41, 36, 0.09);
  transform: translateY(-2px);
}

.stat-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 7px;
  font-size: 1.15rem;
}

.stat-icon.products {
  background: #fde9ea;
}

.stat-icon.categories {
  background: #efeeeb;
}

.stat-icon.brands {
  background: #fff0b8;
}

.stat-icon.low-stock {
  background: #ffe3e3;
}

.stat-info {
  min-width: 0;
}

.stat-label {
  display: block;
  color: #817b77;
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-value {
  display: block;
  margin-top: 3px;
  color: #292625;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-card.alert .stat-value {
  color: #c9141b;
}

.stat-link {
  grid-column: 2;
  margin-top: -4px;
  color: #c9141b;
  font-size: 0.64rem;
  font-weight: 750;
  text-decoration: none;
}

.stat-link:hover {
  text-decoration: underline;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(275px, 0.75fr);
  gap: 20px;
}

.card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(54, 41, 36, 0.04);
}

.card-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 20px;
  border-bottom: 1px solid #ebe7e4;
}

.card-header h2 {
  margin: 0 0 3px;
  color: #292625;
  font-size: 0.9rem;
  font-weight: 800;
}

.card-header p {
  margin: 0;
  color: #89837f;
  font-size: 0.65rem;
}

.card-header > a {
  color: #c9141b;
  font-size: 0.66rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.card-header > a:hover {
  text-decoration: underline;
}

.empty-state {
  padding: 42px 20px;
  color: #89837f;
  font-size: 0.82rem;
  text-align: center;
}

.movement-item {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid #f0edeb;
  transition: background 150ms ease;
}

.movement-item:hover {
  background: #faf9f7;
}

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

.movement-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
}

.movement-icon.entrada {
  background: #e4f5e9;
  color: #238044;
}

.movement-icon.salida {
  background: #fde9ea;
  color: #c9141b;
}

.movement-icon.ajuste {
  background: #fff0b8;
  color: #715600;
}

.movement-info {
  min-width: 0;
}

.movement-info strong {
  display: block;
  overflow: hidden;
  color: #373331;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movement-info small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #88817d;
  font-size: 0.63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movement-amount {
  text-align: right;
}

.movement-amount b {
  display: block;
  color: #292625;
  font-size: 0.82rem;
}

.movement-amount small {
  display: block;
  margin-top: 2px;
  color: #99928e;
  font-size: 0.58rem;
}

.reclamo-item {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid #f0edeb;
  transition: background 150ms ease;
}

.reclamo-item:hover {
  background: #faf9f7;
}

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

.reclamo-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  font-size: 1rem;
}

.reclamo-icon.pendiente {
  background: #fff3e0;
}

.reclamo-icon.en_proceso {
  background: #e3f2fd;
}

.reclamo-icon.resuelto {
  background: #e8f5e9;
}

.reclamo-icon.cerrado {
  background: #f5f5f5;
}

.reclamo-info {
  min-width: 0;
}

.reclamo-info strong {
  display: block;
  overflow: hidden;
  color: #373331;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reclamo-info small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #88817d;
  font-size: 0.63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reclamo-status {
  text-align: right;
}

.reclamo-status .status-badge {
  display: inline-block;
  margin-bottom: 2px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pendiente {
  background: #fff3e0;
  color: #e65100;
}

.status-proceso {
  background: #e3f2fd;
  color: #1976d2;
}

.status-resuelto {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-cerrado {
  background: #f5f5f5;
  color: #616161;
}

.reclamo-status small {
  display: block;
  color: #99928e;
  font-size: 0.58rem;
}

.stat-icon.reclamaciones {
  background: #e3f2fd;
}

.shortcut-item {
  display: grid;
  min-height: 68px;
  grid-template-columns: 37px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 18px;
  border-bottom: 1px solid #f0edeb;
  color: #292625;
  text-decoration: none;
  transition: background 150ms ease;
}

.shortcut-item:hover {
  background: #faf9f7;
}

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

.shortcut-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 6px;
  background: #fff0b8;
  color: #594600;
  font-size: 0.95rem;
}

.shortcut-item div {
  min-width: 0;
}

.shortcut-item b {
  display: block;
  color: #373331;
  font-size: 0.73rem;
}

.shortcut-item small {
  display: block;
  margin-top: 3px;
  color: #8b8581;
  font-size: 0.61rem;
}

.shortcut-item i {
  color: #c9141b;
  font-size: 0.85rem;
  font-style: normal;
  transition: transform 160ms ease;
}

.shortcut-item:hover i {
  transform: translateX(3px);
}

@media (max-width: 1050px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .admin-page {
    padding: 22px 15px 32px;
  }
  .page-header {
    align-items: stretch;
    flex-direction: column;
  }
  .btn-primary {
    align-self: flex-start;
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat-card {
    display: block;
    padding: 14px;
  }
  .stat-icon {
    width: 37px;
    height: 37px;
    margin-bottom: 12px;
  }
  .stat-link {
    display: inline-block;
    margin-top: 8px;
  }
  .movement-item {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 12px 14px;
  }
  .movement-amount {
    display: none;
  }
}
/* El host no agrega una caja visual entre la tarjeta, la barra y el panel. */
@charset "UTF-8";
/* El host no agrega una caja visual y conserva intacta la cuadrícula original. */
@charset "UTF-8";
/* El host no agrega una caja visual y conserva intacta la navegación original. */
@charset "UTF-8";
/* El host no agrega una caja visual alrededor del historial o su estado vacío. */
@charset "UTF-8";
/* El host no agrega una caja visual alrededor de la tabla o su estado vacío. */
/* Los botones siguen siendo hijos directos del contenedor flexible de acciones. */
@charset "UTF-8";
/* El host no crea una capa adicional entre la página y el overlay del diálogo. */
@charset "UTF-8";
/*
 * Hoja visual original del inventario.
 * El selector raíz permite que la misma paleta alcance los componentes hijos
 * sin filtrar reglas hacia otras páginas de la aplicación.
 */
app-inventory-page {
  --inventory-red: #ef1b1b;
  --inventory-red-dark: #c91515;
  --inventory-yellow: #f6a623;
  --inventory-green: #24b46b;
  --inventory-blue: #3567d8;
  --inventory-ink: #1b1b1b;
  --inventory-text: #60656d;
  --inventory-muted: #8b9098;
  --inventory-line: #e8eaee;
  --inventory-page: #f5f7fb;
  --inventory-surface: #ffffff;
  display: block;
}
app-inventory-page *,
app-inventory-page *::before,
app-inventory-page *::after {
  box-sizing: border-box;
}
app-inventory-page button,
app-inventory-page input,
app-inventory-page select,
app-inventory-page textarea {
  font: inherit;
}
app-inventory-page button:focus-visible,
app-inventory-page input:focus-visible,
app-inventory-page select:focus-visible,
app-inventory-page textarea:focus-visible {
  outline: 3px solid rgba(239, 27, 27, 0.18);
  outline-offset: 2px;
}
app-inventory-page .inventory-page {
  min-height: 100vh;
  padding: 32px;
  background: var(--inventory-page);
  color: var(--inventory-ink);
}
app-inventory-page {
  /* Header */
}
app-inventory-page .inventory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  animation: fade-up 420ms ease both;
}
app-inventory-page .inventory-header h1 {
  margin: 5px 0 0;
  font-size: clamp(1.7rem, 3vw, 2rem);
  line-height: 1.15;
}
app-inventory-page .inventory-header p {
  margin: 8px 0 0;
  color: var(--inventory-muted);
  font-size: 0.88rem;
}
app-inventory-page .inventory-header p span {
  color: var(--inventory-red);
  font-weight: 800;
}
app-inventory-page .page-kicker,
app-inventory-page .modal-kicker {
  color: var(--inventory-red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
app-inventory-page .new-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--inventory-red);
  box-shadow: 0 10px 24px rgba(239, 27, 27, 0.18);
  color: #fff;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
  transition: 200ms ease;
}
app-inventory-page .new-button svg {
  width: 20px;
  fill: currentColor;
}
app-inventory-page .new-button:hover:not(:disabled) {
  background: var(--inventory-red-dark);
  box-shadow: 0 14px 28px rgba(239, 27, 27, 0.24);
  transform: translateY(-2px);
}
app-inventory-page .new-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
app-inventory-page {
  /* Indicadores */
}
app-inventory-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
app-inventory-page .stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(232, 234, 238, 0.75);
  border-radius: 17px;
  background: var(--inventory-surface);
  box-shadow: 0 8px 26px rgba(20, 20, 20, 0.045);
  transition: 220ms ease;
  animation: fade-up 450ms ease both;
}
app-inventory-page .stat-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -35px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(61, 70, 82, 0.055);
  transition: transform 280ms ease;
}
app-inventory-page .stat-card:hover {
  box-shadow: 0 16px 36px rgba(20, 20, 20, 0.08);
  transform: translateY(-4px);
}
app-inventory-page .stat-card:hover::after {
  transform: scale(1.2);
}
app-inventory-page .stat-card:nth-child(1) {
  animation-delay: 0ms;
}
app-inventory-page .stat-card:nth-child(2) {
  animation-delay: 45ms;
}
app-inventory-page .stat-card:nth-child(3) {
  animation-delay: 90ms;
}
app-inventory-page .stat-card:nth-child(4) {
  animation-delay: 135ms;
}
app-inventory-page .stat-card:nth-child(5) {
  animation-delay: 180ms;
}
app-inventory-page .stat-icon {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 14px;
  background: #3d4652;
}
app-inventory-page .stat-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
app-inventory-page .stat-card.available .stat-icon {
  background: var(--inventory-green);
}
app-inventory-page .stat-card.reserved .stat-icon {
  background: var(--inventory-yellow);
}
app-inventory-page .stat-card.sold .stat-icon {
  background: var(--inventory-red);
}
app-inventory-page .stat-card.delivered .stat-icon {
  background: var(--inventory-blue);
}
app-inventory-page .stat-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
app-inventory-page .stat-info strong {
  margin-bottom: 6px;
  color: var(--inventory-ink);
  font-size: 1.65rem;
  line-height: 1;
}
app-inventory-page .stat-info span {
  overflow: hidden;
  color: #737880;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
app-inventory-page {
  /* Contenedor principal */
}
app-inventory-page .content-card {
  overflow: hidden;
  border: 1px solid rgba(232, 234, 238, 0.8);
  border-radius: 18px;
  background: var(--inventory-surface);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.045);
  animation: fade-up 480ms 120ms ease both;
}
app-inventory-page .view-tabs {
  display: flex;
  gap: 4px;
  padding: 9px 10px 0;
  border-bottom: 1px solid var(--inventory-line);
}
app-inventory-page .view-tabs button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
  border: 0;
  background: transparent;
  color: #777c84;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  transition: 180ms ease;
}
app-inventory-page .view-tabs button::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: var(--inventory-red);
  transform: scaleX(0);
  transition: transform 180ms ease;
}
app-inventory-page .view-tabs button span {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 99px;
  background: #f0f1f3;
  color: #676c74;
  font-size: 0.7rem;
  text-align: center;
}
app-inventory-page .view-tabs button:hover, app-inventory-page .view-tabs button.active {
  color: var(--inventory-red);
}
app-inventory-page .view-tabs button.active::after {
  transform: scaleX(1);
}
app-inventory-page .view-tabs button.active span {
  background: rgba(239, 27, 27, 0.09);
  color: var(--inventory-red);
}
app-inventory-page {
  /* Buscador y filtros */
}
app-inventory-page .toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid #f0f1f3;
}
app-inventory-page .search-box {
  position: relative;
  flex: 1;
}
app-inventory-page .search-box svg {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 18px;
  height: 18px;
  fill: #9aa0a6;
  pointer-events: none;
  transform: translateY(-50%);
}
app-inventory-page .search-box input {
  width: 100%;
  height: 48px;
  padding: 0 18px 0 48px;
  border: 1px solid #e3e5e9;
  border-radius: 13px;
  background: #fbfcfd;
  color: var(--inventory-ink);
  font-size: 0.9rem;
  outline: none;
  transition: 180ms ease;
}
app-inventory-page .search-box input:focus {
  border-color: var(--inventory-red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(239, 27, 27, 0.07);
}
app-inventory-page .search-box input::placeholder {
  color: #a1a6ad;
}
app-inventory-page .filter-button {
  position: relative;
  display: inline-flex;
  height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid #e3e5e9;
  border-radius: 13px;
  background: #fff;
  color: #565b63;
  cursor: pointer;
  font-weight: 800;
  transition: 180ms ease;
}
app-inventory-page .filter-button svg {
  width: 18px;
  fill: currentColor;
}
app-inventory-page .filter-button:hover, app-inventory-page .filter-button.active {
  border-color: rgba(239, 27, 27, 0.35);
  background: rgba(239, 27, 27, 0.035);
  color: var(--inventory-red);
}
app-inventory-page .filter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--inventory-red);
  box-shadow: 0 0 0 3px rgba(239, 27, 27, 0.12);
}
app-inventory-page .filters-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  align-items: end;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--inventory-line);
  background: #fafbfc;
  animation: filters-in 180ms ease both;
}
app-inventory-page .filters-panel label {
  display: grid;
  gap: 7px;
}
app-inventory-page .filters-panel label > span {
  color: #656a72;
  font-size: 0.76rem;
  font-weight: 800;
}
app-inventory-page .filters-panel select {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid #dfe2e7;
  border-radius: 10px;
  background: #fff;
  color: #3e434a;
  outline: none;
}
app-inventory-page .filters-panel select:focus {
  border-color: var(--inventory-red);
}
app-inventory-page .clear-button {
  height: 43px;
  padding: 0 16px;
  border: 1px solid #dedfe3;
  border-radius: 10px;
  background: #fff;
  color: #5b6067;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  transition: 180ms ease;
}
app-inventory-page .clear-button:hover:not(:disabled) {
  border-color: var(--inventory-red);
  color: var(--inventory-red);
}
app-inventory-page .clear-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
app-inventory-page {
  /* Tablas */
}
app-inventory-page .table-wrapper {
  width: 100%;
  overflow-x: auto;
}
app-inventory-page .inventory-table {
  width: 100%;
  border-collapse: collapse;
}
app-inventory-page .inventory-table th {
  padding: 15px 17px;
  border-bottom: 1px solid var(--inventory-line);
  background: #fafafa;
  color: #71767e;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
app-inventory-page .inventory-table td {
  padding: 16px 17px;
  border-bottom: 1px solid #f0f1f3;
  color: #444950;
  font-size: 0.84rem;
  vertical-align: middle;
}
app-inventory-page .inventory-table tbody tr {
  transition: background-color 160ms ease;
}
app-inventory-page .inventory-table tbody tr:hover {
  background: #fafbfd;
}
app-inventory-page .inventory-table tbody tr:last-child td {
  border-bottom: 0;
}
app-inventory-page .product-table {
  min-width: 1040px;
}
app-inventory-page .history-table {
  min-width: 1160px;
}
app-inventory-page .actions-heading {
  min-width: 330px;
}
app-inventory-page .product-cell {
  display: flex;
  min-width: 220px;
  align-items: center;
  gap: 12px;
}
app-inventory-page .product-cell strong,
app-inventory-page .product-cell small {
  display: block;
}
app-inventory-page .product-cell strong {
  max-width: 260px;
  overflow: hidden;
  margin-bottom: 4px;
  color: #292d32;
  text-overflow: ellipsis;
  white-space: nowrap;
}
app-inventory-page .product-cell small {
  color: #969ba2;
  font-size: 0.72rem;
}
app-inventory-page .product-cell.compact {
  min-width: 190px;
}
app-inventory-page .product-cell.compact .product-avatar {
  width: 38px;
  height: 38px;
  font-size: 0.9rem;
}
app-inventory-page .product-avatar {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--inventory-red), #c71616);
  box-shadow: 0 7px 15px rgba(239, 27, 27, 0.16);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}
app-inventory-page .type-badge,
app-inventory-page .publish-badge,
app-inventory-page .state-badge,
app-inventory-page .movement-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  font-size: 0.69rem;
  font-weight: 900;
  white-space: nowrap;
}
app-inventory-page .type-badge {
  padding: 6px 10px;
  background: #f0f2f5;
  color: #555b64;
}
app-inventory-page .publish-badge {
  padding: 6px 10px;
  background: #e7f8ef;
  color: #1d8b4b;
}
app-inventory-page .publish-badge--off {
  background: #f0f1f3;
  color: #777c84;
}
app-inventory-page .state-badge,
app-inventory-page .movement-badge {
  padding: 7px 11px;
}
app-inventory-page .state-badge--disponible {
  background: #e7f8ef;
  color: #1d8b4b;
}
app-inventory-page .state-badge--reservado {
  background: #fff4d9;
  color: #a36900;
}
app-inventory-page .state-badge--vendido {
  background: #fdecec;
  color: #c93636;
}
app-inventory-page .state-badge--entregado {
  background: #eaf0ff;
  color: #315fd8;
}
app-inventory-page .state-badge--agotado {
  background: #eef0f3;
  color: #646a73;
}
app-inventory-page .movement--entrada {
  background: #e7f8ef;
  color: #1d8b4b;
}
app-inventory-page .movement--reserva {
  background: #fff4d9;
  color: #9c6500;
}
app-inventory-page .movement--liberacion {
  background: #edf7f3;
  color: #267b5b;
}
app-inventory-page .movement--venta {
  background: #fdecec;
  color: #c93636;
}
app-inventory-page .movement--entrega {
  background: #eaf0ff;
  color: #315fd8;
}
app-inventory-page .movement--salida {
  background: #fff0ee;
  color: #d24436;
}
app-inventory-page .movement--ajuste {
  background: #eeeaff;
  color: #6744c4;
}
app-inventory-page .stock-value {
  color: #1f7f49;
  font-size: 1rem;
}
app-inventory-page .stock-value--zero {
  color: var(--inventory-red);
}
app-inventory-page .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
app-inventory-page .action-button {
  min-height: 33px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 900;
  transition: 160ms ease;
}
app-inventory-page .action-button:hover:not(:disabled) {
  box-shadow: 0 6px 14px rgba(30, 35, 40, 0.09);
  transform: translateY(-1px);
}
app-inventory-page .action-button:disabled {
  opacity: 0.5;
  cursor: wait;
}
app-inventory-page .action-button.primary {
  background: var(--inventory-red);
  color: #fff;
}
app-inventory-page .action-button.success {
  background: var(--inventory-green);
  color: #fff;
}
app-inventory-page .action-button.warning {
  background: #fff4d9;
  color: #986000;
  border-color: #f2d697;
}
app-inventory-page .action-button.danger {
  background: #fff0ee;
  color: #bd342d;
  border-color: #f5ceca;
}
app-inventory-page .action-button.neutral {
  background: #f0f2f5;
  color: #4f555d;
  border-color: #e1e4e8;
}
app-inventory-page .action-button.ghost {
  background: #fff;
  color: #686e76;
  border-color: #dfe2e6;
}
app-inventory-page .stock-change,
app-inventory-page .state-change {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
app-inventory-page .stock-change b,
app-inventory-page .state-change b {
  color: var(--inventory-red);
}
app-inventory-page .stock-change {
  padding: 5px 9px;
  border-radius: 8px;
  background: #f4f5f7;
  color: #3f444b;
  font-weight: 800;
}
app-inventory-page .state-change {
  font-size: 0.76rem;
}
app-inventory-page .quantity-change {
  color: #4c5158;
  font-weight: 900;
}
app-inventory-page .muted {
  color: #9ba0a7;
  font-size: 0.74rem;
}
app-inventory-page .observation-cell {
  max-width: 260px;
  color: #6d7279 !important;
  line-height: 1.5;
}
app-inventory-page {
  /* Estados de carga */
}
app-inventory-page .loading-state,
app-inventory-page .empty-state {
  display: flex;
  min-height: 320px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 20px;
  text-align: center;
}
app-inventory-page .loading-state p,
app-inventory-page .empty-state p {
  margin: 10px 0 0;
  color: var(--inventory-muted);
}
app-inventory-page .loading-state {
  gap: 16px;
}
app-inventory-page .loader {
  width: 42px;
  height: 42px;
  border: 4px solid #eceef1;
  border-top-color: var(--inventory-red);
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}
app-inventory-page .empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  fill: #d0d4d9;
}
app-inventory-page .empty-state h3 {
  margin: 0;
  color: #3e4349;
}
app-inventory-page {
  /* Modal */
}
app-inventory-page .modal-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: 28px;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(5px);
  animation: overlay-in 180ms ease both;
}
app-inventory-page .inventory-modal {
  width: min(100%, 700px);
  overflow: hidden;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.22);
  animation: modal-in 240ms ease both;
}
app-inventory-page .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  border-bottom: 1px solid #eceef1;
}
app-inventory-page .modal-header h2 {
  margin: 5px 0 0;
  color: #22262b;
  font-size: 1.45rem;
}
app-inventory-page .modal-header p {
  margin: 7px 0 0;
  color: var(--inventory-muted);
  font-size: 0.82rem;
}
app-inventory-page .close-button {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f2f3f5;
  color: #565b62;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: 180ms ease;
}
app-inventory-page .close-button:hover {
  background: var(--inventory-red);
  color: #fff;
  transform: rotate(6deg);
}
app-inventory-page .modal-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 28px 30px;
}
app-inventory-page .form-group {
  display: grid;
  gap: 8px;
}
app-inventory-page .form-group.full {
  grid-column: 1/-1;
}
app-inventory-page .form-group > span {
  color: #373c42;
  font-size: 0.82rem;
  font-weight: 800;
}
app-inventory-page .form-group > small {
  color: #999ea5;
  font-size: 0.69rem;
}
app-inventory-page .form-group input,
app-inventory-page .form-group select,
app-inventory-page .form-group textarea {
  width: 100%;
  border: 1px solid #e0e3e7;
  border-radius: 11px;
  background: #fff;
  color: #30353a;
  font-size: 0.86rem;
  outline: none;
  transition: 180ms ease;
}
app-inventory-page .form-group input:focus,
app-inventory-page .form-group select:focus,
app-inventory-page .form-group textarea:focus {
  border-color: var(--inventory-red);
  box-shadow: 0 0 0 4px rgba(239, 27, 27, 0.07);
}
app-inventory-page .form-group input,
app-inventory-page .form-group select {
  height: 46px;
  padding: 0 14px;
}
app-inventory-page .form-group textarea {
  min-height: 105px;
  padding: 13px 14px;
  resize: vertical;
}
app-inventory-page .movement-info {
  display: grid;
  grid-column: 1/-1;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 13px;
  font-size: 0.8rem;
  line-height: 1.5;
}
app-inventory-page .movement-info strong {
  font-size: 0.86rem;
}
app-inventory-page .movement-info--entrada {
  background: #e9f9ef;
  color: #1d7e47;
}
app-inventory-page .movement-info--salida {
  background: #fdecec;
  color: #bd3636;
}
app-inventory-page .movement-info--ajuste {
  background: #eeeaff;
  color: #5a3eb4;
}
app-inventory-page .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 21px 30px;
  border-top: 1px solid #eceef1;
  background: #fafbfc;
}
app-inventory-page .cancel-button,
app-inventory-page .save-button {
  min-height: 45px;
  padding: 0 21px;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 800;
  transition: 180ms ease;
}
app-inventory-page .cancel-button {
  border: 1px solid #dcdfe3;
  background: #fff;
  color: #555b62;
}
app-inventory-page .cancel-button:hover {
  background: #f2f3f5;
}
app-inventory-page .save-button {
  border: 1px solid var(--inventory-red);
  background: var(--inventory-red);
  color: #fff;
}
app-inventory-page .save-button:hover:not(:disabled) {
  background: var(--inventory-red-dark);
  transform: translateY(-1px);
}
app-inventory-page .save-button:disabled {
  opacity: 0.58;
  cursor: wait;
}
app-inventory-page {
  /* Scroll */
}
app-inventory-page .table-wrapper::-webkit-scrollbar {
  height: 8px;
}
app-inventory-page .table-wrapper::-webkit-scrollbar-track {
  background: #f3f4f6;
}
app-inventory-page .table-wrapper::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #cfd3d8;
}
app-inventory-page {
  /* Responsive */
}
@media (width <= 1250px) {
  app-inventory-page .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (width <= 900px) {
  app-inventory-page .inventory-page {
    padding: 20px;
  }
  app-inventory-page .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  app-inventory-page .filters-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width <= 640px) {
  app-inventory-page .inventory-page {
    padding: 15px;
  }
  app-inventory-page .inventory-header {
    align-items: stretch;
    flex-direction: column;
  }
  app-inventory-page .new-button {
    width: 100%;
  }
  app-inventory-page .stats-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  app-inventory-page .stat-card {
    padding: 16px;
  }
  app-inventory-page .toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 15px;
  }
  app-inventory-page .filter-button {
    justify-content: center;
  }
  app-inventory-page .filters-panel {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  app-inventory-page .view-tabs button {
    flex: 1;
    justify-content: center;
    padding-inline: 8px;
  }
  app-inventory-page .modal-overlay {
    align-items: end;
    padding: 12px;
  }
  app-inventory-page .inventory-modal {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    border-radius: 17px;
  }
  app-inventory-page .modal-header,
  app-inventory-page .modal-body,
  app-inventory-page .modal-footer {
    padding-right: 20px;
    padding-left: 20px;
  }
  app-inventory-page .modal-body {
    grid-template-columns: 1fr;
  }
  app-inventory-page .form-group.full,
  app-inventory-page .movement-info {
    grid-column: auto;
  }
  app-inventory-page .modal-footer {
    flex-direction: column-reverse;
  }
  app-inventory-page .cancel-button,
  app-inventory-page .save-button {
    width: 100%;
  }
}
app-inventory-page {
  /* Animaciones */
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes filters-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  app-inventory-page *,
  app-inventory-page *::before,
  app-inventory-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
app-inventory-page {
  /* ============================================
     MODAL DE CONFIRMACIÓN DE CICLO DE VIDA
     ============================================ */
}
app-inventory-page .lifecycle-confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 1rem;
  overflow-y: auto;
  animation: overlay-in 180ms ease;
}
app-inventory-page .lifecycle-confirm-dialog {
  width: 100%;
  max-width: min(90vw, 420px);
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: modal-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.28);
}
@media (max-width: 480px) {
  app-inventory-page .lifecycle-confirm-dialog {
    padding: 1.25rem 1rem 1rem;
    border-radius: 1rem;
  }
}
app-inventory-page {
  /* Variantes de color del ícono según acción */
}
app-inventory-page .lc-icon-wrap {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
app-inventory-page .confirm-primary .lc-icon-wrap {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  color: var(--inventory-blue);
}
app-inventory-page .confirm-warning .lc-icon-wrap {
  background: #fffbeb;
  border: 2px solid #fde68a;
  color: #d97706;
}
app-inventory-page .confirm-neutral .lc-icon-wrap {
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  color: #475569;
}
app-inventory-page .confirm-success .lc-icon-wrap {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  color: var(--inventory-green);
}
app-inventory-page .lc-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
app-inventory-page .lc-message {
  font-size: 0.9rem;
  color: #475569;
  margin: 0 0 1rem;
  line-height: 1.5;
}
app-inventory-page .lc-message strong {
  color: #0f172a;
}
app-inventory-page .lc-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 0.7rem;
  color: #92400e;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: left;
  margin-bottom: 1.35rem;
  width: 100%;
  box-sizing: border-box;
}
app-inventory-page .lc-warning-box svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #d97706;
}
app-inventory-page .lc-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}
@media (max-width: 480px) {
  app-inventory-page .lc-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }
}
app-inventory-page .lc-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 150ms ease, transform 120ms ease, box-shadow 150ms ease;
}
app-inventory-page .lc-btn:active {
  transform: scale(0.98);
}
@media (max-width: 480px) {
  app-inventory-page .lc-btn {
    height: 44px;
  }
}
app-inventory-page .lc-btn-cancel {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}
app-inventory-page .lc-btn-cancel:hover {
  background: #e2e8f0;
}
app-inventory-page .lc-btn-confirm {
  background: var(--inventory-red);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 27, 27, 0.28);
}
app-inventory-page .lc-btn-confirm:hover {
  background: var(--inventory-red-dark);
  box-shadow: 0 6px 16px rgba(239, 27, 27, 0.38);
}
app-inventory-page {
  /* Variantes de color para el botón de confirmación */
}
app-inventory-page .confirm-primary .lc-btn-confirm {
  background: var(--inventory-blue);
  box-shadow: 0 4px 12px rgba(53, 103, 216, 0.28);
}
app-inventory-page .confirm-primary .lc-btn-confirm:hover {
  background: #2850b8;
}
app-inventory-page .confirm-warning .lc-btn-confirm {
  background: #d97706;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.28);
}
app-inventory-page .confirm-warning .lc-btn-confirm:hover {
  background: #b45309;
}
app-inventory-page .confirm-neutral .lc-btn-confirm {
  background: #475569;
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.22);
}
app-inventory-page .confirm-neutral .lc-btn-confirm:hover {
  background: #334155;
}
app-inventory-page .confirm-success .lc-btn-confirm {
  background: var(--inventory-green);
  box-shadow: 0 4px 12px rgba(36, 180, 107, 0.28);
}
app-inventory-page .confirm-success .lc-btn-confirm:hover {
  background: #1a9457;
}
@charset "UTF-8";
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 4px;
}

.page-container {
  width: min(100% - var(--gutter) * 4, var(--container));
  margin-inline: auto;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h2 {
  margin: 12px 0 0;
  color: var(--ink-900);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

/* EYEBROW */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-yellow);
  transform-origin: left;
  transition: width var(--dur-base) var(--ease-out-smooth);
}
.eyebrow--light {
  color: var(--surface);
}

.section-heading:hover .eyebrow::before,
.promise-content:hover .eyebrow::before,
.company-card header:hover .eyebrow::before {
  width: 42px;
}

/* BOTONES */
.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out-smooth), background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.button::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-22deg);
  transition: left 600ms var(--ease-out-smooth);
}
.button span {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out-smooth);
}
.button:hover {
  transform: translateY(-3px);
}
.button:hover::before {
  left: 120%;
}
.button:hover span {
  transform: translateX(4px);
}
.button:active {
  transform: translateY(0) scale(0.98);
}
.button--primary {
  background: var(--brand-yellow-industrial);
  color: var(--ink-900);
  box-shadow: 0 10px 24px rgba(245, 184, 0, 0.24);
}
.button--primary:hover {
  background: var(--brand-yellow-soft);
  box-shadow: 0 15px 30px rgba(245, 184, 0, 0.32);
}
.button--outline {
  border-color: rgba(255, 255, 255, 0.58);
  color: var(--surface);
}
.button--outline:hover {
  border-color: var(--surface);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

/* HERO */
.about-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 105px;
  background: radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.13), transparent 22%), linear-gradient(118deg, var(--brand-red-deep) 0%, var(--brand-red-mid) 55%, var(--brand-red-bright) 100%);
}
.about-hero::before {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -280px;
  width: 600px;
  height: 600px;
  border: 90px solid rgba(255, 205, 0, 0.13);
  border-radius: 50%;
  animation: hero-ring 12s ease-in-out infinite alternate;
}
.about-hero::after {
  content: "";
  position: absolute;
  top: 35px;
  right: 9%;
  width: 110px;
  height: 110px;
  border: 2px solid rgba(255, 213, 77, 0.2);
  border-radius: 50%;
  animation: hero-circle 8s ease-in-out infinite;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: clamp(50px, 7vw, 95px);
}

.hero-copy {
  max-width: 620px;
  animation: fade-up 800ms var(--ease-out-smooth) both;
}
.hero-copy h1 {
  margin: 17px 0 22px;
  color: var(--surface);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-description {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
  animation: fade-up 800ms 180ms var(--ease-out-smooth) both;
}

.hero-visual {
  position: relative;
  margin: 0;
  animation: hero-visual-enter 950ms 120ms var(--ease-out-smooth) both;
}

.hero-image {
  height: 490px;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 35px 75px rgba(60, 0, 3, 0.34);
}
.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 17px;
  object-fit: cover;
  object-position: center;
  transition: transform 800ms var(--ease-out-smooth);
}
.hero-image:hover img {
  transform: scale(1.025);
}

.hero-badge {
  position: absolute;
  right: -20px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 330px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  animation: badge-enter 750ms 600ms var(--ease-out-smooth) both, badge-float 4s 1.4s ease-in-out infinite;
}
.hero-badge strong,
.hero-badge small {
  display: block;
}
.hero-badge strong {
  color: var(--ink-900);
  font-size: 0.88rem;
}
.hero-badge small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 0.75rem;
  line-height: 1.4;
}

.hero-badge-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-red-bright), var(--brand-red-deep));
  color: var(--surface);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.25);
}

/* DATOS RÁPIDOS */
.quick-facts {
  position: relative;
  z-index: 2;
  margin-top: -40px;
}

.quick-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
  animation: fade-up 750ms 450ms var(--ease-out-smooth) both;
}

.quick-facts article {
  position: relative;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 25px 28px;
  transition: background-color var(--dur-base) ease, transform var(--dur-base) var(--ease-out-smooth);
}
.quick-facts article + article {
  border-left: 1px solid var(--line);
}
.quick-facts article::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--brand-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out-smooth);
}
.quick-facts article:hover {
  background: var(--surface-muted);
}
.quick-facts article:hover::after {
  transform: scaleX(1);
}
.quick-facts article > span {
  color: var(--brand-red);
  font-size: 0.76rem;
  font-weight: 900;
}

.quick-facts strong,
.quick-facts small {
  display: block;
}

.quick-facts strong {
  color: var(--ink-900);
  font-size: 0.96rem;
}

.quick-facts small {
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 0.78rem;
}

/* ENCABEZADOS */
.section-heading {
  max-width: 650px;
}
.section-heading > p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--ink-500);
  line-height: 1.75;
}
.section-heading--center {
  margin-inline: auto;
  text-align: center;
}
.section-heading--center .eyebrow {
  justify-content: center;
}

/* QUIÉNES SOMOS */
.story-section {
  padding: 120px 0 105px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(60px, 9vw, 120px);
}

.story-content {
  position: relative;
  padding-left: 32px;
  border-left: 4px solid var(--brand-yellow);
}
.story-content p {
  margin: 0 0 19px;
  color: var(--ink-500);
  font-size: 1rem;
  line-height: 1.82;
}
.story-content p:last-child {
  margin-bottom: 0;
}
.story-content .story-lead {
  color: var(--ink-800);
  font-size: 1.18rem;
  font-weight: 600;
}

.public-sector-section {
  padding: 110px 0 90px;
  background: var(--surface);
}

.public-sector-section .section-heading {
  max-width: 720px;
  margin-inline: auto;
}

.public-sector-section .section-subtitle {
  margin-top: 18px;
  color: var(--ink-500);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 640px;
  margin-inline: auto;
}

.public-sector-lead {
  max-width: 760px;
  margin: 32px auto 40px;
  color: var(--ink-600);
  font-size: 1rem;
  line-height: 1.85;
}

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

.client-card {
  min-height: 220px;
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  transition: transform var(--dur-base) var(--ease-out-smooth), box-shadow var(--dur-base) ease;
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.09);
}

.client-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(220, 38, 38, 0.08);
  color: var(--brand-red);
}

.client-card h3 {
  margin: 0 0 12px;
  color: var(--ink-900);
  font-size: 1.1rem;
  line-height: 1.3;
}

.client-card p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.95rem;
  line-height: 1.8;
}

.osce-featured-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 24px;
  margin-top: 42px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(245, 184, 0, 0.08);
  border: 1px solid rgba(245, 184, 0, 0.18);
}

.osce-banner-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.osce-badge-tag {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(28, 28, 28, 0.06);
  color: var(--ink-800);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.osce-featured-banner h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  line-height: 1.08;
  color: var(--ink-900);
}

.osce-featured-banner p {
  margin: 0;
  color: var(--ink-700);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 620px;
}

.osce-trust-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--ink-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

.osce-trust-note svg {
  min-width: 22px;
  min-height: 22px;
  color: var(--brand-red);
  margin-top: 4px;
}

.osce-banner-logo-col {
  display: grid;
  align-items: center;
}

.osce-logo-card {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: 22px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 15px 32px rgba(15, 23, 42, 0.06);
}

.osce-logo-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
}

.osce-logo-caption {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .clients-grid {
    grid-template-columns: 1fr 1fr;
  }
  .osce-featured-banner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .public-sector-section {
    padding: 80px 0 70px;
  }
  .clients-grid {
    grid-template-columns: 1fr;
  }
  .osce-featured-banner {
    padding: 24px;
  }
  .osce-banner-logo-col {
    justify-items: center;
  }
}
@media (max-width: 640px) {
  .public-sector-lead {
    margin: 24px auto 32px;
    font-size: 0.98rem;
  }
  .osce-featured-banner {
    gap: 18px;
  }
}
/* OFERTA */
.offer-section {
  padding: 100px 0 110px;
  background: var(--surface-muted);
}

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

.offer-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: 30px 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform var(--dur-base) var(--ease-out-smooth), border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.offer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out-smooth);
}
.offer-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: rgba(245, 184, 0, 0.12);
  transition: transform 500ms var(--ease-out-smooth), background-color var(--dur-base) ease;
}
.offer-card:hover {
  border-color: rgba(220, 38, 38, 0.28);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.1);
  transform: translateY(-8px);
}
.offer-card:hover::before {
  transform: scaleX(1);
}
.offer-card:hover::after {
  background: rgba(245, 184, 0, 0.2);
  transform: scale(1.25);
}
.offer-card h3 {
  margin: 45px 0 14px;
  color: var(--ink-800);
  font-size: 1.3rem;
  line-height: 1.2;
}
.offer-card p {
  margin: 0 0 24px;
  color: var(--ink-500);
  font-size: 0.9rem;
  line-height: 1.7;
}
.offer-card a {
  position: absolute;
  z-index: 1;
  bottom: 28px;
  left: 27px;
  color: var(--brand-red);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}
.offer-card a span {
  display: inline-block;
  margin-left: 5px;
  transition: transform var(--dur-fast) var(--ease-out-smooth);
}
.offer-card a:hover span {
  transform: translateX(6px);
}

.offer-number {
  color: var(--brand-red);
  font-size: 0.76rem;
  font-weight: 900;
}

/* MISIÓN Y VISIÓN */
.direction-section {
  padding: 105px 0;
  background: linear-gradient(rgba(98, 0, 6, 0.93), rgba(98, 0, 6, 0.93)), url("/assets/images/hero/tractor-principal.png") center/cover fixed;
}
.direction-section .section-heading h2 {
  max-width: 640px;
  color: var(--surface);
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 45px;
}
.direction-grid article {
  padding: 37px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
  transition: transform var(--dur-base) var(--ease-out-smooth), border-color var(--dur-base) ease, background-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.direction-grid article:hover {
  border-color: rgba(255, 205, 0, 0.55);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 22px 45px rgba(40, 0, 2, 0.22);
  transform: translateY(-6px);
}
.direction-grid article > span {
  color: var(--brand-yellow-soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.direction-grid h3 {
  max-width: 500px;
  margin: 20px 0 13px;
  color: var(--surface);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.25;
}
.direction-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

/* VALORES */
.values-section {
  padding: 105px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 43px;
}
.values-grid article {
  position: relative;
  overflow: hidden;
  padding: 29px;
  border-top: 4px solid var(--brand-yellow);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--surface-muted);
  transition: transform var(--dur-base) var(--ease-out-smooth), background-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.values-grid article::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.06);
  transition: transform 500ms var(--ease-out-smooth);
}
.values-grid article:hover {
  background: var(--surface);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
  transform: translateY(-6px);
}
.values-grid article:hover::after {
  transform: scale(1.45);
}
.values-grid span {
  color: var(--brand-red);
  font-size: 0.75rem;
  font-weight: 900;
}
.values-grid h3 {
  margin: 28px 0 11px;
  color: var(--ink-800);
  font-size: 1.2rem;
}
.values-grid p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ANIMACIONES DE ENTRADA AL HACER SCROLL */
/* KEYFRAMES */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes hero-visual-enter {
  from {
    opacity: 0;
    transform: translateX(45px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes badge-enter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes badge-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes hero-ring {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(10deg) scale(1.07);
  }
}
@keyframes hero-circle {
  0%, 100% {
    opacity: 0.35;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.75;
    transform: translateY(18px) scale(1.08);
  }
}
@keyframes section-reveal {
  from {
    opacity: 0;
    transform: translateY(38px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* LAPTOP / TABLET HORIZONTAL */
@media (width <= 1024px) {
  .hero-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
    gap: 42px;
  }
  .offer-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .company-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
/* TABLET VERTICAL */
@media (width <= 820px) {
  .page-container {
    width: calc(100% - 40px);
  }
  .about-hero {
    padding: 70px 0 90px;
  }
  .hero-layout,
  .story-grid,
  .promise-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    max-width: 680px;
  }
  .hero-visual {
    max-width: 680px;
  }
  .hero-image {
    height: 430px;
  }
  .hero-badge {
    right: 18px;
  }
  .quick-facts {
    margin-top: -28px;
  }
  .quick-facts-grid {
    grid-template-columns: 1fr;
  }
  .quick-facts article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .story-section,
  .offer-section,
  .direction-section,
  .values-section,
  .promise-section,
  .company-section {
    padding: 80px 0;
  }
  .story-grid {
    gap: 35px;
  }
  .story-content {
    padding-left: 23px;
  }
  .direction-section {
    background-attachment: scroll;
  }
  .direction-grid {
    grid-template-columns: 1fr;
  }
  .promise-grid {
    gap: 45px;
  }
  .promise-image img {
    height: 430px;
  }
}
/* CELULAR GRANDE */
@media (width <= 640px) {
  .page-container {
    width: calc(100% - 32px);
  }
  .about-hero {
    padding: 58px 0 78px;
  }
  .hero-copy h1 {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-image {
    height: 320px;
    border-radius: 17px;
  }
  .hero-image img {
    border-radius: 11px;
  }
  .hero-badge {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: -25px 14px 0;
  }
  .quick-facts article {
    padding: 21px;
  }
  .story-section,
  .offer-section,
  .direction-section,
  .values-section,
  .promise-section,
  .company-section {
    padding: 65px 0;
  }
  .offer-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
  .offer-card {
    min-height: 285px;
  }
  .direction-grid article {
    padding: 28px 24px;
  }
  .promise-image img {
    height: 320px;
  }
  .company-card {
    padding: 27px 21px;
    border-radius: 15px;
  }
  .company-details {
    grid-template-columns: 1fr;
  }
  .company-details div {
    padding-inline: 0;
  }
  .company-details div:nth-child(odd) {
    border-right: 0;
  }
}
/* CELULAR PEQUEÑO */
@media (width <= 480px) {
  .page-container {
    width: calc(100% - 28px);
  }
  .about-hero {
    padding-top: 48px;
  }
  .about-hero::before {
    right: -260px;
    bottom: -330px;
  }
  .hero-copy h1 {
    font-size: clamp(2.25rem, 12vw, 3rem);
  }
  .hero-image {
    height: 280px;
  }
  .hero-badge {
    padding: 14px;
  }
  .hero-badge-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
  h2 {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }
  .story-content {
    padding-left: 18px;
  }
  .offer-card,
  .values-grid article {
    padding-inline: 23px;
  }
  .promise-image figcaption {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }
}
/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.page-container {
  width: min(100% - 48px, 1480px);
  margin-inline: auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 32px 0 24px;
  font-size: 0.82rem;
  color: #8b8380;
}

.breadcrumb a {
  color: #8b8380;
  text-decoration: none;
  transition: color 180ms ease;
}

.breadcrumb a:hover {
  color: #d71920;
}

.breadcrumb span {
  color: #d0c9c6;
}

.breadcrumb .current {
  color: #625d5a;
  font-weight: 550;
}

/* Header */
.legal-header {
  padding: 24px 0 40px;
  border-bottom: 2px solid #eadbd6;
  margin-bottom: 48px;
}

.legal-header h1 {
  margin: 0 0 12px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.last-updated {
  margin: 0;
  color: #8b8380;
  font-size: 0.82rem;
  font-weight: 550;
}

/* Contenido legal */
.legal-content {
  padding-bottom: 72px;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 20px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.legal-section p {
  margin: 0 0 16px;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  color: #1c1c1c;
  font-weight: 700;
}

.legal-section ul {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 0 0 0 24px;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section li {
  margin: 0;
}

.placeholder-text {
  padding: 48px;
  border: 2px dashed #eadbd6;
  border-radius: 12px;
  background: #faf9f7;
  color: #6f6a67;
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .page-container {
    width: calc(100% - 42px);
  }
  .breadcrumb {
    padding: 24px 0 20px;
  }
  .legal-header {
    padding: 20px 0 32px;
    margin-bottom: 32px;
  }
  .legal-content {
    padding-bottom: 48px;
  }
  .placeholder-text {
    padding: 32px 24px;
  }
}
.page-container {
  width: min(100% - 48px, 1480px);
  margin-inline: auto;
}

/* HERO SECTION */
.contact-hero {
  position: relative;
  padding: 28px 0 32px;
  background: linear-gradient(105deg, #a90c0c, #e71a1a 60%, #ff3a1f);
  color: #fff;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255, 184, 0, 0.06) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-subtitle {
  display: block;
  color: #f5b800;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* CONTACT SECTION  */
.contact-section {
  padding: 48px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  align-items: stretch;
  gap: 32px;
}

/* LEFT COLUMN: IMAGE */
.contact-image-wrapper {
  min-height: 380px;
}

.contact-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* RIGHT COLUMN: CONTACT CARD  */
.contact-card {
  padding: 32px 28px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8e4e0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.contact-card h2 {
  margin: 0 0 24px;
  color: #1a1a1a;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
}

/* CONTACT INFO LIST */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-item {
  padding: 16px 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #f0ebe7;
  border-left: 3px solid #e71a1a;
  transition: all 0.2s ease;
}

.contact-item:hover {
  border-color: #e71a1a;
  box-shadow: 0 2px 12px rgba(231, 26, 26, 0.06);
  transform: translateX(2px);
}

.contact-item-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.contact-item-value a {
  color: #e71a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item-value a:hover {
  color: #c41212;
}

.contact-item-sub {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

/* ADVISORS SECTION */
.advisors-section {
  margin: 24px 0;
  padding: 20px;
  border-radius: 10px;
  background: #fdfbf7;
  border: 1px solid #f2e9e1;
}

.advisors-section h3 {
  margin: 0 0 16px;
  color: #1a1a1a;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.advisors-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.advisor-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #eae2db;
  transition: all 0.2s ease;
}

.advisor-card:hover {
  border-color: #e71a1a;
  box-shadow: 0 4px 14px rgba(231, 26, 26, 0.08);
  transform: translateY(-1px);
}

.advisor-info {
  flex: 1;
  min-width: 0;
}

.advisor-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.advisor-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1a1a1a;
}

.advisor-phone-tag {
  padding: 2px 8px;
  border-radius: 4px;
  background: #f0ebe6;
  color: #c41212;
  font-size: 0.78rem;
  font-weight: 700;
}

.advisor-role {
  margin: 0;
  font-size: 0.8rem;
  color: #555;
  line-height: 1.35;
}

.advisor-wa-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #25d366;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.advisor-wa-button:hover {
  background: #1eb854;
  transform: scale(1.02);
}

/*  WHATSAPP BUTTON */
.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #169c45, #1eb854);
  box-shadow: 0 6px 20px rgba(22, 156, 69, 0.2);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22, 156, 69, 0.3);
  background: linear-gradient(135deg, #138a3c, #1aa34b);
}

.whatsapp-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ===== LOCATION SECTION ===== */
.location-section {
  padding: 48px 0 56px;
  background: #faf9f7;
}

.location-header {
  text-align: center;
  margin-bottom: 24px;
}

.location-header h2 {
  margin: 0 0 6px;
  color: #1a1a1a;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
}

.location-header p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.map-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.map {
  height: 280px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.google-maps-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 240px;
  margin: 16px auto 0;
  padding: 12px 20px;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.google-maps-button:hover {
  background: #333;
  transform: translateY(-1px);
}

.google-maps-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
}

/* ===== WHY CONTACT SECTION ===== */
.why-contact-section {
  padding: 40px 0 48px;
  background: #fff;
}

.why-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.why-card {
  padding: 20px 18px;
  border-radius: 10px;
  background: #faf9f7;
  border: 1px solid #e8e4e0;
  text-align: center;
  transition: all 0.3s ease;
}

.why-card:hover {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
  border-color: #e71a1a;
}

.why-card h3 {
  margin: 0 0 6px;
  color: #1a1a1a;
  font-size: 0.95rem;
  font-weight: 700;
}

.why-card p {
  margin: 0;
  color: #666;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 0.5fr 0.5fr;
  }
}
@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-image-wrapper {
    min-height: 280px;
    order: -1;
  }
  .contact-image {
    min-height: 280px;
  }
  .contact-card {
    padding: 28px 24px;
  }
  .why-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .page-container {
    width: calc(100% - 32px);
  }
  .contact-hero {
    padding: 24px 0 28px;
  }
  .contact-section {
    padding: 36px 0;
  }
  .contact-image-wrapper {
    min-height: 220px;
  }
  .contact-image {
    min-height: 220px;
  }
  .contact-card {
    padding: 24px 20px;
  }
  .contact-info-list {
    gap: 10px;
  }
  .contact-item {
    padding: 14px 16px;
  }
  .location-section {
    padding: 36px 0 44px;
  }
  .map {
    height: 220px;
  }
  .why-contact-section {
    padding: 32px 0 40px;
  }
  .why-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .contact-item {
    padding: 12px 14px;
  }
  .whatsapp-button {
    padding: 14px 20px;
    font-size: 0.9rem;
  }
}
.section-container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.brands-section {
  position: relative;
  padding: 24px 0 20px;
  overflow: hidden;
  background: var(--surface);
}
.brands-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100% - var(--gutter) * 4, var(--container));
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
}

.brands-header {
  margin-bottom: 16px;
  text-align: center;
}

.brands-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.brands-eyebrow::before, .brands-eyebrow::after {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-yellow);
}

.brands-carousel-wrapper {
  position: relative;
  padding-block: 4px;
}

.brands-carousel {
  position: relative;
  width: 100%;
  padding-block: 18px;
  margin-block: -4px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}
.brands-carousel.is-dragging {
  cursor: grabbing;
}
.brands-carousel.is-dragging .brand-island-card {
  pointer-events: none;
}
.brands-carousel.is-dragging .brands-track,
.brands-carousel.is-paused .brands-track {
  animation-play-state: paused !important;
}

.brands-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: brands-scroll 34s linear infinite;
}
.brands-track.is-manual {
  animation: none !important;
}

.brands-group {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}

.brand-island-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 110px;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05), 0 2px 6px rgba(15, 23, 42, 0.02);
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-island-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 74px;
  object-fit: contain;
  pointer-events: none;
  transition: transform var(--dur-base) ease;
}
.brand-island-card:hover {
  z-index: 50;
  transform: translateY(-6px) scale(1.04);
  border-color: color-mix(in oklab, var(--brand-yellow) 70%, transparent);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14), 0 6px 16px rgba(245, 184, 0, 0.22);
}
.brand-island-card.active-paused {
  z-index: 60;
  border-color: var(--brand-yellow);
  box-shadow: 0 16px 36px rgba(245, 184, 0, 0.3), 0 0 0 2px var(--brand-yellow);
  transform: translateY(-5px) scale(1.03);
}
.brand-island-card:hover img {
  transform: scale(1.04);
}

@keyframes brands-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (width <= 820px) {
  .brands-section {
    padding: 20px 0 16px;
  }
  .brands-carousel {
    padding-block: 14px;
  }
  .brands-group {
    gap: 26px;
    padding-right: 26px;
  }
  .brand-island-card {
    width: 185px;
    height: 95px;
    padding: 12px 18px;
    border-radius: 16px;
  }
  .brand-island-card img {
    max-height: 64px;
  }
}
@media (width <= 640px) {
  .brands-section {
    padding: 16px 0 14px;
  }
  .brands-group {
    gap: 18px;
    padding-right: 18px;
  }
  .brand-island-card {
    width: 155px;
    height: 82px;
    padding: 8px 14px;
    border-radius: 12px;
  }
  .brand-island-card img {
    max-height: 52px;
  }
  .brands-track {
    animation-duration: 26s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brands-track {
    animation: none;
  }
  .brands-carousel {
    overflow-x: auto;
    mask-image: none;
    mask: none;
  }
  .brand-island-card {
    transition-duration: 1ms;
  }
  .brand-island-card:hover {
    transform: none;
  }
}
.section-container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.categories-section {
  padding: 65px 0 70px;
  background: #fdfdfd;
}

.bento-header {
  margin-bottom: 40px;
}

.bento-title {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.bento-title .highlight-title {
  position: relative;
  display: inline-block;
}
.bento-title .highlight-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: var(--brand-red);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.15fr 2fr;
  grid-template-rows: 245px 255px;
  grid-template-areas: "tall small" "tall wide";
  gap: 24px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink-900);
  text-decoration: none;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card .bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.35) 50%, transparent 100%);
}
.bento-card .bento-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 26px 28px;
}
.bento-card .bento-card-title {
  margin: 0;
  color: var(--surface);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.bento-card .bento-card-sub {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.4;
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}
.bento-card:hover img {
  transform: scale(1.06);
}

.bento-tall {
  grid-area: tall;
}
.bento-tall .bento-card-title {
  font-size: 2rem;
}

.bento-small {
  grid-area: small;
}

.bento-wide {
  grid-area: wide;
}

@media (width <= 1024px) {
  .categories-section {
    padding: 48px 0 52px;
  }
  .bento-header {
    margin-bottom: 28px;
  }
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas: "tall tall" "small wide";
    gap: 18px;
  }
  .bento-tall {
    min-height: 320px;
  }
  .bento-tall .bento-card-title {
    font-size: 1.8rem;
  }
  .bento-small {
    min-height: 200px;
  }
  .bento-small .bento-card-title {
    font-size: 1.35rem;
  }
  .bento-wide {
    min-height: 210px;
  }
  .bento-wide .bento-card-title {
    font-size: 1.5rem;
  }
}
@media (width <= 640px) {
  .categories-section {
    padding: 36px 0 40px;
  }
  .bento-header {
    margin-bottom: 22px;
  }
  .bento-title {
    font-size: 1.85rem;
  }
  .bento-grid {
    gap: 12px;
  }
  .bento-card {
    border-radius: 18px;
  }
  .bento-card .bento-content {
    padding: 16px 18px;
  }
  .bento-card:active {
    transform: scale(0.98);
  }
  .bento-tall {
    min-height: 220px;
  }
  .bento-tall .bento-card-title {
    font-size: 1.5rem;
  }
  .bento-tall .bento-card-sub {
    margin-top: 4px;
    font-size: 0.85rem;
  }
  .bento-small {
    min-height: 165px;
  }
  .bento-small .bento-card-title {
    font-size: 1.18rem;
  }
  .bento-wide {
    min-height: 175px;
  }
  .bento-wide .bento-card-title {
    font-size: 1.3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bento-card {
    transition-duration: 1ms;
  }
  .bento-card:hover {
    transform: none;
  }
}
.section-container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.featured-section {
  padding: 65px 0 70px;
  background: #f8f9fb;
}

.featured-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  min-height: 0;
  margin-bottom: 30px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--border);
}

.featured-banner-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  min-width: 0;
}
.featured-banner-copy h2 {
  margin: 0;
  color: var(--ink-800);
  font-family: inherit;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
}
.featured-banner-copy p {
  max-width: 600px;
  margin: 10px 0 0;
  color: #686864;
  font-size: 0.95rem;
  line-height: 1.65;
}

.featured-banner-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted-strong);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.featured-banner-label::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--brand-yellow-industrial);
}

.featured-banner-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--brand-red-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}
.featured-banner-link span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: inherit;
  font-size: 1.15rem;
  transition: transform 180ms ease;
}
.featured-banner-link:hover {
  color: #111;
  transform: translateX(3px);
}
.featured-banner-link:hover span {
  transform: translateX(2px);
}
.featured-banner-link:focus-visible {
  border-radius: 5px;
  outline: 3px solid rgba(255, 205, 0, 0.5);
  outline-offset: 5px;
}

.featured-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.featured-product-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 20px;
  background: var(--ink-900);
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}
.featured-product-card:hover .card-image-wrapper img {
  transform: scale(1.06);
}

.card-image-wrapper {
  position: relative;
  display: block;
  width: 100%;
  height: 480px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}

.condition-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--brand-red);
  color: var(--surface);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}
.condition-badge.badge-nuevo {
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.card-content-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 28px 24px;
}

.category-name {
  color: var(--surface);
  font-size: clamp(1.8rem, 2.2vw, 2.3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.product-title {
  margin: 0 0 12px;
  color: var(--surface);
  font-size: clamp(1.35rem, 1.7vw, 1.75rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.btn-quote-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding-inline: 32px;
  border: 1px solid #eab308;
  border-radius: 12px;
  background: #ffcc00;
  color: #171717;
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 204, 0, 0.35);
  transition: background-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}
.btn-quote-yellow:hover {
  background: var(--brand-yellow);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 204, 0, 0.5);
}

@media (width <= 1024px) {
  .featured-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (width <= 820px) {
  .featured-section {
    padding: 48px 0 52px;
  }
  .featured-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 0 0 22px;
  }
  .featured-banner-link {
    align-self: flex-start;
  }
}
@media (width <= 640px) {
  .featured-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .card-image-wrapper {
    height: 310px;
  }
  .condition-badge {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    font-size: 0.62rem;
    border-radius: 6px;
  }
  .card-content-overlay {
    padding: 14px 12px;
    gap: 4px;
  }
  .category-name {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 800;
  }
  .product-title {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-style: normal;
    line-height: 1.25;
  }
  .btn-quote-yellow {
    height: 36px;
    padding-inline: 16px;
    border-radius: 8px;
    font-size: 0.82rem;
  }
  .featured-banner-copy h2 {
    font-size: 1.8rem;
  }
  .featured-banner-copy p {
    font-size: 0.9rem;
  }
}
@media (width <= 480px) {
  .featured-section {
    padding: 36px 0 40px;
  }
  .featured-banner {
    padding: 0 0 20px;
  }
  .featured-banner-copy h2 {
    font-size: 1.75rem;
  }
  .featured-banner-link {
    width: fit-content;
  }
  .featured-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .card-image-wrapper {
    height: 290px;
  }
  .condition-badge {
    top: 8px;
    left: 8px;
    padding: 3px 7px;
    font-size: 0.58rem;
    border-radius: 5px;
  }
  .card-content-overlay {
    padding: 12px 10px;
    gap: 3px;
  }
  .category-name {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 800;
  }
  .product-title {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-style: normal;
    line-height: 1.2;
  }
  .btn-quote-yellow {
    height: 34px;
    padding-inline: 14px;
    border-radius: 8px;
    font-size: 0.78rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .featured-product-card,
  .btn-quote-yellow {
    transition-duration: 1ms;
  }
  .featured-product-card:hover {
    transform: none;
  }
}
.section-container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.home-contact-section {
  padding: 30px 0 65px;
  background: var(--surface);
}

.home-contact-card {
  position: relative;
  padding: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-muted) 100%);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1), transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}
.home-contact-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--brand-red) 0%, var(--brand-yellow) 100%);
}

.home-contact-section.is-visible .home-contact-card {
  opacity: 1;
  transform: translateY(0);
}

.home-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.home-contact-section .contact-image-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--ink-900);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1) 70ms, transform 650ms cubic-bezier(0.16, 1, 0.3, 1) 70ms;
}
.contact-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-image-wrapper:hover img {
  transform: scale(1.05);
}

.home-contact-section.is-visible .contact-image-wrapper {
  opacity: 1;
  transform: scale(1);
}

.image-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.4) 0%, transparent 60%);
}

.image-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--surface);
  backdrop-filter: blur(10px);
}

.home-contact-copy-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.eyebrow-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand-red) 8%, transparent);
  color: var(--brand-red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.eyebrow-line {
  width: 40px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-yellow);
}

.contact-title {
  margin: 0 0 14px;
  color: var(--ink-900);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.18;
  text-wrap: balance;
}

.contact-description {
  margin: 0 0 24px;
  color: var(--ink-500);
  font-size: 1.02rem;
  line-height: 1.6;
}

.contact-feature-box {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 28px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1) 120ms, transform 520ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
}

.home-contact-section.is-visible .contact-feature-box {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon-circle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--brand-red) 10%, transparent);
  color: var(--brand-red);
}

.feature-copy {
  display: flex;
  flex-direction: column;
}

.feature-heading {
  color: var(--ink-900);
  font-size: 0.98rem;
  font-weight: 800;
}

.feature-sub {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 0.82rem;
}

.contact-actions {
  width: 100%;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1) 180ms, transform 520ms cubic-bezier(0.16, 1, 0.3, 1) 180ms;
}

.home-contact-section.is-visible .contact-actions {
  opacity: 1;
  transform: translateY(0);
}

.btn-contact-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 14px;
  background: #25d366;
  color: var(--surface);
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 250ms cubic-bezier(0.16, 1, 0.3, 1), background-color 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-contact-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
}

@media (width <= 1024px) {
  .home-contact-section {
    padding: 25px 0 45px;
  }
  .home-contact-card {
    padding: 32px 24px;
  }
  .home-contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .home-contact-section .contact-image-wrapper {
    height: 280px;
  }
  .btn-contact-whatsapp {
    width: 100%;
  }
}
@media (width <= 640px) {
  .home-contact-section {
    padding: 20px 0 35px;
  }
  .home-contact-card {
    padding: 24px 18px;
  }
  .home-contact-section .contact-image-wrapper {
    height: 220px;
  }
  .contact-title {
    font-size: 1.55rem;
  }
  .contact-feature-box {
    gap: 12px;
    padding: 14px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-contact-card,
  .contact-image-wrapper,
  .contact-feature-box,
  .contact-actions,
  .btn-contact-whatsapp {
    transition-duration: 1ms;
  }
  .home-contact-card:hover,
  .contact-image-wrapper:hover,
  .contact-feature-box:hover,
  .contact-actions:hover,
  .btn-contact-whatsapp:hover {
    transform: none;
  }
}
.section-container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid transparent;
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
  border-radius: 0.375rem;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 540px;
  background: radial-gradient(circle at 85% 40%, rgba(245, 184, 0, 0.11), transparent 33%), linear-gradient(125deg, #f5f5f5 0%, var(--surface) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 59%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%), linear-gradient(120deg, var(--brand-red-deep) 0%, var(--brand-red-mid) 52%, var(--brand-red-bright) 100%);
  clip-path: polygon(0 0, 88% 0, 70% 100%, 0 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  left: 55%;
  width: 13px;
  background: var(--brand-yellow);
  transform: skewX(-10deg);
  transform-origin: top;
}

.hero-container {
  position: relative;
  display: grid;
  grid-template-columns: 47% 53%;
  align-items: center;
  width: min(100% - var(--gutter) * 2, var(--container));
  min-height: 540px;
  margin-inline: auto;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 590px;
  padding: 40px 20px 40px 0;
  color: var(--surface);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--brand-yellow-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-yellow);
}

.hero h1 {
  max-width: 580px;
  margin: 0;
  color: var(--surface);
  font-size: clamp(2.5rem, 5vw, 5.1rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-description,
.hero-secondary-description {
  max-width: 520px;
  line-height: 1.6;
}

.hero-description {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.hero-feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #e4aa00;
}

.check-icon {
  color: #ffcd00;
  font-weight: bold;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.hero-social-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-social-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: var(--surface);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.hero-social-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}
.hero-social-btn:hover, .hero-social-btn:focus-visible {
  border-color: var(--brand-yellow);
  background: var(--brand-yellow);
  color: #171717;
  box-shadow: 0 8px 20px rgba(245, 184, 0, 0.35);
  transform: translateY(-2px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 54px;
  padding-inline: 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--dur-fast) ease, color var(--dur-fast) ease, background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--brand-yellow);
  color: #171717;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}
.button-primary:hover {
  background: #ffcb28;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}
.button-primary span {
  font-size: 1.25rem;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  color: var(--surface);
  backdrop-filter: blur(8px);
}
.button-secondary:hover {
  border-color: var(--surface);
  background: var(--surface);
  color: #a50b0b;
}

.hero-machinery {
  position: relative;
  z-index: 3;
  isolation: isolate;
  width: 100%;
  height: 620px;
}

.visual-circle {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.visual-circle-one {
  top: 74px;
  right: -82px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(70, 70, 70, 0.12);
  background: rgba(255, 255, 255, 0.52);
}

.visual-circle-two {
  top: 165px;
  right: 18px;
  width: 290px;
  height: 290px;
  border: 42px solid rgba(245, 184, 0, 0.09);
}

.machine {
  position: absolute;
  margin: 0;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18), 0 6px 16px rgba(0, 0, 0, 0.09);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
.machine img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.machine-main {
  z-index: 3;
  top: 120px;
  right: 0;
  width: min(92%, 610px);
  height: 420px;
  overflow: visible;
  box-shadow: 0 32px 65px rgba(0, 0, 0, 0.22), 0 8px 22px rgba(0, 0, 0, 0.11);
}
.machine-main:hover {
  transform: translateY(-5px);
  box-shadow: 0 38px 72px rgba(0, 0, 0, 0.25), 0 10px 25px rgba(0, 0, 0, 0.13);
}
.machine-main figcaption {
  position: absolute;
  z-index: 6;
  right: 18px;
  bottom: 18px;
  min-width: 225px;
  padding: 15px 19px;
  border-left: 5px solid var(--brand-yellow);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}
.machine-main figcaption small,
.machine-main figcaption strong {
  display: block;
}
.machine-main figcaption small {
  margin-bottom: 5px;
  color: #858585;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.machine-main figcaption strong {
  color: #1e1e1e;
  font-size: 1rem;
}

.machine-secondary {
  z-index: 5;
  top: 43px;
  right: 28px;
  width: 225px;
  height: 145px;
  transform: rotate(1.5deg);
}

.machine-implement {
  z-index: 5;
  bottom: 25px;
  left: 0;
  width: 205px;
  height: 140px;
  transform: rotate(-2deg);
}

.machine-secondary:hover,
.machine-implement:hover {
  transform: rotate(0deg) translateY(-5px);
}

.hero-bottom-line {
  position: absolute;
  z-index: 10;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-yellow) 0 18%, #d41111 18% 65%, #222222 65% 100%);
}

@media (width <= 1024px) {
  .hero-container {
    grid-template-columns: 50% 50%;
  }
  .hero::before {
    width: 68%;
  }
  .hero-machinery {
    height: 590px;
  }
  .machine-main {
    top: 135px;
    right: -35px;
    width: 98%;
    height: 390px;
  }
  .machine-secondary {
    top: 65px;
    right: 0;
    width: 190px;
    height: 120px;
  }
  .machine-implement {
    bottom: 25px;
    left: -5px;
    width: 175px;
    height: 115px;
  }
}
@media (width <= 820px) {
  .hero {
    min-height: auto;
  }
  .hero::before {
    width: 100%;
    height: 65%;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  }
  .hero::after {
    top: 61%;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 8px;
    transform: rotate(-3deg);
  }
  .hero-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content {
    max-width: 650px;
    padding: 35px 0 30px;
  }
  .hero h1 {
    font-size: clamp(2.7rem, 12vw, 4.5rem);
  }
  .hero-machinery {
    height: 520px;
  }
  .machine-main {
    top: 80px;
    right: 50%;
    width: min(100%, 650px);
    height: 365px;
    transform: translateX(50%);
  }
  .machine-main:hover {
    transform: translateX(50%) translateY(-4px);
  }
  .machine-secondary {
    top: 20px;
    right: 8px;
    width: 185px;
    height: 118px;
  }
  .machine-implement {
    bottom: 10px;
    left: 5px;
    width: 170px;
    height: 112px;
  }
}
@media (width <= 640px) {
  .hero-content {
    padding-block: 24px 20px;
  }
  .hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }
  .hero-description {
    font-size: 0.98rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .button {
    width: 100%;
  }
  .hero-machinery {
    height: 390px;
  }
  .machine-main {
    top: 65px;
    right: 50%;
    width: 100%;
    height: 275px;
    padding: 5px;
  }
  .machine-main figcaption {
    display: none;
  }
  .machine-secondary {
    top: 10px;
    right: 5px;
    width: 128px;
    height: 84px;
    padding: 4px;
  }
  .machine-implement {
    bottom: 10px;
    left: 5px;
    width: 122px;
    height: 82px;
    padding: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .machine,
  .button,
  .hero-social-btn {
    transition-duration: 1ms;
  }
  .machine:hover,
  .button:hover {
    transform: none;
  }
}
.section-container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.social-feed-section {
  padding: 60px 0 35px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-900);
}

.social-feed-title {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.social-feed-desc {
  margin-top: 12px;
  color: var(--ink-500);
  font-size: 1.02rem;
  line-height: 1.6;
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.reel-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms cubic-bezier(0.16, 1, 0.3, 1), border-color 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reel-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-yellow);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.15), 0 0 20px rgba(245, 184, 0, 0.25);
}
.reel-card:hover .reel-media-container img {
  transform: scale(1.07);
}
.reel-card:hover .reel-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--brand-red);
  color: var(--surface);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}

.reel-media-container {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}
.reel-media-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.4) 45%, rgba(15, 23, 42, 0.1) 100%);
}

.reel-top-bar {
  position: absolute;
  inset: 16px 16px auto 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}
.platform-tag.tiktok-tag {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.85);
  color: var(--surface);
}
.platform-tag.facebook-tag {
  background: #1877f2;
  color: var(--surface);
}
.platform-tag.youtube-tag {
  background: #ff0000;
  color: #ffffff;
}

.reel-play-btn {
  position: absolute;
  top: 45%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand-red);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  transition: transform 300ms ease, background-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}
.reel-play-btn svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
}
.reel-play-btn:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
}

.reel-bottom-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 22px 24px;
}

.reel-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.reel-user-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-yellow) 100%);
  color: var(--surface);
  font-size: 0.85rem;
  font-weight: 900;
}

.reel-username {
  display: block;
  color: var(--surface);
  font-size: 0.92rem;
  font-weight: 800;
}

.verified-check {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: var(--ink-900);
  font-size: 0.65rem;
  font-weight: 900;
}

.reel-location {
  display: block;
  margin-top: 1px;
  color: var(--ink-300);
  font-size: 0.76rem;
  font-weight: 600;
}

.reel-caption {
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: 0.88rem;
  line-height: 1.45;
}

.reel-audio-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-300);
  font-size: 0.76rem;
}
.reel-audio-row .audio-icon {
  font-size: 0.85rem;
}

.social-channels-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-muted);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.social-channels-title {
  display: block;
  color: var(--ink-900);
  font-size: 1.1rem;
  font-weight: 800;
}

.social-channels-sub {
  display: block;
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 0.88rem;
}

.social-channels-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-social-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.btn-social-follow:hover {
  transform: translateY(-3px);
}
.btn-social-follow.btn-tiktok-follow {
  background: var(--ink-900);
  color: var(--surface);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}
.btn-social-follow.btn-tiktok-follow:hover {
  background: #1e293b;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}
.btn-social-follow.btn-facebook-follow {
  background: #1877f2;
  color: var(--surface);
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.2);
}
.btn-social-follow.btn-facebook-follow:hover {
  background: #166fe5;
  box-shadow: 0 10px 25px rgba(24, 119, 242, 0.35);
}

@media (width <= 1024px) {
  .social-feed-section {
    padding: 40px 0 25px;
  }
  .reels-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .reel-media-container {
    height: 420px;
  }
}
@media (width <= 820px) {
  .social-channels-bar {
    flex-direction: column;
    gap: 20px;
    padding: 20px 24px;
    text-align: center;
  }
}
@media (width <= 640px) {
  .social-feed-section {
    padding: 30px 0 20px;
  }
  .reel-media-container {
    height: 380px;
  }
}
@media (width <= 480px) {
  .social-channels-buttons {
    flex-direction: column;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reel-card,
  .btn-social-follow {
    transition-duration: 1ms;
  }
  .reel-card:hover {
    transform: none;
  }
}
.section-container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}
.page-container {
  width: min(100% - 64px, 960px);
  margin-inline: auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 32px 0 24px;
  font-size: 0.82rem;
  color: #8b8380;
}

.breadcrumb a {
  color: #8b8380;
  text-decoration: none;
  transition: color 180ms ease;
}

.breadcrumb a:hover {
  color: #d71920;
}

.breadcrumb span {
  color: #d0c9c6;
}

.breadcrumb .current {
  color: #625d5a;
  font-weight: 550;
}

/* Header */
.legal-header {
  padding: 24px 0 40px;
  border-bottom: 2px solid #eadbd6;
  margin-bottom: 48px;
}

.legal-header h1 {
  margin: 0 0 12px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.last-updated {
  margin: 0;
  color: #8b8380;
  font-size: 0.82rem;
  font-weight: 550;
}

/* Contenido legal */
.legal-content {
  padding-bottom: 72px;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 20px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.legal-section p {
  margin: 0 0 16px;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  color: #1c1c1c;
  font-weight: 700;
}

.legal-section ul {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 0 0 0 24px;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section li {
  margin: 0;
}

.placeholder-text {
  padding: 48px;
  border: 2px dashed #eadbd6;
  border-radius: 12px;
  background: #faf9f7;
  color: #6f6a67;
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .page-container {
    width: calc(100% - 32px);
  }
  .breadcrumb {
    padding: 24px 0 20px;
  }
  .legal-header {
    padding: 20px 0 32px;
    margin-bottom: 32px;
  }
  .legal-content {
    padding-bottom: 48px;
  }
  .placeholder-text {
    padding: 32px 24px;
  }
}
.page-container {
  width: min(100% - 64px, 960px);
  margin-inline: auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 32px 0 24px;
  font-size: 0.82rem;
  color: #8b8380;
}

.breadcrumb a {
  color: #8b8380;
  text-decoration: none;
  transition: color 180ms ease;
}

.breadcrumb a:hover {
  color: #d71920;
}

.breadcrumb span {
  color: #d0c9c6;
}

.breadcrumb .current {
  color: #625d5a;
  font-weight: 550;
}

/* Header */
.legal-header {
  padding: 24px 0 40px;
  border-bottom: 2px solid #eadbd6;
  margin-bottom: 48px;
}

.legal-header h1 {
  margin: 0 0 12px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.last-updated {
  margin: 0;
  color: #8b8380;
  font-size: 0.82rem;
  font-weight: 550;
}

/* Contenido legal */
.legal-content {
  padding-bottom: 72px;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 20px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.legal-section p {
  margin: 0 0 16px;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  color: #1c1c1c;
  font-weight: 700;
}

.legal-section ul {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 0 0 0 24px;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section li {
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .page-container {
    width: calc(100% - 32px);
  }
  .breadcrumb {
    padding: 24px 0 20px;
  }
  .legal-header {
    padding: 20px 0 32px;
    margin-bottom: 32px;
  }
  .legal-content {
    padding-bottom: 48px;
  }
  .placeholder-text {
    padding: 32px 24px;
  }
}
.page-container {
  width: min(100% - 64px, 960px);
  margin-inline: auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 32px 0 24px;
  font-size: 0.82rem;
  color: #8b8380;
}

.breadcrumb a {
  color: #8b8380;
  text-decoration: none;
  transition: color 180ms ease;
}

.breadcrumb a:hover {
  color: #d71920;
}

.breadcrumb span {
  color: #d0c9c6;
}

.breadcrumb .current {
  color: #625d5a;
  font-weight: 550;
}

/* Header */
.legal-header {
  padding: 24px 0 40px;
  border-bottom: 2px solid #eadbd6;
  margin-bottom: 48px;
}

.legal-header h1 {
  margin: 0 0 12px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

/* Contenido */
.legal-content {
  padding-bottom: 72px;
}

.sitemap-nav {
  max-width: 600px;
}

.sitemap-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-list li {
  margin: 0;
}

.sitemap-list a {
  display: block;
  padding: 16px 20px;
  border: 1px solid #eadbd6;
  border-radius: 8px;
  background: #faf9f7;
  color: #4a4a4a;
  font-size: 1rem;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.sitemap-list a:hover {
  background: #fff;
  border-color: #d71920;
  color: #d71920;
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
  .page-container {
    width: calc(100% - 32px);
  }
  .breadcrumb {
    padding: 24px 0 20px;
  }
  .legal-header {
    padding: 20px 0 32px;
    margin-bottom: 32px;
  }
  .legal-content {
    padding-bottom: 48px;
  }
}
.page-container {
  width: min(100% - 64px, 960px);
  margin-inline: auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 32px 0 24px;
  font-size: 0.82rem;
  color: #8b8380;
}

.breadcrumb a {
  color: #8b8380;
  text-decoration: none;
  transition: color 180ms ease;
}

.breadcrumb a:hover {
  color: #d71920;
}

.breadcrumb span {
  color: #d0c9c6;
}

.breadcrumb .current {
  color: #625d5a;
  font-weight: 550;
}

/* Header */
.legal-header {
  padding: 24px 0 40px;
  border-bottom: 2px solid #eadbd6;
  margin-bottom: 48px;
}

.legal-header h1 {
  margin: 0 0 12px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.last-updated {
  margin: 0;
  color: #8b8380;
  font-size: 0.82rem;
  font-weight: 550;
}

/* Contenido legal */
.legal-content {
  padding-bottom: 72px;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 20px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.legal-section p {
  margin: 0 0 16px;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  color: #1c1c1c;
  font-weight: 700;
}

.legal-section ul {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 0 0 0 24px;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section li {
  margin: 0;
}

.placeholder-text {
  padding: 48px;
  border: 2px dashed #eadbd6;
  border-radius: 12px;
  background: #faf9f7;
  color: #6f6a67;
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .page-container {
    width: calc(100% - 32px);
  }
  .breadcrumb {
    padding: 24px 0 20px;
  }
  .legal-header {
    padding: 20px 0 32px;
    margin-bottom: 32px;
  }
  .legal-content {
    padding-bottom: 48px;
  }
  .placeholder-text {
    padding: 32px 24px;
  }
}
.page-container {
  width: min(100% - 64px, 960px);
  margin-inline: auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 32px 0 24px;
  font-size: 0.82rem;
  color: #8b8380;
}

.breadcrumb a {
  color: #8b8380;
  text-decoration: none;
  transition: color 180ms ease;
}

.breadcrumb a:hover {
  color: #d71920;
}

.breadcrumb span {
  color: #d0c9c6;
}

.breadcrumb .current {
  color: #625d5a;
  font-weight: 550;
}

/* Header */
.legal-header {
  padding: 24px 0 40px;
  border-bottom: 2px solid #eadbd6;
  margin-bottom: 48px;
}

.legal-header h1 {
  margin: 0 0 12px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.last-updated {
  margin: 0;
  color: #8b8380;
  font-size: 0.82rem;
  font-weight: 550;
}

/* Contenido legal */
.legal-content {
  padding-bottom: 72px;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 20px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.legal-section p {
  margin: 0 0 16px;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  color: #1c1c1c;
  font-weight: 700;
}

.legal-section ul {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 0 0 0 24px;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section li {
  margin: 0;
}

.placeholder-text {
  padding: 48px;
  border: 2px dashed #eadbd6;
  border-radius: 12px;
  background: #faf9f7;
  color: #6f6a67;
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .page-container {
    width: calc(100% - 32px);
  }
  .breadcrumb {
    padding: 24px 0 20px;
  }
  .legal-header {
    padding: 20px 0 32px;
    margin-bottom: 32px;
  }
  .legal-content {
    padding-bottom: 48px;
  }
  .placeholder-text {
    padding: 32px 24px;
  }
}
@charset "UTF-8";
.catalog-container {
  width: min(100% - 32px, 1480px);
  margin-inline: auto;
}

/* ==========================================
   ENCABEZADO DEL CATÁLOGO
========================================== */
/* ==========================================
   ENCABEZADO DEL CATÁLOGO (HERO CON MAQUINARIA)
========================================== */
.catalog-hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0;
  border-bottom: 3px solid #f5b800;
  background-color: #090d16;
  background-image: url("/assets/images/hero/catalog-yellow-bg.webp");
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
}
.catalog-hero::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: #f5b800;
  content: "";
  z-index: 3;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #090d16 0%, rgba(9, 13, 22, 0.95) 38%, rgba(9, 13, 22, 0.68) 72%, rgba(9, 13, 22, 0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

.catalog-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

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

.catalog-hero h1 {
  margin: 0 0 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.6);
}
.catalog-hero h1 .highlight-yellow {
  color: #f5b800;
  text-shadow: 0 0 24px rgba(245, 184, 0, 0.45);
}

.hero-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(245, 184, 0, 0.14);
  border: 1px solid rgba(245, 184, 0, 0.45);
  color: #f5b800;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-mark {
  display: grid;
  width: 130px;
  height: 96px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-mark b,
.hero-mark small {
  display: block;
  line-height: 1;
}

.hero-mark b {
  align-self: end;
  color: #f5b800;
  font-size: 1.8rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.hero-mark small {
  align-self: start;
  color: #cbd5e1;
  font-size: 0.58rem;
  font-weight: 750;
}

/* ==========================================
   CONTENIDO
========================================== */
.catalog-section {
  min-height: 640px;
  padding: 24px 0 48px;
  background: #f6f7f5;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.sort-control,
.search-control {
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.sort-control:focus-within,
.search-control:focus-within {
  border-color: #c9161d;
  box-shadow: 0 0 0 4px rgba(201, 22, 29, 0.1);
}

.sort-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 14px;
  padding-right: 12px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}
.sort-control .select-chevron {
  width: 16px;
  height: 16px;
  color: #64748b;
  pointer-events: none;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), color 220ms ease;
  flex-shrink: 0;
}
.sort-control:focus-within .select-chevron {
  transform: rotate(180deg);
  color: #c9161d;
}

.sort-control small {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sort-control select,
.search-control input {
  border: 0;
  outline: 0;
  background: transparent;
}

.sort-control select {
  width: 100%;
  padding: 12px 6px 12px 10px;
  appearance: none;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
}

.select-chevron {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 0 14px 0 6px;
  color: #d71920;
  pointer-events: none;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms ease;
}

.sort-control:hover .select-chevron {
  color: #a90f15;
}

.sort-control:focus-within .select-chevron {
  transform: rotate(180deg);
  color: #d71920;
}

.search-control {
  gap: 12px;
  padding: 0 16px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.search-control svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: #64748b;
  transition: fill 180ms ease;
}

.search-control:focus-within svg {
  fill: #c9161d;
}

.search-control input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 600;
}

.search-control input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.mobile-filter-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: background 180ms ease, transform 180ms ease;
}
.mobile-filter-button:hover {
  background: #1e293b;
}

.filters-heading,
.apply-filter-button,
.filter-backdrop {
  display: none;
}

/* ==========================================
   FILTROS
========================================== */
.catalog-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}

.sidebar-filters {
  align-self: start;
  padding: 22px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.filter-group {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}
.filter-group:last-of-type {
  margin-bottom: 22px;
  padding-bottom: 0;
  border-bottom: 0;
}
.filter-group.disabled-group {
  opacity: 0.65;
}

.filter-group h2 {
  margin: 0 0 12px;
  font-family: inherit;
  color: #0f172a;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Píldoras / Chips de Categoría ── */
.category-pills {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.category-pills button,
.category-pills a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.category-pills button:hover:not(.active),
.category-pills a:hover:not(.active) {
  background: #edf2f7;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateX(3px);
}
.category-pills button.active,
.category-pills a.active {
  border-color: #c9161d;
  background: #c9161d;
  color: #ffffff;
  font-weight: 850;
  box-shadow: 0 4px 12px rgba(201, 22, 29, 0.22);
}
.category-pills button.active .check-icon,
.category-pills a.active .check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #ffffff;
}

/* ── Desplegables Selects Curvados ── */
.filter-select {
  position: relative;
}
.filter-select::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  content: "";
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease;
}
.filter-select:focus-within::after, .filter-select:active::after {
  transform: translateY(-20%) rotate(225deg);
  border-color: #c9161d;
}

.filter-group select {
  width: 100%;
  min-height: 42px;
  padding: 10px 38px 10px 14px;
  appearance: none;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.filter-group select:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: #ffffff;
}

.filter-group select:focus:not(:disabled) {
  border-color: #c9161d;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(201, 22, 29, 0.12);
}

.filter-group select:disabled {
  cursor: not-allowed;
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
}

.disabled-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: #94a3b8;
  font-style: italic;
}

.sidebar-filters .clear-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border: 1px solid #efc3c5;
  border-radius: 8px;
  background: #fff7f7;
  color: #c9151c;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

/* ==========================================
   TARJETAS DE PRODUCTO — Estilo Poster
========================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 420px;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #090d16;
  box-shadow: 0 8px 24px rgba(9, 13, 22, 0.18), 0 2px 6px rgba(9, 13, 22, 0.08);
  cursor: pointer;
  /* Optimizaciones de Rendimiento GPU */
  transform: translate3d(0, 0, 0);
  will-change: transform, box-shadow;
  contain: content;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease;
}

.product-card:hover {
  transform: translate3d(0, -6px, 0);
  box-shadow: 0 20px 50px rgba(9, 13, 22, 0.28), 0 6px 16px rgba(9, 13, 22, 0.14);
}

/* ── Imagen de fondo (poster) ── */
.product-image {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #090d16;
  flex: 1 1 auto;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

.product-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image > img {
  transform: scale(1.06);
}

.placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: #090d16;
  color: #475569;
  font-size: 2.3rem;
  font-weight: 950;
}

/* Overlay vignette completo: desvanecimiento sin costuras hacia #090d16 */
.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(9, 13, 22, 0.55) 0%, rgba(9, 13, 22, 0.05) 25%, rgba(9, 13, 22, 0.2) 50%, rgba(9, 13, 22, 0.85) 80%, rgb(9, 13, 22) 100%);
  pointer-events: none;
}

/* Badge de condición */
.condition {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #f5b800;
  color: #1a1500;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(245, 184, 0, 0.35);
}

/* ── Contenido flotante en la parte inferior de la foto ── */
.product-header-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 16px 14px 14px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.meta-type {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5b800;
}

.meta-brand {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55%;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.product-card:hover .meta-brand {
  background: rgba(245, 184, 0, 0.22);
  border-color: rgba(245, 184, 0, 0.55);
  box-shadow: 0 3px 12px rgba(245, 184, 0, 0.28);
}

.product-header-overlay h2 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.product-description {
  display: -webkit-box;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.65rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ── Zona oscura: atributos + CTA ── */
.product-footer {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  margin-top: auto;
  gap: 12px;
  padding: 14px;
  background: #090d16;
}

.product-facts {
  display: flex;
  gap: 6px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.product-facts div {
  flex: 1;
  min-width: 0;
  padding: 7px 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  text-align: center;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.product-card:hover .product-facts div {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 184, 0, 0.25);
}

.product-facts div:hover {
  background: rgba(245, 184, 0, 0.12) !important;
  border-color: rgba(245, 184, 0, 0.5) !important;
  transform: translateY(-1px);
}

.product-facts dt {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.48rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-facts dd {
  overflow: hidden;
  margin: 0;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-button {
  display: inline-flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(245, 184, 0, 0.6);
  border-radius: 8px;
  background: #f5b800;
  color: #11171b;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(245, 184, 0, 0.25);
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.detail-button:hover {
  background: #e5ac00;
  color: #090d16;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 184, 0, 0.45);
}

.detail-button:focus-visible {
  outline: 3px solid rgba(245, 184, 0, 0.6);
  outline-offset: 2px;
}

/* ==========================================
   ESTADOS
========================================== */
.state {
  display: grid;
  place-items: center;
  min-height: 350px;
  padding: 40px;
  border: 1px solid #e0e3e1;
  border-radius: 14px;
  background: #ffffff;
  color: #657075;
  text-align: center;
}

.state-svg-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  color: #c9161d;
  opacity: 0.85;
}
.state-svg-icon.error-svg-icon {
  color: #e11d48;
}

.state p {
  margin: 7px 0 16px;
}

.state button {
  min-height: 42px;
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  background: #d71920;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #e8ebe9;
  border-top-color: #d71920;
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.error-state {
  color: #952e32;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 34px;
}

.pagination button,
.pagination a {
  min-width: 38px;
  height: 38px;
  border: 1px solid #dce1de;
  border-radius: 8px;
  background: #ffffff;
  color: #465156;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination button.active,
.pagination a.active {
  border-color: #d71920;
  background: #d71920;
  color: #ffffff;
  font-weight: 900;
}

.pagination button:disabled,
.pagination a:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1050px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar {
    grid-template-columns: auto 1fr;
  }
  .search-control {
    grid-column: 1/-1;
  }
}
@media (max-width: 720px) {
  .catalog-container {
    width: calc(100% - 28px);
  }
  .clear-all-chips-btn {
    display: none !important;
  }
  .catalog-hero {
    padding: 30px 0;
  }
  .catalog-hero-content {
    display: block;
  }
  .catalog-hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }
  .catalog-hero p {
    font-size: 0.86rem;
  }
  .hero-mark {
    display: none;
  }
  .toolbar,
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 18px;
  }
  .search-control {
    grid-row: 1;
    grid-column: 1/-1;
  }
  .sort-control {
    grid-row: 2;
    grid-column: 1;
  }
  .mobile-filter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    grid-row: 2;
    grid-column: 2;
    min-width: 145px;
    justify-self: end;
    border: 1px solid #d8d6d0;
    border-radius: 9px;
    background: #ffffff;
    color: #373733;
    font-weight: 850;
  }
  .filter-backdrop {
    position: fixed;
    z-index: 2390;
    inset: 0;
    display: block;
    width: 100%;
    border: 0;
    background: rgba(10, 15, 17, 0.58);
  }
  .sidebar-filters {
    position: fixed;
    z-index: 2400;
    inset: 0 0 0 auto;
    display: flex;
    flex-direction: column;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: -18px 0 50px rgba(0, 0, 0, 0.22);
    transform: translateX(105%);
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .sidebar-filters.open {
    transform: none;
  }
  .filters-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    margin-bottom: 0;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    flex: 0 0 auto;
  }
  .filters-heading strong {
    font-size: 1.1rem;
  }
  .filters-heading button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  }
  .filters-heading button svg {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }
  .filters-heading button:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: scale(1.08);
  }
  .filters-body-scroll {
    flex: 1 1 auto;
    padding: 20px 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.05);
    flex: 0 0 auto;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .clear-button {
    flex: 1;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
  }
  .clear-button:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
  }
  .apply-filter-button {
    flex: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: #d71920;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 850;
    box-shadow: 0 4px 14px rgba(215, 25, 32, 0.25);
    cursor: pointer;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }
  .apply-filter-button:hover {
    background: #a90f15;
    box-shadow: 0 6px 18px rgba(201, 22, 29, 0.35);
    transform: translateY(-1px);
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .product-card,
  .skeleton-card {
    height: 280px;
  }
  .product-image {
    aspect-ratio: 1/1; /* Agrega ~20-25px de altura vertical en tarjetas móviles */
  }
  .product-header-overlay {
    padding: 36px 10px 4px;
    transform: translateY(10px);
  }
  .product-header-overlay h2 {
    font-size: 0.85rem;
    line-height: 1.25;
  }
  .product-description {
    display: none;
  }
  .meta-type {
    font-size: 0.52rem;
  }
  .meta-brand {
    padding: 2px 6px;
    font-size: 0.48rem;
    border-radius: 4px;
  }
  .product-footer {
    padding: 11px 10px;
  }
  .product-facts {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
  }
  .product-facts div:nth-child(n+3) {
    display: none;
  }
  .product-facts div {
    padding: 5px 2px;
    border-radius: 6px;
  }
  .product-facts dt {
    font-size: 0.42rem;
  }
  .product-facts dd {
    font-size: 0.58rem;
  }
  .condition {
    top: 7px;
    left: 7px;
    padding: 4px 6px;
    font-size: 0.48rem;
  }
  .detail-button {
    min-height: 34px;
    font-size: 0.62rem;
  }
}
@media (max-width: 460px) {
  .catalog-container {
    width: calc(100% - 22px);
  }
  .product-grid {
    gap: 9px;
  }
  .catalog-section {
    padding-top: 22px;
  }
  .sort-control small {
    display: none;
  }
  .sort-control select {
    width: 100%;
  }
  .pagination {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-image > img,
  .sidebar-filters {
    transition: none;
  }
  .spinner,
  .skeleton-shimmer {
    animation: none !important;
  }
}
/* ==========================================
   BARRA DE FILTROS ACTIVOS (CHIPS IMPECCABLE UI)
========================================== */
.active-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.active-filters-title {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 4px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.78rem;
  font-weight: 750;
}
.filter-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  margin-left: 2px;
  border: 0;
  border-radius: 50%;
  background: #cbd5e1;
  color: #0f172a;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}
.filter-chip button svg {
  display: block;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}
.filter-chip button:hover {
  background: #c9161d;
  color: #ffffff;
  transform: scale(1.1);
}

.clear-all-chips-btn {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #c9161d;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  text-decoration: underline;
}
.clear-all-chips-btn:hover {
  color: #990000;
}

/* ==========================================
   SKELETON CARDS SHIMMER LOADER
========================================== */
.skeleton-grid {
  margin-bottom: 30px;
}

.skeleton-card {
  height: 420px;
  border-radius: 16px;
  background: #0f172a;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.skeleton-media {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: #1e293b;
}

.skeleton-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line {
  border-radius: 6px;
  background-color: #1e293b;
}

.skeleton-meta {
  width: 45%;
  height: 12px;
}

.skeleton-title {
  width: 85%;
  height: 20px;
}

.skeleton-desc {
  width: 100%;
  height: 34px;
}

.skeleton-btn {
  width: 100%;
  height: 38px;
  margin-top: 4px;
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #1e293b 0%, #2d3f55 50%, #1e293b 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
/* ==========================================
   ESTADO VACÍO E INTERACTIVIDAD
========================================== */
.empty-catalog-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 40px;
}
.empty-catalog-state .state-icon {
  font-size: 3rem;
  margin-bottom: 14px;
}
.empty-catalog-state strong {
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.empty-catalog-state p {
  max-width: 480px;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}
.empty-catalog-state .state-clear-btn {
  padding: 12px 28px;
  border: 0;
  border-radius: 10px;
  background: #c9161d;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(201, 22, 29, 0.3);
  transition: transform 180ms ease, background-color 180ms ease;
}
.empty-catalog-state .state-clear-btn:hover {
  background: #ab0d13;
  transform: translateY(-2px);
}

.filter-backdrop {
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.6) !important;
}
.admin-product-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line-slate, #e2e8f0);
  border-radius: var(--r-lg, 0.75rem);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-product-card:hover {
  border-color: var(--line-slate-strong, #cbd5e1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}
.admin-product-card__media {
  margin-bottom: 0.625rem;
}
.admin-product-card__media-frame {
  background: var(--surface-slate, #f8fafc);
  border: 1px solid var(--line-slate, #e2e8f0);
  border-radius: var(--r-md, 0.5rem);
  height: 155px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.admin-product-card__media-img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  width: 100%;
}
.admin-product-card:hover .admin-product-card__media-img {
  transform: scale(1.04);
}
.admin-product-card__media-placeholder {
  align-items: center;
  background: var(--surface-slate-deep, #f1f5f9);
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  height: 100%;
  justify-content: center;
}
.admin-product-card__media-placeholder svg {
  stroke: currentColor;
}
.admin-product-card__media-placeholder span {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.admin-product-card__badge {
  border-radius: var(--r-sm, 0.25rem);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.1875rem 0.5rem;
  position: absolute;
  text-transform: uppercase;
  top: 0.5rem;
}
.admin-product-card__badge--condicion {
  background: #fef9c3;
  border: 1px solid #fef08a;
  color: #854d0e;
  left: 0.5rem;
}
.admin-product-card__badge--usado {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}
.admin-product-card__badge--reacondicionado {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}
.admin-product-card__badge--publicado {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #15803d;
  right: 0.5rem;
}
.admin-product-card__badge--borrador {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}
.admin-product-card__identity {
  margin-bottom: 0.625rem;
}
.admin-product-card__meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.admin-product-card__type {
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.admin-product-card__brand {
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--r-sm, 0.25rem);
  color: #334155;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.125rem 0.5rem;
  text-transform: uppercase;
}
.admin-product-card__title {
  color: #0f172a;
  display: -webkit-box;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0.25rem 0 0.125rem;
  overflow: hidden;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.admin-product-card__description {
  color: #64748b;
  font-size: 0.74rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-product-card__specs {
  border-block: 1px solid #f1f5f9;
  display: grid;
  gap: 0.375rem 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.625rem;
  padding: 0.5rem 0;
}
.admin-product-card__spec {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.admin-product-card__spec-label {
  color: #94a3b8;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-product-card__spec-value {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-product-card__spec-value--destacado {
  color: #15803d;
}
.admin-product-card__summary {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  display: flex;
  margin-bottom: 0.625rem;
  overflow: hidden;
}
.admin-product-card__summary-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0.375rem 0.625rem;
}
.admin-product-card__summary-cell--precio {
  background: #fafaf9;
  border-right: 1px solid #e7e5e4;
  flex: 1;
}
.admin-product-card__summary-cell--stock {
  align-items: center;
  background: #f8fafc;
  justify-content: center;
  min-width: 68px;
}
.admin-product-card__summary-label {
  color: #78716c;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-product-card__summary-value {
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.admin-product-card__actions {
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 0.625rem;
}
.admin-product-card__action {
  align-items: center;
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  display: inline-flex;
  flex: 1;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  gap: 0.3125rem;
  justify-content: center;
  min-height: 34px;
  padding: 0 0.5rem;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.admin-product-card__action:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}
.admin-product-card__action svg {
  flex-shrink: 0;
  stroke: currentColor;
}
.admin-product-card__action--ficha {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}
.admin-product-card__action--ficha:hover:not(:disabled) {
  background: #e0f2fe;
  border-color: #7dd3fc;
}
.admin-product-card__action--editar {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
}
.admin-product-card__action--editar:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.admin-product-card__action--eliminar {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}
.admin-product-card__action--eliminar:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #fca5a5;
}
.admin-product-list__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: stretch;
}
.admin-product-list__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3.5rem 1.5rem;
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 0.75rem;
  text-align: center;
  color: #4b5563;
  font-weight: 600;
}
.admin-product-list__state--empty {
  color: #6b7280;
}
.admin-product-list__state--empty svg {
  color: #9ca3af;
}
.admin-product-list__empty-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.admin-product-list__empty-subtitle {
  font-size: 0.875rem;
  font-weight: 400;
  color: #6b7280;
  margin: 0;
  max-width: 400px;
}
.admin-product-list__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.admin-product-list__placeholder {
  height: 380px;
  background: var(--surface-slate, #f8fafc);
  border: 1px dashed var(--line-slate, #e2e8f0);
  border-radius: var(--r-lg, 0.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-product-list__placeholder-pulse {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #cbd5e1;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
.form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}
.form__field label {
  color: #374151;
  font-size: 0.78rem;
  font-weight: 700;
}
.form__field input {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  color: #111827;
  font: inherit;
  font-size: 0.875rem;
  min-height: 42px;
  outline: none;
  padding: 0.625rem 0.75rem;
  transition: all 0.2s ease;
  width: 100%;
}
.form__field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form__field small {
  color: #dc2626;
  font-size: 0.68rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .form__grid {
    grid-template-columns: 1fr;
  }
}
.form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}
.form__field label {
  color: #374151;
  font-size: 0.78rem;
  font-weight: 700;
}
.form__field input {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  color: #111827;
  font: inherit;
  font-size: 0.875rem;
  min-height: 42px;
  outline: none;
  padding: 0.625rem 0.75rem;
  transition: all 0.2s ease;
  width: 100%;
}
.form__field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form__field small {
  color: #dc2626;
  font-size: 0.68rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .form__grid {
    grid-template-columns: 1fr;
  }
}
.eyebrow-badge {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 9999px;
  color: #92400e;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .eyebrow-badge {
    flex: 1;
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
  }
}

.button {
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s ease;
}
.button:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}
.button--cancel {
  background: #f3f4f6;
  color: #374151;
}
.button--cancel:hover {
  background: #e5e7eb;
}
.button--save {
  background: #2563eb;
  color: #ffffff;
}
.button--save:hover:not(:disabled) {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 1.25rem;
  animation: backdropFadeIn 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes backdropFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.product-modal {
  width: 100%;
  max-width: min(960px, 100% - 1.5rem);
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(245, 184, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 940px);
  animation: modalSlideUp 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
.product-modal__header {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.6rem 1.15rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.product-modal__header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.product-modal__badge-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.product-modal__avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.22);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.08);
}
.product-modal__title-text {
  font-size: 1.25rem;
  font-weight: 850;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
  word-break: break-word;
}
.product-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: all 180ms ease;
  flex-shrink: 0;
}
.product-modal__close svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}
.product-modal__close:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  transform: rotate(90deg) scale(1.06);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}
.product-modal__close:focus-visible {
  outline: 2px solid #f5b800;
  outline-offset: 2px;
}
.product-modal__body {
  display: grid;
  gap: 1.25rem;
  overflow-y: auto;
  padding: 1.5rem;
}
.product-modal__body > h3 {
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0;
  padding-bottom: 0.5rem;
  text-transform: uppercase;
}
.product-modal__footer {
  background: #ffffff;
  border-top: 1px solid #f3f4f6;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
}

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

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}
.form__field label {
  color: #374151;
  font-size: 0.78rem;
  font-weight: 700;
}
.form__field input,
.form__field select,
.form__field textarea {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  color: #111827;
  font: inherit;
  font-size: 0.875rem;
  min-height: 42px;
  outline: none;
  padding: 0.625rem 0.75rem;
  transition: all 0.2s ease;
  width: 100%;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form__field input:read-only,
.form__field select:read-only,
.form__field textarea:read-only {
  background: #f9fafb;
  color: #6b7280;
}
.form__field textarea {
  min-height: 86px;
  resize: vertical;
}
.form__field small {
  color: #6b7280;
  font-size: 0.68rem;
  line-height: 1.4;
}

.form__field--full {
  grid-column: 1/-1;
}

.form__error {
  color: #dc2626;
  font-size: 0.68rem;
  font-weight: 700;
}

.form__checkbox {
  align-items: center;
  align-self: flex-end;
  color: #374151;
  display: flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.5rem;
  min-height: 42px;
}
.form__checkbox input {
  accent-color: #2563eb;
  height: 18px;
  width: 18px;
}

.form__detail {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.repuesto-note {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.repuesto-note strong {
  color: #92400e;
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
}
.repuesto-note p {
  color: #78350f;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0.375rem 0 0;
}

@media (max-width: 640px) {
  .form__grid {
    grid-template-columns: 1fr;
  }
  .form__field--full {
    grid-column: auto;
  }
  .product-modal {
    width: 100%;
    max-height: 94vh;
    border-radius: 1.25rem;
  }
  .product-modal__header {
    padding: 1rem 1.15rem;
    gap: 0.75rem;
  }
  .product-modal__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.6rem;
  }
  .product-modal__avatar svg {
    width: 1.1rem;
    height: 1.1rem;
  }
  .product-modal__title-text {
    font-size: 1rem;
    max-width: calc(100vw - 140px);
  }
  .product-modal__body {
    padding: 1.15rem;
  }
  .product-modal__footer {
    flex-direction: column-reverse;
    padding: 1rem 1.15rem;
  }
  .product-modal__footer .button {
    width: 100%;
  }
}
.form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}
.form__field label {
  color: #374151;
  font-size: 0.78rem;
  font-weight: 700;
}
.form__field input,
.form__field select,
.form__field textarea {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  color: #111827;
  font: inherit;
  font-size: 0.875rem;
  min-height: 42px;
  outline: none;
  padding: 0.625rem 0.75rem;
  transition: all 0.2s ease;
  width: 100%;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form__field input:read-only,
.form__field select:read-only,
.form__field textarea:read-only {
  background: #f9fafb;
  color: #6b7280;
}
.form__field textarea {
  min-height: 86px;
  resize: vertical;
}
.form__field small {
  color: #6b7280;
  font-size: 0.68rem;
  line-height: 1.4;
}

.form__field--full {
  grid-column: 1/-1;
}

.form__error {
  color: #dc2626;
  font-size: 0.68rem;
  font-weight: 700;
}

.form__checkbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.form__checkbox:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}
.form__checkbox input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #cbd5e1;
  border-radius: 0.35rem;
  background-color: #ffffff;
  cursor: pointer;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  transition: all 180ms ease;
}
.form__checkbox input[type=checkbox]::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  background-color: #ffffff;
  transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
.form__checkbox input[type=checkbox]:checked {
  background-color: #dc2626;
  border-color: #dc2626;
}
.form__checkbox input[type=checkbox]:checked::before {
  transform: scale(1);
}
.form__checkbox input[type=checkbox]:focus-visible {
  outline: 2px solid #f5b800;
  outline-offset: 2px;
}
.form__checkbox:has(input:checked) {
  background: #fff5f5;
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
}

@media (max-width: 640px) {
  .form__grid {
    grid-template-columns: 1fr;
  }
  .form__field--full {
    grid-column: auto;
  }
}
.products-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: var(--surface-card, #ffffff);
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color, #e5e7eb);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
@media (min-width: 768px) {
  .products-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.products-toolbar__left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
@media (min-width: 640px) {
  .products-toolbar__left {
    flex-direction: row;
    align-items: center;
  }
}
.products-toolbar__search {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.products-toolbar__search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  color: #9ca3af;
  pointer-events: none;
}
.products-toolbar__input {
  width: 100%;
  padding: 0.625rem 0.75rem 0.625rem 2.5rem;
  font-size: 0.875rem;
  color: #1f2937;
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.products-toolbar__input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.products-toolbar__input::placeholder {
  color: #9ca3af;
}
.products-toolbar__filter-wrapper {
  min-width: 170px;
}
.products-toolbar__select {
  width: 100%;
  padding: 0.625rem 2rem 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.products-toolbar__select:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.products-toolbar__counter {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background-color: #f3f4f6;
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: #4b5563;
  white-space: nowrap;
}
.products-toolbar__counter-value {
  font-weight: 700;
  color: #111827;
}
.products-toolbar__counter-label {
  font-weight: 500;
}
.products-toolbar__right {
  display: flex;
  align-items: center;
}
.products-toolbar__create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #2563eb;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.products-toolbar__create-btn:hover:not(:disabled) {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}
.products-toolbar__create-btn:active:not(:disabled) {
  transform: translateY(0);
}
.products-toolbar__create-btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}
@charset "UTF-8";
/* ==========================================
   MODAL BACKDROP (IMPECCABLE GLASSMORPHISM)
========================================== */
.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: hidden;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  will-change: opacity, backdrop-filter;
  animation: backdropFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@media (max-width: 640px) {
  .detail-backdrop {
    padding: 0;
    place-items: end center;
  }
}

@keyframes backdropFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}
.detail-dialog {
  position: relative;
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity;
  animation: modalFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  /* SCROLLBAR MODAL PERSONALIZADO ELEGANTE E INTEGRADO DENTRO DE LOS BORDES REDONDEADOS */
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 22, 29, 0.4) transparent;
}
.detail-dialog::-webkit-scrollbar {
  width: 6px;
}
.detail-dialog::-webkit-scrollbar-track {
  margin: 20px 0;
  background: transparent;
}
.detail-dialog::-webkit-scrollbar-thumb {
  background-color: rgba(203, 213, 225, 0.75);
  border-radius: 999px;
}
.detail-dialog::-webkit-scrollbar-thumb:hover {
  background-color: #c9161d;
}
@media (max-width: 640px) {
  .detail-dialog {
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    animation: modalSlideUp 0.34s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* BOTÓN DE CIERRE FLOTANTE */
.close-button {
  position: absolute;
  z-index: 20;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  text-decoration: none;
  transition: all 0.25s ease;
}
.close-button:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: rotate(90deg) scale(1.05);
}
@media (max-width: 640px) {
  .close-button {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }
}

/* ESTRUCTURA PRINCIPAL DEL MODAL */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(330px, 0.85fr);
  gap: 28px;
  padding: 28px;
}
@media (max-width: 1050px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 20px 84px;
  }
}
@media (max-width: 640px) {
  .detail-layout {
    padding: 16px 14px 80px;
    gap: 16px;
  }
}

.product-information {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 640px) {
  .product-information {
    gap: 16px;
  }
}

/* ==========================================
   SECCIÓN DE GALERÍA (SIN DOBLE MARCO)
========================================== */
.gallery-section {
  display: block;
  width: 100%;
}

/* ==========================================
   ESPECIFICACIONES TÉCNICAS (AMARILLO INDUSTRIAL ELEGANTE Y PROFESIONAL)
========================================== */
.specifications-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}
@media (max-width: 640px) {
  .specifications-card {
    border-radius: 14px;
  }
}

/* FOTO DE FONDO BLUEPRINT ESPECIFICACIONES TÉCNICAS (VERTICAL FULL COVER) */
.specs-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.specs-hero-backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.42;
  filter: contrast(1.18) saturate(1.1);
}
.specs-hero-backdrop .specs-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0.75) 100%), linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, transparent 20%, transparent 80%, rgba(255, 255, 255, 0.85) 100%);
}

.specs-card-content {
  position: relative;
  z-index: 2;
}

.specs-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}
.specs-header .specs-header-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffcd00;
  color: #11171b;
  box-shadow: 0 4px 14px rgba(255, 205, 0, 0.35);
  flex-shrink: 0;
}
.specs-header .specs-header-icon svg {
  stroke: currentColor;
}
.specs-header .header-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  color: #64748b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.specs-header h3 {
  margin: 2px 0 0;
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}
@media (max-width: 640px) {
  .specs-header {
    padding: 16px;
    gap: 12px;
  }
  .specs-header .specs-header-icon {
    width: 38px;
    height: 38px;
  }
  .specs-header .specs-header-icon svg {
    width: 18px;
    height: 18px;
  }
  .specs-header h3 {
    font-size: 1.1rem;
  }
}

.specs-body {
  padding: 0;
  background: transparent;
}

.specs-description-card {
  padding: 18px 20px;
  background: rgba(248, 250, 252, 0.94);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (max-width: 640px) {
  .specs-description-card {
    padding: 14px 16px;
  }
}
.specs-description-card .description-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.specs-description-card .description-header .description-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
}
.specs-description-card .description-header .description-icon svg {
  stroke: currentColor;
}
.specs-description-card .description-header h4 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 850;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.specs-description-card .description-content {
  margin: 0;
  padding-left: 24px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.6;
  color: #334155;
  white-space: pre-line;
}
@media (max-width: 640px) {
  .specs-description-card .description-content {
    padding-left: 0;
    font-size: 0.88rem;
  }
}

.specs-dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}
@media (max-width: 640px) {
  .specs-dl-grid {
    grid-template-columns: 1fr;
  }
}

.spec-row-item {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  border-right: 1px solid rgba(241, 245, 249, 0.8);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: background 180ms ease;
}
.spec-row-item:hover {
  background: rgba(255, 255, 255, 0.88);
}
.spec-row-item:nth-child(2n) {
  border-right: none;
}
.spec-row-item:last-child:nth-child(odd) {
  grid-column: 1/-1;
  border-right: none;
}
@media (max-width: 640px) {
  .spec-row-item {
    border-right: none;
    padding: 12px 16px;
  }
}
.spec-row-item dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 850;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.spec-row-item dt .spec-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
}
.spec-row-item dt .spec-icon-box svg {
  stroke: currentColor;
}
.spec-row-item dd {
  margin: 0;
  padding-left: 23px;
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .spec-row-item dd {
    padding-left: 23px;
    font-size: 0.9rem;
  }
}

/* ==========================================
   SIDEBAR DE CONSULTA Y COTIZACIÓN POR WHATSAPP
========================================== */
.consultation-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}
@media (max-width: 1050px) {
  .consultation-sidebar {
    position: static;
    width: 100%;
  }
}

.consultation-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 30px 26px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
@media (max-width: 1050px) {
  .consultation-card {
    padding: 24px 20px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  }
}
@media (max-width: 640px) {
  .consultation-card {
    padding: 20px 16px;
  }
}

/* FOTO HERO DE MAQUINARIA EN EL FONDO SUPERIOR DERECHO (VISIBLE EN PC Y MÓVIL) */
.sidebar-hero-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 58%;
  height: 220px;
  overflow: hidden;
  pointer-events: none;
  border-top-right-radius: 20px;
  display: block;
  opacity: 1;
}
@media (max-width: 1050px) {
  .sidebar-hero-backdrop {
    width: 68%;
    height: 195px;
    border-top-right-radius: 18px;
  }
}
@media (max-width: 640px) {
  .sidebar-hero-backdrop {
    width: 72%;
    height: 180px;
  }
}
.sidebar-hero-backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.88;
}
.sidebar-hero-backdrop .sidebar-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #ffffff 12%, rgba(255, 255, 255, 0.45) 55%, transparent 100%), linear-gradient(to bottom, transparent 30%, #ffffff 100%);
}
@media (max-width: 1050px) {
  .sidebar-hero-backdrop .sidebar-hero-gradient {
    background: linear-gradient(to right, #ffffff 16%, rgba(255, 255, 255, 0.5) 60%, transparent 100%), linear-gradient(to bottom, transparent 25%, #ffffff 100%);
  }
}
@media (max-width: 640px) {
  .sidebar-hero-backdrop .sidebar-hero-gradient {
    background: linear-gradient(to right, #ffffff 20%, rgba(255, 255, 255, 0.55) 65%, transparent 100%), linear-gradient(to bottom, transparent 20%, #ffffff 100%);
  }
}

.sidebar-content-wrapper {
  position: relative;
  z-index: 2;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .sidebar-header {
    margin-bottom: 12px;
  }
}
.sidebar-header .kicker-red {
  font-size: 0.72rem;
  font-weight: 900;
  color: #d71920;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .sidebar-header .kicker-red {
    font-size: 0.68rem;
  }
}
.sidebar-header .category-pill {
  background: rgba(238, 242, 246, 0.92);
  backdrop-filter: blur(4px);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(226, 232, 240, 0.8);
}
@media (max-width: 640px) {
  .sidebar-header .category-pill {
    font-size: 0.68rem;
    padding: 3px 10px;
  }
}

.sidebar-title {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}
@media (max-width: 640px) {
  .sidebar-title {
    font-size: 1.45rem;
    margin-bottom: 4px;
  }
}

.sidebar-meta {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0 0 16px;
}
@media (max-width: 640px) {
  .sidebar-meta {
    font-size: 0.82rem;
    margin-bottom: 12px;
  }
}
.sidebar-meta strong {
  color: #0f172a;
  font-weight: 850;
}

.sidebar-description {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 20px;
}
@media (max-width: 640px) {
  .sidebar-description {
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }
}

/* ISLA UNIFICADA: ESTADO Y ATENCIÓN LOCAL (COLOR CREMA BEIGE APERGAMINADO) */
.unified-status-card {
  position: relative;
  background: #fdfceb;
  border: 1px solid #e9e5c4;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
@media (max-width: 640px) {
  .unified-status-card {
    border-radius: 16px;
    padding: 16px 14px;
    margin-bottom: 18px;
  }
}
.unified-status-card h3 {
  margin: 0 0 14px;
  font-size: 1.02rem;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.01em;
}
@media (max-width: 640px) {
  .unified-status-card h3 {
    font-size: 0.98rem;
    margin-bottom: 12px;
  }
}

.status-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eae5c5;
}
@media (max-width: 640px) {
  .status-row {
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
}
.status-row.advice-row {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.check-circle-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}
@media (max-width: 640px) {
  .check-circle-icon {
    width: 20px;
    height: 20px;
    font-size: 0.74rem;
  }
}

.info-circle-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0284c7;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}
@media (max-width: 640px) {
  .info-circle-icon {
    width: 20px;
    height: 20px;
    font-size: 0.76rem;
  }
}

.status-row-info {
  flex: 1;
  min-width: 0;
  padding-right: 20px;
}
@media (max-width: 640px) {
  .status-row-info {
    padding-right: 28px;
  }
}

.status-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 650;
  color: #334155;
}
@media (max-width: 640px) {
  .status-label {
    font-size: 0.8rem;
  }
}

.status-value {
  display: block;
  margin-top: 1px;
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f172a;
}
@media (max-width: 640px) {
  .status-value {
    font-size: 0.9rem;
  }
}

.advice-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
}
@media (max-width: 640px) {
  .advice-title {
    font-size: 0.88rem;
    margin-bottom: 3px;
  }
}

.advice-desc {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.48;
  color: #475569;
}
@media (max-width: 640px) {
  .advice-desc {
    font-size: 0.81rem;
    line-height: 1.45;
  }
}

/* PIN DE GOOGLE MAPS EN LA ESQUINA INFERIOR DERECHA */
.map-pin-indicator {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
  transition: transform 200ms ease;
}
@media (max-width: 640px) {
  .map-pin-indicator {
    bottom: 12px;
    right: 10px;
  }
  .map-pin-indicator svg {
    width: 24px;
    height: 29px;
  }
}
.map-pin-indicator:hover {
  transform: translateY(-2px) scale(1.05);
}

/* SLOT ESTÁTICO Y GUARDIÁN SENTINEL DEL BOTÓN */
.cta-slot-sentinel {
  position: relative;
  width: 100%;
  min-height: 54px;
}
@media (max-width: 640px) {
  .cta-slot-sentinel {
    min-height: 52px;
  }
}

.btn-whatsapp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  border-radius: 16px;
  background: #22c55e;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.35);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms ease, box-shadow 220ms ease;
  will-change: transform, box-shadow;
  animation: whatsappPulseGlow 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.btn-whatsapp-cta svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .btn-whatsapp-cta {
    height: 52px;
    font-size: 0.94rem;
    border-radius: 14px;
  }
  .btn-whatsapp-cta svg {
    width: 22px;
    height: 22px;
  }
}

.btn-whatsapp-mobile-fixed {
  display: none;
}
@media (max-width: 1050px) {
  .btn-whatsapp-mobile-fixed {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 32px);
    max-width: 480px;
    height: 54px;
    margin-inline: auto;
    border-radius: 16px;
    background: #22c55e;
    box-shadow: 0 14px 35px rgba(34, 197, 94, 0.55), 0 4px 16px rgba(0, 0, 0, 0.25);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform 220ms ease, background 220ms ease;
    will-change: transform, box-shadow;
    animation: whatsappPulseGlow 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
}
@media (max-width: 640px) {
  .btn-whatsapp-mobile-fixed {
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    height: 52px;
    font-size: 0.94rem;
    border-radius: 14px;
  }
}
.btn-whatsapp-mobile-fixed svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .btn-whatsapp-mobile-fixed svg {
    width: 22px;
    height: 22px;
  }
}
.btn-whatsapp-mobile-fixed:hover {
  background: #16a34a;
}

@keyframes whatsappPulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.35);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.6), 0 0 0 7px rgba(34, 197, 94, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.35);
  }
}
@keyframes floatCtaSlideUp {
  from {
    transform: translateY(120%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.privacy-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.76rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .privacy-guarantee {
    font-size: 0.74rem;
    margin-top: 12px;
    line-height: 1.35;
  }
}
.privacy-guarantee .lock-svg {
  stroke: #94a3b8;
  flex-shrink: 0;
}

/* ==========================================
   PANEL DE CONTROL CONFIDENCIAL ADMINISTRATIVO
   ========================================== */
.admin-control-card {
  background: #f8faf9;
  border: 1.5px solid #315a42;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(49, 90, 66, 0.08);
}

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

.admin-badge {
  background: #315a42;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}

.admin-id {
  font-size: 0.74rem;
  font-weight: 800;
  color: #64748b;
}

.admin-financial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.financial-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.financial-box.cost {
  background: #fff8f8;
  border-color: #fca5a5;
}
.financial-box.cost .fin-lbl {
  color: #991b1b;
}
.financial-box.cost .fin-val {
  color: #b91c1c;
}

.financial-box.sale {
  background: #f0fdf4;
  border-color: #86efac;
}
.financial-box.sale .fin-lbl {
  color: #166534;
}
.financial-box.sale .fin-val {
  color: #15803d;
}

.financial-box.margin {
  background: #fffbeb;
  border-color: #fde68a;
}
.financial-box.margin .fin-lbl {
  color: #92400e;
}
.financial-box.margin .fin-val {
  color: #b45309;
}

.fin-lbl {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fin-val {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.admin-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}
.admin-meta-row .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
}
.admin-meta-row .meta-item label {
  color: #64748b;
  font-weight: 700;
  font-size: 0.65rem;
}
.admin-meta-row .meta-item strong {
  color: #334155;
  font-weight: 800;
}
.admin-meta-row .meta-item strong.is-pub {
  color: #166534;
}

/* ══════════════════════════════════════════════════════════════════════
   LIGHTBOX DE IMAGEN — renderizado fuera del detail-backdrop para
   escapar el stacking context de backdrop-filter y will-change:transform.
   z-index: 4000 supera el z-index: 2200 del backdrop del modal.
══════════════════════════════════════════════════════════════════════ */
@keyframes lbBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes lbImageIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.detail-lightbox {
  position: fixed;
  z-index: 4000;
  inset: 0;
  display: grid;
  /* fila imagen + fila miniaturas; auto = contenido real, sin estirar */
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 64px 24px 16px; /* 64px top = hueco para el botón cerrar */
  gap: 14px;
  background: rgba(5, 10, 22, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: lbBackdropIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@media (max-width: 640px) {
  .detail-lightbox {
    padding: 58px 12px 12px;
    gap: 10px;
  }
}

.detail-lb-close {
  position: fixed;
  z-index: 4010;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.detail-lb-close svg {
  display: block;
  stroke: currentColor;
}
.detail-lb-close:hover {
  background: #c9161d;
  border-color: #c9161d;
  transform: scale(1.08) rotate(90deg);
}
.detail-lb-close:focus-visible {
  outline: 2px solid #f5b800;
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .detail-lb-close {
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
  }
}

/* Área de la imagen principal y navegación */
.detail-lb-stage {
  position: relative;
  /*
   * height:auto — el stage envuelve a la imagen en lugar de ser el techo.
   * El techo real de tamaño lo pone max-height en .detail-lb-img
   * usando unidades de viewport, predecibles e independientes del layout.
   */
  height: auto;
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-lb-img {
  display: block;
  /*
   * Techo directo en vh: la imagen nunca supera el 62% del alto del viewport
   * en desktop. max-width limita el ancho al contenedor del stage.
   * object-fit:contain mantiene la proporción sin distorsión.
   */
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 6px 20px rgba(0, 0, 0, 0.4);
  user-select: none;
  -webkit-user-drag: none;
  animation: lbImageIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@media (max-width: 900px) {
  .detail-lb-img {
    max-height: 54vh;
  }
}
@media (max-width: 640px) {
  .detail-lb-img {
    /* En móvil la mitad del viewport deja espacio cómodo para el chromo del navegador,
       el botón de cerrar y la tira de miniaturas sin que la imagen llene la pantalla */
    max-height: 48vh;
    border-radius: 8px;
  }
}

/* Flechas de navegación */
.detail-lb-arrow {
  position: absolute;
  z-index: 4005;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.detail-lb-arrow svg {
  display: block;
  stroke: currentColor;
}
.detail-lb-arrow:hover {
  background: #c9161d;
  border-color: #c9161d;
  transform: translateY(-50%) scale(1.1);
}
.detail-lb-arrow:focus-visible {
  outline: 2px solid #f5b800;
  outline-offset: 3px;
}
.detail-lb-arrow.detail-lb-prev {
  left: -66px;
}
@media (max-width: 900px) {
  .detail-lb-arrow.detail-lb-prev {
    left: 8px;
  }
}
.detail-lb-arrow.detail-lb-next {
  right: -66px;
}
@media (max-width: 900px) {
  .detail-lb-arrow.detail-lb-next {
    right: 8px;
  }
}
@media (max-width: 640px) {
  .detail-lb-arrow {
    width: 40px;
    height: 40px;
  }
}

/* Contador de posición — overlay dentro del stage, no fuera de él.
   bottom:-36px causaba colisión con la tira de miniaturas; se reubica
   sobre la imagen como overlay semitransparente. */
.detail-lb-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4006;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(5, 10, 22, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
}

/* Tira horizontal de miniaturas */
.detail-lb-thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 720px;
  padding: 4px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.detail-lb-thumbs::-webkit-scrollbar {
  display: none;
}

.detail-lb-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 52px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.detail-lb-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.detail-lb-thumb.active {
  border-color: #c9161d;
  box-shadow: 0 0 0 3px rgba(201, 22, 29, 0.35);
  transform: scale(1.06);
}
.detail-lb-thumb:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.04);
}
.detail-lb-thumb:focus-visible {
  outline: 2px solid #f5b800;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .detail-lb-thumb {
    width: 52px;
    height: 42px;
  }
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

.admin-page {
  min-height: 100%;
  padding: clamp(20px, 3vw, 36px);
}

.admin-page__container {
  margin: 0 auto;
  max-width: 1440px;
}

.page-header {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-header h1 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.45rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  margin: 10px 0 7px;
}
.page-header p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0;
  max-width: 620px;
}

.eyebrow-badge {
  background: #fff0b8;
  border: 1px solid #f0d264;
  border-radius: 999px;
  color: var(--brand-ink);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  text-transform: uppercase;
}

.admin-shell .button,
.image-manager .button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform var(--t), background var(--t), box-shadow var(--t), opacity var(--t);
}
.admin-shell .button:focus-visible,
.image-manager .button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.button--ghost {
  background: var(--surface);
  color: inherit;
  padding: 7px 12px;
}

.alert {
  align-items: center;
  border-radius: 12px;
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 13px 16px;
}

.alert--warning {
  background: #fff8dd;
  border: 1px solid #efd98c;
  color: #745600;
}

.alert--error {
  background: #fff0ee;
  border: 1px solid #efc3be;
  color: #8d2d25;
}
.alert--error .button--ghost:hover {
  background: #fde4e0;
}

@media (max-width: 640px) {
  .admin-page {
    overflow-x: hidden;
    padding: 12px 10px;
  }
  .admin-page__container {
    max-width: 100%;
  }
  .page-header {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }
  .page-header h1 {
    font-size: 1.5rem;
    margin: 4px 0 2px;
  }
  .page-header p {
    font-size: 0.8rem;
  }
}
.image-manager {
  background: #f8faf8;
  border: 1px solid #dde4df;
  border-radius: 16px;
  padding: 18px;
}

.image-manager__header,
.pending-section__title {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.section-kicker {
  color: #9a7200;
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

h3 {
  color: #17201c;
  font: 700 1.05rem/1.3 "Roboto Slab", serif;
  margin: 0;
}

.image-manager__header p,
.pending-section__title small,
.upload-note {
  color: #68746d;
  font-size: 0.76rem;
  margin: 5px 0 0;
}

.image-counter {
  background: #17201c;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 10px;
}

.gallery-status,
.gallery-empty,
.gallery-error {
  border-radius: 10px;
  font-size: 0.78rem;
  margin-top: 14px;
  padding: 12px 14px;
}

.gallery-status,
.gallery-empty {
  background: #edf1ee;
  color: #647069;
}

.gallery-error {
  align-items: center;
  background: #fff0ee;
  color: #8b2921;
  display: flex;
  justify-content: space-between;
}

.gallery-error button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-weight: 800;
}

.image-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.image-tile {
  aspect-ratio: 4/3;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.image-tile:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.15);
  border-color: #cbd5e1;
}
.image-tile.is-main {
  border-color: #f5b800;
  box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.25);
}

.image-tile img {
  height: 100%;
  object-fit: cover;
  width: 100%;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.image-tile:hover img {
  transform: scale(1.06);
}

.image-tile__overlay {
  align-items: flex-start;
  background: linear-gradient(rgba(15, 23, 42, 0.75) 0%, transparent 50%);
  display: flex;
  justify-content: space-between;
  opacity: 0;
  inset: 0;
  padding: 8px;
  position: absolute;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.image-tile:hover .image-tile__overlay,
.image-tile:focus-within .image-tile__overlay {
  opacity: 1;
  pointer-events: auto;
}

.image-tile__overlay > * {
  pointer-events: auto;
}

.main-badge {
  background: #f5b800;
  border-radius: 999px;
  color: #0f172a;
  font-size: 0.68rem;
  font-weight: 900;
  justify-self: start;
  padding: 4px 9px;
  box-shadow: 0 2px 8px rgba(245, 184, 0, 0.35);
}

.icon-action {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 0;
  border-radius: 50%;
  color: #475569;
  cursor: pointer;
  display: grid;
  place-items: center;
  height: 34px;
  width: 34px;
  transition: all 150ms ease;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.icon-action:hover {
  background: #ffffff;
  transform: scale(1.05);
}

.icon-action--star {
  margin-right: auto;
}

.icon-action--star:hover {
  color: #f5b800;
}

.icon-action--danger {
  margin-left: auto;
}

.icon-action--danger:hover {
  background: #fee2e2;
  color: #dc2626;
}

.upload-panel {
  margin-top: 14px;
}

.upload-dropzone {
  align-items: center;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 1.25rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.upload-dropzone:hover:not(.is-disabled) {
  background: #fff5f5;
  border-color: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.1);
}
.upload-dropzone:hover:not(.is-disabled) .upload-icon {
  background: #dc2626;
  color: #ffffff;
  transform: scale(1.1) rotate(90deg);
}
.upload-dropzone.is-disabled {
  cursor: not-allowed;
  opacity: 0.56;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.upload-dropzone input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.upload-icon {
  background: #fee2e2;
  border-radius: 50%;
  color: #dc2626;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.upload-dropzone strong {
  color: #243029;
  font-size: 0.8rem;
}

.upload-dropzone small {
  color: #758078;
  font-size: 0.7rem;
}

.pending-section {
  border-top: 1px solid #dce3de;
  margin-top: 16px;
  padding-top: 16px;
}

.pending-section__title strong {
  display: block;
  font-size: 0.82rem;
}

.pending-section .clear-button,
.gallery-error .clear-button {
  color: #9b3129;
  font-size: 0.72rem;
  background: transparent;
  border: 0;
}

@media (max-width: 720px) {
  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .image-manager__header,
  .pending-section__title {
    flex-wrap: wrap;
  }
  .gallery-error {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
@media (hover: none) {
  .image-tile__overlay {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (max-width: 480px) {
  .image-manager {
    padding: 12px;
  }
  .upload-dropzone {
    padding: 14px 10px;
  }
}
@charset "UTF-8";
.admin-header {
  padding: 32px 40px 24px;
  background: #ffffff;
  border-bottom: 1px solid #eadbd6;
}

.admin-header h1 {
  margin: 0 0 8px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.header-subtitle {
  margin: 0;
  color: #6f6a67;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Filtros */
.filtros-section {
  padding: 24px 40px;
  background: #ffffff;
  border-bottom: 1px solid #eadbd6;
}

.filtros-section h2 {
  margin: 0 0 16px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.filtros-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  color: #4a4a4a;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid #d0c9c6;
  border-radius: 6px;
  background: #ffffff;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: border-color 180ms ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #d71920;
}

.filtros-actions {
  display: flex;
  gap: 12px;
}

.btn-primary,
.btn-secondary,
.btn-ver {
  padding: 10px 20px;
  border-radius: 6px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 180ms ease;
}

.btn-primary {
  border: none;
  background: #d71920;
  color: #ffffff;
}

.btn-primary:hover {
  background: #b81016;
}

.btn-secondary {
  border: 1px solid #d0c9c6;
  background: #ffffff;
  color: #4a4a4a;
}

.btn-secondary:hover {
  border-color: #d71920;
  color: #d71920;
}

.btn-ver {
  border: 1px solid #d71920;
  background: #ffffff;
  color: #d71920;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-ver:hover {
  background: #d71920;
  color: #ffffff;
}

/* Error */
.error-message {
  padding: 16px 40px;
  background: #ffebee;
  color: #c62828;
  font-size: 0.9rem;
}

/* Tabla */
.reclamos-table-container {
  padding: 32px 40px;
}

.loading {
  padding: 40px;
  text-align: center;
  color: #6f6a67;
}

.reclamos-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.reclamos-table thead {
  background: #f7f6f3;
}

.reclamos-table th {
  padding: 14px 16px;
  text-align: left;
  color: #4a4a4a;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reclamos-table td {
  padding: 14px 16px;
  border-top: 1px solid #eadbd6;
  color: #1c1c1c;
  font-size: 0.9rem;
}

.codigo-cell {
  font-weight: 700;
  color: #d71920;
}

.consumidor-info .nombre {
  font-weight: 600;
  color: #1c1c1c;
}

.consumidor-info .dni {
  font-size: 0.8rem;
  color: #8b8380;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pendiente {
  background: #fff3e0;
  color: #e65100;
}

.status-proceso {
  background: #e3f2fd;
  color: #1976d2;
}

.status-resuelto {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-cerrado {
  background: #f5f5f5;
  color: #616161;
}

.no-data {
  padding: 40px;
  text-align: center;
  color: #8b8380;
  font-size: 0.95rem;
}

/* Paginación */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 40px;
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid #d0c9c6;
  border-radius: 6px;
  background: #ffffff;
  color: #4a4a4a;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #d71920;
  color: #d71920;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: #6f6a67;
  font-size: 0.9rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #eadbd6;
}

.modal-header h2 {
  margin: 0;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f5f5f5;
  color: #616161;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 180ms ease;
}

.modal-close:hover {
  background: #e0e0e0;
  color: #1c1c1c;
}

.modal-body {
  padding: 24px;
}

.detalle-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eadbd6;
}

.detalle-section:last-child {
  border-bottom: none;
}

.detalle-section h3 {
  margin: 0 0 16px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

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

.detalle-item {
  display: flex;
  flex-direction: column;
}

.detalle-item.full-width {
  grid-column: 1/-1;
}

.detalle-item .label {
  margin-bottom: 4px;
  color: #6f6a67;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.detalle-item .value {
  color: #1c1c1c;
  font-size: 0.95rem;
  line-height: 1.5;
}

.estado-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.estado-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Responsive */
@media (max-width: 1024px) {
  .filtros-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .admin-header,
  .filtros-section,
  .reclamos-table-container,
  .pagination {
    padding-left: 20px;
    padding-right: 20px;
  }
  .filtros-grid {
    grid-template-columns: 1fr;
  }
  .reclamos-table {
    display: block;
    overflow-x: auto;
  }
  .detalle-grid {
    grid-template-columns: 1fr;
  }
}
.page-container {
  width: min(100% - 64px, 1000px);
  margin-inline: auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 32px 0 24px;
  font-size: 0.82rem;
  color: #8b8380;
}

.breadcrumb a {
  color: #8b8380;
  text-decoration: none;
  transition: color 180ms ease;
}

.breadcrumb a:hover {
  color: #d71920;
}

.breadcrumb span {
  color: #d0c9c6;
}

.breadcrumb .current {
  color: #625d5a;
  font-weight: 550;
}

/* Header */
.complaints-header {
  padding: 24px 0 40px;
  border-bottom: 2px solid #eadbd6;
  margin-bottom: 32px;
}

.complaints-header h1 {
  margin: 0 0 12px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.header-subtitle {
  margin: 0;
  color: #6f6a67;
  font-size: 1rem;
  line-height: 1.6;
}

/* Info Box */
.info-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 32px;
  margin-bottom: 40px;
  border-radius: 12px;
  background: #faf9f7;
}

.info-item h3 {
  margin: 0 0 12px;
  color: #d71920;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.info-item p {
  margin: 0;
  color: #4a4a4a;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Success Message */
.success-message {
  padding: 40px;
  margin-bottom: 40px;
  border-radius: 12px;
  background: #e8f5e9;
  border: 2px solid #4caf50;
  text-align: center;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #4caf50;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
}

.success-message h3 {
  margin: 0 0 24px;
  color: #2e7d32;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.confirmation-details {
  display: grid;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto 24px;
  padding: 24px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #c8e6c9;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-item .label {
  color: #616161;
  font-size: 0.9rem;
  font-weight: 600;
}

.detail-item .value {
  color: #1c1c1c;
  font-size: 0.95rem;
  font-weight: 700;
}

.detail-item .status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  background: #fff3e0;
  color: #e65100;
  font-size: 0.85rem;
}

.confirmation-text {
  max-width: 600px;
  margin: 0 auto 32px;
  color: #388e3c;
  font-size: 1rem;
  line-height: 1.7;
}

.confirmation-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Error Message */
.error-message {
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: #ffebee;
  border: 1px solid #ef5350;
  color: #c62828;
  font-size: 0.9rem;
}

/* Form Sections */
.form-section {
  padding: 32px 0;
  border-bottom: 1px solid #eadbd6;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h2 {
  margin: 0 0 24px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.form-section h3 {
  margin: 20px 0 16px;
  color: #4a4a4a;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-field label {
  display: block;
  margin-bottom: 6px;
  color: #8b8380;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-field p {
  margin: 0;
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.5;
}

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

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1/-1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #4a4a4a;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid #d0c9c6;
  border-radius: 8px;
  background: #fff;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #d71920;
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ef5350;
}

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

.form-group .error-text {
  margin-top: 6px;
  color: #ef5350;
  font-size: 0.8rem;
}

.form-group .char-count {
  margin-top: 6px;
  color: #9a908c;
  font-size: 0.75rem;
  text-align: right;
}

.optional-badge {
  display: inline-block;
  padding: 1px 7px;
  margin-left: 6px;
  border-radius: 20px;
  background: #f0ede8;
  color: #8b8380;
  font-size: 0.72rem;
  font-weight: 500;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

.optional-hint {
  display: block;
  margin-top: 5px;
  color: #9a908c;
  font-size: 0.78rem;
  font-style: italic;
}

/* Checkbox */
.checkbox-group {
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.checkbox-label.has-error {
  border-color: #ef5350;
  background-color: #fff5f5;
}

.checkbox-label input[type=checkbox] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #d71920;
}

.checkbox-label .checkbox-text {
  color: #4a4a4a;
  font-size: 0.9rem;
  line-height: 1.5;
}

.checkbox-label .link {
  color: #d71920;
  text-decoration: none;
  font-weight: 600;
}

.checkbox-label .link:hover {
  text-decoration: underline;
}

.checkbox-error {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: #ffebee;
  color: #c62828;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Radio */
.radio-group {
  margin-top: 8px;
}

.radio-options {
  display: flex;
  gap: 24px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-label input[type=radio] {
  width: 18px;
  height: 18px;
  accent-color: #d71920;
}

.radio-label span {
  color: #4a4a4a;
  font-size: 0.95rem;
}

/* Apoderado Section */
.apoderado-section {
  padding: 24px;
  margin-top: 24px;
  border-radius: 8px;
  background: #f7f6f3;
  border-left: 4px solid #f5b800;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 16px;
  padding: 32px 0;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  border-radius: 8px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn-primary {
  border: none;
  background: #d71920;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(215, 25, 32, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: #b81016;
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  border: 2px solid #d0c9c6;
  background: #ffffff;
  color: #4a4a4a;
}

.btn-secondary:hover:not(:disabled) {
  border-color: #d71920;
  color: #d71920;
  transform: translateY(-2px);
}

.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .page-container {
    width: calc(100% - 32px);
  }
  .breadcrumb {
    padding: 24px 0 20px;
  }
  .complaints-header {
    padding: 20px 0 32px;
  }
  .info-box,
  .info-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .radio-options {
    flex-direction: column;
    gap: 12px;
  }
  .form-actions {
    flex-direction: column;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .confirmation-actions {
    flex-direction: column;
  }
  .confirmation-actions button,
  .confirmation-actions a {
    width: 100%;
  }
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 1.25rem;
  animation: backdropFadeIn 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes backdropFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.video-modal-form {
  width: 100%;
  max-width: min(92vw, 700px);
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(245, 184, 0, 0.15);
  overflow: hidden;
  animation: modalSlideUp 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.modal-header {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.6rem 1.15rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.modal-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.modal-badge-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
@media (max-width: 640px) {
  .modal-badge-group {
    flex: 1;
  }
}

.modal-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.22);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.08);
}

.modal-badge {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 9999px;
  color: #92400e;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .modal-badge {
    flex: 1;
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
  }
}

.modal-title-text {
  font-size: 1.25rem;
  font-weight: 850;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
  word-break: break-word;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
  transition: all 180ms ease;
  flex-shrink: 0;
}
.modal-close svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}
.modal-close:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  transform: rotate(90deg) scale(1.05);
}
.modal-close:focus-visible {
  outline: 2px solid #f5b800;
  outline-offset: 2px;
}

.modal-body {
  padding: 1.5rem 1.75rem;
  max-height: calc(85vh - 140px);
  overflow-y: auto;
}
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: #f8fafc;
}
.modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.1rem 1.75rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-field.full {
  grid-column: 1/-1;
}
.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
}
.form-field textarea,
.form-field select,
.form-field input[type=text],
.form-field input[type=number] {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.form-field textarea:focus,
.form-field select:focus,
.form-field input[type=text]:focus,
.form-field input[type=number]:focus {
  outline: none;
  border-color: #dc2626;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.form-field textarea.error,
.form-field select.error,
.form-field input[type=text].error,
.form-field input[type=number].error {
  border-color: #ef4444;
  background: #fef2f2;
}
.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.field-hint {
  color: #64748b;
  font-size: 0.72rem;
}

.field-error {
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 600;
}

.video-title-cell {
  min-width: 280px;
}
.video-title-cell small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
}

.platform-chip,
.status-chip,
.featured-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.platform-youtube {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid rgba(153, 27, 27, 0.15);
}

.platform-tiktok {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.platform-facebook {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid rgba(30, 64, 175, 0.15);
}

.status-chip {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.status-chip.published {
  background: #dcfce7;
  color: #166534;
  border-color: rgba(22, 101, 52, 0.18);
}

.featured-chip {
  margin-left: 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid rgba(146, 64, 14, 0.18);
}

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

.check-control {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.check-control:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}
.check-control input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  border: 2px solid #cbd5e1;
  border-radius: 0.35rem;
  background-color: #ffffff;
  cursor: pointer;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  transition: all 180ms ease;
}
.check-control input[type=checkbox]::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  background-color: #ffffff;
  transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
.check-control input[type=checkbox]:checked {
  background-color: #dc2626;
  border-color: #dc2626;
}
.check-control input[type=checkbox]:checked::before {
  transform: scale(1);
}
.check-control input[type=checkbox]:focus-visible {
  outline: 2px solid #f5b800;
  outline-offset: 2px;
}
.check-control:has(input:checked) {
  background: #fff5f5;
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
}
.check-control strong,
.check-control small {
  display: block;
}
.check-control strong {
  font-size: 0.88rem;
  color: #0f172a;
  font-weight: 700;
}
.check-control small {
  margin-top: 2px;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .video-table-card {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }
  .video-table {
    min-width: 0;
    display: block;
    width: 100%;
  }
  .video-table thead {
    display: none;
  }
  .video-table tbody {
    display: grid;
    gap: 0.85rem;
  }
  .video-table tbody tr {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    gap: 0.65rem;
    transition: transform 180ms ease, box-shadow 180ms ease;
  }
  .video-table tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  }
  .video-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: none !important;
  }
  .video-table tbody td.col-id {
    width: auto;
    font-weight: 700;
    color: #94a3b8;
    font-size: 0.75rem;
  }
  .video-table tbody td.video-title-cell {
    width: 100%;
    min-width: 0;
  }
  .video-table tbody td.col-actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0 !important;
  }
  .video-table tbody td.col-actions .btn {
    flex: 1;
    justify-content: center;
    height: 38px;
    font-size: 0.82rem;
    border-radius: 0.6rem;
  }
  .video-table tbody td.col-actions .btn-ghost {
    background: #f1f5f9;
    color: #1e293b;
  }
  .video-table tbody td.col-actions .btn-danger {
    background: #fef2f2;
    color: #dc2626;
  }
  .modal-backdrop {
    padding: 0.75rem;
  }
  .video-modal-form {
    max-width: 100%;
    border-radius: 1.25rem;
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .video-form-grid,
  .check-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}
.gallery-shell {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.main-stage {
  position: relative;
  height: clamp(320px, 35vw, 440px);
  overflow: hidden;
  border-radius: 16px;
  background: #f1f5f9;
  touch-action: pan-y;
  border: 1px solid #e2e8f0;
}

.zoom-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.zoom-trigger img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.zoom-trigger:hover img {
  transform: scale(1.03);
}

.zoom-hint {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.zoom-trigger:hover .zoom-hint,
.zoom-trigger:focus-visible .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.image-placeholder {
  display: grid;
  place-content: center;
  gap: 8px;
  height: 100%;
  color: #64748b;
  text-align: center;
}
.image-placeholder strong {
  color: #cbd5e1;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
}
.image-placeholder span {
  font-size: 0.85rem;
  font-weight: 700;
}

.condition-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 8px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  pointer-events: none;
  z-index: 5;
}

.gallery-loading {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
}

.arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: all 0.2s ease;
}
.arrow svg {
  display: block;
  stroke: currentColor;
}
.arrow:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-50%) scale(1.08);
}
.arrow.previous {
  left: 14px;
}
.arrow.next {
  right: 14px;
}

.counter {
  position: absolute;
  left: 50%;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  transform: translateX(-50%);
  pointer-events: none;
}

/* MINIATURAS FIJAS EN CUADRADOS ELEGANTES (NUNCA SE ESTIRAN AL 100%) */
.thumbnails {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-bottom: 4px;
}

.thumbnail {
  position: relative;
  width: 92px;
  height: 74px;
  flex-shrink: 0;
  padding: 2px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
  transition: all 0.2s ease;
}
.thumbnail.active {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}
.thumbnail:hover {
  transform: translateY(-2px);
}
.thumbnail img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.thumbnail span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f5b800;
  color: #171717;
  font-size: 0.58rem;
  font-weight: 900;
}

.gallery-error {
  margin: 10px 0 0;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .main-stage {
    height: 270px;
    border-radius: 12px;
  }
  .thumbnail {
    width: 76px;
    height: 62px;
  }
  .arrow {
    width: 36px;
    height: 36px;
  }
}
@charset "UTF-8";
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid #eadfdb;
  background: #faf9f7;
  color: #1c1c1c;
}

/* Franja pequeña de identidad */
.footer-accent {
  display: grid;
  grid-template-columns: 22% 54% 24%;
  width: 100%;
  height: 4px;
}

.footer-accent span:nth-child(1) {
  background: #f5b800;
}

.footer-accent span:nth-child(2) {
  background: #d71920;
}

.footer-accent span:nth-child(3) {
  background: #242424;
}

/* ==========================================
   CONTENIDO PRINCIPAL
========================================== */
.footer-container {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(120px, 0.6fr) minmax(140px, 0.7fr) minmax(180px, 0.8fr) minmax(200px, 0.7fr);
  gap: clamp(38px, 5vw, 72px);
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
  padding: 60px 0 50px;
}

/* ==========================================
   EMPRESA
========================================== */
.footer-company {
  max-width: 350px;
}

.footer-logo {
  display: block;
  width: 188px;
  height: 67px;
  margin-bottom: 19px;
  border-radius: 5px;
  object-fit: contain;
}

.footer-company h2 {
  margin: 0 0 11px;
  color: #1c1c1c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 850;
}

.footer-company p {
  margin: 0;
  color: #6f6a67;
  font-size: 0.84rem;
  line-height: 1.7;
}

/* Información corporativa */
.footer-company-info {
  margin-top: 18px;
}

.company-info-item {
  margin-bottom: 12px;
}

.company-info-item small {
  display: block;
  margin-bottom: 3px;
  color: #9a908c;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-info-item p,
.company-info-item a {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
  color: #625d5a;
  font-size: 0.75rem;
  line-height: 1.5;
  text-decoration: none;
}

.company-info-item a:hover {
  color: #d71920;
}

.footer-advisors-block {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #e5deda;
}

.footer-advisors-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.footer-advisor-item .advisor-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 6px;
  background: transparent;
  color: #4a4543;
  text-decoration: none;
  font-size: 0.72rem;
  line-height: 1.35;
  transition: all 180ms ease;
}

.advisor-phone-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 1px 6px;
  border-radius: 4px;
  background: transparent;
  color: #4a4543;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.advisor-meta {
  display: block;
}

/* ==========================================
   HORARIO DE ATENCIÓN
========================================== */
.footer-hours-section {
  min-width: 0;
}

.footer-hours-section h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 23px;
  padding-bottom: 13px;
  color: #252525;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-hours-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 31px;
  height: 3px;
  border-radius: 999px;
  background: #f5b800;
}

.footer-hours-section h2 svg {
  width: 18px;
  height: 18px;
  color: #d71920;
}

.footer-hours-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hours-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hours-item strong {
  color: #1c1c1c;
  font-size: 0.78rem;
  font-weight: 700;
}

.hours-item span {
  color: #6f6a67;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* ==========================================
   REDES SOCIALES (ESTILO SOLICITADO)
========================================== */
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #eadbd6;
  border-radius: 10px;
  background: #ffffff;
  color: #6f6a67;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.footer-social a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-social a:hover {
  background: #d71920;
  border-color: #d71920;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(215, 25, 32, 0.18);
}

.footer-social a:focus-visible {
  outline: 2px solid #f5b800;
  outline-offset: 3px;
}

/* ==========================================
   BLOQUE INSTITUCIONAL OSCE
========================================== */
.footer-osce-box {
  margin-top: 24px;
  padding: 16px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #eadbd6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.osce-box-label {
  font-size: 0.6rem;
  font-weight: 850;
  color: #9a908c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-osce-logo {
  display: block;
  width: 320px;
  height: 90px;
  object-fit: contain;
  margin: 8px 0;
}

.osce-box-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #6f6a67;
  line-height: 1.35;
}

.osce-box-subtitle {
  margin: 0;
  font-size: 0.7rem;
  color: #6f6a67;
  line-height: 1.4;
}

/* Sección de redes sociales */
.footer-social-section {
  min-width: 0;
}

.footer-social-section h2 {
  position: relative;
  margin: 0 0 23px;
  padding-bottom: 13px;
  color: #252525;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-social-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 31px;
  height: 3px;
  border-radius: 999px;
  background: #f5b800;
}

/* ==========================================
   BOTÓN
========================================== */
.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 17px;
  border: 1px solid #d71920;
  border-radius: 8px;
  background: #d71920;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 7px 17px rgba(215, 25, 32, 0.13);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.footer-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-whatsapp:hover {
  border-color: #b81016;
  background: #b81016;
  box-shadow: 0 10px 22px rgba(215, 25, 32, 0.18);
  transform: translateY(-2px);
}

/* ==========================================
   TÍTULOS
========================================== */
.footer-navigation h2,
.footer-contact h2 {
  position: relative;
  margin: 0 0 23px;
  padding-bottom: 13px;
  color: #252525;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-navigation h2::after,
.footer-contact h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 31px;
  height: 3px;
  border-radius: 999px;
  background: #f5b800;
}

/* ==========================================
   ENLACES
========================================== */
.footer-navigation {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.footer-navigation a {
  position: relative;
  margin-bottom: 13px;
  color: #706b68;
  font-size: 0.82rem;
  font-weight: 550;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-navigation a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d71920;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 180ms ease;
}

.footer-navigation a:hover {
  color: #d71920;
  transform: translateX(5px);
}

.footer-navigation a:hover::before {
  opacity: 1;
}

/* ==========================================
   CONTACTO
========================================== */
.footer-contact {
  min-width: 0;
}

.footer-contact .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-contact .contact-item > span:not(.status-dot) {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #eadbd6;
  border-radius: 8px;
  background: #ffffff;
  color: #d71920;
  font-size: 0.95rem;
}

.footer-contact .contact-item div {
  min-width: 0;
}

.footer-contact .contact-item small {
  display: block;
  margin-bottom: 4px;
  color: #9a908c;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-contact .contact-item p,
.footer-contact .contact-item a {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
  color: #625d5a;
  font-size: 0.78rem;
  line-height: 1.55;
  text-decoration: none;
}

.footer-contact .contact-item a:hover {
  color: #d71920;
}

.status-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin: 6px 12px 0;
  border-radius: 50%;
  background: #f5b800;
  box-shadow: 0 0 0 5px rgba(245, 184, 0, 0.15);
}

/* ==========================================
   PARTE INFERIOR
========================================== */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  width: min(100% - 40px, 1480px);
  margin-inline: auto;
  padding: 20px 0 24px;
  border-top: 1px solid #e6ddda;
}

.footer-bottom p {
  margin: 0;
  color: #8b8380;
  font-size: 0.69rem;
}

@media (max-width: 950px) {
  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-company {
    max-width: 430px;
  }
}
@media (max-width: 620px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 38px;
    width: calc(100% - 32px);
    padding: 46px 0 39px;
  }
  .footer-company {
    max-width: none;
  }
  .footer-logo {
    width: 174px;
    height: 61px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    width: calc(100% - 32px);
    padding: 19px 0 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-whatsapp,
  .footer-navigation a,
  .footer-social a {
    transition: none;
  }
}
@charset "UTF-8";
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 84px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(0);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.header-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09);
  border-bottom-color: rgba(226, 232, 240, 0.9);
}
.site-header.header-hidden {
  transform: translateY(-110%);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #f5b800 0 24%, #dc2626 24% 74%, #0f172a 74% 100%);
}

.header-container {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 32px;
  width: min(100% - 36px, 1480px);
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  transition: transform 0.2s ease;
}
.brand:hover {
  transform: scale(1.02);
}

.brand img {
  display: block;
  width: 186px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 36px);
}

.site-header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-header nav a svg {
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: #dc2626;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header nav a:hover, .site-header nav a.active {
  color: #dc2626;
}
.site-header nav a:hover svg, .site-header nav a.active svg {
  opacity: 1;
  transform: translateY(-1px);
}
.site-header nav a:hover::after, .site-header nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quotation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  background: #dc2626;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  transition: all 0.25s ease;
}
.quotation-button svg {
  flex-shrink: 0;
}
.quotation-button:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(220, 38, 38, 0.35);
}

.quotation-button--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
}

.menu-button {
  display: none;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #dc2626;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  transition: background 0.2s ease;
}
.menu-button span {
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: #ffffff;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.menu-button[aria-expanded=true] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-button[aria-expanded=true] span:nth-child(2) {
  opacity: 0;
}
.menu-button[aria-expanded=true] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.menu-button:hover {
  background: #b91c1c;
}

@media (max-width: 960px) {
  .header-container {
    grid-template-columns: 180px 1fr auto;
    gap: 20px;
  }
  .brand img {
    width: 165px;
  }
  .site-header nav {
    gap: 16px;
  }
  .quotation-button {
    padding-inline: 16px;
  }
}
/* ============================================
   ESTILOS EXCLUSIVOS RESPONSIVE (MÓVIL)
   ============================================ */
@media (max-width: 780px) {
  .site-header {
    height: 72px;
  }
  .header-container {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 32px);
  }
  .brand img {
    width: 150px;
    height: 52px;
  }
  .header-actions {
    gap: 10px;
  }
  /* WhatsApp en formato icono táctil en móvil */
  .quotation-button {
    min-height: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 10px;
    background: #25d366;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.38);
  }
  .quotation-button .quotation-text {
    display: none;
  }
  .quotation-button svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
  }
  .quotation-button:hover {
    background: #20ba5a;
    transform: scale(1.04);
  }
  .menu-button {
    display: grid;
  }
  /* Menú Desplegable Móvil con Efecto Glassmorphism (Vidrio Esmerilado) */
  .site-header nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: grid;
    gap: 10px;
    padding: 20px 18px 24px;
    /* GLASSMORPHISM PREMIUM */
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  }
  .site-header nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-header nav.open a {
    opacity: 1;
    transform: translateY(0);
  }
  .site-header nav {
    /* Ítems del Menú estilo Vidrio Esmerilado Táctil */
  }
  .site-header nav a {
    width: 100%;
    min-height: 54px;
    padding: 0 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 800;
    gap: 14px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease;
  }
  .site-header nav a:nth-child(1) {
    transition-delay: 0.04s;
  }
  .site-header nav a:nth-child(2) {
    transition-delay: 0.08s;
  }
  .site-header nav a:nth-child(3) {
    transition-delay: 0.12s;
  }
  .site-header nav a:nth-child(4) {
    transition-delay: 0.16s;
  }
  .site-header nav a svg {
    width: 22px;
    height: 22px;
    color: #0f172a;
    opacity: 0.75;
    transition: transform 0.2s ease, color 0.2s ease;
  }
  .site-header nav a::after {
    display: none;
  }
  .site-header nav a.active {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.14), rgba(245, 184, 0, 0.1));
    border: 1px solid rgba(220, 38, 38, 0.28);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.12);
    color: #dc2626;
    font-weight: 900;
  }
  .site-header nav a.active svg {
    color: #dc2626;
    opacity: 1;
  }
  .site-header nav a:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(220, 38, 38, 0.3);
    color: #dc2626;
  }
  .site-header nav a:hover svg {
    color: #dc2626;
    transform: scale(1.08);
  }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: min(460px, 100vw - 40px);
  background: #11171b;
  color: white;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: toast-slide-up 350ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-slide-up {
  to {
    transform: translateX(-50%) translateY(0);
  }
}
.toast.error {
  background: #b9382e;
}

.toast-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  color: #fff;
}

.toast.error .toast-icon {
  background: rgba(255, 255, 255, 0.25);
}

.toast p {
  margin: 0;
  flex: 1;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.toast-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  transition: color 150ms;
}

.toast-close:hover {
  color: white;
}

@media (max-width: 600px) {
  .toast {
    bottom: 24px;
    width: calc(100vw - 32px);
    border-radius: 14px;
  }
}
.video-modal-dialog {
  border: none;
  border-radius: 1.5rem;
  padding: 0;
  margin: auto;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 250ms cubic-bezier(0.16, 1, 0.3, 1), transform 250ms cubic-bezier(0.16, 1, 0.3, 1), width 300ms cubic-bezier(0.16, 1, 0.3, 1), max-width 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.video-modal-dialog[open] {
  opacity: 1;
  transform: scale(1);
}
.video-modal-dialog {
  touch-action: manipulation;
  overscroll-behavior: contain;
}
.video-modal-dialog.modal-horizontal {
  width: min(94vw, 860px);
}
.video-modal-dialog.modal-vertical {
  width: min(92vw, 400px);
}
@media (max-height: 820px) {
  .video-modal-dialog.modal-vertical {
    width: 47.8125vh;
  }
}
.video-modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  touch-action: none;
  overscroll-behavior: contain;
}

.video-modal-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.video-modal-floating-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  z-index: 30;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
.video-modal-floating-close .close-icon {
  width: 1.25rem;
  height: 1.25rem;
}
.video-modal-floating-close:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  transform: scale(1.1);
}
.video-modal-floating-close:active {
  transform: scale(0.92);
}
.video-modal-floating-close:focus-visible {
  outline: 3px solid #f5b800;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .video-modal-floating-close {
    top: -1.1rem;
    right: 0.25rem;
    width: 2.25rem;
    height: 2.25rem;
  }
}
.video-modal-body {
  position: relative;
  width: 100%;
  max-height: 85vh;
  background: #000000;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(245, 184, 0, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 30px -5px rgba(220, 38, 38, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-body .video-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  overflow: hidden;
}

.video-modal-empty-state {
  width: 100%;
  max-width: 420px;
  padding: 28px 24px;
  text-align: center;
}

.video-modal-empty-kicker {
  display: block;
  margin-bottom: 10px;
  color: #f5b800;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-modal-empty-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
}

.video-modal-empty-copy {
  margin: 12px 0 18px;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.6;
}

.video-modal-fallback-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
}

.video-modal-fallback-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #1877f2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.video-modal-fallback-link svg {
  flex-shrink: 0;
}
.video-modal-fallback-link:hover {
  background: #166fe5;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.55);
}
.video-modal-fallback-link:active {
  transform: scale(0.97);
}

body:has(.admin-layout) {
  padding-top: 0;
  background: #f5f4f2;
}
.admin-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 100vh;
  background: #f5f4f2;
}
.admin-layout .sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 245px;
  height: 100vh;
  overflow: hidden;
}
.admin-layout .admin-content {
  min-width: 0;
  position: relative;
  z-index: 1;
}
.admin-layout .stat-card {
  position: relative;
  overflow: hidden;
}
.admin-layout .stat-card:not(:has(.stat-icon)) {
  grid-template-columns: minmax(0, 1fr);
}
.admin-layout .stat-card::after {
  content: none;
}
.admin-layout .stat-value {
  display: block;
  margin-top: 3px;
  font-size: 1.55rem;
  line-height: 1.1;
}
.admin-layout .btn {
  border-radius: 7px;
  text-decoration: none;
}
.admin-layout .btn-primary {
  background: #e91b23;
  color: #ffffff;
  border: 0;
}
.admin-layout .btn-danger {
  background: #fff1ef;
  color: #b9382e;
  border: 1px solid #f0c7c2;
}
.admin-flash {
  margin: 18px 36px 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #e8f6ee;
  color: #21653a;
}
.admin-flash-error {
  background: #fff0ee;
  color: #8b2921;
}
.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
  padding: 20px;
}
.admin-form .full,
.admin-form .btn,
.admin-form .checkbox-field {
  grid-column: 1 / -1;
}
.admin-form .btn {
  width: fit-content;
}
.admin-shortcuts {
  display: grid;
  gap: 8px;
  padding: 16px;
}
.admin-shortcuts a {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  background: #f7f5f3;
  color: #292625;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}
.admin-shortcuts a:hover {
  background: #fde9ea;
  color: #c9141b;
}
.movement-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #efeae7;
}
.movement-item small,
.movement-icon {
  display: block;
  color: #817b77;
  font-size: 0.72rem;
}
.sheet-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}
.sheet-facts div {
  padding: 10px 12px;
  border: 1px solid #e7e2dc;
  border-radius: 10px;
  background: #fff;
}
.sheet-facts dt {
  margin: 0 0 3px;
  color: #8a837e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sheet-facts dd {
  margin: 0;
  color: #171717;
  font-size: 0.95rem;
  font-weight: 800;
}
@media (max-width: 900px) {
  .admin-layout {
    display: block;
  }
  .admin-layout .sidebar {
    position: fixed;
    left: -265px;
    width: min(245px, calc(100vw - 48px));
    transition: left 220ms ease;
  }
  .admin-layout .sidebar.open {
    left: 0;
  }
  .admin-form {
    grid-template-columns: 1fr;
  }
}

.hero-actions .button {
  border: 2px solid transparent;
  border-radius: 12px;
  min-height: 54px;
  padding: 13px 28px;
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  outline: none;
}
.hero-actions .button-primary {
  background: #f5b800;
  color: #171717;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}
.hero-actions .button-secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  backdrop-filter: blur(8px);
}
.hero-actions .button-secondary:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: #a50b0b;
}
.hero-actions .button:focus-visible {
  outline: 3px solid rgba(245, 184, 0, 0.45);
  outline-offset: 3px;
}

.contact-section .contact-grid {
  align-items: start;
}
.contact-section .contact-image-wrapper,
.contact-section .contact-image {
  height: 460px;
  min-height: 0;
  max-height: 460px;
}
.contact-section .contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.contact-section .contact-item {
  display: block;
}
.contact-section .contact-item-value,
.contact-section .contact-item-value a {
  display: block;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.product-card .detail-button,
.detail-dialog .close-button,
.detail-dialog .btn-whatsapp-cta,
.featured-product-card .btn-quote-yellow {
  text-decoration: none;
}
.product-card .detail-button:focus,
.product-card .detail-button:focus-visible,
.detail-dialog .close-button:focus,
.detail-dialog .close-button:focus-visible {
  text-decoration: none;
  outline: 3px solid rgba(245, 184, 0, 0.45);
  outline-offset: 2px;
}
@media (max-width: 820px) {
  .contact-section .contact-image-wrapper,
  .contact-section .contact-image {
    height: 280px;
    max-height: 280px;
  }
  .contact-section .contact-item-value,
  .contact-section .contact-item-value a {
    white-space: normal;
  }
}
