:root {
  --background: #F2F2F2;
  --surface: #FFFFFF;
  --foreground: #1F2937;
  --muted-foreground: #5B6B7E;
  --primary: #F20519;
  --accent: #0487D9;
  --accent-strong: #0272B5;
  --primary-strong: #D10419;
  --border-strong: #8C8C8C;
  --muted-strong: #4B5A6D;
  --secondary: #1F2937;
  --border: #E2E2E2;
  --radius: 8px;
  --shadow-card: 0 1px 2px rgba(31, 41, 55, 0.06), 0 8px 24px rgba(31, 41, 55, 0.06);
  --shadow-cta: 0 6px 18px rgba(4, 135, 217, 0.28);
  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Encabezado */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo .m {
  color: var(--primary);
}

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

.logo .x {
  color: var(--primary);
}

nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

nav a {
  transition: color 0.2s;
}

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

.btn-outline {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

@media (min-width: 768px) {
  nav {
    display: flex;
  }
}

/* Botón WhatsApp */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 1.75rem;
  border-radius: 6px;
  box-shadow: var(--shadow-cta);
  transition: transform 0.2s;
}

.btn-whatsapp:hover {
  transform: scale(1.02);
}

.btn-whatsapp svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Portada */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--secondary);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background: radial-gradient(circle at 20% 30%, var(--accent) 0, transparent 40%), radial-gradient(circle at 80% 70%, var(--primary) 0, transparent 45%);
}

.hero-inner {
  position: relative;
  padding-block: 6rem;
}

@media (min-width: 768px) {
  .hero-inner {
    padding-block: 8rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.badge svg {
  width: 1rem;
  height: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  max-width: 48rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}

.hero p.lead {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero .btn-whatsapp {
  margin-top: 2.5rem;
}

/* Secciones */
section {
  padding-block: 5rem;
}

@media (min-width: 768px) {
  section {
    padding-block: 6rem;
  }
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-sub {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* Tarjetas */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.icon-box {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
}

.icon-box svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.card p {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}

/* Servicios */
.services {
  background: var(--surface);
}

.service-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.service-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.service-img.display {
  background: var(--primary);
}

.service-img.exhibidores {
  background: var(--accent);
}

.service-img.senalizacion {
  background: var(--secondary);
}

.service-body {
  padding: 1.75rem;
}

.service-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.service-body p {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}

/* Testimonios */
.testimonial {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial > svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.testimonial blockquote {
  margin-top: 1.25rem;
  flex-grow: 1;
  color: var(--muted-foreground);
}

.testimonial figcaption {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.testimonial figcaption .name {
  font-weight: 700;
}

.testimonial figcaption .role {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Contacto */
.contact {
  background: var(--secondary);
  color: #fff;
}

.contact .section-sub {
  color: rgba(255, 255, 255, 0.85);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--primary);
}

.contact-item .label {
  font-weight: 700;
}

.contact-item .value {
  color: rgba(255, 255, 255, 0.8);
}

.social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social a {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
}

.social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.social svg {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  color: currentColor;
}

/* Footer */
footer {
  background: var(--surface);
  padding-block: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Autenticación */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-actions button.btn-outline {
  background: var(--surface);
  color: var(--foreground);
  font-family: var(--font-body);
  cursor: pointer;
}

.link-logout,
.link-forgot {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-strong);
  cursor: pointer;
  text-decoration: underline;
}

.link-logout[hidden],
.auth-bar[hidden],
.modal-backdrop[hidden],
.auth-form[hidden],
.auth-message[hidden] {
  display: none;
}

.auth-bar {
  background: var(--secondary);
  color: #fff;
  padding-block: 0.625rem;
  font-size: 0.875rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(31, 41, 55, 0.6);
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 26rem;
  max-height: 100%;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.modal h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: 0;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--muted-foreground);
  cursor: pointer;
}

.tabs {
  display: flex;
  margin-top: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.tab {
  flex: 1;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted-foreground);
  cursor: pointer;
}

.tab.active {
  color: var(--primary-strong);
  border-bottom-color: var(--primary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.auth-form label {
  font-size: 0.875rem;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--foreground);
  background: var(--surface);
}

.auth-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.auth-form .btn-whatsapp {
  margin-top: 0.75rem;
  border: 0;
  font-family: var(--font-body);
  cursor: pointer;
}

.link-forgot {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.auth-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-message.error {
  color: var(--primary-strong);
  border: 1px solid var(--primary-strong);
}

.auth-message.success {
  color: var(--accent-strong);
  border: 1px solid var(--accent-strong);
}

/* Foco visible */
:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
}

.hero :focus-visible,
.contact :focus-visible,
.auth-bar :focus-visible {
  outline-color: #fff;
}

/* Perfil */
.profile-page {
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .profile-page {
    padding-block: 4rem;
  }
}

.profile-loading {
  text-align: center;
  color: var(--muted-strong);
}

.profile-card {
  max-width: 36rem;
  margin-inline: auto;
}

.profile-title {
  font-size: 1.875rem;
  font-weight: 700;
}

.profile-card .section-sub {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--muted-strong);
}

.avatar-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.avatar {
  flex-shrink: 0;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--foreground);
}

.btn-secondary:disabled,
.profile-card .btn-whatsapp:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.field {
  margin-top: 1.5rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.field input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--foreground);
  background: var(--surface);
}

.field input[readonly] {
  background: var(--background);
  cursor: not-allowed;
}

.field input[aria-invalid="true"] {
  border-color: var(--primary-strong);
  border-width: 2px;
}

.profile-card .help {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-strong);
}

.field-error,
.form-status {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.field-error,
.form-status.error {
  color: var(--primary-strong);
}

.form-status.success {
  color: var(--accent-strong);
}

.field-error[hidden],
.form-status[hidden],
.profile-loading[hidden],
.profile-card[hidden] {
  display: none;
}

.field-error svg,
.form-status svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.form-status {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid currentColor;
  border-radius: 6px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form-actions .btn-whatsapp {
  border: 0;
  font-family: var(--font-body);
  cursor: pointer;
}

.profile-divider {
  margin-block: 2rem;
  border: 0;
  border-top: 1px solid var(--border);
}
/* Áreas táctiles del modal en celular */
.modal-close {
  top: 0.25rem;
  right: 0.25rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-forgot {
  min-height: 2.75rem;
  padding-block: 0.625rem;
}

.tab {
  min-height: 2.75rem;
}

@media (max-width: 479px) {
  .modal {
    padding: 1.5rem 1.25rem;
  }
}
/* Chat con Expotito */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow-cta);
  cursor: pointer;
  transition: transform 0.2s;
}

.chat-fab:hover {
  transform: scale(1.02);
}

.chat-fab svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.chat-panel {
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(24rem, calc(100vw - 2rem));
  height: min(36rem, calc(100vh - 7rem));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

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

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--secondary);
  color: #fff;
}

.chat-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
}

.chat-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.chat-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.chat-head :focus-visible {
  outline-color: #fff;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1rem;
  background: var(--background);
}

.chat-msg {
  max-width: 85%;
  padding: 0.625rem 0.875rem;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-msg-bot {
  align-self: flex-start;
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--accent-strong);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
}

.chat-msg-user a {
  color: #fff;
}

.chat-typing {
  color: var(--muted-strong);
  font-style: italic;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem 0.75rem;
  background: var(--background);
}

.chat-suggestions[hidden] {
  display: none;
}

.chat-chip {
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  background: var(--surface);
  color: var(--accent-strong);
  border: 1px solid var(--accent-strong);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.chat-chip:hover {
  background: var(--background);
}

.chat-chip:disabled,
.chat-send:disabled,
.chat-form input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--foreground);
  background: var(--surface);
}

.chat-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 0;
  border-radius: 6px;
  background: var(--accent-strong);
  color: #fff;
  cursor: pointer;
}

