/* ===== reports/wine.css ===== */
/* Wine e-commerce report base styles and widgets. Centralized KIVO CSS, migrated from source ZIP (23). */

/* Source: portfolio/ecommerce-vino/styles.css */
:root {
  --bg: #122B3A;
  --bg2: #1b1d20;
  --paper: #EDF5F2;
  --paper2: #eeece3;
  --text: #f9f8f3;
  --muted: #b9b9b2;
  --ink: #141414;
  --soft: #585b55;
  --accent: #43C6A5;
  --accent2: #122B3A;
  --accent-dark: #122B3A;
  --line: rgba(169, 196, 71, .28);
  --line2: rgba(20, 20, 20, .12);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 28px 90px rgba(0, 0, 0, .35);
  --max: 1540px;
  --header: 74px;
  --font: 'Space Grotesk', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  overflow-x: hidden
}

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

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

p {
  line-height: 1.65
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 5vw, 84px);
  background: linear-gradient(180deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .10));
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: transform .45s var(--ease), background .35s ease
}


.brand img {
  width: 150px;
  height: auto
}




.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(169, 196, 71, .65)
}

.section {
  position: relative;
  padding: clamp(70px, 8vw, 118px) clamp(20px, 5vw, 84px)
}

.compact {
  padding-top: 80px
}

.section-dark {
  background: radial-gradient(circle at 15% 10%, rgba(169, 196, 71, .08), transparent 33%), var(--bg);
  color: var(--green)
}

.section-light {
  background: linear-gradient(180deg, var(--paper), #EDF5F2);
  color: var(--ink)
}

.section-head {
  max-width: 920px;
  margin: 0 auto 38px
}

.section-head p {
  max-width: 820px
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 18px
}

.section-light .section-kicker {
  color: #122B3A
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -.055em;
  line-height: .95
}

h1 {
  font-size: clamp(54px, 8.8vw, 128px);
  max-width: 920px
}

h2 {
  font-size: clamp(38px, 5.8vw, 82px);
  max-width: 980px
}

h3 {
  font-size: 28px
}

.lead {
  font-size: clamp(18px, 2vw, 25px);
  max-width: 760px;
  color: #e5e5df
}

.section-light p {
  color: #3e403b
}

.section-dark p {
  color: #d6d6cf
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 10px;
  font-weight: 800;
  transition: .35s var(--ease)
}

.btn-primary {
  background: var(--accent);
  color: #122B3A;
  box-shadow: 0 16px 50px rgba(169, 196, 71, .24)
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .04)
}

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

.hero {
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .66) 42%, rgba(0, 0, 0, .05) 100%), url("/portfolio/ecommerce-vino/assets/images/hero-wine-dashboard-clean.webp") center/cover no-repeat;
  filter: saturate(1.1) contrast(1.05)
}

.hero-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 48%, rgba(169, 196, 71, .18), transparent 25%), linear-gradient(180deg, transparent 70%, var(--bg) 100%)
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
  padding: calc(var(--header) + 50px) clamp(22px, 3vw, 40px) 90px
}

.hero-copy {
  padding-top: 20px
}

.hero-copy h1 strong {
  color: var(--accent)
}







.connect-grid,
.feature-matrix,
.crm-grid,
.role-grid,
.tool-grid{

  display:grid;

  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));

  gap:1rem;

}

.tool-card{

  min-height:120px;

  display:flex;

  flex-direction:column;

  justify-content:center;

  align-items:center;

  text-align:center;

  background:#EDF5F2;

  border:1px solid rgba(0,0,0,.08);

  border-radius:18px;

  transition:.25s ease;

}

.tool-card:hover{

  transform:translateY(-4px);

  border-color:rgba(164,191,59,.45);

}

.tool-card strong{

  font-size:1.2rem;

  font-weight:800;

  color:#0b0d12;

  margin-bottom:.5rem;

}

.tool-card span{

  font-size:.72rem;

  font-weight:800;

  letter-spacing:.14em;

  text-transform:uppercase;

  color:#43C6A5;

}

.connect-grid {
  grid-template-columns: repeat(6, 1fr)
}

.pulse-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  overflow: hidden;
  transition: .35s var(--ease)
}

.pulse-card:before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  background: conic-gradient(from var(--angle, 0deg), transparent, transparent 62%, var(--accent), transparent) border-box;
  mask: linear-gradient(#122B3A 0 0) padding-box, linear-gradient(#122B3A 0 0);
  mask-composite: exclude;
  opacity: 0
}

.pulse-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(180deg, rgba(169, 196, 71, .07), rgba(255, 255, 255, .025))
}

.pulse-card:hover:before {
  opacity: 1;
  animation: spin 1s linear 1
}

.pulse-card span {
  display: block;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 16px
}

.pulse-card p {
  font-size: 14px;
  margin: 0
}

.split {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  align-items: end
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.kpi-card {
  padding: 34px 24px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: #EDF5F2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
  transition: .35s var(--ease)
}

.kpi-card:hover {
  transform: translateY(-7px)
}

.kpi-card strong {
  display: block;
  font-size: 34px;
  color: #122B3A;
  margin-bottom: 10px;
  letter-spacing: -.05em
}

.kpi-card span {
  color: #43443f;
  line-height: 1.5
}

.image-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
  max-width: none
}

.image-section.reverse .image-panel {
  order: 2
}

.image-panel {
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(169, 196, 71, .20);
  box-shadow: var(--shadow);
  background: #122B3A
}

.section-light .image-panel {
  border-color: var(--line2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .16)
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) saturate(1.05)
}

.text-panel {
  max-width: 680px
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 24px
}

.mini-list p {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent2);
  background: rgba(255, 255, 255, .055)
}

.mini-list.light p {
  background: #EDF5F2;
  border-color: #122B3A;
  color: #333
}

.profile-wrap {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: 1.45fr .55fr;
  gap: 44px;
  align-items: center
}

.role-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px
}

.role-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04)
}

.role-grid b {
  display: block;
  color: var(--accent);
  margin-bottom: 8px
}

.role-grid span {
  color: #dadad2;
  line-height: 1.45
}

.profile-card {
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  box-shadow: var(--shadow)
}

.profile-card img {

  border-radius: 12px;

  aspect-ratio: 4/5;

  object-fit: cover;

  max-height: 520px;

  width: 100%;

}
.profile-card {

  max-width: 420px;

  justify-self: end;

}
@media(max-width:900px) {

  .profile-card {

    max-width: 340px;

    justify-self: center;

  }

  .profile-card img {

    max-height: 420px;

  }

}

.profile-card span {
  display: block;
  margin-top: 14px;
  font-weight: 800;
  color: var(--accent)
}

.system-board {
  position: relative;
  max-width: 1100px;
  height: 650px;
  margin: 0 auto;
  border: 1px solid var(--line2);
  border-radius: 18px;
  background: radial-gradient(circle at center, rgba(169, 196, 71, .22), transparent 22%), linear-gradient(180deg, #EDF5F2, #EDF5F2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .11);
  overflow: hidden
}

.system-board:before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(94, 126, 22, .35);
  border-radius: 50%;
  animation: slowRotate 22s linear infinite
}

.system-center {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: #122B3A;
  color: #EDF5F2;
  border: 1px solid #43C6A5;
  font-weight: 800;
  font-size: 28px;
  box-shadow: 0 0 70px rgba(169, 196, 71, .35)
}

.system-center span {
  font-size: 14px;
  color: #43C6A5
}

.system-item {
  position: absolute;
  width: 250px;
  padding: 18px;
  border: 1px solid rgba(94, 126, 22, .25);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
  transition: .35s var(--ease)
}

.system-item:hover {
  transform: scale(1.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12)
}

.system-item b {
  display: block;
  color: #4f7014;
  margin-bottom: 8px
}

.system-item small {
  line-height: 1.45;
  color: #333
}

.i1 {
  left: 7%;
  top: 10%
}

.i2 {
  right: 7%;
  top: 10%
}

.i3 {
  right: 3%;
  top: 42%
}

.i4 {
  right: 13%;
  bottom: 10%
}

.i5 {
  left: 13%;
  bottom: 10%
}

.i6 {
  left: 3%;
  top: 42%
}

.journey-line {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px
}

.journey-line div {
  position: relative;
  min-height: 210px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  transition: .35s var(--ease)
}

.journey-line div:hover {
  transform: translateY(-9px);
  border-color: var(--accent)
}

.journey-line b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  margin-bottom: 18px;
  color: #EDF5F2
}

.journey-line span {
  display: block;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 8px
}

.journey-line small {
  color: #d7d7cf;
  line-height: 1.45
}

.feature-matrix {
  grid-template-columns: repeat(3, 1fr)
}

.feature-matrix div,
.crm-grid article {
  padding: 24px;
  border: 1px solid var(--line2);
  background: #EDF5F2;
  border-radius: 12px;
  transition: .35s var(--ease)
}

.feature-matrix div:hover,
.crm-grid article:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .10)
}

.feature-matrix b,
.crm-grid b {
  display: block;
  color: #122B3A;
  margin-bottom: 10px;
  font-size: 20px
}

.feature-matrix span,
.crm-grid p {
  color: #383a35
}

.checkout-card {
  padding: 32px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: #EDF5F2;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .14);
  max-width: 530px
}

.checkout-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800
}

.checkout-top strong {
  font-size: 36px;
  color: #122B3A;
  letter-spacing: -.04em
}

.progress {
  height: 9px;
  background: #e8e8de;
  border-radius: 99px;
  margin: 28px 0 12px;
  overflow: hidden
}

