/* Reusable UI Components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch-target-min);
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-base);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  user-select: none;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.btn-primary:hover {
  background-color: var(--color-red-hover);
  border-color: var(--color-red-hover);
}

.btn-secondary {
  background-color: var(--color-dark-elevated);
  color: var(--color-white);
  border-color: var(--color-dark-border);
}

.btn-secondary:hover {
  background-color: #333333;
  border-color: #555555;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

.btn-danger {
  background-color: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.btn-danger:hover {
  background-color: var(--color-red-hover);
  border-color: var(--color-red-hover);
}

.btn-success {
  background-color: var(--color-green);
  color: var(--color-black);
  border-color: var(--color-green);
  font-weight: 800;
}

.btn-success:hover {
  background-color: var(--color-green-hover);
  border-color: var(--color-green-hover);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #053B18;
  border-color: var(--color-whatsapp);
  font-weight: 800;
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  border-color: var(--color-whatsapp-hover);
}

.btn-location {
  background-color: #0284C7;
  color: var(--color-white);
  border-color: #0284C7;
  font-weight: 700;
}

.btn-location:hover {
  background-color: #0369A1;
  border-color: #0369A1;
}

.btn-lg {
  min-height: 56px;
  font-size: var(--font-size-md);
  padding: var(--space-4) var(--space-6);
}

.btn-sm {
  min-height: 38px;
  font-size: var(--font-size-sm);
  padding: var(--space-1) var(--space-3);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Cards */
.card {
  background-color: var(--color-dark-surface);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-header {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-dark-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  background-color: rgba(255, 255, 255, 0.02);
  min-width: 0;
}

.card-title {
  font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
  min-width: 0;
  word-break: break-word;
}

.card-body {
  padding: var(--space-5);
}

.card-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-dark-border);
  background-color: rgba(0, 0, 0, 0.2);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.55rem;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-active {
  background-color: var(--color-green);
  color: #064E3B;
}

.badge-revoked {
  background-color: var(--color-red);
  color: var(--color-white);
}

.badge-paused {
  background-color: #D97706;
  color: #451A03;
}

.badge-blood {
  background-color: #262626;
  color: var(--color-red);
  border: 1px solid var(--color-red);
  font-size: var(--font-size-base);
  padding: 0.35rem 0.75rem;
  font-weight: 800;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #E5E7EB;
  margin-bottom: var(--space-2);
}

.form-label-required::after {
  content: " *";
  color: var(--color-red);
}

.form-control, .form-select, .form-input {
  width: 100%;
  min-height: var(--touch-target-min);
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-base);
  background-color: var(--color-dark-elevated);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-md);
  color: var(--color-white);
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.form-control:focus, .form-select:focus, .form-input:focus {
  border-color: var(--color-red);
  outline: none;
  box-shadow: 0 0 0 2px var(--color-red);
}

input[type="date"].form-control,
input[type="date"].form-input,
input[type="time"].form-control,
input[type="time"].form-input {
  color-scheme: dark;
}

/* Modal Fallback Helper Classes for Complete Visual Consistency */
.modal-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.modal-header {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-dark-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  background: linear-gradient(180deg, #1C1C1E 0%, #141416 100%);
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-white);
  margin: 0;
}

.modal-body {
  padding: var(--space-5);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-dark-border);
  background: #151518;
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  flex-shrink: 0;
}

.modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--color-red);
  color: var(--color-red);
}

/* Password Field with Toggle Button */
.password-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-field-wrapper .form-control {
  padding-right: 48px;
}

.password-toggle-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-gray-light, #9CA3AF);
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius-md);
  transition: color 0.15s ease, transform 0.1s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.password-toggle-btn:hover {
  color: var(--color-white, #FFFFFF);
}

.password-toggle-btn:focus-visible {
  color: var(--color-white, #FFFFFF);
  outline: 2px solid var(--color-red);
  outline-offset: -2px;
}

.password-toggle-btn:active {
  transform: scale(0.92);
}

.password-toggle-btn svg {
  pointer-events: none;
}

.form-hint {
  font-size: var(--font-size-xs);
  color: var(--color-gray-light);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-red);
  font-weight: 600;
  margin-top: var(--space-1);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.form-check-input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--color-red);
  flex-shrink: 0;
  cursor: pointer;
}

.form-check-label {
  font-size: var(--font-size-sm);
  color: #D1D5DB;
  cursor: pointer;
}

/* Alerts */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
}

.alert-success {
  background-color: #064E3B;
  color: #D1FAE5;
  border-left: 4px solid var(--color-green);
}

.alert-error {
  background-color: #450A0A;
  color: #FEE2E2;
  border-left: 4px solid var(--color-red);
}

.alert-info {
  background-color: #0C4A6E;
  color: #E0F2FE;
  border-left: 4px solid #38BDF8;
}

/* Tables */
.table-responsive,
.qr-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--font-size-sm);
}

.table th, .table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-dark-border);
}

.table th {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--color-gray-light);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--font-size-xs);
  letter-spacing: 0.05em;
}

.table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Locking styles to prevent background scroll drifting when dialog is open */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: pan-x pan-y;
}

/* Modals with Open & Close Animations */
dialog.modal:not([open]) {
  display: none !important;
}

