/* Valteck rediseño v16 - tarjetas intro, orden OOCC y proporciones de imágenes técnicas. */
:root {
  --v8-red: #FF0000;
  --v8-black: #020202;
  --v8-white: #FFFFFF;
  --v8-gray-900: #151515;
  --v8-gray-800: #242424;
  --v8-gray-700: #444444;
  --v8-gray-500: #777777;
  --v8-gray-300: #d9d9d9;
  --v8-gray-100: #f6f6f6;
  --v8-shadow: 0 24px 70px rgba(2, 2, 2, 0.12);
  --v8-shadow-soft: 0 14px 42px rgba(2, 2, 2, 0.10);
}

html { scroll-behavior: smooth; }
body.valteck-redesign-body { background: var(--v8-white); color: var(--v8-gray-700); }
body.valteck-redesign-body p { line-height: 1.78; }
body.valteck-redesign-body a { color: var(--v8-red); }

.v8-scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--v8-red); z-index: 10001; box-shadow: 0 0 16px rgba(255,0,0,.45); }

#topbar.v8-topbar { background: var(--v8-black); color: rgba(255,255,255,.82); border: 0; padding: 8px 0; }
#topbar.v8-topbar .contact-info a, #topbar.v8-topbar .social-links a { color: rgba(255,255,255,.82); }
#topbar.v8-topbar .contact-info a:hover, #topbar.v8-topbar .social-links a:hover { color: var(--v8-red); }
#topbar.v8-topbar .contact-info i { color: var(--v8-red); }
#topbar.v8-topbar .contact-info .separate, #topbar.v8-topbar .social-links a { border-color: rgba(255,255,255,.16); }