.progress i {
  display: block;
  height: 100%;
  background: #122B3A;
  border-radius: 99px
}

.checkout-card button {
  width: 100%;
  border: 0;
  background: #122B3A;
  color: #EDF5F2;
  font-weight: 800;
  padding: 17px;
  border-radius: 9px;
  text-transform: uppercase;
  letter-spacing: .08em
}

.checkout-card li {
  margin: 12px 0
}

.crm-grid {
  grid-template-columns: repeat(3, 1fr)
}

.hover-gallery {
  max-width: var(--max);
  height: 480px;
  margin: auto;
  display: flex;
  gap: 14px
}

.gallery-item {
  position: relative;
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(.58);
  transition: flex .7s var(--ease), filter .5s ease, transform .5s ease, box-shadow .5s ease
}

.gallery-item:hover {
  flex: 3.4;
  filter: grayscale(0) brightness(1);
  transform: translateY(-6px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, .4)
}

.gallery-item span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(169, 196, 71, .35);
  border-radius: 999px;
  padding: 9px 13px;
  color: #EDF5F2;
  font-weight: 800
}

.workflow {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr 40px 1fr;
  align-items: center
}

.workflow div {
  min-height: 150px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 20px;
  border: 1px solid var(--line2);
  background: #EDF5F2;
  border-radius: 12px
}

.workflow div b {
  color: #122B3A;
  text-transform: uppercase;
  letter-spacing: .08em
}

.workflow div span {
  margin-top: 8px;
  color: #333
}

.workflow i {
  height: 2px;
  background: #122B3A;
  position: relative
}

.workflow i:after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #122B3A;
  border-right: 2px solid #122B3A;
  transform: rotate(45deg)
}

.tool-grid {
  grid-template-columns: repeat(8, 1fr)
}

.tool-grid div {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 130px;
  background: #EDF5F2;
  border: 1px solid var(--line2);
  border-radius: 12px;
  font-weight: 800;
  transition: .35s var(--ease)
}

.tool-grid div:hover {
  transform: translateY(-8px)
}

.tool-grid img {
  width: 34px;
  height: 34px;
  object-fit: contain
}

.roadmap-gallery {
  max-width: var(--max);
  margin: auto;
  display: flex;
  gap: 18px
}

.roadmap-gallery article {
  flex: 1;
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  transition: flex .7s var(--ease), transform .45s var(--ease), background .45s ease
}

.roadmap-gallery article:hover {
  flex: 1.6;
  transform: translateY(-8px);
  background: linear-gradient(180deg, rgba(169, 196, 71, .12), rgba(255, 255, 255, .03))
}

.roadmap-gallery span {
  color: var(--accent);
  font-weight: 800
}

.roadmap-gallery h3 {
  margin: 16px 0
}

.closing {
  min-height: 70vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(17, 18, 20, .72), var(--bg)), url("/portfolio/ecommerce-vino/assets/images/hero-wine-dashboard-clean.webp") center/cover
}

.closing-card {
  max-width: 900px;
  text-align: center
}

.closing-card h2 {
  margin: auto
}




.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  background: #111;
  color: #EDF5F2;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow)
}

.cookie-banner p {
  margin: 0;
  font-size: 13px
}

.cookie-banner button {
  margin-left: 8px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none
}

.reveal.is-visible {
  opacity: 1;
  transform: none
}

@keyframes spin {
  to {
    --angle: 360deg
  }
}

@keyframes slowRotate {
  to {
    transform: rotate(360deg)
  }
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false
}

@media(max-width:1100px) {

  .hero-inner,
  .split,
  .image-section,
  .profile-wrap {
    grid-template-columns: 1fr
  }

  .connect-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .journey-line {
    grid-template-columns: repeat(4, 1fr)
  }

  .tool-grid {
    grid-template-columns: repeat(4, 1fr)
  }

  .image-section.reverse .image-panel {
    order: 0
  }

  .system-board {
    height: auto;
    display: grid;
    gap: 12px;
    padding: 24px
  }

  .system-board:before,
  .system-center {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    translate: none;
    margin: auto
  }

  .system-item {
    position: relative;
    inset: auto;
    width: auto
  }

  .workflow {
    grid-template-columns: 1fr
  }

  .workflow i {
    height: 34px;
    width: 2px;
    margin: auto
  }

  .workflow i:after {
    right: -4px;
    top: 22px;
    transform: rotate(135deg)
  }
}

@media(max-width:720px) {
  :root {
    --header: 64px
  }

  .brand img {
    width: 118px
  }

  .avatar {
    width: 34px;
    height: 34px
  }

  

  .hero-inner {
    padding-top: 110px
  }

  

  

  .connect-grid,
  .kpi-row,
  .feature-matrix,
  .crm-grid,
  .role-grid {
    grid-template-columns: 1fr
  }

  .journey-line {
    grid-template-columns: 1fr
  }

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

  .hover-gallery,
  .roadmap-gallery {
    overflow-x: auto
  }

  .hover-gallery {
    height: 360px
  }

  .gallery-item,
  .roadmap-gallery article {
    min-width: 240px
  }

  
  .cookie-banner {
    display: grid
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px
  }

  .section {
    padding: 64px 18px
  }

  h1 {
    font-size: 52px
  }

  .image-panel,
  .image-panel img {
    min-height: 340px
  }
}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact
  }

  html,
  body {
    background: #EDF5F2
  }

  .site-header,
  .cookie-banner {
    display: none
  }

  .section {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 26mm 14mm
  }

  .hero {
    min-height: 100vh;
    break-after: page
  }

  .section-dark {
    background: #122B3A;
    color: #EDF5F2
  }

  .section-light {
    background: #EDF5F2
  }

  .reveal {
    opacity: 1;
    transform: none
  }

  .image-panel,
  .checkout-card,
  .system-board {
    box-shadow: none
  }

  

  .btn {
    border: 1px solid #222
  }

  .hover-gallery,
  .roadmap-gallery {
    height: auto
  }

  .gallery-item {
    min-height: 260px
  }
}

/* ===============================
   V5 FIXES — preserve V3 animations/integrations
   =============================== */
:root {
  --max: 1540px;
  --accent: #43C6A5;
  --accent2: #122B3A;
  --accent-dark: #122B3A;
  --line: rgba(169, 196, 71, .28);
}

.site-header {
  position: fixed;
  transform: none;
  height: 82px;
  background: #050605;
  border-bottom: 1px solid rgba(169, 196, 71, .18);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
}


.brand img {
  width: 176px;
}

.section {
  padding-inline: clamp(22px, 4vw, 72px);
}

.section-head,
.connect-grid,
.feature-matrix,
.crm-grid,
.role-grid,
.tool-grid,
.split,
.profile-wrap,
.journey-line,
.roadmap-gallery,
.closing-card {
  max-width: var(--max);
}

.section-head {
  margin-left: auto;
  margin-right: auto;
}

.image-section {
  width: min(100%, var(--max));
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.hero-inner {
  max-width: var(--max);
}

.pulse-card,
.feature-matrix div,
.crm-grid article,
.journey-line div,
.roadmap-gallery article,
.tool-card {
  border-radius: 10px;
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  left: auto;
  z-index: 300;
  width: min(540px, calc(100% - 44px));
  padding: 16px;
  background: #122B3A;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner p {
  margin: 0;
  color: #efefe8;
  font-size: 13px;
  line-height: 1.45;
}

.cookie-banner div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-banner button {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #EDF5F2;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.cookie-banner [data-accept-cookies] {
  background: var(--accent);
  color: #122B3A;
  border-color: var(--accent);
}

.cookie-banner [data-reject-cookies] {
  background: transparent;
}

@media(max-width:900px) {
  .site-header {
    height: 70px
  }

  .brand img {
    width: 150px
  }

  .section {
    padding-inline: 18px
  }

  .connect-grid {
    grid-template-columns: 1fr 1fr
  }

  .journey-line {
    grid-template-columns: 1fr 1fr
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    width: auto;
    align-items: flex-start;
    flex-direction: column
  }
}

@media print {

  .site-header,
  .cookie-banner {
    display: none
  }

  .section {
    max-width: 100%;
    padding-left: 12mm;
    padding-right: 12mm
  }
}

/* === V6 ajustes finos solicitados === */
:root {
  --accent: #8FB42E;
  --accent2: #6F8F22;
  --accent-dark: #4E6618;
  --line: rgba(143, 180, 46, .30);
  --max: 1680px;
  --font: 'Space Grotesk', Roboto, Arial, sans-serif;
}

body,
button,
input,
textarea,
select {
  font-family: var(--font);
}

.site-header {
  height: 88px;
  background: #122B3A;
  padding-inline: clamp(22px, 4vw, 70px);
}

.brand img {
  width: 210px;
  max-height: 58px;
  object-fit: contain;
}


.avatar {
  width: 46px;
  height: 46px;
  border-color: rgba(143, 180, 46, .72);
}

.section {
  padding: clamp(58px, 6.4vw, 96px) clamp(18px, 3vw, 56px);
}

.section-head,
.connect-grid,
.feature-matrix,
.crm-grid,
.role-grid,
.tool-grid,
.split,
.profile-wrap,
.journey-line,
.roadmap-gallery,
.workflow,
.wide-image-placeholder,
.closing-card {
  width: 100%;
  max-width: var(--max);
}

.image-section {
  width: 100%;
  max-width: 100%;
  padding-inline: clamp(18px, 3vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.image-section>* {
  max-width: 100%;
}

.text-panel {
  max-width: 760px;
}

.image-section.reverse .text-panel {
  justify-self: end;
}

.image-panel {
  border-radius: 12px;
}

.image-panel img {
  border-radius: 0;
}

.hero {
  min-height: 100vh;
  padding-top: var(--header);
}

.hero-bg {
  background-image: linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .42) 42%, rgba(0, 0, 0, .04) 100%), url("/portfolio/ecommerce-vino/assets/images/hero-wine-dashboard-clean.webp");
  filter: none;
  background-position: center right;
}

.hero-bg:after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 72%, var(--bg) 100%);
}