dialog.modal {
  margin: auto;
  border: 2px solid var(--color-red);
  border-radius: var(--radius-lg);
  background-color: var(--color-dark-surface);
  color: var(--color-white);
  padding: 0;
  max-width: min(560px, calc(100vw - 1.25rem));
  width: calc(100% - 1.25rem);
  max-height: min(92dvh, 92vh, 680px);
  position: fixed;
  inset: 0;
  overflow: hidden !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

dialog.modal[open] {
  display: flex !important;
  flex-direction: column !important;
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

dialog.modal form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

dialog.modal .card-header {
  flex-shrink: 0;
}

dialog.modal .card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

dialog.modal .card-footer {
  flex-shrink: 0;
}

dialog.modal::backdrop {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  animation: backdropEnter 0.25s ease forwards;
}

dialog.modal.modal-closing {
  animation: modalExit 0.22s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

dialog.modal.modal-closing::backdrop {
  animation: backdropExit 0.22s ease forwards !important;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalExit {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.88) translateY(-14px);
  }
}

@keyframes backdropEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes backdropExit {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Circular Modal Close Button (X in Circle with Animations) */
.modal-close-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  outline: none;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease,
              color 0.2s ease;
  user-select: none;
}

.modal-close-circle:hover {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: #FFFFFF;
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(250, 1, 8, 0.7);
}

.modal-close-circle:focus-visible {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: #FFFFFF;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(250, 1, 8, 0.6);
  outline: none;
}

.modal-close-circle:active {
  transform: scale(0.95);
}

.modal-close-circle .modal-close-x {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  display: block;
  pointer-events: none;
}

/* Close spin/shrink animation on the circle button itself */
.modal-close-circle.closing {
  animation: closeBtnSpinOut 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes closeBtnSpinOut {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotate(90deg) scale(0.8);
  }
  100% {
    transform: rotate(180deg) scale(0);
    opacity: 0;
  }
}

/* Floating top-right corner positioning for modals and window cards */
.modal-close-circle.modal-close-corner {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 25;
}

/* Standalone Window Cards (e.g. /registro, /login, /recuperar) */
.card-window {
  position: relative;
}

.card-window.modal-closing,
.card.modal-closing {
  animation: modalExit 0.22s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

/* App Install Modal & Sheet */
dialog.pwa-install-modal {
  max-width: min(480px, calc(100vw - 1.5rem));
  border: 2px solid var(--color-red);
  border-radius: var(--radius-xl);
  overflow-y: auto;
  max-height: 90vh;
  max-height: 90dvh;
}

.pwa-modal-body {
  padding: var(--space-6);
  text-align: center;
}

.pwa-app-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-4);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(229, 9, 32, 0.35);
  border: 2px solid var(--color-red);
  background-color: var(--color-black);
}

.pwa-modal-title {
  font-size: var(--font-size-xl);
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: var(--space-1);
}

.pwa-modal-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-red);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.pwa-benefits {
  background-color: var(--color-dark-elevated);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: left;
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pwa-benefit-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: #D1D5DB;
  line-height: 1.4;
}

.pwa-benefit-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.pwa-ios-guide {
  background: #181818;
  border: 1px solid #333333;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: left;
  margin-bottom: var(--space-5);
  font-size: var(--font-size-sm);
}

.pwa-ios-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid #282828;
}

.pwa-ios-step:last-child {
  border-bottom: none;
}

.pwa-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--color-red);
  color: #FFF;
  font-weight: 800;
  font-size: var(--font-size-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   QR Code Live Camera Scanner & Reader
   ========================================================================== */
.qr-scanner-modal {
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-xl);
  background-color: #0C0C0C;
  color: var(--color-white);
  padding: 0;
  max-width: 480px;
  width: 92%;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.qr-scanner-header {
  padding: var(--space-4);
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #242424;
}

.qr-scanner-title {
  font-size: var(--font-size-base);
  font-weight: 800;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.qr-scanner-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-scanner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qr-scanner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-scanner-box {
  width: min(240px, 75%);
  aspect-ratio: 1 / 1;
  height: auto;
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  transition: border-color 0.2s ease;
}

.qr-scanner-box.detected {
  border-color: #00E676;
  border-style: solid;
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.6);
}

/* Corner highlights */
.qr-scanner-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--color-red);
  border-style: solid;
  border-width: 0;
}

.qr-scanner-box.detected .qr-scanner-corner {
  border-color: #00E676;
}

.qr-scanner-corner.tl { top: -2px; left: -2px; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 12px; }
.qr-scanner-corner.tr { top: -2px; right: -2px; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 12px; }
.qr-scanner-corner.bl { bottom: -2px; left: -2px; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 12px; }
.qr-scanner-corner.br { bottom: -2px; right: -2px; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 12px; }

/* Animated scanning laser line */
.qr-scanner-laser {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #FF1744, #FF5252, #FF1744, transparent);
  box-shadow: 0 0 12px #FF1744, 0 0 4px #FFF;
  animation: qrLaserScan 2s ease-in-out infinite;
  pointer-events: none;
}

.qr-scanner-box.detected .qr-scanner-laser {
  background: linear-gradient(90deg, transparent, #00E676, #69F0AE, #00E676, transparent);
  box-shadow: 0 0 14px #00E676;
}

@keyframes qrLaserScan {
  0%   { top: 12px; opacity: 0.8; }
  50%  { top: 220px; opacity: 1; }
  100% { top: 12px; opacity: 0.8; }
}

.qr-scanner-footer {
  padding: var(--space-4);
  background: #141414;
  border-top: 1px solid #242424;
}

.qr-scanner-status {
  text-align: center;
  font-size: var(--font-size-xs);
  color: #AAA;
  margin-bottom: var(--space-3);
  min-height: 20px;
}

.qr-scanner-controls {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

/* Emergency Contacts List & Responsive Cards */
.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  container-type: inline-size;
  width: 100%;
}

.contact-item-card {
  background-color: var(--color-dark-elevated);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  transition: border-color 0.15s ease;
}

.contact-item-card:hover {
  border-color: #383838;
}

.contact-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  line-height: 1.1;
  text-transform: uppercase;
}