#header.v8-header { height: 92px; padding: 16px 0; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(2,2,2,.07); }
#header.v8-header .v8-header-inner { display: flex; align-items: center; justify-content: space-between; }
#header.v8-header #logo img { max-height: 64px; margin-top: -2px; }
.v8-nav-menu > li { margin-left: 0; }
.v8-nav-menu > li > a { padding: 11px 8px !important; color: #2d2d2d !important; font-size: 12.5px; font-weight: 700; letter-spacing: -0.25px; display: flex; align-items: center; justify-content: center; min-height: 42px; line-height: 1.05; text-align: center; }
.v8-nav-menu > li > a span { display: block; }
.v8-nav-menu > li.menu-active > a, .v8-nav-menu > li > a:hover { color: var(--v8-red) !important; }

.v8-hero { min-height: 640px; padding: 170px 0 92px; background-size: cover; background-position: center; position: relative; overflow: hidden; color: var(--v8-white); }
.v8-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 82% 20%, rgba(255,0,0,.25), transparent 28%), linear-gradient(180deg, rgba(2,2,2,.1), rgba(2,2,2,.3)); pointer-events: none; }
.v8-hero .container { position: relative; z-index: 2; }
.v8-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 54px; align-items: center; }
.v8-eyebrow, .v8-section-heading > span, .v8-band-content span, .v8-cta-box span { display: inline-flex; align-items: center; gap: 10px; color: var(--v8-red); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; margin-bottom: 14px; }
.v8-eyebrow::before, .v8-section-heading > span::before, .v8-band-content span::before, .v8-cta-box span::before { content: ""; width: 34px; height: 3px; background: var(--v8-red); border-radius: 999px; }
.v8-hero h1 { font-size: 54px; line-height: 1.02; font-weight: 800; margin-bottom: 24px; color: var(--v8-white); letter-spacing: -1.8px; }
.v8-hero p { max-width: 690px; color: rgba(255,255,255,.84); font-size: 18px; margin-bottom: 28px; }
.v8-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.v8-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 22px; border-radius: 999px; font-weight: 800; transition: .28s ease; }
.v8-btn-primary { background: var(--v8-red); color: var(--v8-white) !important; box-shadow: 0 15px 36px rgba(255,0,0,.26); }
.v8-btn-primary:hover { background: #d90000; transform: translateY(-2px); }
.v8-btn-outline { border: 1px solid rgba(255,255,255,.42); color: var(--v8-white) !important; background: rgba(255,255,255,.06); }
.v8-btn-outline:hover { background: var(--v8-white); color: var(--v8-black) !important; }
.v8-btn-light { background: var(--v8-white); color: var(--v8-black) !important; }
.v8-hero-panel { background: rgba(255,255,255,.94); color: var(--v8-black); border-radius: 28px; padding: 34px; box-shadow: var(--v8-shadow); position: relative; overflow: hidden; }
.v8-panel-topline { width: 76px; height: 5px; background: var(--v8-red); border-radius: 999px; margin-bottom: 22px; }
.v8-hero-panel h2 { font-size: 28px; line-height: 1.18; font-weight: 800; color: var(--v8-black); margin-bottom: 16px; }
.v8-hero-panel p { color: var(--v8-gray-700); font-size: 15px; margin-bottom: 22px; }
.v8-mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.v8-mini-kpis div { padding: 14px 10px; background: var(--v8-gray-100); border-radius: 18px; text-align: center; }
.v8-mini-kpis strong { display: block; color: var(--v8-red); font-size: 22px; font-weight: 800; }
.v8-mini-kpis span { font-size: 12px; font-weight: 700; color: var(--v8-gray-700); }

.v8-section { padding: 92px 0; position: relative; overflow: hidden; }
.v8-section:nth-of-type(even) { background: #f7f7f7; }
.v8-section-heading h2 { color: var(--v8-black); font-size: 34px; line-height: 1.16; font-weight: 800; letter-spacing: -.7px; margin-bottom: 18px; }
.v8-section-heading p { max-width: 760px; margin-left: auto; margin-right: auto; }
.v8-section-heading.centered { text-align: center; margin-bottom: 42px; }
.v8-section-heading.centered > span { justify-content: center; }
.v8-section-heading.centered > span::after { content: ""; width: 34px; height: 3px; background: var(--v8-red); border-radius: 999px; }
.v8-section-number { display: inline-grid; place-items: center; width: 44px; height: 44px; background: rgba(255,0,0,.10); color: var(--v8-red); border: 1px solid rgba(255,0,0,.20); font-weight: 900; border-radius: 50%; margin-bottom: 20px; }
.v8-company-grid, .v8-split-layout, .v8-engineering-grid, .v8-capabilities-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; align-items: center; }
.v8-split-layout.reverse { direction: rtl; }
.v8-split-layout.reverse > * { direction: ltr; }
.v8-copy-card, .v8-copy-panel { background: var(--v8-white); border-left: 6px solid var(--v8-red); border-radius: 0 28px 28px 0; padding: 42px; box-shadow: var(--v8-shadow-soft); position: relative; }
.v8-copy-card::after, .v8-copy-panel::after { content: ""; position: absolute; right: 0; top: 0; width: 120px; height: 120px; background: rgba(255,0,0,.07); border-radius: 0 28px 0 100%; }
.v8-copy-panel.dark { background: var(--v8-black); color: rgba(255,255,255,.82); border-left-color: var(--v8-red); }
.v8-copy-panel.dark .v8-section-heading h2 { color: var(--v8-white); }
.v8-copy-panel.dark .v8-red-list li { color: rgba(255,255,255,.84); }

.v8-red-list { margin: 22px 0 0; padding: 0; list-style: none; }
.v8-red-list li { position: relative; padding: 0 0 13px 30px; color: #4b4b4b; line-height: 1.55; }
.v8-red-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: var(--v8-red); box-shadow: 0 0 0 5px rgba(255,0,0,.10); }

.v8-media { display: grid; gap: 14px; }
.v8-media figure { margin: 0; border-radius: 22px; overflow: hidden; background: #eee; box-shadow: var(--v8-shadow-soft); }
.v8-media img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.98) contrast(1.02); transition: transform .55s ease, filter .55s ease; }
.v8-media figure:hover img { transform: scale(1.045); filter: saturate(1.05) contrast(1.05); }
.v8-media-mosaic { grid-template-columns: 1.16fr .84fr; grid-template-rows: 255px 145px; }
.v8-media-mosaic .v8-media-main { grid-row: span 2; }
.v8-media-mosaic-small { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 145px; }
.v8-media-mosaic-small .v8-media-main { grid-column: span 2; }
.v8-media-stack { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 150px; }
.v8-media-stack .v8-media-main { grid-column: span 2; }
.v8-media-wide { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; }
.v8-media-wide .v8-media-main { grid-column: span 2; }
.v8-media-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 188px; align-items: stretch; }
.v8-media-tile-grid .v8-media-item { min-height: 188px; }
.v8-media-tile-grid .v8-media-item:nth-child(1) { grid-row: span 2; }
.v8-media-empty { min-height: 260px; border-radius: 24px; display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(45deg, #f4f4f4, #f4f4f4 12px, #eeeeee 12px, #eeeeee 24px); color: var(--v8-gray-700); box-shadow: var(--v8-shadow-soft); }
.v8-media-empty span { display: block; color: var(--v8-black); font-weight: 900; }
.v8-media-empty small { display: block; margin-top: 5px; color: var(--v8-gray-500); }

.v8-products-section, .v8-mechanical-section, .v8-supplies-section { background: #f7f7f7; }
.v8-services-overview { background: var(--v8-black); color: rgba(255,255,255,.76); }
.v8-services-overview .v8-section-heading h2 { color: var(--v8-white); }
.v8-service-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.v8-service-card { min-height: 245px; background: linear-gradient(180deg, #151515, #070707); border: 1px solid rgba(255,255,255,.10); border-radius: 24px; padding: 28px; color: var(--v8-white) !important; position: relative; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.24); }
.v8-service-card::after { content: ""; position: absolute; right: -55px; bottom: -55px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,0,0,.16); transition: .35s ease; }
.v8-service-card:hover { transform: translateY(-6px); border-color: rgba(255,0,0,.55); }
.v8-service-card:hover::after { transform: scale(1.35); }
.v8-service-card strong { color: var(--v8-red); font-size: 15px; font-weight: 900; }
.v8-service-card h3 { color: var(--v8-white); font-size: 22px; font-weight: 800; margin: 16px 0 12px; }
.v8-service-card p { color: rgba(255,255,255,.72); margin: 0; }
.v8-diagonal-section::before, .v8-components-section::before { content: ""; position: absolute; inset: 0 0 auto auto; width: 42vw; height: 100%; background: linear-gradient(135deg, transparent 20%, rgba(255,0,0,.055)); pointer-events: none; }
.v8-coating-section { background: linear-gradient(135deg, #f8f8f8, #fff); }
.v8-engineering-section { background: var(--v8-white); }
.v8-capabilities-section { background: #f7f7f7; }
.v8-capabilities-card { background: var(--v8-black); color: rgba(255,255,255,.82); border-radius: 34px; padding: 42px; box-shadow: var(--v8-shadow); overflow: hidden; }
.v8-capabilities-card .v8-section-heading h2 { color: var(--v8-white); }
.v8-capabilities-card .v8-red-list li { color: rgba(255,255,255,.82); }

.v8-band { min-height: 360px; background-size: cover; background-position: center; color: var(--v8-white); display: flex; align-items: center; }
.v8-band-content { max-width: 760px; padding: 68px 0; }
.v8-band-content h2 { color: var(--v8-white); font-size: 42px; line-height: 1.12; font-weight: 800; letter-spacing: -1px; }

.v8-client-section { padding: 92px 0; background: var(--v8-white); }
.v8-logo-cloud { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.v8-logo-card { min-height: 108px; border: 1px solid #eee; border-radius: 18px; display: grid; place-items: center; padding: 16px; background: #fff; box-shadow: 0 10px 30px rgba(2,2,2,.05); color: #999; font-weight: 800; }
.v8-logo-card img { max-width: 88%; max-height: 72px; object-fit: contain; transition: transform .28s ease; opacity: 1 !important; filter: none !important; }
.v8-logo-card:hover img { transform: scale(1.10); opacity: 1 !important; filter: none !important; }
.v8-cta-section { padding: 0 0 92px; background: var(--v8-white); }
.v8-cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, var(--v8-red), #b90000); border-radius: 28px; padding: 38px 42px; color: var(--v8-white); box-shadow: 0 22px 56px rgba(255,0,0,.24); }
.v8-cta-box span { color: var(--v8-white); margin-bottom: 10px; }
.v8-cta-box span::before { background: var(--v8-white); }
.v8-cta-box h3 { color: var(--v8-white); font-weight: 800; margin-bottom: 8px; }
.v8-cta-box p { margin: 0; color: rgba(255,255,255,.86); }

.v8-contact-section { padding: 92px 0 0; background: #f7f7f7; }
.v8-contact-cards { margin-bottom: 34px; }
.v8-contact-card { height: 100%; background: var(--v8-white); border-radius: 22px; padding: 28px 20px; text-align: center; box-shadow: var(--v8-shadow-soft); border-top: 4px solid var(--v8-red); }
.v8-contact-card i { color: var(--v8-red); font-size: 38px; }
.v8-contact-card h3 { color: var(--v8-black); font-size: 17px; font-weight: 800; margin: 14px 0 8px; }
.v8-contact-card p, .v8-contact-card address { margin: 0; color: var(--v8-gray-700); line-height: 1.55; }
.v8-contact-form-wrap { background: var(--v8-white); border-radius: 28px; box-shadow: var(--v8-shadow); padding: 34px; margin-bottom: -42px; position: relative; z-index: 2; }
.v8-contact-form-wrap .form-control { border-radius: 12px; border: 1px solid #e1e1e1; min-height: 48px; box-shadow: none; }
.v8-contact-form-wrap textarea.form-control { min-height: 150px; }
.v8-submit-btn { background: var(--v8-red) !important; border-color: var(--v8-red) !important; border-radius: 999px !important; padding: 12px 24px !important; font-weight: 800 !important; }
.v8-footer { padding-top: 72px !important; background: var(--v8-black) !important; }
.v8-footer .copyright, .v8-footer .credits { color: rgba(255,255,255,.72); }

.v8-reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.v8-reveal.is-visible { opacity: 1; transform: translateY(0); }

.v8-placeholder-page { padding: 160px 0 90px; min-height: 620px; background: linear-gradient(135deg, #fff, #f7f7f7); }
.v8-placeholder-card { max-width: 920px; margin: 0 auto; background: #fff; border-left: 6px solid var(--v8-red); border-radius: 0 28px 28px 0; padding: 48px; box-shadow: var(--v8-shadow); }
.v8-placeholder-card h1 { color: var(--v8-black); font-weight: 900; }
.v8-placeholder-card p { font-size: 17px; }

@media (max-width: 1199px) {
  .v8-nav-menu > li > a { font-size: 11.4px; padding-left: 5px !important; padding-right: 5px !important; }
  #header.v8-header #logo img { max-height: 56px; }
  .v8-hero h1 { font-size: 46px; }
}

@media (max-width: 991px) {
  #header.v8-header { height: 82px; }
  .v8-hero { padding: 132px 0 70px; }
  .v8-hero-grid, .v8-company-grid, .v8-split-layout, .v8-engineering-grid, .v8-capabilities-card { grid-template-columns: 1fr; }
  .v8-service-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .v8-logo-cloud { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .v8-section { padding: 72px 0; }
  .v8-cta-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  .v8-hero { min-height: auto; padding: 118px 0 58px; }
  .v8-hero h1 { font-size: 34px; letter-spacing: -1px; }
  .v8-hero p { font-size: 16px; }
  .v8-hero-panel, .v8-copy-card, .v8-copy-panel, .v8-capabilities-card, .v8-contact-form-wrap { padding: 26px; border-radius: 22px; }
  .v8-section-heading h2 { font-size: 28px; }
  .v8-service-cards, .v8-logo-cloud { grid-template-columns: 1fr; }
  .v8-media-mosaic, .v8-media-mosaic-small, .v8-media-stack, .v8-media-wide { grid-template-columns: 1fr; grid-template-rows: none; }
  .v8-media figure, .v8-media .v8-media-main { height: 220px; grid-column: auto; grid-row: auto; }
  .v8-mini-kpis { grid-template-columns: 1fr; }
  .v8-band-content h2 { font-size: 30px; }
}

/* V11: fondos antiguos como capas sutiles tipo parallax.
   Referencia de intención: fondos amplios durante el scroll, pero menos invasivos.
   No vuelven como contenido antiguo; solo dan profundidad visual. */
.v8-with-legacy-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.v8-with-legacy-bg > .container {
  position: relative;
  z-index: 2;
}
.v8-legacy-layer {
  position: absolute;
  inset: -9% -5%;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: .075;
  filter: grayscale(.12) contrast(1.08) saturate(.95);
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.10);
  transform-origin: center center;
  transition: opacity .25s ease;
  will-change: transform;
}
.v8-legacy-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,0,0,.065), transparent 27%),
    linear-gradient(90deg, rgba(255,255,255,.985) 0%, rgba(255,255,255,.94) 42%, rgba(255,255,255,.88) 72%, rgba(255,255,255,.84) 100%);
}
.v8-legacy-layer-dark {
  opacity: .115;
  filter: grayscale(.05) contrast(1.16) saturate(1.05);
}
.v8-legacy-layer-dark::after {
  background:
    radial-gradient(circle at 72% 18%, rgba(255,0,0,.22), transparent 30%),
    linear-gradient(90deg, rgba(2,2,2,.985) 0%, rgba(2,2,2,.91) 48%, rgba(2,2,2,.84) 100%);
}
.v8-products-section .v8-legacy-layer,
.v8-mechanical-section .v8-legacy-layer,
.v8-supplies-section .v8-legacy-layer,
.v8-capabilities-section .v8-legacy-layer {
  opacity: .065;
}
.v8-services-overview .v8-legacy-layer {
  opacity: .13;
}
.v8-copy-card,
.v8-copy-panel,
.v8-capabilities-card,
.v8-media figure,
.v8-service-card,
.v8-media-empty {
  position: relative;
  z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
  .v8-legacy-layer { transform: scale(1.10); }
}
@media (max-width: 767px) {
  .v8-legacy-layer {
    opacity: .055;
    transform: scale(1.14);
  }
  .v8-legacy-layer-dark { opacity: .095; }
}

/* V12: sección real de Electricidad y Control. */
.v8-electric-section {
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 52%, #f3f3f3 100%);
}
.v8-electric-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}
.v8-electric-summary {
  background: var(--v8-black);
  color: rgba(255,255,255,.80);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--v8-shadow);
  border-top: 4px solid var(--v8-red);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.v8-electric-summary strong {
  color: var(--v8-red);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}
.v8-electric-summary p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.65; }
.v8-electric-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}
.v8-electric-main-card,
.v8-feature-panel {
  background: var(--v8-white);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--v8-shadow-soft);
  border: 1px solid rgba(2,2,2,.06);
  position: relative;
  overflow: hidden;
}
.v8-electric-main-card::before,
.v8-feature-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 5px;
  background: var(--v8-red);
  border-radius: 0 6px 6px 0;
}
.v8-electric-main-card > span,
.v8-feature-panel > span {
  color: var(--v8-red);
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 12px;
  font-weight: 900;
  display: block;
  margin-bottom: 12px;
}
.v8-electric-main-card h3,
.v8-feature-panel h3 {
  color: var(--v8-black);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.18;
  margin: 0 0 20px;
}
.v8-electric-media .v8-media { height: 100%; }
.v8-electric-media .v8-media figure { min-height: 180px; }
.v8-electric-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.v8-feature-panel.dark {
  background: var(--v8-black);
  color: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 18px 50px rgba(2,2,2,.22);
}
.v8-feature-panel.dark h3 { color: var(--v8-white); }
.v8-feature-panel.dark .v8-red-list li { color: rgba(255,255,255,.78); }
.v8-feature-panel.accent {
  background: linear-gradient(135deg, #ffffff, #fff4f4);
  border-color: rgba(255,0,0,.13);
}
.v8-feature-panel .v8-red-list li {
  margin-bottom: 10px;
  line-height: 1.55;
}
@media (max-width: 991px) {
  .v8-electric-hero,
  .v8-electric-grid,
  .v8-electric-feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .v8-electric-main-card,
  .v8-feature-panel,
  .v8-electric-summary { padding: 26px; border-radius: 22px; }
  .v8-electric-main-card h3,
  .v8-feature-panel h3 { font-size: 21px; }
}


/* V13: galería ligera para Electricidad y Control */
.v8-mini-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.v8-mini-gallery-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f4f4;
  border: 1px solid rgba(2,2,2,.05);
  box-shadow: 0 12px 24px rgba(2,2,2,.08);
}
.v8-mini-gallery-item img {
  width: 100%;
  height: 150px;
  display: block;
  object-fit: cover;
}
.v8-electric-media .v8-media img {
  object-fit: cover;
}
@media (max-width: 767px) {
  .v8-mini-gallery-item img { height: 130px; }
}


/* V14: OOCC / ingeniería especial */
.v8-oocc-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 52%, #efefef 100%);
}
.v8-oocc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 30px;
}
.v8-oocc-hero-media .v8-oocc-image,
.v8-oocc-card .v8-oocc-image {
  margin-top: 20px;
}
.v8-oocc-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 34px;
}
.v8-oocc-card {
  position: relative;
  overflow: hidden;
  background: var(--v8-white);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--v8-shadow-soft);
  border: 1px solid rgba(2,2,2,.06);
}
.v8-oocc-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 5px;
  background: var(--v8-red);
  border-radius: 0 6px 6px 0;
}
.v8-oocc-card > span {
  display: block;
  color: var(--v8-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.v8-oocc-card h3 {
  color: var(--v8-black);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.18;
  margin: 0 0 20px;
}
.v8-oocc-card.dark {
  background: var(--v8-black);
  color: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.08);
}
.v8-oocc-card.dark h3 { color: var(--v8-white); }
.v8-oocc-card.dark .v8-red-list li { color: rgba(255,255,255,.80); }
.v8-oocc-card.accent {
  background: linear-gradient(135deg, #ffffff, #fff4f4);
  border-color: rgba(255,0,0,.13);
}
.v8-oocc-image {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid rgba(2,2,2,.06);
  box-shadow: 0 16px 34px rgba(2,2,2,.12);
}
.v8-oocc-image img {
  width: 100%;
  max-height: 285px;
  display: block;
  object-fit: contain;
  background: #f5f5f5;
}
.v8-oocc-card .v8-oocc-image img { max-height: 210px; }
.v8-oocc-hero-media .v8-oocc-image img { max-height: 350px; }
.v8-oocc-showcase {
  position: relative;
  z-index: 3;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(2,2,2,.06);
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--v8-shadow-soft);
  margin-top: 28px;
}
.v8-oocc-grid.two-by-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.v8-oocc-grid.two-by-two .v8-oocc-image img {
  max-height: 260px;
}
.v8-oocc-recovery {
  display: grid;
  gap: 20px;
}
.v8-oocc-recovery-pair {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: stretch;
}
.v8-oocc-recovery-wide {
  display: grid;
  grid-template-columns: minmax(0, .90fr) minmax(0, 1.10fr);
  gap: 18px;
  align-items: stretch;
}
.v8-oocc-recovery-triple {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.v8-oocc-recovery .v8-oocc-image img {
  max-height: 235px;
}
.v8-oocc-recovery-triple .v8-oocc-image img {
  max-height: 170px;
}
.v8-oocc-vertical-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.v8-oocc-vertical-stack .v8-oocc-image img {
  max-height: 360px;
}
@media (max-width: 991px) {
  .v8-oocc-hero,
  .v8-oocc-service-grid,
  .v8-oocc-recovery-pair,
  .v8-oocc-recovery-wide { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .v8-oocc-card,
  .v8-oocc-showcase { padding: 26px; border-radius: 22px; }
  .v8-oocc-card h3 { font-size: 21px; }
  .v8-oocc-grid.two-by-two { grid-template-columns: 1fr; }
  .v8-oocc-image img,
  .v8-oocc-card .v8-oocc-image img,
  .v8-oocc-hero-media .v8-oocc-image img { max-height: none; }
}


/* V15: orden visual y proporciones corregidas */
#header.v8-header .nav-menu a[href="#servicios-generales"] span,
.v8-nav-menu a[href="#servicios-generales"] span { white-space: normal; }

.v8-electric-hero {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin-bottom: 26px;
}
.v8-electric-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: start;
  gap: 30px;
}
.v8-electric-side {
  display: grid;
  gap: 20px;
  align-content: start;
}
.v8-electric-summary {
  min-height: 0;
  border-top: 0;
  border-left: 5px solid var(--v8-red);
  border-radius: 24px;
  padding: 26px 28px;
}
.v8-electric-main-card {
  align-self: start;
  padding: 32px 34px;
}
.v8-electric-main-card .v8-red-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 0;
}
.v8-electric-main-card .v8-red-list li {
  break-inside: avoid;
  padding-bottom: 11px;
}
.v8-electric-feature-grid {
  align-items: stretch;
}
.v8-feature-panel {
  display: flex;
  flex-direction: column;
}
.v8-feature-panel .v8-red-list {
  flex: 1 1 auto;
}
.v8-mini-gallery {
  margin-top: 22px;
}
.v8-mini-gallery-item img {
  height: 138px;
}
.v8-electric-media .v8-media-mosaic-small {
  grid-template-rows: 198px 135px;
}
.v8-electric-media .v8-media figure {
  min-height: 0;
}

.v8-oocc-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .70fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
}
.v8-oocc-hero-media .v8-oocc-image img {
  max-height: 280px;
}
.v8-oocc-service-grid {
  align-items: start;
  gap: 26px;
}
.v8-oocc-card {
  padding: 32px;
}
.v8-oocc-card .v8-oocc-image {
  margin-top: 18px;
}
.v8-oocc-card .v8-oocc-image img {
  max-height: 168px;
}
.v8-oocc-grid.two-by-two {
  max-width: 860px;
  margin: 0 auto;
  gap: 14px;
}
.v8-oocc-grid.two-by-two .v8-oocc-image img {
  max-height: 170px;
}
.v8-oocc-recovery {
  max-width: 920px;
  margin: 0 auto;
  gap: 16px;
}
.v8-oocc-recovery-pair,
.v8-oocc-recovery-wide {
  gap: 14px;
}
.v8-oocc-recovery .v8-oocc-image img {
  max-height: 153px;
}
.v8-oocc-recovery-triple {
  gap: 10px;
}
.v8-oocc-recovery-triple .v8-oocc-image img {
  max-height: 110px;
}
.v8-oocc-vertical-stack {
  max-width: 780px;
  margin: 0 auto;
  gap: 14px;
}
.v8-oocc-vertical-stack .v8-oocc-image img {
  max-height: 235px;
}
.v8-oocc-showcase {
  padding: 30px;
}

.v8-diagonal-section .v8-media-tile-grid,
.v8-engineering-section .v8-media-tile-grid {
  max-width: 560px;
  margin: 0 auto;
}
.v8-diagonal-section .v8-media-tile-grid .v8-media-item,
.v8-engineering-section .v8-media-tile-grid .v8-media-item {
  border-radius: 20px;
}
.v8-engineering-section .v8-media-tile-grid {
  grid-template-columns: 1.08fr .92fr;
  grid-auto-rows: 168px;
}
.v8-engineering-section .v8-media-tile-grid .v8-media-item:nth-child(1) {
  grid-row: span 2;
}

@media (max-width: 991px) {
  .v8-electric-grid,
  .v8-oocc-hero { grid-template-columns: 1fr; }
  .v8-electric-main-card .v8-red-list { grid-template-columns: 1fr; }
  .v8-oocc-hero-media .v8-oocc-image img { max-height: none; }
}
@media (max-width: 767px) {
  .v8-media-tile-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .v8-media-tile-grid .v8-media-item:nth-child(1) { grid-row: auto; }
  .v8-mini-gallery { grid-template-columns: 1fr; }
  .v8-mini-gallery-item img { height: 145px; }
  .v8-oocc-grid.two-by-two,
  .v8-oocc-recovery-pair,
  .v8-oocc-recovery-wide { grid-template-columns: 1fr; }
}


/* V16: ajustes solicitados sobre v15 */
.v8-intro-card {
  max-width: 940px;
  background: var(--v8-white);
  border-left: 6px solid var(--v8-red);
  border-radius: 0 28px 28px 0;
  padding: 38px 42px;
  box-shadow: var(--v8-shadow-soft);
  position: relative;
  overflow: hidden;
}
.v8-intro-card::after,
.v8-oocc-intro-card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 124px;
  height: 124px;
  background: rgba(255,0,0,.065);
  border-radius: 0 28px 0 100%;
  pointer-events: none;
}
.v8-intro-card .v8-section-heading p {
  margin-left: 0;
  margin-right: 0;
}
.v8-electric-grid {
  grid-template-columns: minmax(0, 1fr) minmax(380px, .86fr);
  align-items: start;
}
.v8-electric-main-card .v8-red-list {
  display: block;
  columns: auto;
}
.v8-electric-main-card .v8-red-list li {
  max-width: 100%;
  padding-bottom: 12px;
  line-height: 1.6;
}
.v8-electric-main-card {
  max-width: 780px;
}
.v8-oocc-intro-card {
  background: var(--v8-white);
  border-left: 6px solid var(--v8-red);
  border-radius: 0 30px 30px 0;
  padding: 38px 42px;
  box-shadow: var(--v8-shadow-soft);
  position: relative;
  overflow: hidden;
}
.v8-oocc-intro-card .v8-section-heading p {
  margin-left: 0;
  margin-right: 0;
}
.v8-oocc-intro-card .v8-oocc-hero-media {
  position: relative;
  z-index: 2;
}
.v8-oocc-intro-card .v8-oocc-hero-media .v8-oocc-image img {
  max-height: 310px;
}
.v8-oocc-grid.two-by-two .v8-oocc-image img {
  max-height: 213px;
}
.v8-oocc-recovery .v8-oocc-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.v8-oocc-recovery .v8-oocc-image.recovery-img-1 img {
  max-height: 184px;
  max-width: 92%;
  margin: 0 auto;
}
.v8-oocc-recovery .v8-oocc-image.recovery-img-3 img {
  max-height: 200px;
  max-width: 94%;
  margin: 0 auto;
}
.v8-oocc-recovery .v8-oocc-image.recovery-img-5 img {
  max-height: 191px;
  max-width: 95%;
  margin: 0 auto;
}
.v8-oocc-recovery-triple .v8-oocc-image img {
  max-height: 128px;
}
.v8-oocc-card .v8-oocc-image img {
  max-height: 185px;
}
@media (max-width: 991px) {
  .v8-intro-card,
  .v8-oocc-intro-card,
  .v8-electric-main-card { max-width: none; }
}
@media (max-width: 767px) {
  .v8-intro-card,
  .v8-oocc-intro-card { padding: 28px; border-radius: 0 22px 22px 0; }
}


