/* =========================================================
   VARIABLES GLOBALES
========================================================= */

:root {
  --bg: #090909;
  --panel: #121212;
  --panel2: #181818;
  --orange: #ff7900;
  --orange2: #ff3d00;
  --text: #f7f7f7;
  --muted: #a9a9a9;
  --line: #2c2c2c;
  --success: #18c37e;
  --danger: #ff4757;
  --warning: #ffb020;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   RESET Y ESTILOS GENERALES
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 80% 0, #2b1200 0, transparent 25%),
    var(--bg);
  color: var(--text);
}

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

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

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


/* =========================================================
   HEADER PÚBLICO
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 9, 0.82);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}

.brand strong {
  font-size: 24px;
}

.brand small {
  display: block;
  color: var(--orange);
  font-size: 9px;
  letter-spacing: 3px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}


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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  box-shadow: 0 10px 25px rgba(255, 91, 0, 0.22);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

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

.btn-sm {
  padding: 9px 14px;
}

.btn-dark {
  background: #202020;
  border: 1px solid #343434;
  box-shadow: none;
}

.btn-danger {
  background: var(--danger);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}


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

.hero {
  padding: 78px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 2px;
}

.hero h1 {
  margin: 14px 0;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.95;
}

.hero h1 span {
  background: linear-gradient(90deg, #fff, var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 650px;
  color: #cfcfcf;
  font-size: 19px;
  line-height: 1.65;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 121, 0, 0.35);
  border-radius: 28px;
  background: linear-gradient(145deg, #151515, #0d0d0d);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -50% 20%;
  height: 300px;
  background: radial-gradient(circle, var(--orange), transparent 65%);
  opacity: 0.22;
}

.hero-card img {
  position: relative;
  border-radius: 20px;
}


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

.section {
  padding: 72px 0;
}

.section-head {
  margin-bottom: 34px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: 42px;
}

.section-head p {
  color: var(--muted);
}


/* =========================================================
   FILTROS
========================================================= */

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 10px 16px;
  border: 1px solid #303030;
  border-radius: 999px;
  background: #161616;
  color: #ddd;
  cursor: pointer;
}

.filter-btn.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}


/* =========================================================
   PRODUCTOS
========================================================= */

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #292929;
  border-radius: 20px;
  background: linear-gradient(180deg, #171717, #101010);
  transition: 0.25s;
}

.product-card:hover {
  border-color: rgba(255, 121, 0, 0.6);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.product-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #202020;
  cursor: pointer;
}

.product-media::after {
  content: "Ver detalles";
  position: absolute;
  inset: auto 12px 12px auto;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(4px);
  transition: 0.2s;
}

.product-media:hover::after,
.product-media:focus::after {
  opacity: 1;
  transform: none;
}

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

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.success {
  background: rgba(24, 195, 126, 0.9);
}

.badge.warning {
  background: rgba(255, 176, 32, 0.95);
  color: #201400;
}

.badge.danger {
  background: rgba(255, 71, 87, 0.95);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 14px 15px 15px;
}

.product-body h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.product-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #aaa;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price {
  margin-top: auto;
  color: var(--orange);
  font-size: 25px;
  font-weight: 900;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.card-actions .btn {
  width: 100%;
  padding: 11px 16px;
}


/* =========================================================
   CARACTERÍSTICAS
========================================================= */

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

.feature {
  padding: 24px;
  border: 1px solid #292929;
  border-radius: 18px;
  background: #141414;
}

.feature b {
  display: block;
  margin: 12px 0;
  font-size: 18px;
}

.feature span {
  font-size: 32px;
}


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

.footer {
  padding: 40px 0;
  border-top: 1px solid #242424;
  color: #aaa;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}


/* =========================================================
   WHATSAPP FLOTANTE
========================================================= */

.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
  font-size: 30px;
}


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

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid #333;
  border-radius: 20px;
  background: #151515;
  box-shadow: var(--shadow);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.modal-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 121, 0, 0.15);
  color: var(--orange);
  font-size: 28px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}