.contact-badge-primary {
  background: rgba(229, 9, 32, 0.15) !important;
  color: #FF4D4D !important;
  border: 1px solid rgba(229, 9, 32, 0.5) !important;
}

.contact-badge-secondary {
  background: rgba(30, 58, 138, 0.4) !important;
  color: #93C5FD !important;
  border: 1px solid rgba(59, 130, 246, 0.5) !important;
}

.contact-badge-tertiary {
  background: #262626 !important;
  color: #D1D5DB !important;
  border: 1px solid #444444 !important;
}

.contact-card-delete-form {
  margin: 0;
  display: inline-flex;
}

.btn-icon-delete {
  width: 32px;
  height: 32px;
  min-height: 32px;
  min-width: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-dark-border);
  color: #9CA3AF;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn-icon-delete:hover:not(:disabled) {
  background-color: var(--color-red) !important;
  border-color: var(--color-red) !important;
  color: #FFFFFF !important;
  transform: scale(1.05);
}

.btn-icon-delete:active:not(:disabled) {
  transform: scale(0.95);
}

.btn-icon-delete:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.contact-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.35;
  width: 100%;
  word-break: break-word;
}

.contact-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.25rem;
}

.contact-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-xs);
  color: #9CA3AF;
  flex-wrap: wrap;
  line-height: 1.4;
}

.contact-relationship {
  color: #D1D5DB;
  font-weight: 600;
}

.contact-meta-sep {
  color: #6B7280;
}

.contact-phone-digits {
  font-family: var(--font-family-mono, monospace);
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-test-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  font-size: var(--font-size-xs);
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
  transition: all 0.15s ease;
}

.btn-test-call:hover {
  background-color: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

/* ==========================================================================
   App Native 1:1 Photo Camera Viewer & Capture (Fixed & Non-Scrolling)
   ========================================================================== */
dialog.photo-camera-modal {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  border: 1px solid var(--color-red) !important;
  border-radius: var(--radius-xl) !important;
  background-color: #0E0E0E !important;
  color: var(--color-white) !important;
  padding: 0 !important;
  width: min(390px, calc(100vw - 1.5rem)) !important;
  max-height: min(92dvh, 92vh, 600px) !important;
  overflow: hidden !important;
  overscroll-behavior: contain !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95) !important;
  z-index: 9999;
}

dialog.photo-camera-modal[open] {
  display: flex !important;
  flex-direction: column !important;
}

dialog.photo-camera-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.photo-camera-header {
  padding: 0.6rem 0.9rem;
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #242424;
  flex-shrink: 0;
}

.photo-camera-title {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.photo-camera-body {
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  overflow: hidden;
  background-color: #0A0A0A;
}

.photo-camera-instruction {
  font-size: 11px;
  color: #9CA3AF;
  text-align: center;
  margin-bottom: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* 1x1 Square Viewport: strictly sized so it never overflows screen height */
.photo-camera-viewport {
  position: relative;
  width: min(68vw, 34dvh, 230px);
  height: min(68vw, 34dvh, 230px);
  aspect-ratio: 1 / 1;
  background-color: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  border: 2px solid #282828;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.photo-camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-camera-video.mirrored {
  transform: scaleX(-1);
}

.photo-camera-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* 1:1 Framing Reticle & Guides */
.photo-camera-guide-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-camera-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--color-red);
  border-style: solid;
  border-width: 0;
}

.photo-camera-corner.tl { top: 8px; left: 8px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 6px; }
.photo-camera-corner.tr { top: 8px; right: 8px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 6px; }
.photo-camera-corner.bl { bottom: 8px; left: 8px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 6px; }
.photo-camera-corner.br { bottom: 8px; right: 8px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 6px; }

/* Face Silhouette / Alignment Ring */
.photo-camera-face-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
  height: 82%;
  border: 2px dashed rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  pointer-events: none;
  box-sizing: border-box;
  margin: 0;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.25);
}

/* Top bar floating controls on video */
.photo-camera-floating-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.photo-camera-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.15s ease;
  line-height: 1;
}

.photo-camera-icon-btn:hover {
  background: rgba(229, 9, 32, 0.85);
  border-color: var(--color-red);
  transform: scale(1.08);
}

/* Shutter flash animation */
.photo-camera-shutter-flash {
  position: absolute;
  inset: 0;
  background-color: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.1s ease-out;
}

.photo-camera-shutter-flash.flashing {
  opacity: 0.95;
}

.photo-camera-status-text {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 6px;
  min-height: 16px;
  text-align: center;
  line-height: 1.3;
  max-width: 290px;
  flex-shrink: 0;
}

/* Action Controls (Footer) */
.photo-camera-footer {
  width: 100%;
  padding: 0.5rem 0.9rem 0.75rem;
  background: #141414;
  border-top: 1px solid #242424;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.photo-camera-live-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  width: 100%;
}

/* Shutter button */
.photo-camera-shutter-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid var(--color-red);
  box-shadow: 0 0 16px rgba(229, 9, 32, 0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.photo-camera-shutter-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 22px rgba(229, 9, 32, 0.85);
}