/* V20: ajustes puntuales desde respaldo del usuario.
   No cambia el diseño interno de Servicios ni sus imágenes. */
.v8-electric-main-card {
  width: 84%;
  max-width: 680px;
}

.v8-oocc-grid.two-by-two .v8-oocc-image img {
  max-height: 245px;
}

.v8-oocc-recovery-lineal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.v8-oocc-recovery-line {
  display: flex;
  justify-content: center;
  width: 100%;
}
.v8-oocc-recovery-line .v8-oocc-image {
  width: 100%;
  max-width: 760px;
}
.v8-oocc-recovery-line .v8-oocc-image.recovery-img-1,
.v8-oocc-recovery-line .v8-oocc-image.recovery-img-3,
.v8-oocc-recovery-line .v8-oocc-image.recovery-img-5 {
  max-width: 820px;
}
.v8-oocc-recovery-lineal .v8-oocc-recovery-triple {
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 991px) {
  .v8-electric-main-card {
    width: 100%;
    max-width: none;
  }
}


/* V21: corrección de alineación solicitada.
   - El cuadro superior 03 se extiende hasta el mismo límite visual del bloque de imágenes.
   - El cuadro Servicios conserva su formato interno, pero el ancho reducido se centra hacia la derecha dentro de su columna. */
.v8-electric-hero.v8-intro-card {
  max-width: none;
  width: 100%;
}
.v8-electric-main-card {
  margin-left: auto;
  margin-right: 0;
}
@media (max-width: 991px) {
  .v8-electric-main-card {
    margin-left: 0;
    margin-right: 0;
  }
}

