/*
 ENKI POWER — PREMIUM VISUAL V8.0
 LAB ONLY / NO DEPLOY
 Visual-only layer. No application logic.
*/

:root {
  --enki-bg: #080b10;
  --enki-surface: #121820;
  --enki-surface-2: #1a222d;
  --enki-gold: #ffd500;
  --enki-gold-light: #ffe875;
  --enki-text: #f7f9fc;
  --enki-muted: #b4bfcd;
  --enki-border: rgba(255,255,255,.12);
  --enki-radius: 20px;
  --enki-shadow: 0 18px 55px rgba(0,0,0,.28);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--enki-bg);
  color: var(--enki-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  background: rgba(8,11,16,.94);
  border-bottom: 1px solid var(--enki-border);
  backdrop-filter: blur(18px);
}

.logo {
  letter-spacing: .035em;
}

nav a {
  transition: color .2s ease, opacity .2s ease;
}

nav a:hover {
  color: var(--enki-gold);
}

.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(
      ellipse at 80% 20%,
      rgba(255,213,0,.13),
      transparent 48%
    ),
    linear-gradient(
      145deg,
      #080b10 0%,
      #151c25 55%,
      #080b10 100%
    );
}

.hero h1 {
  color: var(--enki-text);
  letter-spacing: -.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero .eyebrow {
  color: var(--enki-gold);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero-actions .primary,
.hero-actions .secondary {
  border-radius: 12px;
  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.hero-actions .primary:hover,
.hero-actions .secondary:hover {
  transform: translateY(-2px);
}

.hero-visual {
  border-radius: var(--enki-radius);
  overflow: hidden;
  box-shadow: var(--enki-shadow);
}

main.container section {
  scroll-margin-top: 100px;
}

.section-head h2 {
  letter-spacing: -.035em;
  color: var(--enki-text);
}

.departments {
  gap: 18px;
}

.department {
  border-radius: var(--enki-radius);
  border: 1px solid var(--enki-border);
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.department:hover {
  transform: translateY(-4px);
  border-color: rgba(255,213,0,.45);
  box-shadow: var(--enki-shadow);
}

.toolbar {
  border-radius: 16px;
  border: 1px solid var(--enki-border);
}

#search,
#category {
  border-radius: 12px;
  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

#search:focus,
#category:focus {
  outline: 2px solid var(--enki-gold);
  outline-offset: 2px;
}

.grid {
  gap: 22px;
}

.grid .card {
  border-radius: var(--enki-radius);
  border: 1px solid var(--enki-border);
  overflow: hidden;
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.grid .card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,213,0,.4);
  box-shadow: var(--enki-shadow);
}

.detail-modal {
  border-radius: 22px;
  border: 1px solid var(--enki-border);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

footer {
  border-top: 1px solid var(--enki-border);
}

@media (max-width: 850px) {
  .departments {
    gap: 12px;
  }

  .grid {
    gap: 14px;
  }

  .hero h1 {
    letter-spacing: -.03em;
  }
}

@media (max-width: 560px) {
  .department,
  .grid .card {
    border-radius: 15px;
  }

  .hero-visual {
    border-radius: 16px;
  }

  .hero-actions .primary,
  .hero-actions .secondary {
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .department,
  .grid .card,
  .hero-actions .primary,
  .hero-actions .secondary {
    transition: none;
  }

  .department:hover,
  .grid .card:hover,
  .hero-actions .primary:hover,
  .hero-actions .secondary:hover {
    transform: none;
  }
}

/* ENKI_HERO_V80_2662MM
   Compact cinematic hero — laboratory only
*/

.hero#inicio {
  min-height: 520px;
  height: auto;
  padding: 0;
  overflow: hidden;
}

.hero#inicio .hero-grid {
  min-height: 520px;
  max-width: 1100px;
  padding: 68px 24px 86px;
}

.hero#inicio h1 {
  max-width: 790px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 0 auto 20px;
  text-shadow: 0 3px 20px rgba(0,0,0,.45);
}

.hero#inicio p {
  max-width: 610px;
  margin: 0 auto 25px;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

.hero#inicio .hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero#inicio .enki-slide-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero#inicio #heroImage {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 45%;
}

.hero#inicio::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(4,7,12,.48) 0%,
    rgba(4,7,12,.53) 42%,
    rgba(4,7,12,.64) 100%
  );
}

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

.hero#inicio .hero-actions .action {
  min-height: 46px;
  padding: 13px 21px;
  border-radius: 11px;
}

.hero#inicio .enki-slide-controls {
  bottom: 14px;
  z-index: 5;
}

@media (max-width: 850px) {
  .hero#inicio,
  .hero#inicio .hero-grid {
    min-height: 490px;
  }

  .hero#inicio .hero-grid {
    padding: 72px 20px 88px;
  }

  .hero#inicio h1 {
    font-size: clamp(36px, 6vw, 52px);
  }
}

@media (max-width: 560px) {
  .hero#inicio,
  .hero#inicio .hero-grid {
    min-height: 510px;
  }

  .hero#inicio .hero-grid {
    padding: 75px 18px 95px;
  }

  .hero#inicio h1 {
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.1;
  }

  .hero#inicio p {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero#inicio #heroImage {
    object-position: center;
  }

  .hero#inicio .hero-actions .action {
    padding: 12px 15px;
    font-size: 12px;
  }

  .hero#inicio .enki-slide-controls {
    bottom: 10px;
  }
}

/* ENKI_CONTRAST_V80_2662MO
   Premium readability — laboratory only
*/

.hero#inicio::after {
  background:
    linear-gradient(
      90deg,
      rgba(3,7,13,.38) 0%,
      rgba(3,7,13,.48) 50%,
      rgba(3,7,13,.38) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3,7,13,.28) 0%,
      rgba(3,7,13,.22) 40%,
      rgba(3,7,13,.65) 100%
    );
}

