:root {
  --bg-main: #0b1220;
  --bg-surface: #131c2e;
  --surface-alt: #1a2740;
  --text-main: #f5f8ff;
  --text-soft: #c8d4ea;
  --text-muted: #9eb0cc;
  --primary: #38c4f0;
  --primary-dark: #0a1a2e;
  --secondary: #7b8cff;
  --success: #3dd68c;
  --success-text: #042a18;
  --danger: #ff7088;
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(56, 196, 240, 0.45);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
  --panel-bg: rgba(16, 26, 44, 0.97);
  --focus-ring: 0 0 0 3px rgba(56, 196, 240, 0.45);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  font-size: 1rem;
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0.94) 0%, rgba(10, 18, 34, 0.98) 100%),
    url("../images/site/hero-banner.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
  outline: none;
  box-shadow: var(--focus-ring);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

body.site-page,
body.store-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.site-page > main,
body.store-page > main {
  flex: 1;
}

body.store-page .store-page-header {
  flex-shrink: 0;
}

.site-footer {
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(8, 14, 28, 0.92) 0%, #060c18 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #dce6f5;
  font-size: 0.9rem;
}

.site-footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1.75rem 2rem;
  padding: 2.25rem 0 1.5rem;
  text-align: left;
}

.site-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}

.site-footer-logo .brand-badge {
  width: 38px;
  height: 38px;
  font-size: 0.78rem;
}

.site-footer-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #f5f8ff;
  line-height: 1.2;
}

.site-footer-desc {
  margin: 0 0 1rem;
  color: #c8d6eb;
  line-height: 1.6;
  max-width: 340px;
}

.site-footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7dd8fc;
}

.site-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer-links a {
  color: #eef4fc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-footer-links a:hover {
  color: #7dd8fc;
}

.site-footer-contact-list span {
  color: #b8c8de;
}

.site-footer-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
  padding: 0.62rem 1.1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  background: linear-gradient(135deg, #25d366 0%, #1aad56 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.site-footer-wa:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #ffffff;
}

.site-footer-wa svg {
  flex-shrink: 0;
}

.site-footer-bottom {
  padding: 1rem 0 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.site-footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: #a8b9d0;
  line-height: 1.5;
}

.site-footer-credit {
  margin-top: 0.45rem !important;
  font-size: 0.78rem !important;
  color: #8fa3bc !important;
}

.site-footer-credit strong {
  color: #c5d4e8;
  font-weight: 700;
}

.site-footer-col {
  min-width: 0;
}