/* V22: ajuste exclusivo del cuadro Servicios en Electricidad y Control.
   Mantiene el cuadro superior 03 como en V21.
   No modifica imágenes, OOCC, textos ni estructura interna. */
.v8-electric-main-card {
  width: 94%;
  max-width: 740px;
  margin-left: 0;
  margin-right: auto;
}
@media (max-width: 991px) {
  .v8-electric-main-card {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}


/* V23: recuperación OOCC con lectura más informativa y centrado real de imágenes técnicas.
   Mantiene el cuadro Servicios de Electricidad como en V22. */
.v8-oocc-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.v8-oocc-image img {
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.v8-oocc-recovery-informativa {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
.v8-oocc-process-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(2,2,2,.07);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 18px 42px rgba(2,2,2,.10);
  position: relative;
  overflow: hidden;
}
.v8-oocc-process-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 5px;
  border-radius: 0 6px 6px 0;
  background: var(--v8-red);
}
.v8-oocc-process-title {
  padding-left: 18px;
  margin-bottom: 18px;
}
.v8-oocc-process-title span {
  display: block;
  color: var(--v8-red);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}
.v8-oocc-process-title h3 {
  margin: 0;
  color: var(--v8-black);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 850;
}
.v8-oocc-process-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.v8-oocc-process-card .v8-oocc-image {
  width: 100%;
  min-height: 0;
  border-radius: 20px;
  background: #f8f8f8;
}
.v8-oocc-process-card .v8-oocc-image img {
  display: block;
  object-fit: contain;
  max-height: 320px;
}
.v8-oocc-process-card .v8-oocc-image.process-explainer img,
.v8-oocc-process-card .v8-oocc-image.process-explainer-wide img {
  max-height: 330px;
}
.v8-oocc-process-card .v8-oocc-image.process-result img {
  max-height: 300px;
}
.v8-oocc-process-triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.v8-oocc-process-triple .v8-oocc-image img {
  max-height: 220px;
}
@media (max-width: 991px) {
  .v8-oocc-process-triple { grid-template-columns: 1fr; }
  .v8-oocc-process-card .v8-oocc-image img,
  .v8-oocc-process-card .v8-oocc-image.process-explainer img,
  .v8-oocc-process-card .v8-oocc-image.process-explainer-wide img,
  .v8-oocc-process-card .v8-oocc-image.process-result img { max-height: none; }
}
@media (max-width: 767px) {
  .v8-oocc-process-card { padding: 20px; border-radius: 22px; }
  .v8-oocc-process-title h3 { font-size: 21px; }
}


/* V24: Reconstrucción Octágono Chancador ordenada como bloque informativo */
.v8-oocc-octagono-informativa {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.v8-oocc-oct-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(2,2,2,.07);
  box-shadow: 0 18px 42px rgba(2,2,2,.10);
  padding: 22px;
}
.v8-oocc-oct-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 5px;
  border-radius: 0 6px 6px 0;
  background: var(--v8-red);
}
.v8-oocc-oct-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 18px;
  margin-bottom: 16px;
}
.v8-oocc-oct-title span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,0,0,.09);
  border: 1px solid rgba(255,0,0,.28);
  color: var(--v8-red);
  font-size: 12px;
  font-weight: 900;
}
.v8-oocc-oct-title h3 {
  margin: 0;
  color: var(--v8-black);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 850;
}
.v8-oocc-oct-card .v8-oocc-image {
  width: 100%;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(2,2,2,.06);
  box-shadow: 0 10px 24px rgba(2,2,2,.06);
  overflow: hidden;
}
.v8-oocc-oct-card .v8-oocc-image img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
}
@media (max-width: 767px) {
  .v8-oocc-oct-card { padding: 18px; border-radius: 22px; }
  .v8-oocc-oct-title { align-items: flex-start; }
  .v8-oocc-oct-title h3 { font-size: 19px; }
  .v8-oocc-oct-card .v8-oocc-image img { max-height: none; }
}