.photo-camera-shutter-btn:active {
  transform: scale(0.92);
}

.photo-camera-shutter-inner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #FFFFFF;
}

.photo-camera-review-actions {
  display: none;
  width: 100%;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.photo-camera-review-actions.active {
  display: flex;
}

/* ==========================================================================
   Privacy Settings Responsive Columns
   ========================================================================== */
.privacy-settings-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 600px) {
  .privacy-settings-columns {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: var(--space-6);
  }
}

/* ==========================================================================
   Narrow Device Overrides (Flip / Fold Cover & Compact Viewports <= 360px)
   ========================================================================== */
@media (max-width: 360px) {
  .card-body {
    padding: 0.75rem;
  }

  .card-header,
  .card-footer {
    padding: 0.55rem 0.75rem;
  }

  dialog.modal {
    max-width: min(520px, calc(100vw - 1rem));
    width: calc(100% - 1rem);
  }

  .pwa-modal-body {
    padding: 1.25rem 0.85rem;
  }

  .pwa-modal-title {
    font-size: 1.2rem;
  }

  .pwa-benefits {
    padding: 0.75rem;
    gap: var(--space-2);
  }

  .btn {
    padding: 0.4rem 0.65rem;
  }

  .btn-lg {
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   PWA Interactive Popups & Audible Notifications
   ========================================================================== */
.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  color: #FFFFFF;
  background-color: var(--color-red, #E50920);
  border-radius: 9999px;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(229, 9, 32, 0.6);
  animation: pulseBadge 2.2s infinite ease-in-out;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 0 6px rgba(229, 9, 32, 0.5); }
  50% { transform: scale(1.12); box-shadow: 0 0 12px rgba(229, 9, 32, 0.9); }
}

.pwa-notif-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(400px, calc(100vw - 32px));
  pointer-events: none;
}

@media (max-width: 480px) {
  .pwa-notif-container {
    top: 72px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

/* Mobile Header Notification Bell Button */
.mobile-notif-btn {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm, 6px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-dark-border, #333333);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1.2rem;
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mobile-notif-btn:hover,
.mobile-notif-btn:active {
  background: rgba(255, 255, 255, 0.12);
  border-color: #555555;
}

.mobile-notif-btn.has-unread {
  border-color: rgba(229, 9, 32, 0.7);
  background: rgba(229, 9, 32, 0.15);
}

.mobile-notif-btn .notif-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  margin-left: 0;
  min-width: 17px;
  height: 17px;
  font-size: 9px;
  padding: 0 4px;
}

@media (max-width: 768px) {
  .mobile-notif-btn {
    display: inline-flex;
  }
}

.pwa-toast-batch-pill {
  background: rgba(229, 9, 32, 0.2);
  color: #FCA5A5;
  border: 1px solid rgba(229, 9, 32, 0.5);
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  white-space: nowrap;
}

.pwa-notif-toast {
  pointer-events: auto;
  background: #181818;
  color: #FFFFFF;
  border-radius: 12px;
  border-left: 5px solid #3B82F6;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.15);
  padding: 14px 16px;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s ease;
  overflow: hidden;
}

.pwa-notif-toast.pwa-toast-leaving {
  animation: toastSlideOut 0.28s ease-in forwards;
}

.pwa-notif-toast.pwa-notif-alert {
  border-left-color: #EF4444;
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.25), 0 0 1px rgba(255, 255, 255, 0.2);
}

.pwa-notif-toast.pwa-notif-warning {
  border-left-color: #F59E0B;
}

.pwa-notif-toast.pwa-notif-success {
  border-left-color: #10B981;
}

.pwa-toast-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pwa-toast-icon {
  font-size: 16px;
  line-height: 1;
}

.pwa-toast-title {
  flex: 1;
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
}

.pwa-toast-close {
  background: transparent;
  border: none;
  color: #9CA3AF;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.pwa-toast-close:hover {
  color: #FFFFFF;
}

.pwa-toast-body {
  font-size: 13px;
  color: #D1D5DB;
  line-height: 1.45;
  margin-bottom: 10px;
  word-break: break-word;
}

.pwa-toast-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pwa-toast-time {
  font-size: 11px;
  color: #9CA3AF;
}

.pwa-toast-actions {
  display: flex;
  gap: 8px;
}

.pwa-toast-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.pwa-toast-btn-action {
  background: #E50920;
  color: #FFFFFF;
  border-color: #DC2626;
}

.pwa-toast-btn-action:hover {
  background: #B91C1C;
}

.pwa-toast-btn-dismiss {
  background: #262626;
  color: #D1D5DB;
  border-color: #383838;
}

.pwa-toast-btn-dismiss:hover {
  background: #333333;
  color: #FFFFFF;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-16px) scale(0.92);
  }
}

/* Inbox List Styles */
.inbox-item {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  position: relative;
}

.inbox-item:hover {
  border-color: #383838;
}

.inbox-item.inbox-unread {
  background: #1A1A1A;
  border-color: #404040;
  box-shadow: 0 0 12px rgba(229, 9, 32, 0.08);
}

.inbox-item.inbox-unread::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-red, #E50920);
  box-shadow: 0 0 6px rgba(229, 9, 32, 0.7);
}

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