.hero-inner {
  display: block;
  max-width: var(--max);
  padding: clamp(70px, 8vw, 130px) clamp(22px, 4vw, 70px) clamp(70px, 8vw, 120px);
}

.hero-copy {
  max-width: 850px;
  padding-top: 0;
}


h1,
h2,
h3 {
  font-family: var(--font);
}

.context-cards {
  align-items: stretch;
}

.context-cards .kpi-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 34px 26px;
}

.context-cards .kpi-card strong {
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: .95;
}

.context-cards .kpi-card span {
  font-size: 16px;
  line-height: 1.65;
}

#contexto-vino.section-light .text-panel .section-kicker,
#catalogo-ficha.section-light .text-panel .section-kicker {
  color: var(--accent-dark);
}

#contexto-vino .text-panel h2,
#catalogo-ficha .text-panel h2 {
  color: var(--ink);
}

#contexto-vino .text-panel p,
#catalogo-ficha .text-panel p {
  color: #333;
}

#dashboard,
#umbral,
#automatizacion-crm,
#ia {
  padding-inline: clamp(18px, 3vw, 56px);
}

#dashboard .image-panel,
#umbral .checkout-card,
#automatizacion-crm .image-panel,
#ia .image-panel {
  width: 100%;
}

.wide-image-placeholder {
  margin: 34px auto 0;
  border: 1px solid var(--line2);
  border-radius: 12px;
  overflow: hidden;
  background: #EDF5F2;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .10);
}

.wide-image-placeholder img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: center;
}

.wide-image-placeholder figcaption {
  padding: 14px 18px;
  color: #4b4d47;
  font-size: 13px;
  background: #EDF5F2;
  border-top: 1px solid var(--line2);
}

.hover-gallery {
  filter: none;
}

.gallery-item {
  filter: none;
  opacity: 1;
  border-radius: 10px;
}

.gallery-item:before {
  background: linear-gradient(180deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, .38));
}

.gallery-item span {
  opacity: 1;
  color: #EDF5F2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .8);
  transform: none;
}

.gallery-item:hover {
  filter: none;
  opacity: 1;
}

.workflow {
  gap: 0;
}

.workflow div {
  position: relative;
  overflow: hidden;
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
}

.workflow div:before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform .55s var(--ease);
}

.workflow div:hover {
  transform: translateY(-8px);
  border-color: rgba(143, 180, 46, .55);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .14);
}

.workflow div:hover:before {
  transform: translateX(100%);
}

.workflow i {
  overflow: visible;
}

.workflow i:before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  animation: flowDot 2.6s linear infinite;
}

@keyframes flowDot {
  0% {
    left: 0;
    opacity: 0
  }

  15% {
    opacity: 1
  }

  85% {
    opacity: 1
  }

  100% {
    left: 100%;
    opacity: 0
  }
}

.closing {
  min-height: auto;
  place-items: stretch;
  background: var(--bg);
}

.closing-card {
  text-align: left;
  margin: 0 auto;
}

.closing-card h2 {
  margin: 0;
}

.closing-card .lead {
  max-width: 980px;
  margin-top: 22px;
}

.closing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0;
}

.closing-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  transition: .35s var(--ease);
}

.closing-grid article:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.closing-grid b {
  display: block;
  color: var(--accent);
  margin-bottom: 10px;
}

.closing-grid span {
  display: block;
  color: #ddd;
  line-height: 1.55;
}

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

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .62);
  padding: 20px;
}











@media(max-width:1100px) {
  .image-section {
    grid-template-columns: 1fr;
  }

  .image-section.reverse .text-panel {
    justify-self: stretch;
  }

  .context-cards {
    grid-template-columns: 1fr;
  }

  .context-cards .kpi-card {
    min-height: auto;
  }

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

@media(max-width:720px) {
  .brand img {
    width: 160px;
  }

  .site-header {
    height: 76px;
  }

  .hero {
    padding-top: 76px;
  }
}

@media print {
  .cookie-modal {
    display: none;
  }

  .section,
  .image-section {
    padding-left: 10mm;
    padding-right: 10mm;
  }
}

/* === Report hero final integrated fix === */
.report-root {
  display: block;
  background: var(--bg);
}

.hero.section-dark.print-page {
  min-height: clamp(560px, 56vw, 820px);
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
}

.hero-bg {
  background-image: linear-gradient(90deg,
      rgba(0, 0, 0, .88) 0%,
      rgba(0, 0, 0, .68) 36%,
      rgba(0, 0, 0, .22) 68%,
      rgba(0, 0, 0, .10) 100%),
    url("/portfolio/ecommerce-vino/assets/images/hero-wine-dashboard-clean.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  filter: none;
}

.hero-bg::after {
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 66%,
      var(--bg) 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--max);
  min-height: inherit;
  padding: clamp(54px, 6vw, 92px) clamp(22px, 4vw, 70px);
}

.hero-copy {
  max-width: 720px;
  padding-top: 0;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(68px, 8vw, 124px);
  line-height: .88;
  letter-spacing: -.075em;
}

.hero .lead {
  max-width: 760px;
  margin-top: 24px;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.22;
  font-weight: 800;
  color: rgba(255, 255, 255, .92);
}

.hero-support {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.62;
  font-weight: 500;
}


@media (max-width: 720px) {
  .hero.section-dark.print-page {
    min-height: 480px;
    padding-top: 20px;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero-inner {
    padding: 80px 20px 54px;
  }

  .hero h1 {
    font-size: clamp(54px, 17vw, 82px);
  }

  .hero .lead {
    font-size: 20px;
  }
}

/* === FINAL OVERRIDE · Hero informe compacto === */
.report-root .hero.section-dark.print-page {
  min-height: 500px;
  max-height: 540px;
  height: 52vh;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
}

.report-root .hero.section-dark.print-page .hero-bg {
  background-image:
    linear-gradient(90deg,
      rgba(0, 0, 0, .94) 0%,
      rgba(0, 0, 0, .82) 34%,
      rgba(0, 0, 0, .34) 66%,
      rgba(0, 0, 0, .08) 100%),
    url("/portfolio/ecommerce-vino/assets/images/hero-wine-dashboard-clean.webp");
  background-size: cover;
  background-position: center 34%;
  background-repeat: no-repeat;
}

.report-root .hero.section-dark.print-page .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 38%, rgba(143, 180, 46, .14), transparent 25%),
    linear-gradient(180deg,
      rgba(17, 18, 20, 0) 0%,
      rgba(17, 18, 20, 0) 58%,
      rgba(17, 18, 20, .72) 82%,
      var(--bg) 100%);
}

.report-root .hero.section-dark.print-page .hero-inner {
  min-height: 100%;
  padding: calc(var(--header) + 8px) clamp(22px, 4vw, 70px) 18px;
  align-items: center;
}

.report-root .hero.section-dark.print-page .hero-copy {
  max-width: 700px;
  transform: translateY(-80px);
}

.report-root .hero.section-dark.print-page .hero-copy h1 {
  font-size: clamp(4rem, 7.4vw, 7.8rem);
  line-height: .86;
  margin-bottom: 14px;
}

.report-root .hero.section-dark.print-page .lead {
  margin-top: 18px;
  font-size: clamp(20px, 1.9vw, 28px);
}

.report-root .hero.section-dark.print-page .hero-support {
  margin-top: 18px;
  max-width: 660px;
}

#resumen.section.section-dark.compact {
  padding-top: 26px;
}

@media(max-width:900px) {
  .report-root .hero.section-dark.print-page {
    min-height: 520px;
    max-height: none;
    height: auto;
  }

  .report-root .hero.section-dark.print-page .hero-inner {
    padding: calc(var(--header) + 24px) 20px 36px;
  }
}

@media(max-width:720px) {
  .report-root .hero.section-dark.print-page {
    min-height: 500px;
  }

  .report-root .hero.section-dark.print-page .hero-bg {
    background-position: 62% center;
  }

  #resumen.section.section-dark.compact {
    padding-top: 22px;
  }
}