/* V28 - página Espesadores & Estanques */
.v8-subpage-hero {
  min-height: 620px;
  padding: 175px 0 110px;
}
.v8-subpage-hero::before {
  background: radial-gradient(circle at 50% 18%, rgba(255,0,0,.18), transparent 32%), linear-gradient(180deg, rgba(2,2,2,.22), rgba(2,2,2,.30));
}
.v8-subpage-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.v8-subpage-hero-inner .v8-eyebrow,
.v8-subpage-hero-inner .v8-hero-actions.centered {
  justify-content: center;
}
.v8-subpage-hero-inner p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.v8-esp-commit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}
.v8-esp-commit-card {
  background: #fff;
  border-radius: 26px;
  padding: 30px 28px;
  box-shadow: var(--v8-shadow-soft);
  position: relative;
  overflow: hidden;
}
.v8-esp-commit-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,0,0,.09);
}
.v8-esp-commit-card strong {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,0,0,.1);
  color: var(--v8-red);
  font-size: 15px;
  margin-bottom: 18px;
}
.v8-esp-commit-card p {
  margin: 0;
  position: relative;
  z-index: 1;
}
.v8-esp-showcase-grid {
  display: grid;
  gap: 22px;
}
.v8-esp-showcase-card {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--v8-shadow-soft);
}
.v8-esp-showcase-card.large {
  padding-bottom: 24px;
}
.v8-esp-figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 32px rgba(2,2,2,.09);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 12px;
}
.v8-esp-figure img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  transition: transform .35s ease;
}
.v8-esp-figure:hover img {
  transform: scale(1.02);
}
.v8-esp-showcase-card.large .v8-esp-figure {
  min-height: 360px;
}
.v8-esp-two-grid,
.v8-esp-three-grid,
.v8-esp-solution-gallery,
.v8-esp-field-gallery,
.v8-esp-two-col-list,
.v8-esp-problem-grid {
  display: grid;
  gap: 16px;
}
.v8-esp-two-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.v8-esp-three-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.v8-esp-three-grid.compact .v8-esp-figure {
  min-height: 220px;
}
.v8-esp-field-gallery {
  grid-template-columns: 1.02fr .98fr;
  align-items: stretch;
}
.v8-esp-field-gallery .v8-esp-figure.tall {
  min-height: 460px;
}
.v8-esp-field-gallery .v8-esp-figure:not(.tall) {
  min-height: 460px;
}
.v8-esp-info-stack {
  display: grid;
  gap: 18px;
}
.v8-esp-info-card {
  border-radius: 22px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(2,2,2,.07);
}
.v8-esp-info-card.light {
  border: 1px solid rgba(255,0,0,.08);
}
.v8-esp-info-card.darkcard {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: none;
}
.v8-esp-info-card h3 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--v8-black);
  margin-bottom: 12px;
}
.v8-copy-panel.dark .v8-esp-info-card h3 {
  color: #fff;
}
.v8-esp-info-card p:last-child {
  margin-bottom: 0;
}
.v8-esp-nested-list ul {
  margin-top: 12px;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}
.v8-esp-nested-list ul li {
  position: relative;
  padding: 0 0 9px 22px;
}
.v8-esp-nested-list ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
}
.v8-copy-panel:not(.dark) .v8-esp-nested-list ul li::before {
  background: rgba(255,0,0,.72);
}
.v8-esp-solution-gallery {
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.v8-esp-solution-gallery .v8-esp-figure {
  min-height: 220px;
}
.v8-esp-two-col-list {
  grid-template-columns: repeat(2, minmax(0,1fr));
  margin-top: 28px;
}
.v8-esp-problem-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.v8-esp-problem-card {
  background: #fff;
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--v8-shadow-soft);
  border-top: 5px solid var(--v8-red);
}
.v8-esp-problem-card h3 {
  color: var(--v8-black);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  margin: 8px 0 16px;
}
.v8-esp-problem-card p {
  margin: 0;
}
.v8-esp-problem-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--v8-red);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 800;
}
.v8-esp-problem-label::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--v8-red);
}
.v8-esp-problem-label.solution {
  margin-bottom: 12px;
}
.v8-panel-topline.small {
  width: 52px;
  height: 4px;
  margin-bottom: 14px;
}
@media (max-width: 991px) {
  .v8-esp-commit-grid,
  .v8-esp-problem-grid,
  .v8-esp-two-col-list,
  .v8-esp-solution-gallery,
  .v8-esp-three-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .v8-esp-field-gallery {
    grid-template-columns: 1fr;
  }
  .v8-esp-field-gallery .v8-esp-figure.tall,
  .v8-esp-field-gallery .v8-esp-figure:not(.tall) {
    min-height: 300px;
  }
}
@media (max-width: 767px) {
  .v8-subpage-hero {
    min-height: auto;
    padding: 132px 0 80px;
  }
  .v8-esp-commit-grid,
  .v8-esp-two-grid,
  .v8-esp-three-grid,
  .v8-esp-solution-gallery,
  .v8-esp-two-col-list,
  .v8-esp-problem-grid {
    grid-template-columns: 1fr;
  }
  .v8-esp-showcase-card,
  .v8-esp-commit-card,
  .v8-esp-problem-card,
  .v8-esp-info-card {
    padding: 22px;
  }
  .v8-esp-showcase-card.large .v8-esp-figure,
  .v8-esp-figure,
  .v8-esp-three-grid.compact .v8-esp-figure,
  .v8-esp-solution-gallery .v8-esp-figure {
    min-height: 220px;
  }
}