.chat-send svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 479px) {
  .chat-panel {
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  body.chat-open {
    overflow: hidden;
  }

  body.chat-open .chat-fab {
    display: none;
  }
}
/* Tienda */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.shop-chip {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.shop-chip:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.shop-chip[aria-pressed="true"] {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.shop-status {
  margin-top: 2rem;
  color: var(--muted-strong);
}

.shop-status[hidden] {
  display: none;
}

.shop-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.product-card[hidden] {
  display: none;
}

.product-cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-strong);
}

.product-name {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.product-size {
  margin-top: 0.5rem;
  color: var(--muted-strong);
}

.product-label {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.product-select {
  margin-top: 0.375rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
}

.product-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.2;
}

.product-sku {
  font-size: 0.8125rem;
  color: var(--muted-strong);
}

.product-add {
  border: 0;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  cursor: pointer;
}

/* Carrito */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  background: var(--accent-strong);
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.cart-btn svg {
  width: 1.375rem;
  height: 1.375rem;
}

.cart-count {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--primary-strong);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.375rem;
  text-align: center;
}

.cart-count[hidden] {
  display: none;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(31, 41, 55, 0.45);
}

.cart-backdrop[hidden],
.cart-panel[hidden] {
  display: none;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 96;
  display: flex;
  flex-direction: column;
  width: min(26rem, 100%);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow-y: auto;
}

body.cart-open {
  overflow: hidden;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--secondary);
  color: #fff;
}

.cart-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.cart-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.cart-head :focus-visible {
  outline-color: #fff;
}

.cart-notice {
  margin: 1rem 1.25rem 0;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--background);
  border-left: 4px solid var(--accent-strong);
  font-size: 0.9375rem;
}

.cart-notice[hidden],
.cart-empty[hidden],
.cart-summary[hidden],
.cart-error[hidden] {
  display: none;
}

.cart-lines {
  list-style: none;
  padding: 0 1.25rem;
}

.cart-line {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-line-name {
  font-weight: 700;
  line-height: 1.4;
}

.cart-line-meta {
  font-size: 0.875rem;
  color: var(--muted-strong);
}

.cart-line-price {
  margin-top: 0.25rem;
  font-weight: 700;
}

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

.cart-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
}

.cart-qty-btn {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--surface);
  color: var(--foreground);
  border: 0;
  font-size: 1.25rem;
  cursor: pointer;
}

.cart-qty-btn:disabled {
  color: var(--border-strong);
  cursor: not-allowed;
}

.cart-qty-input {
  width: 3.25rem;
  height: 2.75rem;
  border: 0;
  border-inline: 1px solid var(--border);
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--foreground);
  -moz-appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-remove {
  min-height: 2.75rem;
  padding: 0 0.5rem;
  background: none;
  border: 0;
  color: var(--primary-strong);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.cart-empty {
  padding: 2rem 1.25rem;
  color: var(--muted-strong);
}

.cart-summary {
  margin-top: auto;
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.25rem;
}

.cart-row-strong {
  font-size: 1.125rem;
}

.cart-row-strong strong {
  color: var(--accent-strong);
}

.cart-help {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-strong);
  line-height: 1.5;
}

.cart-error {
  margin-top: 0.75rem;
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.9375rem;
}

.cart-pay {
  width: 100%;
  margin-top: 1rem;
  border: 0;
  font-family: var(--font-body);
  cursor: pointer;
}

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

.thanks-card .profile-title {
  margin-top: 1.5rem;
}

@media (max-width: 479px) {
  .header-actions .btn-outline[href="#contacto"] {
    display: none;
  }
}