/* =========================================================
   NOTIFICACIONES Y ESTADOS
========================================================= */

.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 1100;
}

.toast {
  margin-bottom: 10px;
  padding: 14px 18px;
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  background: #181818;
  box-shadow: var(--shadow);
}

.empty-state {
  padding: 60px;
  border: 1px dashed #333;
  border-radius: 20px;
  background: #121212;
  color: #aaa;
  text-align: center;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}


/* =========================================================
   PANEL ADMINISTRATIVO
========================================================= */

.admin-body {
  background: #0b0b0b;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  width: 250px;
  padding: 22px;
  border-right: 1px solid #292929;
  background: #111;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 20px;
  font-weight: 900;
}

.admin-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.admin-sidebar nav a {
  padding: 12px 14px;
  border-radius: 10px;
  color: #cfcfcf;
}

.admin-sidebar nav a:hover {
  background: #1d1d1d;
  color: #fff;
}

.admin-main {
  min-height: 100vh;
  margin-left: 250px;
  padding: 28px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  margin-bottom: 22px;
}

.icon-btn {
  padding: 9px 12px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #1a1a1a;
  color: #fff;
  cursor: pointer;
}


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

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

.stat-card {
  padding: 22px;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  background: #151515;
}

.stat-card small {
  color: #999;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}


/* =========================================================
   PANELES ADMINISTRATIVOS
========================================================= */

.panel {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #292929;
  border-radius: 18px;
  background: #141414;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel h1,
.panel h2 {
  margin: 0;
}


/* =========================================================
   TABLAS
========================================================= */

.table-wrap {
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 13px;
  border-bottom: 1px solid #292929;
  text-align: left;
  vertical-align: middle;
}

.table th {
  color: #999;
  font-size: 13px;
}

.thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: #222;
  object-fit: cover;
}

.actions {
  display: flex;
  gap: 8px;
}


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

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

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

.form-group.full {
  grid-column: 1 / -1;
}

.form-control {
  width: 100%;
  padding: 13px;
  border: 1px solid #343434;
  border-radius: 11px;
  outline: none;
  background: #0e0e0e;
  color: #fff;
}

.form-control:focus {
  border-color: var(--orange);
}

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

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.help {
  color: #8e8e8e;
  font-size: 13px;
}

.preview {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  background: #222;
  object-fit: cover;
}


/* =========================================================
   LOGIN
========================================================= */

.login-page {
  display: grid;
  min-height: 100vh;
  padding: 20px;
  place-items: center;
}

.login-card {
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid #303030;
  border-radius: 22px;
  background: #151515;
}

.login-card img {
  width: 100px;
  margin: 0 auto 12px;
}

.login-card h1 {
  text-align: center;
}


/* =========================================================
   RESPONSIVE GENERAL
========================================================= */

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

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

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

  .admin-sidebar {
    transform: translateX(-100%);
    transition: 0.2s;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .site-header nav a:not(.btn) {
    display: none;
  }

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

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

  .form-group.full {
    grid-column: auto;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .section-head h2 {
    font-size: 34px;
  }

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

@media (max-width: 480px) {
  .product-grid,
  .features,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .admin-main {
    padding: 16px;
  }

  .card-actions {
    flex-direction: column;
  }
}


/* =========================================================
   V3: CARRUSEL, PRODUCTOS CUADRADOS Y FOOTER
========================================================= */

.hero-banner {
  padding: 34px 0 18px;
}

.carousel {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  aspect-ratio: 2135 / 582;
  border: 1px solid rgba(255, 121, 0, 0.32);
  border-radius: 26px;
  background: #111;
  box-shadow: var(--shadow);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.carousel-slide.active {
  opacity: 1;
}

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

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.34) 42%,
    rgba(0, 0, 0, 0.06) 75%
  );
}

.fallback-slide {
  background:
    radial-gradient(circle at 75% 50%, #ff6a00 0, transparent 34%),
    linear-gradient(135deg, #050505, #241000);
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 5%;
  z-index: 3;
  width: min(650px, 58%);
  transform: translateY(-50%);
}

.hero-overlay h1 {
  margin: 12px 0;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 0.95;
}

.hero-overlay h1 span {
  background: linear-gradient(90deg, #fff, var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-overlay p {
  margin: 0 0 18px;
  color: #d3d3d3;
  font-size: clamp(14px, 1.35vw, 19px);
  line-height: 1.55;
}

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

.carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-nav.prev {
  left: 14px;
}

.carousel-nav.next {
  right: 14px;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.carousel-dots button.active {
  width: 28px;
  border-radius: 20px;
  background: var(--orange);
}

.product-media {
  aspect-ratio: 1 / 1;
}

.product-media::after {
  display: none;
}


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

.footer {
  padding: 54px 0 22px;
  border-top: 1px solid rgba(255, 121, 0, 0.22);
  background: #0f1728;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr 1.2fr;
  gap: 55px;
}

.footer h4 {
  margin: 0 0 16px;
  color: #fff;
}

.footer p {
  line-height: 1.7;
}

.footer-main > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-main > div:nth-child(2) h4 {
  margin-bottom: 4px;
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.payment-logos img {
  max-width: 76px;
  height: 34px;
  padding: 4px;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
}

.footer-social-title {
  margin-top: 24px !important;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #243047;
  color: #fff;
  font-weight: 900;
}

.social-links a:hover {
  background: var(--orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid #28334a;
}

.banner-thumb {
  width: 180px;
  height: 55px;
  border-radius: 8px;
  object-fit: cover;
}

.payment-admin-logo {
  width: 90px;
  height: 46px;
  padding: 5px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}


/* =========================================================
   RESPONSIVE V3
========================================================= */

@media (max-width: 900px) {
  .carousel {
    min-height: 500px;
    aspect-ratio: auto;
  }

  .hero-overlay {
    left: 9%;
    width: 82%;
  }

  .carousel-slide::after {
    background: rgba(0, 0, 0, 0.68);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 620px) {
  .carousel {
    min-height: 540px;
  }

  .hero-overlay {
    left: 7%;
    width: 86%;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .carousel-nav {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }

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

  .product-body h3 {
    font-size: 16px;
  }

  .product-body p {
    font-size: 13px;
  }

  .price {
    font-size: 21px;
  }
}


/* =========================================================
   V4: CARRUSEL ANCHO COMPLETO Y PRODUCTOS COMPACTOS
========================================================= */

.hero-banner {
  width: 100%;
  padding: 0 0 12px;
}

.hero-banner .carousel {
  width: 100%;
  min-height: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-overlay {
  left: max(4%, calc((100% - 1180px) / 2));
  width: min(650px, 48%);
}

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

.product-card {
  border-radius: 16px;
}

.product-body {
  gap: 5px;
  padding: 11px 12px 12px;
}

.product-body h3 {
  font-size: 16px;
}

.product-body p {
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.product-body .help {
  font-size: 11px;
}

.price {
  font-size: 21px;
}

.card-actions .btn {
  padding: 9px 12px;
  border-radius: 10px;
}

.section {
  padding: 48px 0;
}

.wa-float {
  line-height: 1;
  transform: none;
}

.wa-float svg {
  display: block;
  width: 31px;
  height: 31px;
  color: #fff;
  transform: none;
}


/* =========================================================
   RESPONSIVE V4
========================================================= */

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

@media (max-width: 620px) {
  .hero-banner {
    padding: 0;
    border-bottom: 1px solid rgba(255, 121, 0, 0.18);
    background: linear-gradient(145deg, #111, #080808);
  }

  .hero-banner .carousel {
    overflow: visible;
    min-height: 0;
    aspect-ratio: auto;
    border: 0;
    background: transparent;
  }

  .carousel-slide,
  .carousel-nav,
  .carousel-dots,
  .hero-overlay p,
  .hero-actions {
    display: none !important;
  }

  .hero-overlay {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: 100%;
    padding: 25px 18px 23px;
    text-align: center;
    transform: none;
  }

  .hero-overlay .eyebrow {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .hero-overlay h1 {
    margin: 8px 0 0;
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1;
  }

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

  .product-body {
    padding: 9px 10px 10px;
  }

  .product-body h3 {
    font-size: 15px;
  }

  .product-body p {
    font-size: 11px;
  }

  .price {
    font-size: 19px;
  }

  .card-actions .btn {
    padding: 8px 9px;
    font-size: 13px;
  }

  .section {
    padding: 36px 0;
  }

  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .wa-float svg {
    width: 29px;
    height: 29px;
  }
}


/* =========================================================
   MÉTODOS DE PAGO Y EDICIÓN
========================================================= */

.payment-logos img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 218px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.payment-general-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 20px;
  border: 1px dashed #333;
  border-radius: 16px;
  background: #101010;
}

.payment-general-preview img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 218px;
  object-fit: contain;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.modal-edit-form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.modal-edit-form .btn {
  margin-top: 4px;
}

.modal-banner-preview {
  width: 100%;
  max-height: 180px;
  border: 1px solid #333;
  border-radius: 10px;
  object-fit: cover;
}


/* =========================================================
   V6: DIVISORES LIMPIOS Y MODAL DE PRODUCTO 1:1
========================================================= */

.hero-banner {
  border-top: 0;
  border-bottom: 0;
}

.carousel {
  border-color: transparent;
}

.footer {
  border-top: 0;
}

@media (max-width: 620px) {
  .hero-banner {
    border-bottom: 0;
  }
}

.modal-icon[hidden] {
  display: none;
}

.product-detail-modal .modal-card {
  width: min(560px, 100%);
}

.product-modal-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  margin-bottom: 14px;
  aspect-ratio: 1 / 1;
  border: 1px solid #2d2d2d;
  border-radius: 14px;
  background: #0d0d0d;
}

.product-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}

.product-modal-description {
  margin: 0 0 14px;
  color: #bbb;
  line-height: 1.6;
  text-align: left;
}

@media (max-width: 620px) {
  .product-detail-modal .modal-card {
    padding: 22px;
  }

  .product-modal-image {
    max-height: min(72vw, 390px);
  }
}


/* =========================================================
   MÓDULO FINANZAS
========================================================= */

.admin-nav-label {
  display: block;
  margin: 18px 14px 7px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.finance-shell {
  padding-bottom: 30px;
}

.finance-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.finance-heading h1 {
  margin: 4px 0 0;
}

.finance-eyebrow {
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.finance-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1c1c1c;
}

.finance-alert.success {
  border-color: var(--success);
}

.finance-alert.error {
  border-color: var(--danger);
}

@media (max-width: 720px) {
  .finance-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================================
   SELECTOR DE MÓDULOS DATITOS / FINANZAS
========================================================= */

.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: none;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
}

.admin-sidebar-title {
  margin: 0 12px 12px;
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.module-finance .admin-sidebar-title {
  color: #35d278;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-sidebar nav a i,
.admin-sidebar nav a .nav-symbol {
  flex: 0 0 20px;
  width: 20px;
  font-size: 15px;
  text-align: center;
}

.admin-sidebar nav a.active {
  background: #252525;
  box-shadow: inset 3px 0 0 var(--orange);
  color: #fff;
}

.module-finance .admin-sidebar nav a.active {
  box-shadow: inset 3px 0 0 #35d278;
}

.admin-top {
  position: relative;
  z-index: 60;
  gap: 18px;
}

.admin-top-left,
.admin-account,
.module-switcher {
  display: flex;
  align-items: center;
}

.admin-top-left {
  min-width: 0;
  gap: 12px;
}

.module-switcher {
  gap: 9px;
}

.module-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 15px;
  border: 1px solid #393939;
  border-radius: 10px;
  background: #151515;
  color: #cfcfcf;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: 0.2s;
}

.module-switch:hover {
  border-color: #666;
  color: #fff;
  transform: translateY(-1px);
}

.module-switch.active {
  border-color: var(--orange);
  background: linear-gradient(
    135deg,
    rgba(255, 121, 0, 0.23),
    rgba(255, 61, 0, 0.08)
  );
  box-shadow: 0 8px 22px rgba(255, 121, 0, 0.12);
  color: #fff;
}

.module-switch.finance.active {
  border-color: #35d278;
  background: linear-gradient(135deg, #23964e, #35bd67);
  box-shadow: 0 8px 22px rgba(53, 210, 120, 0.18);
}

.module-switch-icon {
  font-size: 18px;
  line-height: 1;
}

.admin-account {
  justify-content: flex-end;
  gap: 14px;
  white-space: nowrap;
}

.admin-greeting {
  color: #f2f2f2;
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 71, 87, 0.55);
  border-radius: 9px;
  background: rgba(255, 71, 87, 0.06);
  color: #ff6b78;
  font-size: 13px;
  font-weight: 800;
  transition: 0.2s;
}

.logout-btn:hover {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.logout-icon {
  font-size: 18px;
  line-height: 1;
}


/* =========================================================
   RESPONSIVE DEL PANEL ADMINISTRATIVO
========================================================= */

@media (max-width: 1000px) {
  .admin-sidebar-backdrop.open {
    display: block;
  }

  .admin-sidebar {
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
  }

  body.sidebar-open {
    overflow: hidden;
  }
}

@media (max-width: 720px) {
  .admin-main {
    padding-top: 12px;
  }

  .admin-top {
    align-items: center;
    height: auto;
    min-height: 54px;
    margin-bottom: 16px;
  }

  .admin-top-left {
    flex: 1;
    gap: 7px;
  }

  .module-switcher {
    min-width: 0;
    gap: 6px;
  }

  .module-switch {
    height: 39px;
    gap: 5px;
    padding: 0 10px;
    font-size: 12px;
  }

  .module-switch-icon {
    font-size: 15px;
  }

  .menu-toggle {
    flex: 0 0 auto;
    height: 39px;
  }

  .admin-account {
    gap: 7px;
  }

  .admin-greeting {
    overflow: hidden;
    max-width: 120px;
    font-size: 12px;
    text-overflow: ellipsis;
  }

  .logout-btn {
    width: 39px;
    min-height: 39px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .admin-top {
    gap: 7px;
  }

  .module-switch {
    padding: 0 8px;
  }

  .module-switch-icon {
    display: none;
  }

  .admin-greeting {
    display: none;
  }

  .admin-account {
    flex: 0 0 auto;
  }
}

@media (max-width: 380px) {
  .module-switch {
    padding: 0 7px;
    font-size: 10px;
  }

  .admin-main {
    padding-right: 10px;
    padding-left: 10px;
  }
}


/* =========================================================
   V8: ESTILO GLOBAL ÚNICO DATITOS + FINANZAS
========================================================= */

.admin-sidebar-title {
  display: none !important;
}

.admin-sidebar nav a.active,
.module-finance .admin-sidebar nav a.active {
  box-shadow: inset 3px 0 0 var(--orange);
}

.module-switch.finance.active {
  border-color: var(--orange);
  background: linear-gradient(
    135deg,
    rgba(255, 121, 0, 0.23),
    rgba(255, 61, 0, 0.08)
  );
  box-shadow: 0 8px 22px rgba(255, 121, 0, 0.12);
}

.admin-sidebar nav a i {
  flex: 0 0 20px;
  width: 20px;
  font-size: 15px;
  text-align: center;
}

.module-switch i {
  width: 18px;
  font-size: 15px;
  text-align: center;
}

.menu-toggle i,
.logout-btn i {
  line-height: 1;
}