/* V29 ajustes de distribución para Espesadores */
.v8-esp-wide-intro {
  margin-bottom: 24px;
}
.v8-esp-info-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.v8-esp-showcase-grid-3up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.v8-esp-showcase-grid-3up .v8-esp-showcase-card {
  height: 100%;
}
.v8-esp-showcase-grid-3up .v8-esp-showcase-card .v8-section-heading h2 {
  min-height: 64px;
}
.v8-esp-field-intro {
  margin-bottom: 24px;
}
.v8-esp-field-rows {
  display: grid;
  gap: 24px;
}
.v8-esp-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: 22px;
  align-items: stretch;
}
.v8-esp-field-row-copy {
  height: 100%;
}
.v8-esp-field-row-copy .v8-section-heading h2 {
  margin-bottom: 14px;
}
.v8-esp-field-row-media .v8-esp-figure {
  min-height: 100%;
  height: 100%;
}
.v8-esp-field-row-media img {
  max-height: 480px;
}
@media (max-width: 991px) {
  .v8-esp-info-row,
  .v8-esp-showcase-grid-3up,
  .v8-esp-field-row {
    grid-template-columns: 1fr;
  }
  .v8-esp-field-row-media .v8-esp-figure {
    min-height: 300px;
  }
}
@media (max-width: 767px) {
  .v8-esp-info-row {
    grid-template-columns: 1fr;
  }
}


/* V30 - aumento de tamaño en imágenes de Fabricación y Suministros */
.v8-esp-card-relave .v8-esp-figure img {
  transform: scale(1.2);
}
.v8-esp-card-relave .v8-esp-figure:hover img {
  transform: scale(1.22);
}
.v8-esp-card-accionamientos .v8-esp-figure img {
  transform: scale(1.3);
}
.v8-esp-card-accionamientos .v8-esp-figure:hover img {
  transform: scale(1.32);
}
.v8-esp-card-lineas .v8-esp-figure {
  padding: 8px;
}
.v8-esp-card-lineas .v8-esp-figure img {
  transform: scale(1.5);
}
.v8-esp-card-lineas .v8-esp-figure:hover img {
  transform: scale(1.52);
}


/* V31 - Relave horizontal sobre accionamientos y líneas */
.v8-esp-showcase-grid-stacked {
  gap: 22px;
}
.v8-esp-showcase-grid-2up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.v8-esp-showcase-grid-2up .v8-esp-showcase-card {
  height: 100%;
}
.v8-esp-card-relave-horizontal {
  padding-bottom: 28px;
}
.v8-esp-horizontal-wrap {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(0, 1.35fr);
  gap: 24px;
  align-items: center;
}
.v8-esp-card-relave-horizontal .v8-section-heading h2 {
  margin-bottom: 0;
}
.v8-esp-card-relave-horizontal .v8-esp-figure {
  min-height: 300px;
}
.v8-esp-card-relave-horizontal .v8-esp-figure img {
  max-height: 380px;
}
@media (max-width: 991px) {
  .v8-esp-showcase-grid-2up,
  .v8-esp-horizontal-wrap {
    grid-template-columns: 1fr;
  }
  .v8-esp-card-relave-horizontal .v8-esp-figure {
    min-height: 260px;
  }
}


/* V32 - Relave como cuadro horizontal estilo Fabricación y Suministros */
.v8-esp-relave-banner {
  margin-bottom: 22px;
}
.v8-esp-relave-banner .v8-section-heading h2 {
  max-width: 420px;
  margin-bottom: 0;
}
.v8-esp-relave-banner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.35fr);
  gap: 22px;
  align-items: center;
}
.v8-esp-relave-banner-media .v8-esp-figure {
  min-height: 260px;
}
.v8-esp-relave-banner-media .v8-esp-figure img {
  max-height: 360px;
  transform: scale(1.2);
}
.v8-esp-relave-banner-media .v8-esp-figure:hover img {
  transform: scale(1.22);
}
.v8-esp-showcase-grid-under-relave {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 991px) {
  .v8-esp-relave-banner,
  .v8-esp-showcase-grid-under-relave {
    grid-template-columns: 1fr;
  }
}