/* === Header sincronizado con home V3 === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1560px)/2));
  background: linear-gradient(180deg, rgba(5, 6, 7, .92), rgba(5, 6, 7, .62));
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: none;
  backdrop-filter: blur(18px);
  transform: none;
  opacity: 1;
  pointer-events: auto;
}


.site-header .brand img,
.brand img {
  width: 312px;
  max-width: 34vw;
  max-height: none;
  height: auto;
  object-fit: contain;
}

.site-header .nav,
.site-header .nav a,
.nav {
  color: #EDF5F2;
}






.project-intro {
  padding-top: calc(var(--header-h) + 18px);
}

section[id] {
  scroll-margin-top: 96px;
}

@media (max-width: 1100px) {
  .site-header .brand img,
  .brand img {
    width: 248px;
    max-width: 54vw;
  }

  .nav.is-open {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    left: 14px;
    right: 14px;
    z-index: 1001;
    display: grid;
    gap: 10px;
    padding: 18px;
    background: rgba(5, 6, 7, .96);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
    backdrop-filter: blur(18px);
  }
}

@media (max-width: 720px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: var(--header-h);
    padding: 0 14px;
  }

  .site-header .brand {
    position: static;
    left: auto;
    transform: none;
    display: flex;
    justify-content: flex-start;
  }

  .site-header .brand img,
  .brand img {
    width: 192px;
    max-width: 68vw;
  }

  

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: end;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    z-index: 1002;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
    margin: 3px 0;
    background: #EDF5F2;
  }

  .project-intro {
    padding-top: calc(var(--header-h) + 12px);
  }
}

/* === Mobile reading order refinement · cheap selectors === */
@media (max-width: 720px) {
  .image-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .image-section .text-panel {
    order: 1;
  }

  .image-section .image-panel,
  .image-section .checkout-card {
    order: 2;
  }

  .image-section .mobile-widget-summary {
    margin-top: 0;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pulse-card:hover,
  .kpi-card:hover,
  .feature-matrix div:hover,
  .crm-grid article:hover,
  .journey-line div:hover,
  .roadmap-gallery article:hover,
  .workflow div:hover,
  .tool-card:hover,
  .btn:hover {
    transform: none;
  }
}


/* Source: portfolio/ecommerce-vino/report-widgets.css */

/* =========================================================
   Report widgets · isolated UI system for ecommerce-vino
   Prefix: eg-
   ========================================================= */

.eg-widget {
  --eg-bg: #f8f5ec;
  --eg-card: rgba(237,245,242,.95);
  --eg-ink: #171715;
  --eg-muted: #6f6a60;
  --eg-line: rgba(32, 29, 23, .13);
  --eg-green: #43C6A5;
  --eg-green-2: #122B3A;
  --eg-dark: #122B3A;
  --eg-dark-2: #122B3A;
  --eg-red: #d76d67;
  --eg-gold: #c9a44c;
  width: 100%;
  min-height: 520px;
  height: 100%;
  font-family: var(--font, "Space Grotesk", system-ui, sans-serif);
  color: var(--eg-ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(67,198,165,.18), transparent 30%),
    linear-gradient(145deg, rgba(237,245,242,.97), var(--eg-bg));
  border-radius: inherit;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}


.eg-widget * {
  box-sizing: border-box;
}

.eg-widget strong,
.eg-widget b {
  letter-spacing: -.04em;
}

.eg-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--eg-green-2);
}

/* Contexto sectorial */
.eg-sector-widget {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.eg-widget-top,
.eg-product-head,
.eg-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.eg-widget-top strong {
  display: block;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: .95;
  margin-top: 5px;
}

.eg-status {
  border: 1px solid var(--eg-line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--eg-muted);
  font-size: 12px;
  white-space: nowrap;
  background: rgba(255,255,255,.62);
}

.eg-sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.eg-pressure-card {
  border: 1px solid var(--eg-line);
  border-radius: 14px;
  padding: 15px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 45px rgba(0,0,0,.07);
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s;
}

.eg-pressure-card:hover {
  transform: translateY(-5px);
  border-color: rgba(67,198,165,.55);
}

.eg-pressure-card span,
.eg-pressure-card small {
  display: block;
  color: var(--eg-muted);
  font-size: 12px;
}

.eg-pressure-card strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 28px;
}

.eg-meter,
.eg-search-lines i,
.eg-source-list i,
.eg-taste-card i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(23,23,21,.10);
  overflow: hidden;
}

.eg-meter i,
.eg-search-lines i:after,
.eg-source-list i:after,
.eg-taste-card i:after {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--eg-green-2), var(--eg-green));
}

.eg-visit-flow {
  flex: 1;
  min-height: 170px;
  border: 1px solid var(--eg-line);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(17,20,23,.04), transparent),
    rgba(255,255,255,.58);
}

.eg-flow-node {
  flex: 1;
  min-width: 0;
  padding: 15px 11px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid rgba(23,23,21,.12);
  background: #EDF5F2;
  transition: transform .35s cubic-bezier(.22,1,.36,1), background .35s;
}

.eg-flow-node:hover {
  transform: translateY(-6px);
  background: #122B3A;
  color: #EDF5F2;
}

.eg-flow-node b {
  display: block;
  font-size: 14px;
}

.eg-flow-node span {
  display: block;
  color: var(--eg-muted);
  font-size: 11px;
  margin-top: 4px;
}

.eg-flow-node:hover span {
  color: rgba(255,255,255,.68);
}

.eg-flow-node.is-good {
  border-color: rgba(67,198,165,.55);
}

.eg-flow-node.is-risk {
  border-color: rgba(215,109,103,.35);
}

.eg-visit-flow > i {
  flex: .25;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--eg-green), transparent);
  position: relative;
}

.eg-visit-flow > i:after {
  content: "";
  position: absolute;
  right: -2px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--eg-green);
  border-top: 1px solid var(--eg-green);
  rotate: 45deg;
}

.eg-sector-bottom {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 14px;
  align-items: end;
}

.eg-sector-bottom > div:first-child {
  border: 1px solid var(--eg-line);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.65);
}

.eg-sector-bottom small {
  color: var(--eg-green-2);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.eg-sector-bottom p {
  margin: 5px 0 0;
  color: var(--eg-muted);
  line-height: 1.35;
  font-size: 13px;
}

.eg-mini-chart {
  height: 104px;
  display: flex;
  align-items: end;
  gap: 8px;
  border: 1px solid var(--eg-line);
  border-radius: 14px;
  padding: 14px;
  background: #122B3A;
}

.eg-mini-chart span {
  flex: 1;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--eg-green), rgba(67,198,165,.28));
  animation: egRise .9s cubic-bezier(.22,1,.36,1) both;
}

/* Dashboard */
.eg-dark-widget {
  background:
    radial-gradient(circle at 90% 6%, rgba(67,198,165,.18), transparent 28%),
    linear-gradient(145deg, #122B3A, #122B3A);
  color: #EDF5F2;
}

.eg-dashboard-widget {
  display: grid;
  grid-template-columns: 96px 1fr;
  padding: 0;
}

.eg-dash-side {
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255,255,255,.025);
}

.eg-bottle-mark {
  width: 16px;
  height: 42px;
  border: 1px solid var(--eg-green);
  border-radius: 7px 7px 4px 4px;
  margin: 0 auto 22px;
  position: relative;
}

.eg-bottle-mark:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -13px;
  width: 7px;
  height: 13px;
  border: 1px solid var(--eg-green);
  border-bottom: 0;
  transform: translateX(-50%);
}

.eg-dash-side span {
  padding: 9px 8px;
  border-radius: 9px;
  color: rgba(255,255,255,.56);
  font-size: 11px;
}

.eg-dash-side span.active {
  background: rgba(67,198,165,.14);
  color: #EDF5F2;
}

.eg-dash-main {
  padding: 20px;
  min-width: 0;
}

.eg-dash-head strong {
  display: block;
  font-size: 21px;
}

.eg-dash-head small {
  color: var(--eg-green);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  font-size: 10px;
}

.eg-dash-head > span {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(255,255,255,.66);
  font-size: 11px;
}

.eg-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.eg-kpi-row article,
.eg-panel {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.eg-kpi-row article {
  padding: 13px;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s;
}

.eg-kpi-row article:hover,
.eg-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(67,198,165,.42);
}

.eg-kpi-row small {
  color: rgba(255,255,255,.60);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 9px;
}

.eg-kpi-row strong {
  display: block;
  font-size: 22px;
  margin: 4px 0;
}

.eg-kpi-row em {
  color: var(--eg-green);
  font-style: normal;
  font-size: 11px;
}

.eg-dash-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 10px;
}

.eg-panel {
  min-height: 128px;
  padding: 13px;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s;
}

.eg-panel.eg-wide {
  grid-column: span 2;
  min-height: 172px;
}

.eg-panel-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.eg-panel-title b {
  font-size: 12px;
  text-transform: uppercase;
}

.eg-panel-title span {
  color: rgba(255,255,255,.52);
  font-size: 11px;
}

.eg-bars-line {
  height: 118px;
  display: flex;
  align-items: end;
  gap: 7px;
  position: relative;
  padding-top: 12px;
}

.eg-bars-line span {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--eg-green), rgba(67,198,165,.22));
  opacity: .86;
  animation: egRise .9s cubic-bezier(.22,1,.36,1) both;
}

.eg-bars-line svg {
  position: absolute;
  inset: 4px 0 8px;
  width: 100%;
  height: calc(100% - 12px);
  overflow: visible;
}

.eg-bars-line path {
  fill: none;
  stroke: #f1ead1;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(255,255,255,.18));
}

.eg-mini-table,
.eg-mini-table li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eg-mini-table li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.70);
  font-size: 11px;
}

.eg-mini-table b {
  color: #EDF5F2;
}

.eg-search-lines p,
.eg-source-list p,
.eg-taste-card p {
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  margin: 9px 0;
}

.eg-donut {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 5px auto 0;
  background: conic-gradient(var(--eg-red) 0 35%, var(--eg-green) 35% 62%, var(--eg-gold) 62% 82%, rgba(255,255,255,.28) 82% 100%);
  position: relative;
}

.eg-donut:after {
  content: "23";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--eg-dark-2);
  color: #EDF5F2;
  font-weight: 900;
}

/* Product editor */
.eg-product-widget {
  padding: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(67,198,165,.15), transparent 28%),
    linear-gradient(145deg, #EDF5F2, #f5f2e9);
}