.inbox-type-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-info { background: rgba(59, 130, 246, 0.15); color: #93C5FD; border: 1px solid rgba(59, 130, 246, 0.3); }
.tag-alert { background: rgba(239, 68, 68, 0.15); color: #FCA5A5; border: 1px solid rgba(239, 68, 68, 0.3); }
.tag-warning { background: rgba(245, 158, 11, 0.15); color: #FDE68A; border: 1px solid rgba(245, 158, 11, 0.3); }
.tag-success { background: rgba(16, 185, 129, 0.15); color: #86EFAC; border: 1px solid rgba(16, 185, 129, 0.3); }

/* ==========================================================================
   PROMOTIONAL STARBURST BADGE (SELLO DE OFERTA / HIGH-CONVERTING STAMP)
   Elemento gráfico de alto impacto inspirado en stickers y sellos de retail
   ========================================================================== */
.promo-starburst-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  user-select: none;
  filter: drop-shadow(0 14px 28px rgba(250, 1, 8, 0.45)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.9));
  transform: rotate(-10deg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  z-index: 10;
  text-decoration: none;
}

.promo-starburst-badge:hover {
  transform: rotate(0deg) scale(1.08);
  filter: drop-shadow(0 18px 36px rgba(255, 40, 0, 0.65)) drop-shadow(0 6px 14px rgba(0, 0, 0, 1));
}

.promo-starburst-badge.animated {
  animation: promoBurstFloat 4s ease-in-out infinite;
}

.promo-starburst-badge .starburst-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.promo-starburst-badge .starburst-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  line-height: 1;
  text-transform: uppercase;
  padding: 10px;
  width: 74%;
  height: 74%;
}

.promo-starburst-badge .starburst-top {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #FFE600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  margin-bottom: 2px;
}

.promo-starburst-badge .starburst-main {
  font-family: 'Impact', 'Montserrat', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95);
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.promo-starburst-badge .starburst-sub {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 8.5px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modificadores de tamaño del starburst */
.promo-starburst-badge.size-lg {
  width: 175px;
  height: 175px;
}
.promo-starburst-badge.size-lg .starburst-top { font-size: 12.5px; }
.promo-starburst-badge.size-lg .starburst-main { font-size: 34px; }
.promo-starburst-badge.size-lg .starburst-sub { font-size: 10px; padding: 3px 8px; }

.promo-starburst-badge.size-sm {
  width: 105px;
  height: 105px;
}
.promo-starburst-badge.size-sm .starburst-top { font-size: 9px; }
.promo-starburst-badge.size-sm .starburst-main { font-size: 19px; }
.promo-starburst-badge.size-sm .starburst-sub { font-size: 7.5px; padding: 1px 4px; }

@keyframes promoBurstFloat {
  0%, 100% {
    transform: translateY(0) rotate(-10deg);
  }
  50% {
    transform: translateY(-7px) rotate(-6deg);
  }
}

/* ==========================================================================
   SHOWCASE DE OFERTA DE LANZAMIENTO (HIGH-LEVEL GRAPHIC DESIGN SHOWCASE)
   ========================================================================== */
.offer-showcase-section {
  position: relative;
  padding: var(--space-12) 0;
  background: radial-gradient(circle at 50% 15%, rgba(250, 1, 8, 0.16) 0%, rgba(13, 13, 16, 0.98) 55%, #08080A 100%);
  border-top: 1px solid #222226;
  border-bottom: 1px solid #222226;
  overflow: hidden;
}

.offer-showcase-section::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(250, 1, 8, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.offer-card-hero {
  position: relative;
  background: linear-gradient(150deg, #17171B 0%, #0F0F13 60%, #0A0A0D 100%);
  border: 1px solid #2F2F38;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(250, 1, 8, 0.12);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.offer-badge-floating {
  position: absolute;
  top: -25px;
  right: 25px;
  z-index: 15;
}

@media (max-width: 640px) {
  .promo-starburst-badge.size-lg {
    width: 125px;
    height: 125px;
  }
  .promo-starburst-badge.size-lg .starburst-top { font-size: 10px; }
  .promo-starburst-badge.size-lg .starburst-main { font-size: 24px; }
  .promo-starburst-badge.size-lg .starburst-sub { font-size: 8px; padding: 2px 5px; }

  .offer-badge-floating {
    top: -22px;
    right: 12px;
  }
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: var(--space-4) 0;
  flex-wrap: wrap;
}

.price-strikethrough {
  font-size: 1.25rem;
  color: #71717A;
  text-decoration: line-through;
  font-weight: 700;
}

.price-highlight {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 950;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 15px rgba(250, 1, 8, 0.3);
}

.price-currency {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-red);
}

.savings-pill {
  display: inline-block;
  background: linear-gradient(90deg, #FA0108 0%, #D90006 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(250, 1, 8, 0.4);
}

.offer-feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-3) var(--space-5);
  margin: var(--space-6) 0;
}

.offer-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--font-size-sm);
  color: #D4D4D8;
  line-height: 1.45;
}

.offer-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.18);
  color: #4ADE80;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1px solid rgba(74, 222, 128, 0.4);
}

/* ==========================================================================
   Hero Stickers Showcase & 3D Interactive Carousel
   ========================================================================== */

.hero-stickers-showcase {
  position: relative;
  max-width: 660px;
  margin: 1.75rem auto 2.25rem;
  background: radial-gradient(circle at 50% 25%, rgba(250, 1, 8, 0.16) 0%, rgba(20, 20, 20, 0.96) 65%, rgba(10, 10, 10, 0.98) 100%);
  border: 1px solid rgba(250, 1, 8, 0.35);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1rem 1rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 35px rgba(250, 1, 8, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  user-select: none;
}

.hero-stickers-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--color-red) 50%, transparent 100%);
  z-index: 3;
}