.hero#inicio h1 {
  color: #fff;
  text-shadow:
    0 3px 12px rgba(0,0,0,.65),
    0 8px 32px rgba(0,0,0,.35);
}

.hero#inicio p {
  color: #f3f6fa;
  text-shadow:
    0 2px 9px rgba(0,0,0,.8);
}

.hero#inicio .eyebrow {
  color: #ffe500;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}

.hero#inicio .hero-actions .action {
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}


/* ENKI_DEPARTMENTS_V80_2662MQ
   Premium department cards — LAB ONLY
*/

#departamentos .departments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

#departamentos .department {
  position: relative;
  display: flex;
  min-height: 260px;
  padding: 26px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: #111720;
  box-shadow: 0 12px 35px rgba(0,0,0,.20);
  cursor: pointer;
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

#departamentos .department .enki-dept-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

#departamentos .department::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(3,7,12,.05) 0%,
    rgba(3,7,12,.25) 40%,
    rgba(3,7,12,.90) 100%
  );
}

#departamentos .department::after {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255,213,0,.10),
    transparent 40%
  );
}

#departamentos .department .enki-dept-label {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: clamp(22px,2.3vw,31px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-shadow: 0 3px 12px rgba(0,0,0,.65);
}

#departamentos .department .enki-dept-accent {
  z-index: 2;
  background: #ffd500;
}

#departamentos .department:hover {
  transform: translateY(-4px);
  border-color: rgba(255,213,0,.45);
  box-shadow: 0 18px 45px rgba(0,0,0,.32);
}

#departamentos .department:hover .enki-dept-photo {
  transform: scale(1.035);
}

#departamentos .department:focus-visible {
  outline: 3px solid #ffd500;
  outline-offset: 3px;
}

@media (max-width: 850px) {
  #departamentos .departments {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #departamentos .department {
    min-height: 235px;
    padding: 22px;
  }
}

@media (max-width: 560px) {
  #departamentos .department {
    min-height: 205px;
    padding: 20px;
    border-radius: 15px;
  }

  #departamentos .department .enki-dept-label {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #departamentos .department,
  #departamentos .department .enki-dept-photo {
    transition: none;
  }

  #departamentos .department:hover,
  #departamentos .department:hover .enki-dept-photo {
    transform: none;
  }
}

/* ENKI_PREMIUM_V80_REAL_CARDS_2662NF */

#productos .grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
  align-items: stretch;
}

#productos .grid > .card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #121923;
  border: 1px solid #293443;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
  transition: transform .2s ease,box-shadow .2s ease;
}

#productos .grid > .card .photo {
  position: relative;
  width: 100%;
  height: 245px;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
  background: #182231;
}

#productos .grid > .card .photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #202c3e;
}

#productos .grid > .card .photo .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  max-width: calc(100% - 28px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
}

#productos .grid > .card .details {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 19px 17px;
  background: linear-gradient(180deg,#17202b,#101720);
}

#productos .grid > .card .category {
  color: #ffd500;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

#productos .grid > .card h3 {
  margin: 9px 0 12px;
  min-height: 44px;
  color: #fff;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.3;
  text-shadow: none;
}

#productos .grid > .card .price {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(24px,2.3vw,30px);
  font-weight: 850;
  line-height: 1.2;
  text-shadow: none;
}

#productos .grid > .card .stock {
  margin: 0 0 16px;
  color: #bdc9d8;
  font-size: 12px;
}

#productos .grid > .card .buttons {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
}

#productos .grid > .card .buttons button,
#productos .grid > .card .buttons a {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  text-shadow: none;
}

#productos .grid > .card .buttons .product-detail-button {
  background: #ffd500;
  color: #101010;
}

#productos .grid > .card .buttons .whatsapp {
  background: #19c56b;
  color: #07170d;
}

#productos .grid > .card .buttons .disabled {
  background: #2c3746;
  color: #c6d0dc;
  opacity: .8;
}

#productos .grid > .card .buttons .note {
  color: #9eafc3;
  font-size: 11px;
  line-height: 1.45;
}

@media (hover:hover) and (pointer:fine) {
  #productos .grid > .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(0,0,0,.34);
  }
}

@media (max-width:1000px) {
  #productos .grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 17px;
  }
}

@media (max-width:650px) {
  #productos .grid {
    grid-template-columns: minmax(0,1fr);
    gap: 16px;
  }

  #productos .grid > .card .photo {
    height: 220px;
  }

  #productos .grid > .card .details {
    padding: 17px;
  }
}

@media (prefers-reduced-motion:reduce) {
  #productos .grid > .card {
    transition: none;
  }
}


/* ENKI_PREMIUM_V80_PHOTO_OPTIMIZATION_2662NM */

#productos .grid > .card {
  border-radius: 16px;
}

#productos .grid > .card .photo {
  height: 220px;
  padding: 10px;
  background: #1e2a3b;
  display: flex;
  align-items: center;
  justify-content: center;
}

#productos .grid > .card .photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
  border-radius: 8px;
}

#productos .grid > .card .details {
  padding: 16px;
}

#productos .grid > .card h3 {
  min-height: 36px;
  margin: 7px 0 10px;
  font-size: 18px;
}

#productos .grid > .card .price {
  font-size: 27px;
  margin-bottom: 6px;
}

#productos .grid > .card .stock {
  margin-bottom: 13px;
}

#productos .grid > .card .buttons {
  gap: 8px;
}

#productos .grid > .card .buttons button,
#productos .grid > .card .buttons a {
  min-height: 40px;
}

@media (max-width:650px) {
  #productos .grid > .card .photo {
    height: 210px;
  }
}