@media (max-width: 768px) {
  .site-footer-wrap {
    padding: 0 1.15rem;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
    padding: 1.5rem 0 1rem;
  }

  .site-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1.25rem;
  }

  .site-footer-logo {
    justify-content: center;
  }

  .site-footer-desc {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.88rem;
  }

  .site-footer-wa {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    min-height: 48px;
    padding: 0.7rem 1rem;
  }

  .site-footer-col {
    padding: 1.1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-footer-heading {
    margin-bottom: 0.65rem;
  }

  .site-footer-links {
    justify-items: center;
    gap: 0.55rem;
  }

  .site-footer-links a,
  .site-footer-contact-list span {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .site-footer-contact-list a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .site-footer-bottom {
    padding: 1rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .site-footer-bottom p {
    font-size: 0.78rem;
    padding: 0 0.25rem;
  }
}

.store-page-header {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-page-header .brand h1 {
  font-size: 1.15rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span[aria-hidden="true"] {
  opacity: 0.6;
}

body.cart-open {
  overflow: hidden;
}

.site-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand h1 {
  margin: 0;
  font-size: 1.4rem;
}

.brand p {
  margin: 0.15rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #00111f;
  background: linear-gradient(140deg, var(--primary), #8ae2ff);
  flex-shrink: 0;
}

.brand-badge-fallback[hidden] {
  display: none !important;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px;
}

.site-footer-logo .brand-logo {
  width: 42px;
  height: 42px;
}

.admin-sidebar-brand .brand-logo {
  width: 40px;
  height: 40px;
}

.cta-button {
  border: 0;
  border-radius: var(--radius-md);
  padding: 0.72rem 1.05rem;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--success-text);
  cursor: pointer;
  background: linear-gradient(125deg, var(--success), #6ee9a8);
  transition: transform 0.15s ease, filter 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
}

.cta-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.tabs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab:hover {
  border-color: rgba(47, 200, 255, 0.7);
}

.tab.is-active {
  border-color: transparent;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #06122e;
  font-weight: 700;
}

.tab-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tab-panel {
  display: none;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  backdrop-filter: blur(6px);
}

.store-panel {
  padding: 1.35rem;
}

.store-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}

.store-top-intro {
  max-width: 720px;
}

.store-nav {
  margin-bottom: 0;
  justify-content: center;
}

.store-page .breadcrumb {
  justify-content: center;
}

.store-page .store-filters {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tab-panel h2 {
  margin-top: 0;
  text-align: center;
}

.tab-panel.is-visible {
  display: block;
}

.banner {
  border-radius: 16px;
  padding: 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(110deg, rgba(5, 17, 41, 0.86), rgba(18, 49, 90, 0.58)),
    url("../images/site/hero-banner.jpg");
  background-size: cover;
  background-position: center;
}

.banner h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

.banner p {
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.55rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-stats {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.hero-stats article,
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
}

.card p,
.hero-stats p {
  color: var(--text-soft);
}

.hero-stats h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--primary);
}

.hero-stats p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.gallery-block {
  margin-top: 1.1rem;
}

.gallery-head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  text-align: center;
}

.gallery-head p {
  margin: 0 0 0.8rem;
  color: var(--text-soft);
  text-align: center;
}

.image-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.image-slot {
  position: relative;
  min-height: 200px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: rgba(10, 23, 48, 0.5);
}

.image-slot img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.image-slot:hover img {
  transform: scale(1.04);
}

.image-slot-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem 0.9rem 0.9rem;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 14, 28, 0.88) 55%, rgba(8, 14, 28, 0.96) 100%);
}

.image-slot span {
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(10, 23, 48, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.image-slot p {
  margin: 0;
  color: #dfe9ff;
  font-size: 0.9rem;
}

.trust-strip {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.trust-strip article {
  border-radius: 12px;
  padding: 0.9rem;
  background: rgba(10, 20, 40, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-strip strong {
  color: #8dd9ff;
}

.trust-strip p {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
}

.grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

#contacto > .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

#contacto .card p,
#contacto .card a {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

#contacto .card a {
  color: var(--primary);
  text-decoration: none;
}

#contacto .card a:hover {
  text-decoration: underline;
}

#contacto .split-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

#contacto .contact-form {
  max-width: none;
  margin-top: 1.15rem;
}

#servicios > .grid,
#servicios > .services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.service-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: auto;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.service-card-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.service-card h3 {
  margin: 0;
  padding: 1rem 1.15rem 1.15rem;
  font-size: 1.02rem;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

#servicios .split-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.25rem;
}

#servicios .media-card {
  min-height: 260px;
}

#servicios .rich-card {
  padding: 1.25rem 1.4rem;
}

#servicios .rich-card h3 {
  font-size: 1.15rem;
}

@media (max-width: 1024px) {
  #servicios > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin-bottom: 0;
  color: var(--text-soft);
  text-align: left;
  line-height: 1.55;
}

.card p + p {
  margin-top: 0.45rem;
}