.sticker-radar-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 1, 8, 0.28) 0%, rgba(250, 1, 8, 0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: stickerRadarPulse 3.5s ease-in-out infinite;
}

@keyframes stickerRadarPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
}

.sticker-showcase-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.sticker-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFAAAA;
  background: rgba(250, 1, 8, 0.15);
  padding: 4px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(250, 1, 8, 0.35);
}

.sticker-showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}

.sticker-tab-item {
  cursor: pointer;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9999px;
  background: #1A1A1A;
  color: #AAAAAA;
  border: 1px solid #333333;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.sticker-tab-item:hover {
  background: #262626;
  color: #FFFFFF;
  border-color: #555555;
}

.sticker-tab-item.active {
  background: var(--color-red);
  color: #FFFFFF;
  border-color: var(--color-red);
  box-shadow: 0 2px 10px rgba(250, 1, 8, 0.5);
}

.sticker-stage {
  position: relative;
  z-index: 2;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
}

@media (min-width: 640px) {
  .sticker-stage {
    height: 270px;
  }
  .sticker-tab-item {
    font-size: 12px;
    padding: 6px 14px;
  }
}

.sticker-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92) translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  pointer-events: none;
}

.sticker-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.sticker-img-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: stickerFloat 4s ease-in-out infinite;
}

@keyframes stickerFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-7px) rotate(0.5deg);
  }
}

.sticker-img-circular {
  max-height: 200px;
  max-width: 88%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 20px rgba(250, 1, 8, 0.4));
  transition: transform 0.3s ease;
}

.sticker-img-horizontal {
  max-height: 125px;
  max-width: 90%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 20px rgba(250, 1, 8, 0.4));
  transition: transform 0.3s ease;
}

.sticker-img-card {
  max-height: 190px;
  max-width: 88%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 20px rgba(250, 1, 8, 0.4));
  transition: transform 0.3s ease;
}

@media (min-width: 640px) {
  .sticker-img-circular {
    max-height: 235px;
  }
  .sticker-img-horizontal {
    max-height: 145px;
  }
  .sticker-img-card {
    max-height: 220px;
  }
}

.sticker-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(250, 1, 8, 0.35);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.sticker-nav-btn:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  box-shadow: 0 0 15px rgba(250, 1, 8, 0.6);
  transform: translateY(-50%) scale(1.08);
}

.sticker-nav-prev {
  left: 8px;
}

.sticker-nav-next {
  right: 8px;
}

.sticker-caption-box {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0.65rem 0.85rem;
  background: rgba(14, 14, 14, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid #262626;
  margin-top: 0.5rem;
}

.sticker-caption-title {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sticker-caption-desc {
  font-size: 11px;
  color: #BBBBBB;
  margin: 0;
  line-height: 1.45;
}

.sticker-dots-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 0.75rem;
}

.sticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3A3A3A;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sticker-dot:hover {
  background: #777777;
}

.sticker-dot.active {
  width: 24px;
  border-radius: 9999px;
  background: var(--color-red);
  box-shadow: 0 0 10px rgba(250, 1, 8, 0.7);
}

.sticker-timer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #FA0108 0%, #FF4444 100%);
  transition: width 0.08s linear;
  z-index: 4;
}

/* ========================================================
   UNIVERSAL SWEETALERT2 (SWAL2) DARK THEME FOR MOTO-SOS
   ======================================================== */
.swal2-popup {
  background: #141414 !important;
  color: #FFFFFF !important;
  border: 1px solid #2E2E2E !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95) !important;
  font-family: inherit !important;
}

.swal2-title {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  letter-spacing: -0.01em !important;
}

.swal2-html-container {
  color: #D1D5DB !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
}

.swal2-icon.swal2-warning {
  border-color: #F59E0B !important;
  color: #FBBF24 !important;
}

.swal2-icon.swal2-success {
  border-color: #10B981 !important;
  color: #34D399 !important;
}

.swal2-icon.swal2-error {
  border-color: #EF4444 !important;
  color: #F87171 !important;
}

.swal2-icon.swal2-info {
  border-color: #3B82F6 !important;
  color: #60A5FA !important;
}

.swal2-actions {
  gap: 10px !important;
}

.swal2-confirm {
  background-color: var(--color-red, #DC2626) !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  font-size: 0.9rem !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4) !important;
}

.swal2-confirm:hover {
  background-color: #B91C1C !important;
}

.swal2-cancel {
  background-color: #2D3748 !important;
  color: #E2E8F0 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  font-size: 0.9rem !important;
}

.swal2-cancel:hover {
  background-color: #4A5568 !important;
}

.swal2-timer-progress-bar {
  background: var(--color-red, #DC2626) !important;
}

/* ========================================================
   PWA FILE INPUTS (THEMED "SELECCIONAR ARCHIVO" BUTTON)
   ======================================================== */
input[type="file"].form-control,
input[type="file"] {
  color: #E5E7EB;
  cursor: pointer;
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 6px 14px;
  margin-right: 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
  filter: brightness(1.12);
}

input[type="file"]::file-selector-button:active,
input[type="file"]::-webkit-file-upload-button:active {
  transform: scale(0.98);
}

.swal2-container {
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)) !important;
}