.eg-product-head {
  margin-bottom: 14px;
}

.eg-product-head span {
  color: var(--eg-green-2);
  font-size: 12px;
}

.eg-product-head strong {
  display: block;
  font-size: 24px;
  margin-top: 2px;
}

.eg-product-head button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--eg-green), var(--eg-green-2));
  color: #122B3A;
  padding: 11px 15px;
  font-weight: 900;
}

.eg-product-layout {
  display: grid;
  grid-template-columns: 1.5fr .72fr;
  gap: 14px;
}

.eg-form-card,
.eg-product-side > div {
  border: 1px solid var(--eg-line);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 46px rgba(0,0,0,.07);
}

.eg-form-card {
  padding: 18px;
}

.eg-form-card h3 {
  font-size: 13px;
  margin: 0 0 10px;
}

.eg-form-card h3:not(:first-child) {
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--eg-line);
}

.eg-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.eg-form-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.eg-form-grid label {
  color: var(--eg-muted);
  font-size: 10px;
}

.eg-form-grid input {
  width: 100%;
  border: 1px solid var(--eg-line);
  border-radius: 7px;
  background: #EDF5F2;
  color: var(--eg-ink);
  padding: 9px 10px;
  margin-top: 5px;
  font: inherit;
  font-size: 12px;
}

.eg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.eg-tags span {
  border-radius: 999px;
  background: rgba(67,198,165,.18);
  color: #122B3A;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 700;
}

.eg-note {
  margin: 12px 0 0;
  border: 1px solid var(--eg-line);
  border-radius: 10px;
  padding: 11px;
  color: #4f514b;
  font-size: 12px;
  line-height: 1.45;
  background: #EDF5F2;
}

.eg-product-side {
  display: grid;
  gap: 12px;
}

.eg-bottle-card {
  min-height: 184px;
  display: grid;
  place-items: center;
  padding: 14px;
}

.eg-bottle-card small {
  color: var(--eg-muted);
}

.eg-bottle {
  width: 42px;
  height: 144px;
  border-radius: 15px 15px 10px 10px;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.30) 36%, transparent 48%),
    linear-gradient(180deg, #322316 0 12%, #111 13% 100%);
  position: relative;
  box-shadow: 0 18px 28px rgba(0,0,0,.22);
}

.eg-bottle:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  width: 18px;
  height: 38px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(90deg, #33210f, #bca25b 44%, #1d140b);
  transform: translateX(-50%);
}

.eg-bottle:after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 58px;
  height: 42px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f4efe4, #d8cfbd);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.10);
}

.eg-state-card,
.eg-taste-card {
  padding: 13px;
}

.eg-state-card p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid var(--eg-line);
  font-size: 12px;
}

.eg-state-card p:first-child {
  border-top: 0;
}

.eg-state-card span {
  color: var(--eg-muted);
}

.eg-state-card b {
  color: var(--eg-green-2);
}

.eg-taste-card b {
  display: block;
  margin-bottom: 9px;
}

.eg-taste-card p {
  color: var(--eg-muted);
  grid-template-columns: 70px 1fr;
}

/* micro interactions */
.eg-widget:hover .eg-mini-chart span,
.eg-widget:hover .eg-bars-line span {
  animation: egRise .75s cubic-bezier(.22,1,.36,1) both;
}