/* V33 - Accionamientos horizontal apilado y Líneas con imagen 1 arriba */
.v8-esp-accionamientos-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.v8-esp-card-accionamientos .v8-esp-figure {
  min-height: 170px;
}
.v8-esp-card-accionamientos .v8-esp-figure img {
  max-height: 210px;
  transform: scale(1.3);
}
.v8-esp-card-accionamientos .v8-esp-figure:hover img {
  transform: scale(1.32);
}
.v8-esp-lineas-layout {
  display: grid;
  gap: 14px;
}
.v8-esp-lineas-top .v8-esp-figure {
  min-height: 180px;
}
.v8-esp-lineas-top .v8-esp-figure img {
  transform: scale(1.8);
}
.v8-esp-lineas-top .v8-esp-figure:hover img {
  transform: scale(1.82);
}
.v8-esp-lineas-bottom {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.v8-esp-lineas-bottom .v8-esp-figure {
  min-height: 170px;
}


/* V34 - ajuste fino de imágenes para que llenen mejor sus marcos */
.v8-esp-figure.esp-accion-1,
.v8-esp-figure.esp-accion-2,
.v8-esp-figure.esp-linea-1,
.v8-esp-figure.esp-linea-2,
.v8-esp-figure.esp-linea-3 {
  padding: 8px;
}

.v8-esp-figure.esp-accion-1 {
  min-height: 190px;
}
.v8-esp-figure.esp-accion-1 img {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: contain;
  transform: scale(1.18);
}
.v8-esp-figure.esp-accion-1:hover img {
  transform: scale(1.2);
}

.v8-esp-figure.esp-accion-2 {
  min-height: 190px;
}
.v8-esp-figure.esp-accion-2 img {
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 168px;
  object-fit: contain;
  transform: rotate(90deg) scale(1.08);
}
.v8-esp-figure.esp-accion-2:hover img {
  transform: rotate(90deg) scale(1.1);
}

.v8-esp-lineas-top .v8-esp-figure.esp-linea-1 {
  min-height: 185px;
}
.v8-esp-lineas-top .v8-esp-figure.esp-linea-1 img {
  width: 100%;
  height: 100%;
  max-height: 190px;
  object-fit: contain;
  transform: scale(1.36);
}
.v8-esp-lineas-top .v8-esp-figure.esp-linea-1:hover img {
  transform: scale(1.38);
}

.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-2,
.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-3 {
  min-height: 142px;
}
.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-2 img,
.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-3 img {
  width: 100%;
  height: 100%;
  max-height: 145px;
  object-fit: contain;
  transform: scale(1.16);
}
.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-2:hover img,
.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-3:hover img {
  transform: scale(1.18);
}


/* V35 - ajuste solicitado de tamaños en accionamientos y líneas de descarga */
.v8-esp-figure.esp-accion-1 img {
  max-height: 185px;
  transform: scale(0.95);
}
.v8-esp-figure.esp-accion-1:hover img {
  transform: scale(0.98);
}

.v8-esp-figure.esp-accion-2 {
  min-height: 220px;
}
.v8-esp-figure.esp-accion-2 img {
  max-width: 96%;
  max-height: 195px;
  transform: rotate(90deg) scale(1.4);
}
.v8-esp-figure.esp-accion-2:hover img {
  transform: rotate(90deg) scale(1.42);
}

.v8-esp-lineas-top .v8-esp-figure.esp-linea-1 {
  min-height: 175px;
}
.v8-esp-lineas-top .v8-esp-figure.esp-linea-1 img {
  max-height: 180px;
  transform: scale(1.1);
}
.v8-esp-lineas-top .v8-esp-figure.esp-linea-1:hover img {
  transform: scale(1.12);
}

.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-2,
.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-3 {
  min-height: 165px;
  padding: 6px;
}
.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-2 img,
.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-3 img {
  max-height: 165px;
  object-fit: contain;
  transform: scale(1.34);
}
.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-2:hover img,
.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-3:hover img {
  transform: scale(1.36);
}


/* V36 - quitar cuadros internos de Accionamientos y Líneas, dejando imágenes redondeadas */
.v8-esp-figure.esp-accion-1,
.v8-esp-figure.esp-accion-2,
.v8-esp-figure.esp-linea-1,
.v8-esp-figure.esp-linea-2,
.v8-esp-figure.esp-linea-3 {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

.v8-esp-figure.esp-accion-1 img,
.v8-esp-figure.esp-accion-2 img,
.v8-esp-figure.esp-linea-1 img,
.v8-esp-figure.esp-linea-2 img,
.v8-esp-figure.esp-linea-3 img {
  border-radius: 22px;
}

.v8-esp-figure.esp-accion-1 {
  min-height: 170px;
}
.v8-esp-figure.esp-accion-2 {
  min-height: 210px;
}
.v8-esp-lineas-top .v8-esp-figure.esp-linea-1 {
  min-height: 165px;
}
.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-2,
.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-3 {
  min-height: 150px;
}


/* V37 - reforzar bordes redondeados visibles en imágenes */
.v8-esp-figure.esp-accion-1,
.v8-esp-figure.esp-accion-2,
.v8-esp-figure.esp-linea-1,
.v8-esp-figure.esp-linea-2,
.v8-esp-figure.esp-linea-3 {
  border-radius: 28px !important;
  overflow: hidden !important;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.v8-esp-figure.esp-accion-1 img,
.v8-esp-figure.esp-accion-2 img,
.v8-esp-figure.esp-linea-1 img,
.v8-esp-figure.esp-linea-2 img,
.v8-esp-figure.esp-linea-3 img {
  border-radius: 28px !important;
  overflow: hidden !important;
  clip-path: inset(0 round 28px);
}


/* V38 - redondeo visible y recorte real de imágenes */
.v8-esp-figure.esp-accion-1,
.v8-esp-figure.esp-accion-2,
.v8-esp-figure.esp-linea-1,
.v8-esp-figure.esp-linea-2,
.v8-esp-figure.esp-linea-3 {
  border-radius: 26px !important;
  overflow: hidden !important;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.v8-esp-figure.esp-accion-1 img,
.v8-esp-figure.esp-accion-2 img,
.v8-esp-figure.esp-linea-1 img,
.v8-esp-figure.esp-linea-2 img,
.v8-esp-figure.esp-linea-3 img {
  display: block !important;
  border-radius: 26px !important;
  overflow: hidden !important;
  background-color: #f1f1f1;
}

.v8-esp-figure.esp-accion-1 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.v8-esp-figure.esp-accion-2 img {
  background-color: transparent;
}
.v8-esp-figure.esp-linea-1 img,
.v8-esp-figure.esp-linea-2 img,
.v8-esp-figure.esp-linea-3 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* V39 - quitar realmente el marco: solo imagen redondeada */
.v8-esp-card-accionamientos .v8-esp-figure,
.v8-esp-card-lineas .v8-esp-figure {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  width: fit-content !important;
  max-width: 100%;
  min-height: 0 !important;
  margin: 0 auto !important;
  display: block !important;
  overflow: visible !important;
  border-radius: 0 !important;
}

.v8-esp-card-accionamientos .v8-esp-figure img,
.v8-esp-card-lineas .v8-esp-figure img {
  display: block !important;
  background: transparent !important;
  border-radius: 26px !important;
  clip-path: inset(0 round 26px);
}

.v8-esp-figure.esp-accion-1 img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 185px;
  object-fit: contain;
  transform: scale(0.95);
}
.v8-esp-figure.esp-accion-1:hover img {
  transform: scale(0.98);
}

.v8-esp-figure.esp-accion-2 img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 195px;
  object-fit: contain;
  transform: rotate(90deg) scale(1.4);
}
.v8-esp-figure.esp-accion-2:hover img {
  transform: rotate(90deg) scale(1.42);
}

.v8-esp-lineas-top .v8-esp-figure.esp-linea-1 img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  transform: scale(1.1);
}
.v8-esp-lineas-top .v8-esp-figure.esp-linea-1:hover img {
  transform: scale(1.12);
}

.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-2 img,
.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-3 img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 165px;
  object-fit: contain;
  transform: scale(1.34);
}
.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-2:hover img,
.v8-esp-lineas-bottom .v8-esp-figure.esp-linea-3:hover img {
  transform: scale(1.36);
}


/* V40 - redondeo aplicado directamente a los archivos PNG de Accionamientos y Líneas. */


/* V41 - estructura explícita según bosquejo del usuario */
.v8-esp-card-accionamientos .v8-esp-accionamientos-stack {
  display: grid;
  gap: 24px;
  margin-top: 26px;
  justify-items: center;
}

.v8-esp-card-accionamientos .v8-esp-figure,
.v8-esp-card-lineas .v8-esp-figure {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

.v8-esp-card-accionamientos .esp-accion-1,
.v8-esp-card-accionamientos .esp-accion-2 {
  width: 100%;
  max-width: 380px;
  height: 176px;
  border-radius: 30px;
  overflow: hidden;
}

.v8-esp-card-accionamientos .esp-accion-1 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.02);
}

.v8-esp-card-accionamientos .esp-accion-2 {
  max-width: 360px;
  height: 176px;
}
.v8-esp-card-accionamientos .esp-accion-2 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(90deg) scale(1.22);
}

.v8-esp-card-lineas .v8-esp-lineas-layout {
  margin-top: 22px;
}
.v8-esp-card-lineas .v8-esp-lineas-top {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
.v8-esp-card-lineas .v8-esp-lineas-top .esp-linea-1 {
  width: 100%;
  max-width: 430px;
  height: 190px;
  border-radius: 30px;
  overflow: hidden;
}
.v8-esp-card-lineas .v8-esp-lineas-top .esp-linea-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.v8-esp-card-lineas .v8-esp-lineas-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  justify-items: center;
  align-items: start;
}
.v8-esp-card-lineas .v8-esp-lineas-bottom .esp-linea-2,
.v8-esp-card-lineas .v8-esp-lineas-bottom .esp-linea-3 {
  width: 100%;
  max-width: 170px;
  height: 180px;
  border-radius: 28px;
  overflow: hidden;
}
.v8-esp-card-lineas .v8-esp-lineas-bottom .esp-linea-2 img,
.v8-esp-card-lineas .v8-esp-lineas-bottom .esp-linea-3 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}


/* V42 - corrección real: v39 había dejado overflow visible !important y anulaba el borde redondeado */
.v8-esp-card-accionamientos figure.v8-esp-figure.esp-accion-1,
.v8-esp-card-accionamientos figure.v8-esp-figure.esp-accion-2,
.v8-esp-card-lineas figure.v8-esp-figure.esp-linea-1,
.v8-esp-card-lineas figure.v8-esp-figure.esp-linea-2,
.v8-esp-card-lineas figure.v8-esp-figure.esp-linea-3 {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.v8-esp-card-accionamientos figure.v8-esp-figure.esp-accion-1 {
  width: 100% !important;
  max-width: 380px !important;
  height: 176px !important;
  min-height: 176px !important;
  border-radius: 30px !important;
}
.v8-esp-card-accionamientos figure.v8-esp-figure.esp-accion-1 img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 30px !important;
  clip-path: none !important;
  transform: none !important;
}
.v8-esp-card-accionamientos figure.v8-esp-figure.esp-accion-1:hover img {
  transform: scale(1.03) !important;
}

.v8-esp-card-accionamientos figure.v8-esp-figure.esp-accion-2 {
  width: 100% !important;
  max-width: 360px !important;
  height: 176px !important;
  min-height: 176px !important;
  border-radius: 30px !important;
}
.v8-esp-card-accionamientos figure.v8-esp-figure.esp-accion-2 img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 30px !important;
  clip-path: none !important;
  transform: rotate(90deg) scale(1.22) !important;
}
.v8-esp-card-accionamientos figure.v8-esp-figure.esp-accion-2:hover img {
  transform: rotate(90deg) scale(1.25) !important;
}

.v8-esp-card-lineas .v8-esp-lineas-top figure.v8-esp-figure.esp-linea-1 {
  width: 100% !important;
  max-width: 430px !important;
  height: 190px !important;
  min-height: 190px !important;
  border-radius: 30px !important;
}
.v8-esp-card-lineas .v8-esp-lineas-top figure.v8-esp-figure.esp-linea-1 img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 30px !important;
  clip-path: none !important;
  transform: none !important;
}
.v8-esp-card-lineas .v8-esp-lineas-top figure.v8-esp-figure.esp-linea-1:hover img {
  transform: scale(1.03) !important;
}