.swal2-popup {
  max-width: min(460px, calc(100dvw - 24px)) !important;
  max-height: calc(100dvh - 20px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  box-sizing: border-box !important;
}

@media (max-height: 540px) and (orientation: landscape), (max-height: 480px) {
  .swal2-container {
    padding: max(6px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)) !important;
  }
  .swal2-popup {
    width: min(480px, calc(100dvw - 24px)) !important;
    max-width: min(520px, calc(100dvw - 24px)) !important;
    max-height: calc(100dvh - 12px) !important;
    padding: 12px 16px 14px !important;
    border-radius: 14px !important;
  }
  .swal2-popup .swal2-icon {
    transform: scale(0.7);
    margin: -6px auto 2px !important;
  }
  .swal2-popup .swal2-title {
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
    margin: 2px 0 6px !important;
    padding: 0 4px !important;
  }
  .swal2-popup .swal2-html-container {
    font-size: 0.85rem !important;
    line-height: 1.35 !important;
    margin: 4px 0 8px !important;
    padding: 0 4px !important;
  }
  .swal2-popup .swal2-actions {
    margin: 8px auto 0 !important;
    gap: 8px !important;
  }
  .swal2-popup .swal2-confirm,
  .swal2-popup .swal2-cancel,
  .swal2-popup .swal2-deny {
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    min-height: 36px !important;
  }
  .swal2-popup .swal2-close {
    top: 8px !important;
    right: 8px !important;
    width: 28px !important;
    height: 28px !important;
  }
}


/* ==========================================================================
   ESTILOS DE PLANES OFICIALES (PILOTO, DÚO, COMUNIDAD)
   ========================================================================== */
.plan-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: #00E5FF !important;
  box-shadow: 0 20px 45px rgba(0, 229, 255, 0.22) !important;
}

.plan-card-cover {
  position: relative;
  width: calc(100% + 3.5rem);
  margin: -2rem -1.75rem 1.5rem -1.75rem;
  height: 195px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: #0B111A;
}

.plan-card-cover-wide {
  width: calc(100% + 4.5rem);
  margin: -2rem -2.25rem 1.75rem -2.25rem;
  height: 230px;
}

.plan-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.plan-card:hover .plan-cover-img {
  transform: scale(1.06);
}

.plan-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(10, 15, 26, 0.1) 0%, 
    rgba(10, 15, 26, 0.4) 50%, 
    #111B29 100%
  );
  pointer-events: none;
}

.plan-card.plan-duo-card .plan-cover-gradient {
  background: linear-gradient(180deg, 
    rgba(15, 26, 43, 0.1) 0%, 
    rgba(15, 26, 43, 0.4) 50%, 
    #132238 100%
  );
}

.plan-card.plan-comunidad-card .plan-cover-gradient {
  background: linear-gradient(180deg, 
    rgba(17, 26, 39, 0.1) 0%, 
    rgba(17, 26, 39, 0.4) 50%, 
    #111A27 100%
  );
}