@keyframes egRise {
  from { transform: scaleY(.3); transform-origin: bottom; opacity: .35; }
  to { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
}

@media (max-width: 1100px) {
  .eg-widget { min-height: auto; }
  .eg-sector-grid,
  .eg-kpi-row,
  .eg-dash-grid,
  .eg-form-grid,
  .eg-form-grid-4,
  .eg-product-layout {
    grid-template-columns: 1fr 1fr;
  }
  .eg-panel.eg-wide { grid-column: span 2; }
  .eg-dashboard-widget { grid-template-columns: 78px 1fr; }
  .eg-dash-side span { font-size: 0; height: 30px; }
}

@media (max-width: 720px) {
  .eg-sector-widget,
  .eg-product-widget {
    padding: 16px;
  }
  .eg-widget-top,
  .eg-product-head,
  .eg-dash-head,
  .eg-sector-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }
  .eg-sector-grid,
  .eg-kpi-row,
  .eg-dash-grid,
  .eg-form-grid,
  .eg-form-grid-4,
  .eg-product-layout {
    grid-template-columns: 1fr;
  }
  .eg-visit-flow {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .eg-visit-flow > i {
    width: 1px;
    height: 22px;
    margin: auto;
  }
  .eg-dashboard-widget {
    display: block;
  }
  .eg-dash-side {
    display: none;
  }
  .eg-dash-main {
    padding: 15px;
  }
  .eg-panel.eg-wide {
    grid-column: span 1;
  }
  
}

/* === V2 widgets: ficha optimizada avanzada + CRM + IA aplicada === */
.eg-light-saas{
  --eg-card-bg:#EDF5F2;
  --eg-ink:#122B3A;
  --eg-soft:#f2efe7;
  --eg-line:rgba(17,20,23,.12);
  background:linear-gradient(145deg,#EDF5F2,#f3efe5);
  color:var(--eg-ink);
  border-color:rgba(17,20,23,.14);
}

.eg-product-ux-widget{
  background:linear-gradient(145deg,rgba(237,245,242,.98),#f0ebdf);
  color:#122B3A;
  border-color:rgba(17,20,23,.13);
  padding:18px;
  min-height:640px;
}
.eg-pux-header{
  display:grid;
  grid-template-columns:1fr minmax(260px,.55fr);
  gap:16px;
  align-items:stretch;
  margin-bottom:16px;
}
.eg-pux-header h3{font-size:clamp(1.7rem,3vw,3.1rem);line-height:.95;margin:6px 0 8px;letter-spacing:-.07em;color:#122B3A}
.eg-pux-header p{margin:0;color:#5d646b;font-weight:700}
.eg-pux-objective{display:grid;grid-template-columns:120px 1fr;border:1px solid rgba(67,198,165,.35);border-radius:14px;background:rgba(67,198,165,.08);overflow:hidden;align-self:start}
.eg-pux-objective b{display:grid;place-items:center;background:linear-gradient(135deg,#43C6A5,#43C6A5);color:#EDF5F2;text-transform:uppercase;letter-spacing:.08em;font-size:.78rem}
.eg-pux-objective span{padding:14px;color:#202428;font-weight:650;line-height:1.35}
.eg-pux-layout{display:grid;grid-template-columns:260px minmax(520px,1fr) 230px;gap:14px;align-items:stretch}
.eg-pux-checklist{display:grid;gap:8px}
.eg-pux-checklist article{position:relative;display:grid;grid-template-columns:34px 1fr;gap:10px;padding:13px 12px;border:1px solid rgba(17,20,23,.13);border-radius:12px;background:rgba(255,255,255,.68);cursor:pointer;transition:transform .35s cubic-bezier(.22,1,.36,1),border-color .35s,background .35s,box-shadow .35s}
.eg-pux-checklist article:hover,.eg-pux-checklist article.is-active{transform:translateX(4px);border-color:rgba(67,198,165,.48);background:#EDF5F2;box-shadow:0 18px 38px rgba(17,20,23,.08)}
.eg-pux-checklist span{grid-row:span 2;display:grid;place-items:center;width:30px;height:30px;border-radius:999px;background:#43C6A5;color:#EDF5F2;font-weight:900;font-size:.78rem}
.eg-pux-checklist b{font-size:.76rem;text-transform:uppercase;letter-spacing:.04em;color:#122B3A}
.eg-pux-checklist small{font-size:.72rem;line-height:1.45;color:#4f565d}
.eg-pux-card{display:grid;grid-template-columns:.78fr 1.22fr;gap:14px;padding:14px;border:1px solid rgba(17,20,23,.13);border-radius:16px;background:#EDF5F2;box-shadow:0 28px 70px rgba(17,20,23,.12)}
.eg-pux-gallery{display:grid;grid-template-columns:58px 1fr;gap:10px;min-height:440px}
.eg-pux-thumbs{display:grid;gap:8px;align-content:start}
.eg-pux-thumbs span{height:66px;border:1px solid rgba(67,198,165,.32);border-radius:9px;background:linear-gradient(145deg,#f9f7ef,#e9e3d5)}
.eg-pux-thumbs span:nth-child(2){background:linear-gradient(145deg,#d7d1c3,#EDF5F2)}
.eg-pux-thumbs span:nth-child(3){background:linear-gradient(145deg,#eee9dc,#c6b89d)}
.eg-pux-bottle{position:relative;display:grid;place-items:center;border-radius:14px;background:radial-gradient(circle at 50% 52%,rgba(67,198,165,.12),transparent 38%),linear-gradient(145deg,#f7f4ec,#ded5c5);overflow:hidden}
.eg-pux-bottle:after{content:"";position:absolute;right:18px;bottom:16px;width:88px;height:70px;border-radius:50%;border:1px solid rgba(67,198,165,.22);opacity:.55}
.eg-pux-info{display:flex;flex-direction:column;gap:11px;min-width:0}
.eg-pux-title{display:flex;justify-content:space-between;gap:12px;align-items:start}
.eg-pux-title h4{font-size:1.55rem;line-height:1;margin:2px 0 0;letter-spacing:-.05em;color:#122B3A}
.eg-pux-title button{border:1px solid rgba(17,20,23,.16);background:#EDF5F2;border-radius:999px;width:34px;height:34px;font-size:1.15rem}
.eg-pux-meta{margin:0;color:#3d454c;font-weight:700;font-size:.86rem}
.eg-pux-story{padding:12px;border:1px solid rgba(67,198,165,.38);border-radius:11px;background:rgba(67,198,165,.065);font-size:.82rem;line-height:1.55;color:#202428}
.eg-pux-taste{display:grid;gap:8px;padding:2px 0}
.eg-pux-taste p{display:grid;grid-template-columns:72px 1fr 78px;align-items:center;gap:10px;margin:0;font-size:.75rem;color:#46505a}
.eg-pux-taste i{height:4px;border-radius:999px;background:linear-gradient(90deg,#43C6A5 var(--w),rgba(17,20,23,.13) var(--w));position:relative}
.eg-pux-taste i:after{content:"";position:absolute;left:var(--w);top:50%;translate:-50% -50%;width:11px;height:11px;background:#43C6A5;border-radius:999px;box-shadow:0 0 0 4px rgba(67,198,165,.15)}
.eg-pux-pairings{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.eg-pux-pairings span{padding:9px 7px;border:1px solid rgba(17,20,23,.1);border-radius:10px;background:#EDF5F2;text-align:center;font-size:.7rem;font-weight:800;color:#222}
.eg-pux-buy{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding:12px;border:1px solid rgba(17,20,23,.12);border-radius:13px;background:#EDF5F2}
.eg-pux-buy b{display:block;font-size:1.55rem;line-height:1;color:#122B3A}
.eg-pux-buy small{display:block;color:#65707a;font-size:.72rem;margin-top:3px}
.eg-pux-buy button{border:0;border-radius:10px;background:linear-gradient(135deg,#43C6A5,#43C6A5);color:#EDF5F2;font-weight:900;text-transform:uppercase;letter-spacing:.04em;padding:13px 18px;box-shadow:0 14px 28px rgba(67,198,165,.22)}
.eg-pux-service{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.eg-pux-service span{padding:9px;border:1px solid rgba(17,20,23,.1);border-radius:10px;text-align:center;color:#3f474f;font-size:.68rem;font-weight:800;background:#EDF5F2}
.eg-pux-impact{display:grid;gap:10px;align-content:start}
.eg-pux-impact h4{margin:0 0 2px;text-transform:uppercase;letter-spacing:.06em;font-size:.82rem;color:#122B3A}
.eg-pux-impact article{padding:15px;border:1px solid rgba(17,20,23,.1);border-radius:13px;background:rgba(255,255,255,.65);transition:transform .35s cubic-bezier(.22,1,.36,1),background .35s}
.eg-pux-impact article:hover{transform:translateY(-4px);background:#EDF5F2}
.eg-pux-impact b{display:block;color:#1a1d20;font-size:.9rem;margin-bottom:4px}
.eg-pux-impact small{display:block;color:#56606a;line-height:1.4;font-size:.74rem}

.eg-crm-flow-widget{padding:18px;min-height:560px;overflow:hidden}
.eg-flow-head{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:14px}
.eg-flow-head h3{font-size:1.9rem;line-height:1;margin:6px 0 7px;letter-spacing:-.06em;color:#122B3A}
.eg-flow-head p{margin:0;color:#5d646b;max-width:720px}
.eg-flow-status{display:flex;align-items:center;gap:8px;border:1px solid rgba(17,20,23,.12);border-radius:999px;background:#EDF5F2;padding:9px 12px;font-weight:900;color:#374109;white-space:nowrap}
.eg-flow-status span{width:9px;height:9px;border-radius:50%;background:#43C6A5;box-shadow:0 0 0 7px rgba(67,198,165,.13)}
.eg-flow-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.eg-flow-kpis article{padding:14px;border:1px solid rgba(17,20,23,.12);border-radius:13px;background:#EDF5F2}
.eg-flow-kpis b{display:block;font-size:1.45rem;color:#122B3A;line-height:1}
.eg-flow-kpis span{display:block;font-size:.74rem;color:#63707a;margin-top:5px}
.eg-flow-board{display:grid;grid-template-columns:210px 1fr;gap:14px}
.eg-flow-sidebar{padding:16px;border:1px solid rgba(17,20,23,.12);border-radius:14px;background:#EDF5F2;min-height:330px}
.eg-flow-sidebar b{color:#334109}
.eg-flow-sidebar p{color:#414950;font-size:.84rem;line-height:1.55}
.eg-flow-sidebar span{display:block;border-top:1px solid rgba(17,20,23,.1);padding-top:12px;margin-top:12px;font-size:.78rem;color:#4f565d;font-weight:800}
.eg-flow-steps{display:grid;grid-template-columns:repeat(5,minmax(128px,1fr));gap:10px;position:relative}
.eg-flow-steps article{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:18px 12px;border:1px solid rgba(17,20,23,.12);border-radius:14px;background:#EDF5F2;min-height:310px;transition:transform .35s cubic-bezier(.22,1,.36,1),border-color .35s,box-shadow .35s}
.eg-flow-steps article:hover,.eg-flow-steps article.is-active{transform:translateY(-7px);border-color:rgba(67,198,165,.5);box-shadow:0 22px 48px rgba(17,20,23,.12)}
.eg-flow-steps article:not(:last-child):after{content:"→";position:absolute;right:-12px;top:48%;color:#43C6A5;font-weight:900;z-index:2}
.eg-flow-steps em{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#43C6A5;color:#EDF5F2;font-style:normal;font-weight:900}
.eg-flow-steps b{font-size:.86rem;text-transform:uppercase;line-height:1.1;color:#122B3A}
.eg-flow-steps span{border-radius:999px;background:rgba(67,198,165,.14);color:#122B3A;padding:5px 9px;font-size:.72rem;font-weight:900}
.eg-flow-steps p{font-size:.78rem;color:#5c6570;line-height:1.45;margin:0 auto;max-width:140px}

.eg-ai-ops-widget{padding:18px;min-height:520px}
@media (max-width: 1100px){
  .eg-pux-header,.eg-pux-layout,.eg-pux-card,.eg-flow-board{grid-template-columns:1fr}
  .eg-pux-checklist{grid-template-columns:repeat(2,1fr)}
  .eg-pux-impact{grid-template-columns:repeat(2,1fr)}
  .eg-flow-steps{overflow-x:auto;grid-template-columns:repeat(5,180px);padding-bottom:10px;scroll-snap-type:x mandatory}
  .eg-flow-steps article{scroll-snap-align:start}
}
@media (max-width: 720px){
  .eg-product-ux-widget,.eg-crm-flow-widget,.eg-ai-ops-widget{padding:14px;min-height:auto}
  .eg-pux-objective{grid-template-columns:1fr}
  .eg-pux-objective b{padding:10px}
  .eg-pux-checklist,.eg-pux-impact,.eg-flow-kpis,.eg-pux-pairings,.eg-pux-service{grid-template-columns:1fr 1fr}
  .eg-pux-card,.eg-pux-gallery{grid-template-columns:1fr}
  .eg-pux-gallery{min-height:auto}
  .eg-pux-thumbs{grid-template-columns:repeat(3,1fr)}
  .eg-pux-bottle{min-height:280px}
  .eg-pux-buy{display:grid}
  .eg-pux-buy button{width:100%}
  .eg-flow-head{display:grid}
  .eg-flow-kpis{grid-template-columns:1fr 1fr}
  .eg-flow-sidebar{min-height:auto}
}

/* === V3.1 · Widgets refinados: ficha oscura, CRM sin cortes e IA clara === */
.eg-product-ux-dark{
  color:#EDF5F2;
  background:
    radial-gradient(circle at 24% 12%,rgba(67,198,165,.12),transparent 28%),
    linear-gradient(180deg,#122B3A,#122B3A);
  border-color:rgba(67,198,165,.34);
  box-shadow:0 34px 90px rgba(0,0,0,.42);
}
.eg-product-ux-dark .eg-pux-header h3,
.eg-product-ux-dark .eg-pux-impact h4,
.eg-product-ux-dark .eg-pux-title h4{color:#EDF5F2}
.eg-product-ux-dark .eg-pux-header p,
.eg-product-ux-dark .eg-pux-meta,
.eg-product-ux-dark .eg-pux-impact small{color:rgba(255,255,255,.68)}
.eg-product-ux-dark .eg-pux-objective,
.eg-product-ux-dark .eg-pux-checklist article,
.eg-product-ux-dark .eg-pux-card,
.eg-product-ux-dark .eg-pux-impact article,
.eg-product-ux-dark .eg-pux-buy,
.eg-product-ux-dark .eg-pux-service span,
.eg-product-ux-dark .eg-pux-pairings span,
.eg-product-ux-dark .eg-pux-title button{
  border-color:rgba(255,255,255,.12);
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
  color:#EDF5F2;
}
.eg-product-ux-dark .eg-pux-checklist article:hover,
.eg-product-ux-dark .eg-pux-checklist article.is-active,
.eg-product-ux-dark .eg-pux-impact article:hover{background:rgba(67,198,165,.10);border-color:rgba(67,198,165,.42)}
.eg-product-ux-dark .eg-pux-checklist b,
.eg-product-ux-dark .eg-pux-impact b{color:#EDF5F2}
.eg-product-ux-dark .eg-pux-checklist small,
.eg-product-ux-dark .eg-pux-story,
.eg-product-ux-dark .eg-pux-taste p,
.eg-product-ux-dark .eg-pux-buy small,
.eg-product-ux-dark .eg-pux-service span{color:rgba(255,255,255,.70)}
.eg-product-ux-dark .eg-pux-story{background:rgba(67,198,165,.07);border-color:rgba(67,198,165,.28)}
.eg-product-ux-dark .eg-pux-bottle{background:radial-gradient(circle at 50% 50%,rgba(67,198,165,.16),transparent 42%),linear-gradient(145deg,#1a1e20,#122B3A)}
.eg-product-ux-dark .eg-pux-pairings span{background:rgba(255,255,255,.055)}
.eg-product-ux-dark .eg-pux-buy b{color:#EDF5F2}
.eg-product-ux-dark .eg-pux-taste i{background:linear-gradient(90deg,#43C6A5 var(--w),rgba(255,255,255,.16) var(--w))}

.eg-crm-flow-widget{overflow:visible;min-height:auto;padding:20px}
.eg-flow-board{grid-template-columns:190px minmax(0,1fr);gap:12px}
.eg-flow-steps{grid-template-columns:repeat(5,minmax(105px,1fr));gap:8px;min-width:0}
.eg-flow-steps article{min-height:282px;padding:16px 8px}
.eg-flow-steps b{font-size:.74rem;letter-spacing:-.01em;word-break:normal}
.eg-flow-steps p{font-size:.72rem;line-height:1.35;max-width:112px}
.eg-flow-steps article:not(:last-child):after{right:-9px}
.eg-flow-sidebar{min-height:282px;padding:14px}

.eg-ai-light-widget{
  padding:20px;
  min-height:auto;
  background:linear-gradient(180deg,#EDF5F2,#f4f2ea);
  color:#122B3A;
  border-color:rgba(17,20,23,.14);
  box-shadow:0 30px 80px rgba(0,0,0,.16);
}
.eg-ai-board-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px}
.eg-ai-board-head h3{font-size:clamp(1.7rem,3.2vw,3rem);line-height:.95;letter-spacing:-.07em;margin:6px 0 8px;color:#122B3A}
.eg-ai-board-head p{margin:0;color:#5d646b;max-width:650px;font-weight:650}
.eg-ai-board-head strong{white-space:nowrap;border:1px solid rgba(67,198,165,.34);border-radius:999px;background:rgba(67,198,165,.14);padding:10px 14px;color:#344209;font-size:.82rem}
.eg-ai-pipeline{display:grid;grid-template-columns:1fr 24px 1fr 24px 1fr 24px 1fr;align-items:stretch;margin-bottom:16px}
.eg-ai-pipeline article{padding:14px;border:1px solid rgba(17,20,23,.12);border-radius:14px;background:#EDF5F2;transition:transform .35s cubic-bezier(.22,1,.36,1),border-color .35s,box-shadow .35s}
.eg-ai-pipeline article:hover,.eg-ai-pipeline article.is-active{transform:translateY(-5px);border-color:rgba(67,198,165,.52);box-shadow:0 18px 42px rgba(17,20,23,.10)}
.eg-ai-pipeline b{display:grid;place-items:center;width:31px;height:31px;border-radius:999px;background:#43C6A5;color:#EDF5F2;margin-bottom:12px}
.eg-ai-pipeline span{display:block;font-weight:900;color:#122B3A;margin-bottom:6px}
.eg-ai-pipeline small{display:block;color:#5a636b;line-height:1.35;font-size:.74rem}
.eg-ai-pipeline i{align-self:center;height:1px;background:linear-gradient(90deg,transparent,#43C6A5,transparent);position:relative}
.eg-ai-pipeline i:after{content:"";position:absolute;right:-2px;top:-3px;width:7px;height:7px;border-top:1px solid #43C6A5;border-right:1px solid #43C6A5;rotate:45deg}
.eg-ai-workspace{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;margin-bottom:14px}
.eg-ai-editor,.eg-ai-checks{border:1px solid rgba(17,20,23,.12);border-radius:16px;background:#EDF5F2;padding:16px}
.eg-editor-top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}
.eg-editor-top span{font-weight:900;color:#122B3A}.eg-editor-top em{font-style:normal;border-radius:999px;background:rgba(67,198,165,.16);color:#122B3A;padding:5px 9px;font-weight:900;font-size:.72rem}
.eg-ai-editor>p{margin:0 0 12px;color:#3e464d;line-height:1.5;font-size:.86rem;padding:12px;border-radius:12px;background:#EDF5F2;border:1px solid rgba(17,20,23,.08)}
.eg-ai-output{display:grid;gap:7px}.eg-ai-output b{color:#43C6A5}.eg-ai-output span{color:#122B3A;line-height:1.45;font-weight:650}
.eg-ai-checks h4{margin:0 0 12px;color:#122B3A;font-size:1.05rem;letter-spacing:-.03em}
.eg-ai-checks p{display:flex;align-items:center;gap:9px;margin:0 0 9px;padding:9px 10px;border-radius:10px;background:#EDF5F2;color:#444d55;font-weight:750;font-size:.82rem}
.eg-ai-checks p span{width:9px;height:9px;border-radius:999px;background:#43C6A5;box-shadow:0 0 0 5px rgba(67,198,165,.12)}
.eg-ai-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.eg-ai-metrics article{padding:13px;border:1px solid rgba(17,20,23,.12);border-radius:13px;background:#122B3A;color:#EDF5F2}.eg-ai-metrics b{display:block;font-size:1.4rem;line-height:1;color:#43C6A5}.eg-ai-metrics span{display:block;color:rgba(255,255,255,.66);font-size:.75rem;margin-top:5px}

@media(max-width:1100px){
  .eg-flow-board,.eg-ai-workspace{grid-template-columns:1fr}
  .eg-flow-steps{overflow-x:auto;grid-template-columns:repeat(5,170px);padding-bottom:10px}
  .eg-ai-pipeline{grid-template-columns:1fr;gap:10px}.eg-ai-pipeline i{display:none}
}
@media(max-width:720px){
  .eg-ai-board-head{display:grid}.eg-ai-board-head strong{width:max-content}
  .eg-ai-metrics{grid-template-columns:1fr}
}

/* === Logistics & post-sale interactive gallery widgets === */
.eg-logistics-gallery{height:500px;align-items:stretch;}
.eg-logistics-gallery .gallery-item{background-image:none;filter:none;opacity:1;min-width:0;background:linear-gradient(180deg,#122B3A,#122B3A);border:1px solid rgba(67,198,165,.22);box-shadow:0 22px 70px rgba(0,0,0,.32);padding:18px;display:flex;flex-direction:column;justify-content:flex-end;isolation:isolate;}
.eg-logistics-gallery .gallery-item:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 20%,rgba(67,198,165,.20),transparent 30%),linear-gradient(180deg,rgba(255,255,255,.05),transparent 30%);z-index:-1;opacity:.9;}
.eg-logistics-gallery .gallery-item>span{position:relative;left:auto;bottom:auto;align-self:flex-start;margin-bottom:auto;background:rgba(255,255,255,.08);border:1px solid rgba(67,198,165,.34);box-shadow:none;}
.eg-log-window{margin-top:18px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(255,255,255,.06);backdrop-filter:blur(16px);padding:16px;min-height:330px;display:flex;flex-direction:column;gap:14px;overflow:hidden;transform:translateY(10px);transition:transform .55s var(--ease), background .45s ease, border-color .45s ease;}
.eg-logistics-gallery .gallery-item:hover .eg-log-window{transform:translateY(0);background:rgba(255,255,255,.085);border-color:rgba(67,198,165,.45);}
.eg-log-top{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid rgba(255,255,255,.1);padding-bottom:12px;}
.eg-log-top b{color:#EDF5F2;font-size:14px;letter-spacing:-.02em;}
.eg-log-top em{font-style:normal;color:#43C6A5;font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:900;white-space:nowrap;}
.eg-log-pack{display:grid;grid-template-columns:72px 1fr;gap:14px;align-items:center;padding:12px;border-radius:14px;background:rgba(255,255,255,.055);}
.eg-log-bottle{width:42px;height:132px;margin:auto;border-radius:14px 14px 8px 8px;background:linear-gradient(90deg,#122B3A,#3b3f2b 48%,#080909);position:relative;box-shadow:inset 8px 0 18px rgba(255,255,255,.08),0 16px 30px rgba(0,0,0,.35);}
.eg-log-bottle:before{content:"";position:absolute;left:14px;right:14px;top:-34px;height:42px;border-radius:7px 7px 3px 3px;background:linear-gradient(90deg,#171713,#b4a56a,#202016);}
.eg-log-bottle:after{content:"";position:absolute;left:6px;right:6px;top:48px;height:32px;border-radius:4px;background:#eee8da;}
.eg-log-lines{display:grid;gap:10px;}
.eg-log-lines i{display:block;height:9px;border-radius:99px;background:linear-gradient(90deg,rgba(67,198,165,.9),rgba(255,255,255,.14));}
.eg-log-checks{display:grid;gap:8px;}
.eg-log-checks p,.eg-log-alert,.eg-mini-cart,.eg-log-resolution{margin:0;padding:11px 12px;border-radius:12px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.78);font-size:12px;line-height:1.35;}
.eg-log-checks mark{display:inline-block;width:9px;height:9px;border-radius:50%;background:#43C6A5;margin-right:8px;box-shadow:0 0 0 5px rgba(67,198,165,.11);}
.eg-log-metric{margin-top:auto;border-top:1px solid rgba(255,255,255,.1);padding-top:12px;}
.eg-log-metric strong{display:block;color:#EDF5F2;font-size:34px;letter-spacing:-.06em;line-height:1;}
.eg-log-metric small{color:rgba(255,255,255,.62);}
.eg-vintage-card{display:grid;gap:8px;color:#EDF5F2;}
.eg-vintage-card>strong{font-size:20px;letter-spacing:-.04em;}
.eg-vintage-card>p{margin:0;color:rgba(255,255,255,.58);font-size:12px;}
.eg-vintage-card div{display:flex;justify-content:space-between;align-items:center;border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:12px;background:rgba(255,255,255,.055);}
.eg-vintage-card b{color:rgba(255,255,255,.65);font-size:12px;}
.eg-vintage-card i{font-style:normal;color:#43C6A5;font-weight:900;}
.eg-trust-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.eg-trust-grid div{border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:13px;background:rgba(255,255,255,.055);}
.eg-trust-grid strong{display:block;color:#EDF5F2;font-size:20px;letter-spacing:-.04em;}
.eg-trust-grid small{color:rgba(255,255,255,.58);}
.eg-mini-cart{margin-top:auto;display:flex;align-items:center;gap:10px;}
.eg-mini-cart i{width:64px;height:8px;border-radius:99px;background:linear-gradient(90deg,#43C6A5 62%,rgba(255,255,255,.16) 62%);flex:0 0 auto;}
.eg-mini-cart b{color:#43C6A5;}
.eg-incident-chart{height:150px;display:flex;align-items:end;gap:12px;padding:14px;border-radius:14px;background:rgba(255,255,255,.055);}
.eg-incident-chart div{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;gap:8px;align-items:center;}
.eg-incident-chart i{display:block;width:100%;height:var(--h);border-radius:10px 10px 4px 4px;background:linear-gradient(180deg,#d46b67,#43C6A5);box-shadow:0 0 24px rgba(67,198,165,.16);}
.eg-incident-chart small{font-size:10px;color:rgba(255,255,255,.55);writing-mode:horizontal-tb;}
.eg-log-resolution{display:flex;align-items:center;gap:12px;margin-top:auto;}
.eg-log-resolution strong{font-size:32px;color:#EDF5F2;letter-spacing:-.05em;}
.eg-log-resolution span{color:rgba(255,255,255,.68);font-size:12px;}
.eg-logistics-gallery .gallery-item:not(:hover) .eg-log-top em,.eg-logistics-gallery .gallery-item:not(:hover) .eg-log-window{opacity:.82;}

@media(max-width:720px){
  .eg-logistics-gallery{height:390px;overflow-x:auto;scroll-snap-type:x mandatory;}
  .eg-logistics-gallery .gallery-item{min-width:285px;scroll-snap-align:start;}
  .eg-log-window{min-height:270px;padding:13px;}
  .eg-log-pack{grid-template-columns:54px 1fr;}
  .eg-log-bottle{height:100px;width:34px;}
  .eg-log-bottle:before{top:-28px;height:34px;left:11px;right:11px;}
  .eg-trust-grid{grid-template-columns:1fr 1fr;}
}

/* === EG REAL BOTTLE NORMALIZATION START === */
/* Reemplaza las botellas dibujadas por CSS por una única imagen WebP real.
   Todo queda limitado por contexto para evitar desproporciones. */
.eg-bottle,
.eg-log-bottle {
  position: relative;
  display: block;
  background: url("/portfolio/ecommerce-vino/assets/images/botella.webp") center bottom / contain no-repeat;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.eg-bottle::before,
.eg-bottle::after,
.eg-log-bottle::before,
.eg-log-bottle::after {
  content: none;
  display: none;
}

/* Botella pequeña: cards, tablas y previews laterales */
.eg-bottle {
  width: 42px;
  height: 150px;
  max-width: 42px;
  max-height: 150px;
  margin: 0 auto;
}

/* Botella grande de ficha / producto */
.eg-bottle.large,
.eg-pux-bottle .eg-bottle.large {
  width: 104px;
  height: 320px;
  max-width: 104px;
  max-height: 320px;
  margin: 0 auto;
}

/* Caja visual de producto: mantiene la botella proporcionada y centrada */
.eg-pux-bottle {
  min-height: 390px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Botella dentro de logística/postventa */
.eg-log-bottle {
  width: 38px;
  height: 150px;
  max-width: 38px;
  max-height: 150px;
  margin: 0 auto;
}

.eg-log-pack {
  grid-template-columns: 64px 1fr;
  align-items: center;
}

/* Evita cortes inferiores en hover gallery */
.eg-logistics-gallery {
  min-height: 590px;
}

.eg-logistics-gallery .gallery-item {
  min-height: 560px;
}

.eg-log-window {
  min-height: 365px;
}

@media (max-width: 720px) {
  .eg-bottle {
    width: 34px;
    height: 122px;
    max-width: 34px;
    max-height: 122px;
  }

  .eg-bottle.large,
  .eg-pux-bottle .eg-bottle.large {
    width: 82px;
    height: 255px;
    max-width: 82px;
    max-height: 255px;
  }

  .eg-pux-bottle {
    min-height: 290px;
  }

  .eg-log-bottle {
    width: 32px;
    height: 118px;
    max-width: 32px;
    max-height: 118px;
  }

  .eg-logistics-gallery {
    height: auto;
    min-height: 500px;
  }

  .eg-logistics-gallery .gallery-item {
    min-height: 480px;
  }

  .eg-log-window {
    min-height: 300px;
  }
}
/* === EG REAL BOTTLE NORMALIZATION END === */

.eg-product-ux-dark .eg-pux-objective span {

  color: #EDF5F2;

}

.eg-product-ux-dark .eg-pux-objective {

  color: #EDF5F2;

}
/* === Mobile simplified widgets === */

.mobile-widget-summary {
  display: none;
}

@media (max-width: 720px) {
  .desktop-widget {
    display: none;
  }

  .image-panel {
    min-height: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }

  .mobile-widget-summary {
    display: block;
    width: 100%;
    padding: 20px;
    border: 1px solid rgba(143, 180, 46, .30);
    border-radius: 16px;
    background:
      radial-gradient(circle at 92% 10%, rgba(143, 180, 46, .13), transparent 34%),
      #EDF5F2;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .08);
  }

  .mobile-widget-summary span {
    display: block;
    margin-bottom: 8px;
    color: var(--eg-green-2, #122B3A);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  .mobile-widget-summary strong {
    display: block;
    margin-bottom: 10px;
    color: #122B3A;
    font-size: 1.25rem;
    line-height: 1.05;
    letter-spacing: -.04em;
  }

  .mobile-widget-summary p {
    margin: 0 0 14px;
    color: #4b5156;
    font-size: .95rem;
    line-height: 1.55;
  }

  .mobile-widget-summary ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-widget-summary li {
    padding: 11px 12px;
    border: 1px solid rgba(17, 20, 23, .10);
    border-radius: 12px;
    background: #EDF5F2;
    color: #34383c;
    font-size: .88rem;
    line-height: 1.4;
  }

  .mobile-widget-summary li b {
    color: #122B3A;
  }
}
@media (max-width: 720px) {
  .mobile-widget-summary-dark {
    background:
      radial-gradient(circle at 92% 10%, rgba(143, 180, 46, .16), transparent 34%),
      #122B3A;
    border-color: rgba(143, 180, 46, .32);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
  }

  .mobile-widget-summary-dark strong {
    color: #EDF5F2;
  }

  .mobile-widget-summary-dark p {
    color: rgba(255, 255, 255, .76);
  }

  .mobile-widget-summary-dark li {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .76);
  }

  .mobile-widget-summary-dark li b {
    color: #EDF5F2;
  }
}

/* V11 contrast patch */
.section-light .eg-widget *, .section-stone .eg-widget *{text-shadow:none}
.section-light .eg-widget small,.section-light .eg-widget span,.section-stone .eg-widget small,.section-stone .eg-widget span{color:#60666b}
.section-light .eg-widget h3,.section-light .eg-widget h4,.section-stone .eg-widget h3,.section-stone .eg-widget h4{color:#122B3A}
.section-dark .eg-widget small,.section-dark .eg-widget span{color:rgba(247,245,238,.68)}
.section-dark .eg-widget strong,.section-dark .eg-widget b,.section-dark .eg-widget h3,.section-dark .eg-widget h4{color:#EDF5F2}

/* Hero: ficha ilustrativa que se ensambla (catálogo, CRM y operación). */
.report-root .hero .hero-inner{gap:clamp(32px,4vw,64px)}
.wine-visual{flex:0 0 min(36%,400px);margin:0 0 0 auto}
.wine-visual svg{display:block;width:100%;height:auto;font-family:inherit}
@media (prefers-reduced-motion:no-preference){
  .wv-card{transform-box:fill-box;animation:wv-in .7s cubic-bezier(.2,.7,.2,1) both}
  .wv-card--base{animation-delay:.15s;--wv-from:translateY(18px)}
  .wv-card--crm{animation-delay:.6s;--wv-from:translate(26px,-18px)}
  .wv-card--ops{animation-delay:.85s;--wv-from:translate(-26px,18px)}
  .wv-links{animation:wv-fade .5s 1.4s both}
}
@keyframes wv-in{from{opacity:0;transform:var(--wv-from)}to{opacity:1;transform:none}}
@keyframes wv-fade{from{opacity:0}to{opacity:1}}
@media (max-width:720px){
  .report-root .hero .hero-inner{flex-direction:column;align-items:flex-start}
  .wine-visual{flex:none;width:min(100%,320px);margin:8px 0 0}
}