.v8-esp-card-lineas .v8-esp-lineas-bottom figure.v8-esp-figure.esp-linea-2,
.v8-esp-card-lineas .v8-esp-lineas-bottom figure.v8-esp-figure.esp-linea-3 {
  width: 100% !important;
  max-width: 175px !important;
  height: 180px !important;
  min-height: 180px !important;
  border-radius: 28px !important;
}
.v8-esp-card-lineas .v8-esp-lineas-bottom figure.v8-esp-figure.esp-linea-2 img,
.v8-esp-card-lineas .v8-esp-lineas-bottom figure.v8-esp-figure.esp-linea-3 img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 28px !important;
  clip-path: none !important;
  transform: none !important;
}
.v8-esp-card-lineas .v8-esp-lineas-bottom figure.v8-esp-figure.esp-linea-2:hover img,
.v8-esp-card-lineas .v8-esp-lineas-bottom figure.v8-esp-figure.esp-linea-3:hover img {
  transform: scale(1.03) !important;
}


/* V43 - las imágenes objetivo fueron redondeadas físicamente en PNG con canal alpha. */
.v8-esp-card-accionamientos .v8-esp-figure,
.v8-esp-card-lineas .v8-esp-figure {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}


/* V44 - sección ¿Por qué trabajar con nosotros? más amigable y menos tabular */
.v8-esp-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.v8-esp-value-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 100%);
  border-radius: 28px;
  padding: 28px 30px 26px;
  box-shadow: var(--v8-shadow-soft);
  border: 1px solid rgba(255,0,0,.10);
  overflow: hidden;
}

.v8-esp-value-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--v8-red) 0%, rgba(255,0,0,.35) 65%, rgba(255,0,0,.08) 100%);
}

.v8-esp-value-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.v8-esp-value-index {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,0,0,.08);
  color: var(--v8-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.v8-esp-value-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,0,0,.06);
  color: var(--v8-red);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 800;
}

.v8-esp-value-card h3 {
  color: var(--v8-black);
  font-size: 22px;
  line-height: 1.18;
  font-weight: 800;
  margin: 0 0 10px;
  max-width: 92%;
}

.v8-esp-value-intro {
  margin: 0 0 18px;
  color: rgba(17,17,17,.72);
  font-size: 16px;
  line-height: 1.55;
}

.v8-esp-value-solution {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,0,0,.10);
}

.v8-esp-value-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: 4px;
  background: radial-gradient(circle at center, var(--v8-red) 0 45%, rgba(255,0,0,.22) 46% 100%);
}

.v8-esp-value-solution p {
  margin: 0;
  color: rgba(17,17,17,.88);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
}

@media (max-width: 991px) {
  .v8-esp-value-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .v8-esp-value-card {
    padding: 24px 20px 22px;
  }
  .v8-esp-value-card h3 {
    font-size: 20px;
    max-width: 100%;
  }
  .v8-esp-value-meta {
    gap: 10px;
    flex-wrap: wrap;
  }
  .v8-esp-value-solution {
    grid-template-columns: 16px minmax(0,1fr);
    padding: 14px 14px;
  }
}


/* V45 - contacto, integridad, navegación y alineación Espesadores */
.v8-contact-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}
.v8-contact-cards .v8-contact-card { min-width: 0; }

.v8-integrity-section {
  padding: 88px 0 70px;
  background: #fff;
}
.v8-integrity-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 42px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
  box-shadow: var(--v8-shadow-soft);
  border-left: 6px solid var(--v8-red);
  text-align: center;
}
.v8-integrity-card .v8-section-heading.centered { margin-bottom: 24px; }
.v8-integrity-download.is-disabled {
  opacity: .58;
  cursor: not-allowed;
  box-shadow: none;
}
.v8-map-wrap iframe {
  margin-top: 0 !important;
  border-top: 0 !important;
}
.v8-footer .credits strong { color: #fff; }
.v8-footer .credits a { color: rgba(255,255,255,.82) !important; }
.v8-footer .credits a:hover { color: var(--v8-red) !important; }

/* Centrado de los cuatro casos/soluciones de Espesadores, compatible con ambas estructuras usadas durante el rediseño. */
#por-que-nosotros .v8-esp-problem-card,
#por-que-nosotros .v8-esp-value-card { text-align: center; }
#por-que-nosotros .v8-esp-problem-label,
#por-que-nosotros .v8-esp-value-meta { justify-content: center; }
#por-que-nosotros .v8-esp-problem-card h3,
#por-que-nosotros .v8-esp-value-card h3,
#por-que-nosotros .v8-esp-value-intro { margin-left: auto; margin-right: auto; }
#por-que-nosotros .v8-esp-value-solution {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
}
#por-que-nosotros .v8-esp-value-solution p { text-align: center; }
#por-que-nosotros .v8-panel-topline.small { margin-left: auto; margin-right: auto; }

@media (max-width: 1199px) {
  .v8-contact-cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .v8-contact-cards { grid-template-columns: 1fr; }
  .v8-integrity-section { padding: 64px 0 54px; }
  .v8-integrity-card { padding: 30px 24px; border-radius: 22px; }
}


/* V47 - centrado de tarjetas de contacto y compactación de Documentos corporativos */
.v8-contact-cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px)) !important;
  justify-content: center !important;
  align-items: stretch;
  gap: 20px;
}
.v8-contact-cards .v8-contact-card {
  width: 100%;
}

/* Aproximadamente 35% menos espacio vertical que V45/V46. */
.v8-integrity-section {
  padding: 57px 0 46px !important;
}
.v8-integrity-card {
  padding: 29px 42px !important;
}
.v8-integrity-card .v8-section-heading.centered {
  margin-bottom: 16px !important;
}

@media (max-width: 767px) {
  .v8-contact-cards {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-content: stretch !important;
  }
  .v8-integrity-section {
    padding: 42px 0 35px !important;
  }
  .v8-integrity-card {
    padding: 24px !important;
  }
}


/* V48 - 25% menos espacio adicional en Documentos corporativos respecto de V47 */
.v8-integrity-section {
  padding: 43px 0 35px !important;
}
.v8-integrity-card {
  padding: 22px 42px !important;
}
.v8-integrity-card .v8-section-heading.centered {
  margin-bottom: 12px !important;
}
.v8-integrity-card .v8-section-heading h2 {
  margin-bottom: 10px !important;
}

@media (max-width: 767px) {
  .v8-integrity-section {
    padding: 32px 0 26px !important;
  }
  .v8-integrity-card {
    padding: 18px 22px !important;
  }
  .v8-integrity-card .v8-section-heading.centered {
    margin-bottom: 10px !important;
  }
}


/* V50 - crédito del desarrollador con el mismo tono del copyright */
.v8-footer .credits .v8-developer-credit {
  color: rgba(255,255,255,.72) !important;
  font-weight: 400 !important;
}

/* V54 - Documentos corporativos: Política de integridad + Reglamento Valteck */
.v8-documents-heading {
  margin-bottom: 24px !important;
}
.v8-documents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}
.v8-documents-grid .v8-integrity-card {
  max-width: none;
  margin: 0;
  height: 100%;
  padding: 30px 34px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.v8-document-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(205, 0, 0, .08);
  color: var(--v8-red);
  font-size: 25px;
}
.v8-document-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.25;
}
.v8-document-card p {
  max-width: 430px;
  margin: 0 auto 20px;
  color: #5d6268;
  line-height: 1.6;
}
.v8-document-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.v8-btn-secondary {
  background: #fff;
  color: #222 !important;
  border: 1px solid rgba(0,0,0,.14);
}
.v8-btn-secondary:hover,
.v8-btn-secondary:focus {
  color: var(--v8-red) !important;
  border-color: var(--v8-red);
}
@media (max-width: 767px) {
  .v8-documents-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .v8-documents-grid .v8-integrity-card {
    padding: 24px 20px !important;
  }
  .v8-document-card h3 {
    font-size: 21px;
  }
}

/* V55 - separación visual entre documentos y botones uniformes */
.v8-documents-grid {
  row-gap: 32px !important;
  column-gap: 32px !important;
}
.v8-document-actions .v8-btn {
  min-width: 124px;
}
@media (max-width: 767px) {
  .v8-documents-grid {
    row-gap: 22px !important;
  }
}