.split-panel {
  margin-top: 1rem;
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.rich-card h3 {
  margin-bottom: 0.6rem;
}

.clean-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.media-card {
  min-height: 220px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background-size: cover;
  background-position: center;
}

.media-card h3 {
  margin: 0.25rem 0 0;
}

.media-card p {
  margin: 0;
}

.media-tech {
  background:
    linear-gradient(145deg, rgba(8, 20, 43, 0.74), rgba(20, 53, 98, 0.5)),
    url("../images/site/ejecucion-tecnica.jpg");
}

.media-contact {
  background:
    linear-gradient(145deg, rgba(8, 20, 43, 0.74), rgba(20, 53, 98, 0.5)),
    url("../images/site/atencion-cliente.jpg");
}

.compact-grid {
  margin-top: 1rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(17, 26, 49, 0.9);
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #d9e8ff;
  margin: 0.24rem 0;
  border-radius: 2px;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  max-width: 680px;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.checkout-fields input,
.store-filters select {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #0f1a2e;
  color: var(--text-main);
  padding: 0.72rem 0.82rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.checkout-fields input::placeholder {
  color: var(--text-muted);
}

.contact-form textarea {
  resize: vertical;
}

.tienda-layout {
  padding-top: 2rem;
  max-width: 1500px;
}

.store-title {
  margin: 0 0 0.45rem;
  text-align: center;
}

.store-subtitle {
  margin: 0 auto 1rem;
  text-align: center;
  max-width: 760px;
  color: var(--text-soft);
}

.store-filters {
  margin-bottom: 1rem;
  display: grid;
  gap: 0.45rem;
  max-width: 320px;
}

.store-filters label {
  font-weight: 600;
}

.store-filters select {
  padding: 0.6rem 0.75rem;
}

.store-alert {
  display: none;
}

.store-alert.is-visible {
  display: block;
  margin-bottom: 1rem;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
}

.store-alert.is-success {
  background: rgba(75, 227, 138, 0.18);
  border: 1px solid rgba(75, 227, 138, 0.45);
}

.store-alert.is-error {
  background: rgba(255, 107, 129, 0.18);
  border: 1px solid rgba(255, 107, 129, 0.45);
}

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

.product-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(14, 24, 42, 0.95);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.product-content p {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.product-price {
  color: var(--text-main);
  font-weight: 700;
}

.product-media {
  min-height: 120px;
  background: linear-gradient(145deg, rgba(14, 24, 42, 0.95), rgba(22, 38, 64, 0.85));
}

.product-media-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  background: rgba(14, 24, 42, 0.95);
}

.product-media--empty {
  min-height: 95px;
  display: grid;
  place-items: center;
}

.product-media--empty::after {
  content: "Sin imagen";
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(158, 176, 204, 0.75);
}

.product-content {
  padding: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.product-tag {
  margin: 0;
  width: fit-content;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(47, 200, 255, 0.2);
  border: 1px solid rgba(47, 200, 255, 0.45);
}

.product-content h3 {
  margin: 0;
  font-size: 0.98rem;
  text-align: left;
}

.product-content p {
  margin: 0;
  text-align: left;
  font-size: 0.87rem;
}

.product-price {
  color: #8ae2ff;
  font-weight: 700;
}

.product-stock {
  color: #b8c8ec;
  min-height: 35px;
}

.qty-label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
}

.qty-control {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 0.3rem;
}

.qty-input,
.cart-qty-input {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0d1832;
  color: var(--text-main);
  padding: 0.4rem 0.55rem;
  width: 100%;
  text-align: center;
}

.qty-btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  cursor: pointer;
  height: 32px;
  font-size: 1rem;
  font-weight: 700;
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.add-cart-btn {
  width: 100%;
}

.add-cart-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.store-empty,
.store-loading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
}

.store-loading {
  color: var(--text-muted, #9eb0c8);
}

.pagination {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.floating-cart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: #f0f0f0;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 25;
  cursor: pointer;
  padding: 0;
}

.floating-cart-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.floating-cart-count {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--danger);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.help-whatsapp-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: auto;
  top: auto;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  background: #ffffff;
  color: #0b1220;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.95);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

body.store-page .help-whatsapp-btn {
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

.help-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  color: #0b1220;
}

.help-whatsapp-btn-icon {
  flex-shrink: 0;
  color: #25d366;
}

.help-whatsapp-btn-text {
  white-space: nowrap;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 24, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 30;
}

.cart-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100vh;
  background: linear-gradient(180deg, #101a33 0%, #0c152b 100%);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-drawer-header-main {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.cart-drawer-header h2 {
  margin: 0;
  font-size: 1rem;
}

.cart-drawer-back {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.cart-drawer-back:hover {
  border-color: var(--border-strong);
}

.cart-drawer-alert {
  display: none;
  margin: 0.5rem 0.65rem 0;
  flex-shrink: 0;
}

.cart-drawer-alert.is-visible {
  display: block;
}

.cart-drawer-panels {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-drawer-step {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.cart-drawer-step.is-active {
  display: flex;
}

.cart-drawer-step[hidden] {
  display: none !important;
}

.cart-drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.55rem 0.65rem;
  min-height: 0;
}

.cart-drawer-body--checkout {
  padding-top: 0.35rem;
}

.cart-drawer-footer {
  border-top: 1px solid var(--border);
  padding: 0.7rem 0.75rem 0.85rem;
  background: rgba(8, 14, 30, 0.92);
  flex-shrink: 0;
}

.cart-drawer-total {
  margin: 0 0 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}

.cart-checkout-summary {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.cart-checkout-summary strong {
  color: #9de6ff;
  font-size: 1.05rem;
}

.cart-pay-btn {
  width: 100%;
}

.cart-pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.cart-drawer-total strong {
  color: #9de6ff;
  font-size: 1.2rem;
}

.checkout-fields {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.checkout-fields textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #0f1a2e;
  color: var(--text-main);
  padding: 0.55rem 0.65rem;
  resize: vertical;
  min-height: 52px;
  font-family: inherit;
}

.delivery-notice {
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-soft);
  background: rgba(56, 196, 240, 0.1);
  border: 1px solid rgba(56, 196, 240, 0.25);
}

.delivery-notice strong {
  color: var(--primary);
}

.delivery-notice--page {
  max-width: 480px;
  margin: 1rem auto 0;
  text-align: center;
}

.checkout-fields label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
}

.checkout-fields input {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0d1832;
  color: var(--text-main);
  padding: 0.62rem 0.75rem;
}

.cart-pay-btn {
  width: 100%;
}

.cart-list {
  display: grid;
  gap: 0.45rem;
}

.cart-drawer .cart-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.45rem 0.5rem;
  display: block;
}

.cart-item-compact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}

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

.cart-item-type {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9de6ff;
  background: rgba(77, 184, 255, 0.12);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  line-height: 1.3;
}

.cart-item-name {
  margin: 0.15rem 0 0.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-unit-price {
  display: block;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.cart-line-total {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  padding-top: 0.1rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.cart-drawer .qty-control--cart {
  grid-template-columns: 26px 42px 26px;
  gap: 0.2rem;
  flex: 0 0 auto;
}

.cart-drawer .qty-control--cart .qty-btn {
  height: 26px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.cart-drawer .cart-qty-input {
  padding: 0.2rem 0.15rem;
  font-size: 0.78rem;
  border-radius: 6px;
  min-height: 26px;
}

.cart-drawer .cart-remove-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 107, 129, 0.4);
  background: rgba(255, 107, 129, 0.12);
  color: #ffb4c0;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.cart-drawer .cart-remove-btn:hover {
  background: rgba(255, 107, 129, 0.26);
}

.cart-drawer .cart-remove-btn svg {
  display: block;
}

/* Estilos genéricos de carrito (página completa, si se usa) */
.cart-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cart-item h3 {
  margin: 0.35rem 0 0.25rem;
}

.cart-item p {
  margin: 0.2rem 0;
  text-align: left;
}

.cart-actions {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cart-actions label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
  min-width: 160px;
}

.cart-remove-btn {
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  min-width: 44px;
  font-size: 1rem;
}

.cart-item-price {
  min-width: 200px;
  text-align: right;
}

.cart-summary {
  margin-top: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cart-summary p {
  margin: 0;
  font-size: 1.05rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.55rem;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #8ed9ff;
  font-size: 0.9rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.admin-tabs {
  margin-bottom: 0;
}

.admin-stats {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 1rem;
}

.admin-stats .card {
  text-align: center;
}

.admin-stats .card p {
  margin-top: 0.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #8adfff;
  text-align: center;
}

.admin-inventory {
  margin-top: 1rem;
}

.admin-actions-cell {
  min-width: 220px;
}

.admin-inline-form {
  display: inline-block;
}

.admin-stock-form {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.35rem;
}

.admin-stock-input {
  width: 84px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0d1832;
  color: var(--text-main);
  padding: 0.35rem 0.45rem;
}

/* ——— Panel administrativo (vistas separadas) ——— */
.admin-page {
  background: #080f1c;
  min-height: 100vh;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: linear-gradient(180deg, #0e1829 0%, #0a1220 100%);
  border-right: 1px solid var(--border);
  padding: 1.1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.4rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-brand strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.admin-sidebar-brand span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-sidebar-nav {
  display: grid;
  gap: 0.35rem;
  flex: 1;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.7rem;
  border-radius: var(--radius-md);
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.admin-nav-link.is-active {
  background: linear-gradient(120deg, rgba(56, 196, 240, 0.22), rgba(123, 140, 255, 0.18));
  border-color: rgba(56, 196, 240, 0.35);
  color: var(--text-main);
  font-weight: 700;
}

.admin-nav-link--muted {
  font-size: 0.82rem;
}

.admin-nav-link--danger {
  color: #ffb4c0;
}

.admin-nav-link--danger:hover {
  background: rgba(255, 107, 129, 0.12);
  color: #ffd0d8;
}

.admin-nav-icon {
  width: 1.25rem;
  text-align: center;
  opacity: 0.9;
}

.admin-sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  display: grid;
  gap: 0.25rem;
}

.admin-user-label {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0 0.4rem;
}

.admin-credit {
  margin: 0.65rem 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 0 0.4rem;
  line-height: 1.4;
}

.admin-credit strong {
  color: #c5d4e8;
  font-weight: 700;
}

.admin-credit--login {
  margin-top: 1.25rem;
  text-align: center;
  padding: 0;
}

.admin-main {
  padding: 1.25rem 1.35rem 2rem;
  overflow-x: auto;
}

.admin-page-head {
  margin-bottom: 1rem;
}

.admin-page-head h1 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--text-main);
}

.admin-page-head p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.admin-content {
  display: grid;
  gap: 1rem;
}

.admin-flash {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.admin-flash.is-success {
  background: rgba(61, 214, 140, 0.15);
  border: 1px solid rgba(61, 214, 140, 0.4);
  color: #9ef5c4;
}

.admin-flash.is-error {
  background: rgba(255, 107, 129, 0.15);
  border: 1px solid rgba(255, 107, 129, 0.4);
  color: #ffc8d0;
}

.admin-card {
  background: rgba(16, 26, 44, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.admin-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.admin-card--info p {
  margin: 0.4rem 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.admin-card--info code {
  color: var(--primary);
}

.admin-card-note {
  margin-top: 0.65rem !important;
  color: var(--primary) !important;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.admin-card-head h2 {
  margin: 0;
}

.admin-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(56, 196, 240, 0.15);
  color: var(--primary);
  border: 1px solid rgba(56, 196, 240, 0.3);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.admin-stat-card {
  background: rgba(16, 26, 44, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.05rem;
  display: grid;
  gap: 0.25rem;
}

.admin-stat-card--warn {
  border-color: rgba(255, 193, 79, 0.35);
}

.admin-stat-card--accent {
  border-color: rgba(56, 196, 240, 0.4);
}

.admin-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-stat-value {
  font-size: 1.75rem;
  color: var(--text-main);
  line-height: 1.1;
}

.admin-stat-link {
  font-size: 0.82rem;
  color: var(--primary);
  text-decoration: none;
  margin-top: 0.2rem;
}

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

.admin-stat-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.admin-action-card {
  background: rgba(16, 26, 44, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  display: grid;
  gap: 0.35rem;
}

.admin-action-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: rgba(22, 34, 56, 0.98);
}

.admin-action-card h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-main);
}

.admin-action-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.admin-action-icon {
  font-size: 1.35rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-filter-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.admin-filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
}

.admin-filter-btn.is-active {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: var(--primary-dark);
  border-color: transparent;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
  font-family: inherit;
}

.admin-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.admin-btn--primary {
  background: linear-gradient(125deg, var(--success), #6ee9a8);
  color: var(--success-text);
}

.admin-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text-main);
}

.admin-btn--wa {
  background: linear-gradient(125deg, #25d366, #1ebe57);
  color: #042a12;
}

.admin-btn--sm {
  padding: 0.38rem 0.65rem;
  font-size: 0.78rem;
}

.admin-input {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #0f1a2e;
  color: var(--text-main);
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.88rem;
  width: 100%;
}

.admin-input--sm {
  width: 4.5rem;
  padding: 0.4rem 0.5rem;
}

.admin-input:focus {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--border-strong);
}

.admin-form {
  display: grid;
  gap: 0.75rem;
}

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

.admin-field {
  display: grid;
  gap: 0.3rem;
}

.admin-field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

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

.admin-split-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 1rem;
  align-items: start;
}

.admin-form-panel h2 {
  margin-top: 0;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.admin-stock-inline {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.admin-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

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

.admin-hint {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.admin-hint code {
  color: #9de6ff;
}

.admin-search-form {
  display: flex;
  gap: 0.4rem;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.admin-details-summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-main);
  list-style: none;
}

.admin-details-summary::-webkit-details-marker {
  display: none;
}

.admin-card--warn {
  border-color: rgba(255, 193, 79, 0.35);
}

.admin-error-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #ffd98a;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-image-preview {
  margin: 0.35rem 0 0.65rem;
  max-width: 220px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.admin-image-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
}

.admin-item-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

.admin-thumb-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 0.65rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.admin-page .admin-layout {
  max-width: none;
}

.admin-panel {
  padding: 1.4rem;
}

.admin-forms-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.admin-form-card h3 {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-form .contact-form {
  max-width: none;
}

.admin-action-group {
  display: grid;
  gap: 0.45rem;
}

.admin-btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-size: 0.82rem;
}

.admin-btn-secondary:hover {
  border-color: rgba(61, 208, 255, 0.6);
}

.admin-notify-hint {
  margin-bottom: 1rem;
}

.admin-notify-hint p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.admin-notify-hint code {
  color: var(--primary);
  font-size: 0.85em;
}

.admin-orders {
  margin-bottom: 1.25rem;
}

.admin-orders-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-orders-head h3 {
  margin: 0;
}

.admin-order-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-empty {
  margin: 0;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}

.admin-orders-list {
  display: grid;
  gap: 0.65rem;
}

.order-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.order-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  padding: 0.65rem 0.75rem;
}

.order-card summary::-webkit-details-marker {
  display: none;
}

.order-card-id {
  font-weight: 800;
  color: var(--primary);
}

.order-card-meta {
  flex: 1;
  min-width: 140px;
  color: var(--text-main);
  font-size: 0.9rem;
}

.order-card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.order-card-body {
  padding: 0 0.75rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.order-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 0.75rem 0;
  font-size: 0.88rem;
}

.order-card-grid p {
  margin: 0.2rem 0;
  color: var(--text-soft);
}

.order-card-body h4 {
  margin: 0.5rem 0 0.4rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.admin-table-compact th,
.admin-table-compact td {
  padding: 0.4rem 0.5rem;
  font-size: 0.82rem;
}

.order-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
  margin-top: 0.75rem;
}

.admin-wa-btn {
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
}

.admin-delivery-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: flex-end;
}

.admin-delivery-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.admin-delivery-form select {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f1a2e;
  color: var(--text-main);
  padding: 0.4rem 0.5rem;
}

.status-pill.status-paid {
  background: rgba(61, 214, 140, 0.2);
  color: #8ef0b8;
}

.status-pill.status-pending {
  background: rgba(255, 193, 79, 0.18);
  color: #ffd98a;
}

.status-pill.delivery-preparing {
  background: rgba(56, 196, 240, 0.18);
  color: #9de6ff;
}

.status-pill.delivery-shipped {
  background: rgba(123, 140, 255, 0.2);
  color: #b8c4ff;
}

.status-pill.delivery-delivered {
  background: rgba(61, 214, 140, 0.2);
  color: #8ef0b8;
}

.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill.is-active {
  background: rgba(75, 227, 138, 0.2);
  color: #9ef5c4;
  border: 1px solid rgba(75, 227, 138, 0.45);
}

.status-pill.is-inactive {
  background: rgba(255, 107, 129, 0.16);
  color: #ffb9c4;
  border: 1px solid rgba(255, 107, 129, 0.4);
}

.page-btn {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.page-btn.is-active {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #04142f;
  border-color: transparent;
  font-weight: 700;
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
    font-size: 0.97rem;
  }

  body.store-page {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .site-header,
  .store-page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 1rem 1rem 0.5rem;
  }

  .brand h1 {
    font-size: clamp(1.05rem, 4.5vw, 1.25rem);
  }

  .brand p {
    font-size: 0.84rem;
  }

  .header-actions {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }

  .header-actions .cta-button,
  .store-page-header > .cta-button {
    flex: 1;
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
  }

  .layout,
  .tienda-layout {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .tabs {
    display: none;
    width: 100%;
    background: rgba(9, 15, 31, 0.96);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.65rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    flex-direction: column;
    gap: 0.4rem;
  }

  .tabs.is-open {
    display: flex;
  }

  .tab {
    width: 100%;
    text-align: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
  }

  .tab-panel {
    padding: 1rem 0.85rem;
  }

  .tab-panel h2 {
    font-size: clamp(1.2rem, 5vw, 1.45rem);
  }

  #contacto > .grid,
  #contacto .split-panel,
  #servicios > .grid,
  #servicios > .services-grid,
  #servicios .split-panel {
    grid-template-columns: 1fr;
  }

  .banner {
    padding: 1.1rem;
  }

  .banner h2,
  .tab-panel h2,
  .card h3,
  .gallery-head h3 {
    text-align: center;
  }

  .banner p,
  .card p,
  .trust-strip p,
  .clean-list {
    text-align: left;
  }

  .contact-form input,
  .contact-form textarea,
  .checkout-fields input,
  .checkout-fields textarea,
  .store-filters select,
  .qty-input,
  .cart-qty-input {
    font-size: 16px;
    min-height: 44px;
  }

  .store-filters {
    max-width: none;
    width: 100%;
  }

  .store-top-intro {
    max-width: none;
  }

  .store-title {
    font-size: clamp(1.15rem, 5vw, 1.4rem);
  }

  .store-subtitle {
    font-size: 0.9rem;
    padding: 0 0.25rem;
  }

  .store-nav {
    width: 100%;
    justify-content: center;
  }

  .store-nav .tab {
    flex: 1;
    min-width: 0;
  }

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

  .product-content {
    padding: 0.65rem;
    gap: 0.4rem;
  }

  .product-content h3 {
    font-size: 0.88rem;
  }

  .product-content p {
    font-size: 0.8rem;
  }

  .qty-control {
    grid-template-columns: 38px 1fr 38px;
  }

  .qty-btn {
    height: 38px;
    min-width: 38px;
  }

  .add-cart-btn {
    min-height: 42px;
    font-size: 0.85rem;
    padding: 0.55rem 0.5rem;
  }

  .page-btn {
    min-height: 40px;
    min-width: 40px;
    padding: 0.5rem 0.75rem;
  }

  .floating-cart {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .floating-cart-icon {
    font-size: 1.55rem;
  }

  .help-whatsapp-btn {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    min-height: 46px;
    padding: 0.65rem 0.95rem;
    font-size: 0.84rem;
  }

  body.store-page .help-whatsapp-btn {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }

  .cart-drawer-header {
    padding: 0.75rem 0.85rem;
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
  }

  .cart-drawer-header h2 {
    font-size: 1.05rem;
  }

  .cart-drawer-close,
  .cart-drawer-back {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }

  .cart-drawer-footer {
    padding: 0.85rem;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .cart-pay-btn {
    min-height: 48px;
    font-size: 1rem;
  }

  .cart-drawer .qty-control--cart {
    grid-template-columns: 34px 48px 34px;
  }

  .cart-drawer .qty-control--cart .qty-btn {
    height: 34px;
    min-width: 34px;
  }

  .cart-drawer .cart-remove-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .cart-item {
    flex-direction: column;
  }

  .cart-item-price {
    min-width: auto;
    text-align: left;
  }

  .cart-summary {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

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

  .order-card-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-sidebar {
    position: relative;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.75rem;
  }

  .admin-sidebar-brand {
    border-bottom: none;
    padding-bottom: 0;
    flex: 1;
    min-width: 140px;
  }

  .admin-sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 100%;
    order: 3;
  }

  .admin-sidebar-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    border-top: none;
    padding-top: 0;
    flex: 1 1 100%;
    order: 4;
  }

  .admin-user-label {
    flex: 1 1 100%;
  }

  .admin-split-layout,
  .admin-form--grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 100%;
  }

  .site-footer-title {
    font-size: 0.98rem;
  }
}

@media (min-width: 421px) and (max-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }
}