.plan-cover-content {
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.plan-cover-badge {
  font-size: 0.72rem;
  font-weight: 900;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.plan-cover-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38BDF8;
  background: rgba(8, 47, 73, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.5);
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.plan-cover-pill.pill-duo {
  color: #00E5FF;
  background: rgba(6, 44, 62, 0.88);
  border-color: rgba(0, 229, 255, 0.6);
}

.plan-cover-pill.pill-comunidad {
  color: #34D399;
  background: rgba(6, 78, 59, 0.88);
  border-color: rgba(52, 211, 153, 0.6);
}

@media (max-width: 640px) {
  .plan-card-cover {
    width: calc(100% + 2.5rem);
    margin: -1.5rem -1.25rem 1.25rem -1.25rem;
    height: 165px;
  }
  .plan-card-cover-wide {
    width: calc(100% + 2.5rem);
    margin: -1.5rem -1.25rem 1.25rem -1.25rem;
    height: 180px;
  }
}

/* ==========================================================================
   REDES SOCIALES OFICIALES (SOLO ICONOS CLICABLES - GRANDES Y VISTOSOS)
   ========================================================================== */
.landing-social-links,
.landing-social-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}

.social-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  border-radius: 50%;
  color: #FFFFFF !important;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              filter 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.social-icon-link svg {
  width: 32px;
  height: 32px;
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon-link:hover,
.social-icon-link:focus-visible {
  transform: translateY(-5px) scale(1.12);
  outline: none;
  color: #FFFFFF !important;
}

.social-icon-link:hover svg,
.social-icon-link:focus-visible svg {
  transform: scale(1.08);
}

.social-icon-link:active {
  transform: translateY(-1px) scale(0.98);
}

/* Facebook: Azul Oficial con Gradiente y Resplandor */
.social-icon-link.social-facebook {
  background: linear-gradient(135deg, #1877F2 0%, #0A53BE 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.45),
              inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.social-icon-link.social-facebook:hover,
.social-icon-link.social-facebook:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 34px rgba(24, 119, 242, 0.75),
              0 0 22px rgba(24, 119, 242, 0.55),
              inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Instagram: Gradiente Icónico Vivo (Sunset Magenta/Orange) */
.social-icon-link.social-instagram {
  background: linear-gradient(45deg, #F58529 0%, #DD2A7B 50%, #8134AF 80%, #515BD4 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 24px rgba(221, 42, 123, 0.45),
              inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.social-icon-link.social-instagram:hover,
.social-icon-link.social-instagram:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 34px rgba(221, 42, 123, 0.75),
              0 0 22px rgba(245, 133, 41, 0.55),
              inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* TikTok: Fondo Oscuro Ultra Premium con Borde y Doble Halo Neón (Cian y Rojo) */
.social-icon-link.social-tiktok {
  background: radial-gradient(circle at center, #1E1E24 0%, #050507 100%);
  border: 1.5px solid rgba(0, 242, 254, 0.75);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8),
              -3px 3px 16px rgba(0, 242, 254, 0.4),
              3px -3px 16px rgba(254, 44, 85, 0.4),
              inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.social-icon-link.social-tiktok:hover,
.social-icon-link.social-tiktok:focus-visible {
  border-color: #00F2FE;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.9),
              -5px 5px 24px rgba(0, 242, 254, 0.75),
              5px -5px 24px rgba(254, 44, 85, 0.75),
              inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

@media (max-width: 480px) {
  .landing-social-links,
  .landing-social-icons {
    gap: 14px;
  }
  .social-icon-link {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
  }
  .social-icon-link svg {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   REDES SOCIALES EN EL HEADER (EXCLUSIVO LANDING PAGE WEB)
   ========================================================================== */
.site-header-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  margin-right: 18px;
  z-index: 105;
}

.site-header-social .social-icon-link {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.site-header-social .social-icon-link svg {
  width: 22px;
  height: 22px;
}

.site-header-social .social-icon-link:hover,
.site-header-social .social-icon-link:focus-visible {
  transform: translateY(-3px) scale(1.1);
}

@media (max-width: 640px) {
  .site-header-social {
    gap: 8px;
    margin-right: 12px;
  }
  .site-header-social .social-icon-link {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
  .site-header-social .social-icon-link svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 380px) {
  .site-header-social {
    gap: 6px;
    margin-right: 8px;
  }
  .site-header-social .social-icon-link {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  .site-header-social .social-icon-link svg {
    width: 17px;
    height: 17px;
  }
}

/* ==========================================================================
   OCULTACIÓN ESTRICTA EN PWA (APP INSTALADA / STANDALONE / FULLSCREEN)
   ========================================================================== */
@media all and (display-mode: standalone),
       all and (display-mode: fullscreen),
       all and (display-mode: minimal-ui) {
  .site-header-social,
  .pwa-hide {
    display: none !important;
  }
}

body.is-pwa-standalone .site-header-social,
html.is-pwa-standalone .site-header-social,
body.is-pwa-standalone .pwa-hide,
html.is-pwa-standalone .pwa-hide,
body.is-pwa-standalone .pwa-install-trigger,
html.is-pwa-standalone .pwa-install-trigger,
body.is-pwa-standalone #navInstallBtn,
html.is-pwa-standalone #navInstallBtn,
body.is-pwa-standalone .nav-item-install,
html.is-pwa-standalone .nav-item-install,
body.is-pwa-standalone #pwaInstallBanner,
html.is-pwa-standalone #pwaInstallBanner,
body[data-user-app-installed="1"] .pwa-install-trigger,
html[data-user-app-installed="1"] .pwa-install-trigger,
body[data-user-app-installed="1"] #navInstallBtn,
html[data-user-app-installed="1"] #navInstallBtn,
body[data-user-app-installed="1"] .nav-item-install,
html[data-user-app-installed="1"] .nav-item-install,
body[data-user-app-installed="1"] #pwaInstallBanner,
html[data-user-app-installed="1"] #pwaInstallBanner {
  display: none !important;
}

/* ==========================================================================
   Ambiente Motero & Biker Culture Styles (Hero, HUD, Carbon & Ribbons)
   ========================================================================== */

/* Hero with Asphalt & Subtle Carbon Matrix */
.hero-motero {
  position: relative;
  background: 
    radial-gradient(circle at 50% -10%, rgba(229, 9, 32, 0.16) 0%, transparent 60%),
    radial-gradient(circle at 85% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 5px),
    #0A0A0C;
  overflow: hidden;
}

/* Pulsing Beacon Animation */
@keyframes moteroBeaconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(229, 9, 32, 0.7);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(229, 9, 32, 0);
  }
}

/* Cockpit Telemetry HUD Strip */
.motero-telemetry-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 860px;
  margin: 1.5rem auto 2rem;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(22, 22, 26, 0.9) 0%, rgba(10, 10, 14, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid #E50920;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .motero-telemetry-hud {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .motero-telemetry-hud {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
  text-align: left;
}

.hud-item:hover {
  background: rgba(229, 9, 32, 0.08);
  border-color: rgba(229, 9, 32, 0.35);
  transform: translateY(-2px);
}

.hud-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.hud-val {
  font-size: 0.9rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
}

.hud-lbl {
  font-size: 0.7rem;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Biker Creed / Brotherhood Road Ribbon */
.motero-creed-ribbon {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #070709 0%, #150E10 50%, #070709 100%);
  border-top: 1px solid rgba(229, 9, 32, 0.35);
  border-bottom: 1px solid rgba(229, 9, 32, 0.35);
  padding: 1.25rem 0;
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.9);
}

.motero-creed-texture {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: 
    repeating-linear-gradient(45deg, #FFF 0, #FFF 1px, transparent 0, transparent 8px),
    repeating-linear-gradient(-45deg, #FFF 0, #FFF 1px, transparent 0, transparent 8px);
  pointer-events: none;
}

.creed-text-quote {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.creed-text-quote span {
  color: #00E5FF;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}
