/*
 * GRUPO DAIVAL — Corporate redesign layer
 * Keeps the original data/admin functionality while upgrading the public UI.
 */

:root,
[data-theme="dark"],
[data-theme="light"] {
  --red: #e51b2a;
  --red-2: #bc101e;
  --red-soft: rgba(229, 27, 42, .09);
  --bg: #f5f6f7;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef0f2;
  --line: rgba(15, 18, 22, .12);
  --line-2: rgba(15, 18, 22, .23);
  --tx: #121417;
  --tx-2: #555d67;
  --tx-3: #7c858f;
  --font-d: "Arial Narrow", "Bahnschrift SemiCondensed", "Segoe UI", sans-serif;
  --font-b: "Segoe UI", Inter, system-ui, sans-serif;
  --fs-display: clamp(3.15rem, 5.6vw, 5.65rem);
  --fs-h2: clamp(2.2rem, 3.8vw, 3.65rem);
  --fs-h3: clamp(1.1rem, 1.5vw, 1.35rem);
  --r-sm: 7px;
  --r-md: 9px;
  --r-lg: 12px;
  --r-xl: 14px;
  --pad: clamp(82px, 8vw, 128px);
  --container: 1360px;
  --sh-1: 0 28px 70px -42px rgba(8, 10, 14, .38);
  --sh-red: 0 18px 42px -26px rgba(229, 27, 42, .62);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-padding-top: 76px; }

body {
  background: #f5f6f7;
  color: var(--tx);
  letter-spacing: -.005em;
}

main { overflow: clip; }

.container { width: min(100% - 72px, var(--container)); }

section { padding-block: var(--pad); }

.topbar { display: none; }

.section-head {
  max-width: 840px;
  margin-bottom: clamp(42px, 5vw, 72px);
}

.section-head h2 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: -.045em;
}

.lead { color: var(--tx-2); line-height: 1.72; }

.eyebrow {
  margin-bottom: 18px;
  color: var(--red);
  font-size: .69rem;
  letter-spacing: .19em;
}

.eyebrow::before { width: 34px; }

.grad {
  background: none;
  color: var(--red);
  -webkit-text-fill-color: currentColor;
}

.btn {
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 5px;
  clip-path: none;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .005em;
  box-shadow: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .3s, color .3s, border-color .3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -18px rgba(0,0,0,.55);
}

.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { min-height: 40px; padding: 10px 17px; font-size: .78rem; }
.btn--lg { min-height: 56px; padding: 15px 30px; font-size: .92rem; }
.btn--ghost { background: transparent; color: inherit; }

/* Quiet, executive navigation */
.nav {
  top: 0;
  color: #fff;
  background: rgba(10, 12, 15, .95);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
}

.nav.is-stuck {
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 18px 50px -34px rgba(0, 0, 0, .95);
}

.nav__inner { min-height: 76px; }
.nav .logo__mark { color: #fff; width: 42px; height: 42px; }
.nav .logo__text b { color: #fff; font-size: 1.02rem; letter-spacing: .01em; }
.nav .logo__text span { color: rgba(255, 255, 255, .5); letter-spacing: .14em; }
.nav__menu { gap: 10px; }
.nav__link {
  position: relative;
  padding: 28px 4px 25px;
  border-radius: 0;
  color: rgba(255, 255, 255, .72);
  font-size: .79rem;
  font-weight: 600;
}

.nav__link::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -1px;
  left: 50%;
  height: 2px;
  background: var(--red);
  transition: left .32s var(--ease), right .32s var(--ease);
}

.nav__link:hover,
.nav__link.is-active { color: #fff; background: transparent; }
.nav__link:hover::after,
.nav__link.is-active::after { right: 0; left: 0; }
.nav__actions { gap: 12px; }
#themeBtn,
#adminBtn { display: none; }
.nav__actions > .btn { min-width: 104px; }
.nav__toggle {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}

/* Menú desplegable en navegación principal */
.nav__item--has-dropdown { position: relative; }
.nav__link .chevron {
  width: 13px;
  height: 13px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  transition: transform .25s var(--ease);
}
.nav__item--has-dropdown:hover .chevron,
.nav__item--has-dropdown:focus-within .chevron { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  color: #101114;
  border-radius: var(--r-md);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .45);
  padding: 10px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, .08);
}
.nav__item--has-dropdown:hover .nav__dropdown,
.nav__item--has-dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown li { margin: 0; padding: 0; }
.nav__dropdown a {
  display: block;
  padding: 11px 22px;
  color: #213582;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, padding-left .2s;
}
.nav__dropdown a:hover {
  background: rgba(224, 30, 43, .07);
  color: var(--red);
  padding-left: 26px;
}

.progress { height: 2px; }
.progress__bar { background: var(--red); box-shadow: none; }

.mobile-menu {
  color: #fff;
  background: #0b0d10;
}
.mobile-menu a { border-color: rgba(255,255,255,.12); }

/* Hero — image-led, technical and authoritative */
.hero {
  min-height: calc(100svh - 76px);
  padding-block: clamp(58px, 5vw, 78px) 26px;
  color: #fff;
  background: #0a0c0f;
}

.hero__media { inset: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: none;
  animation: none;
}

.hero__media::after {
  background:
    linear-gradient(90deg, rgba(8, 10, 13, .22) 0%, transparent 44%),
    linear-gradient(0deg, rgba(8, 10, 13, .42) 0%, transparent 24%);
}

.hero__diag {
  display: none !important;
}

.hero__grid {
  opacity: .12;
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, #000 0 39%, transparent 58%);
  -webkit-mask-image: linear-gradient(90deg, #000 0 39%, transparent 58%);
}

.hero__layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(400px, .82fr);
  grid-template-areas:
    "copy provider"
    "proof proof";
  column-gap: clamp(34px, 4vw, 64px);
  row-gap: 30px;
  align-items: center;
}

.hero__layout > div:first-child { grid-area: copy; max-width: 710px; }
.hero__layout > .provider { grid-area: provider; justify-self: end; width: min(100%, 500px); }
.hero__layout > .hero__proof { grid-area: proof; }
.hero > .container > div:first-child > .chip,
.hero__layout > div:first-child > .chip { display: none; }

.hero h1 {
  max-width: none;
  margin: 0 0 28px;
  font-size: clamp(3.6rem, 4.7vw, 4.6rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.055em;
  text-wrap: balance;
}

@media screen and (min-width: 1101px) {
  .hero { min-height: auto; }
  .hero h1 .line { white-space: nowrap; }
}

.hero .lead {
  max-width: 64ch;
  color: rgba(255,255,255,.74);
  font-size: clamp(.98rem, 1.05vw, 1.08rem);
  line-height: 1.65;
}

.hero__cta { margin-top: 34px; }
.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.hero .btn--ghost:hover { background: rgba(255,255,255,.08); }

.provider {
  padding: 20px;
  color: #fff;
  background: linear-gradient(155deg, rgba(33,37,42,.93), rgba(15,18,22,.94));
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 11px;
  box-shadow: 0 34px 90px -42px rgba(0,0,0,.95);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: transform .45s var(--ease), border-color .35s;
}
.provider:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.43); }
.provider::before { display: none; }
.provider__head { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.2); }
.provider__head h3 { font-size: .92rem; }
.provider__head span { color: rgba(255,255,255,.5); }
.provider .chip { color: #a6e7c5; background: rgba(47,209,128,.09); border-color: rgba(47,209,128,.3); }
.datalist { gap: 0; background: transparent; border-radius: 0; }
.datalist li {
  padding: 8px 0;
  color: #fff;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-size: .75rem;
}
.datalist li span { color: rgba(255,255,255,.55); }
.provider__foot { margin-top: 12px; }
.provider__foot .btn { min-height: 36px; padding-block: 8px; font-size: .7rem; }
.provider .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }

.hero__proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(10,12,15,.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero__proof > div { padding: 15px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.28); }
.hero__proof > div:last-child { border-right: 0; }
.hero__proof strong { color: var(--red); font-size: clamp(2rem,3vw,3rem); }
.hero__proof strong span { color: var(--red); }
.hero__proof > div > span { color: rgba(255,255,255,.7); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }

@keyframes hero-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}

.marquee {
  padding: 18px 0;
  color: #fff;
  background: #0b0d10;
  border-color: rgba(255,255,255,.1);
}
.marquee__track { gap: 66px; animation-duration: 46s; }
.marquee__item { color: rgba(255,255,255,.48); font-size: .77rem; letter-spacing: .08em; }
.marquee + section { display: none; }

/* Brand story */
.brandsec {
  background: #fff;
  border: 0;
}
.brand { grid-template-columns: 1.05fr .95fr; }
.brand__media { border-radius: 4px; border-color: rgba(15,18,22,.16); box-shadow: var(--sh-1); }
.brand__media::after { background: linear-gradient(0deg, rgba(8,10,13,.74), transparent 38%); }
.brand__tag {
  border-radius: 6px;
  color: #fff;
  background: rgba(14,17,20,.86);
  border-color: rgba(255,255,255,.2);
}
.brand__tag span { color: rgba(255,255,255,.6); }
.brand__tag i { border-radius: 4px; }
.brand h2 { font-size: var(--fs-h2) !important; letter-spacing: -.045em; }
.isos { gap: 8px; }
.iso,
.aval { border-radius: 4px; background: #f4f5f6; }
.aval i { border-radius: 3px; background: #e9ebed; border-color: #d9dde1; }

/* Six product lines — one open editorial matrix */
#lineas { background: #f7f8f9; border-top: 1px solid var(--line); }
.lines {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border-block: 1px solid var(--line);
}
.linecard {
  border-width: 0 1px 0 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
  overflow: visible;
  transition: background .35s, transform .45s var(--ease);
}
.linecard:first-child { border-left: 1px solid var(--line); }
.linecard:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--sh-1); z-index: 2; }
.linecard__media { height: 144px; background: #e8eaed; }
.linecard__media::after { background: linear-gradient(0deg, rgba(7,9,12,.58), transparent 45%); }
.linecard__num {
  top: -40px;
  left: 0;
  padding: 0;
  color: var(--red);
  background: none;
  border: 0;
  border-radius: 0;
  font-size: .78rem;
  letter-spacing: .06em;
}
.linecard__brand {
  top: -40px;
  right: 14px;
  padding: 0;
  color: var(--tx-3);
  background: none;
  clip-path: none;
  font-size: .58rem;
}
.linecard__body { padding: 24px 16px 18px; gap: 10px; }
.linecard__body h3 { font-size: 1rem; letter-spacing: -.02em; }
.linecard__body p { font-size: .76rem; line-height: 1.58; }
.linecard__foot { padding: 15px 16px; gap: 8px; font-size: .66rem; }
.linecard__foot span { display: none; }
.linecard__foot a { width: 100%; justify-content: space-between; }

/* Technical additives directory */
#aditivos {
  color: #fff;
  background: radial-gradient(circle at 88% 8%, #24282d 0, #111418 38%, #0b0d10 100%);
  border: 0;
}
#aditivos .section-head { max-width: 900px; }
#aditivos h2 { color: #fff; }
#aditivos .lead { color: rgba(255,255,255,.62); }
.adit-tools { display: flex; flex-direction: column; gap: 20px; margin-top: -30px; margin-bottom: 34px; }
.adit-tools__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.adit-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adit-tab {
  padding: 10px 18px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.72);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.adit-tab:hover { background: rgba(255,255,255,.09); color: #fff; border-color: rgba(255,255,255,.28); }
.adit-tab.is-active { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 6px 20px -6px rgba(224,30,43,.6); }

.search {
  flex: 0 1 480px;
  min-height: 46px;
  border-radius: var(--r-sm);
  color: #fff;
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.22);
}
.search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,27,42,.12); }
.search input { color: #fff; }
.adit-count { color: rgba(255,255,255,.46); font-size: .85rem; }
.adit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border: 0;
  margin-top: 4px;
}
.adit {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .88);
  cursor: pointer;
  transition: background .28s var(--ease), border-color .28s var(--ease), transform .28s var(--ease), box-shadow .28s var(--ease);
  position: relative;
  overflow: hidden;
}
.adit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(224, 30, 43, .07), transparent 55%);
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.adit.is-hidden { display: none !important; }
.adit:hover {
  background: rgba(255, 255, 255, .065);
  border-color: rgba(224, 30, 43, .5);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7);
  color: #fff;
}
.adit:hover::before { opacity: 1; }
.adit i {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: rgba(224, 30, 43, .12);
  color: var(--red);
  display: grid;
  place-items: center;
  clip-path: none;
  flex: none;
  transition: background .28s var(--ease);
}
.adit i svg {
  width: 22px;
  height: 22px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .28s var(--ease), transform .28s var(--ease);
}
.adit:hover i { background: var(--red); }
.adit:hover i svg { stroke: #fff; transform: scale(1.1); }
.adit > span {
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}
.adit-group-badge {
  font-size: .62rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .4);
  align-self: flex-start;
  transition: all .28s var(--ease);
}
.adit:hover .adit-group-badge { background: rgba(224, 30, 43, .14); color: var(--red); }
.adit::after { display: none; }
.adit--star {
  border-color: rgba(224, 30, 43, .35);
  background: rgba(224, 30, 43, .06);
}
.adit--star i { background: rgba(224, 30, 43, .2); }
.tagstar {
  font-size: .62rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Technical sheets — document table rather than card grid */
#catalogo { background: #fff; }
.cat-tools { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.cat-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-tab {
  padding: 8px 16px;
  border-radius: var(--r-sm);
  background: #f4f5f6;
  border: 1px solid #e1e4e8;
  color: #4a5568;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.cat-tab:hover { background: #eaedf0; color: #1a202c; border-color: #cbd5e0; }
.cat-tab.is-active { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 4px 14px -4px rgba(224,30,43,.5); }

.cat-tools__search-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.search--light {
  flex: 0 1 540px;
  background: #f8f9fa;
  border-color: #e2e8f0;
  color: #2d3748;
}
.search--light input { color: #1a202c; }
.search--light input::placeholder { color: #a0aec0; }
.search--light:focus-within { border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(224,30,43,.1); }

.cat-count { font-size: .85rem; font-weight: 600; color: #718096; }

.cat-popular { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.cat-popular__title { font-size: .78rem; font-weight: 700; color: #4a5568; text-transform: uppercase; letter-spacing: .04em; }
.cat-popular__chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.popular-chip {
  padding: 5px 12px;
  border-radius: 20px;
  background: #edf2f7;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.popular-chip:hover, .popular-chip.is-active { background: rgba(224,30,43,.08); color: var(--red); border-color: rgba(224,30,43,.3); }

.cat-empty {
  padding: 48px 24px;
  text-align: center;
  background: #f8f9fa;
  border: 1px dashed #cbd5e0;
  border-radius: var(--r-md);
  margin-top: 16px;
}
.cat-empty h4 { font-size: 1.1rem; color: #2d3748; margin-bottom: 8px; }
.cat-empty p { font-size: .88rem; color: #718096; margin-bottom: 16px; }

.catalog-layout { display: grid; grid-template-columns: 1fr; gap: 36px; }
.prodgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 0;
}
.prod {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.03);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
  height: 100%;
}
.prod:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 30, 43, .4);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .08);
}
.prod__head {
  padding: 18px 20px 14px;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.prod__head::before { display: none; }
.prod__code {
  font-size: .64rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.prod__head h3 {
  margin-top: 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.3;
}
.prod__head p {
  font-size: .72rem;
  color: #718096;
  margin-top: 4px;
}
.prod__body {
  padding: 18px 20px;
  border: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}
.prod__body > p {
  font-size: .82rem;
  color: #4a5568;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.prod__meta span {
  padding: 3px 8px;
  border-radius: 4px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  font-size: .65rem;
  font-weight: 600;
  color: #4a5568;
}
.prod__foot {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid #edf2f7;
  background: #fafbfc;
}
.prod__foot .btn { flex: 1; font-size: .78rem; padding: 9px 12px; min-width: 0; }

/* Paginación de catálogo */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid #cbd5e0;
  color: #2d3748;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s var(--ease);
}
.page-btn:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
  background: rgba(224, 30, 43, .04);
}
.page-btn.is-active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 4px 12px -3px rgba(224,30,43,.5);
}
.page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  border-color: #e2e8f0;
}
.page-info {
  font-size: .84rem;
  color: #718096;
  font-weight: 500;
  margin: 0 8px;
}

.pagination--dark .page-btn {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .8);
}
.pagination--dark .page-btn:hover:not(:disabled) {
  border-color: var(--red);
  color: #fff;
  background: rgba(224, 30, 43, .2);
}
.pagination--dark .page-btn.is-active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 4px 14px -3px rgba(224,30,43,.6);
}
.pagination--dark .page-btn:disabled {
  opacity: .3;
  border-color: rgba(255, 255, 255, .08);
}
.pagination--dark .page-info {
  color: rgba(255, 255, 255, .5);
}

/* Procurement */
#licitaciones { background: #f7f8f9; border: 0; }
.licit { grid-template-columns: 1.1fr .9fr; gap: clamp(42px, 6vw, 92px); }
.fiscal { border-radius: 3px; background: transparent; }
.fiscal__head { padding: 18px 20px; background: var(--red); }
.fiscal table { background: #fff; }
.fiscal td { padding: 12px 18px; }
.why { grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why__item { min-height: 92px; margin: 0; border-width: 0 1px 1px 0; border-radius: 0; background: #fff; }
.why__item:hover { transform: none; background: #fafbfb; }
.why__item i { border-radius: 3px; }
.docs { gap: 0; border-top: 1px solid var(--line); }
.doc { min-height: 64px; border-width: 0 0 1px; border-radius: 0; background: transparent; }
.doc:hover { background: #fff; transform: translateX(5px); }
.doc i { width: 28px; height: 32px; border-radius: 2px; }
#licitaciones .card { border-radius: 4px; background: #fff; }
#licitaciones .card:hover { transform: none; }

/* Project gallery — one cinematic frame plus an editorial selector */
.gal {
  color: #fff;
  background: #0a0c0f;
}
.gal .section-head { margin-bottom: 34px; }
.gal h2 { color: #fff; }
.gal .swiper {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(300px, .9fr);
  gap: 38px;
  padding: 0 !important;
  overflow: visible;
}
.gal .swiper-wrapper { width: 100%; min-width: 0; transform: none !important; }
.gal__item {
  display: none;
  width: 100% !important;
  aspect-ratio: 16 / 8.4;
  margin: 0 !important;
  border-radius: 4px;
  border-color: rgba(255,255,255,.16);
  background: #181b1f;
  opacity: 0;
}
.gal__item.is-gallery-active {
  display: block;
  opacity: 1;
  animation: gallery-in .68s var(--ease);
}
.gal__item img { filter: saturate(.88) contrast(1.03); }
.gal__item figcaption { padding: 54px 24px 20px; font-size: .82rem; }
.gal .swiper-pagination { display: none; }
.gallery__menu { align-self: stretch; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.22); }
.gallery__menu button {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  gap: 14px;
  align-items: center;
  padding: 17px 0;
  color: rgba(255,255,255,.65);
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  cursor: pointer;
  transition: color .3s, transform .35s var(--ease);
}
.gallery__menu button:hover,
.gallery__menu button.is-active { color: #fff; transform: translateX(5px); }
.gallery__menu button.is-active .gallery__num { color: var(--red); }
.gallery__menu button.is-active .gallery__arrow { opacity: 1; transform: none; }
.gallery__num { color: rgba(255,255,255,.4); font-weight: 700; }
.gallery__label { font-size: .83rem; font-weight: 600; }
.gallery__arrow { color: var(--red); opacity: .25; transform: translateX(-5px); transition: .3s; }
.gallery__controls { position: absolute; right: calc(30% + 38px); bottom: 18px; z-index: 4; display: flex; gap: 8px; }
.gallery__controls button { width: 42px; height: 42px; color: #fff; background: rgba(8,10,13,.72); border: 1px solid rgba(255,255,255,.3); cursor: pointer; transition: .3s; }
.gallery__controls button:hover { color: var(--red); border-color: var(--red); }
@keyframes gallery-in { from { opacity: 0; clip-path: inset(0 8% 0 0); } to { opacity: 1; clip-path: inset(0); } }

/* Contact and footer */
#contacto { padding-block: 0; background: #0a0c0f; }
.cta__inner {
  grid-template-columns: .72fr 1.28fr;
  gap: 48px;
  padding: clamp(48px, 5vw, 72px) 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.16);
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 58%, rgba(229,27,42,.13)),
    #0a0c0f;
}
.cta__inner::before { display: none; }
.cta__copy h2 { max-width: 12ch; letter-spacing: -.045em; }
.cta__copy p { max-width: 40ch; }
.cta__list { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
.cta__list i { width: 34px; height: 34px; border: 0; border-radius: 0; background: transparent; }
.form { padding: 30px; border-radius: 5px; background: rgba(255,255,255,.045); }
.field label { font-size: .64rem; }
.field input,
.field select,
.field textarea { border-radius: 3px; background: rgba(4,6,8,.5); }
.field input:focus,
.field select:focus,
.field textarea:focus { box-shadow: 0 2px 0 var(--red); }

.footer { color: #fff; background: #080a0c; border-color: rgba(255,255,255,.1); }
.footer .logo__mark { color: #fff; }
.footer .logo__text b { color: #fff; }
.footer h4 { color: rgba(255,255,255,.42); }
.footer ul a,
.footer__about p { color: rgba(255,255,255,.58); }
.footer__bottom { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.42); }
.footer .chip { color: rgba(255,255,255,.66); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.demo-note { border-radius: 3px; color: rgba(255,255,255,.58); }

.fab { width: 50px; height: 50px; box-shadow: 0 18px 36px -16px rgba(0,0,0,.85); }
.fab--top { color: #fff; background: #15181c; border-color: rgba(255,255,255,.18); }

/* Keep internal surfaces legible in the light system */
.admin { color: var(--tx); background: #f5f6f7; }
.modal { color: var(--tx); }

/* Motion is purposeful and quiet */
[data-reveal] { transform: translateY(34px); transition-duration: .9s; }
[data-reveal="left"] { transform: translateX(-42px); }
[data-reveal="right"] { transform: translateX(42px); }
[data-stagger] > * { transform: translateY(28px); }

@media screen and (max-width: 1240px) {
  .lines { grid-template-columns: repeat(3, 1fr); row-gap: 52px; }
  .linecard:nth-child(4) { border-left: 1px solid var(--line); }
  .hero__layout { grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr); }
  .nav__menu { gap: 5px; }
  .nav__link { font-size: .73rem; }
}

@media screen and (max-width: 1100px) {
  .container { width: min(100% - 48px, var(--container)); }
  .hero__layout {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "provider" "proof";
  }
  .hero__layout > .provider { justify-self: start; width: min(100%, 620px); }
  .hero__media img { object-position: 62% center; opacity: .62; }
  .hero__media::after { background: linear-gradient(90deg, #080a0d 0%, rgba(8,10,13,.76) 62%, rgba(8,10,13,.42)); }
  .hero__diag { right: 23%; }
  .hero__proof { grid-template-columns: repeat(2, 1fr); }
  .hero__proof > div:nth-child(2) { border-right: 0; }
  .hero__proof > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.28); }
  .brand { grid-template-columns: 1fr; }
  .adit-tools { margin-top: 0; justify-content: stretch; }
  .adit-grid { grid-template-columns: repeat(3, 1fr); }
  .search { flex: 1; }
  .prodgrid { grid-template-columns: repeat(2, 1fr); }
  .gal .swiper { grid-template-columns: 1fr; }
  .gallery__controls { right: 18px; bottom: auto; top: 18px; }
  .cta__inner { grid-template-columns: 1fr; }
}

@media screen and (max-width: 760px) {
  :root { --pad: 76px; }
  .container { width: min(100% - 32px, var(--container)); }
  .nav__inner { min-height: 68px; }
  .hero { min-height: auto; padding-top: 80px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.7rem); }
  .hero__proof { grid-template-columns: 1fr 1fr; }
  .hero__proof > div { padding: 18px 10px; }
  .hero__proof > div > span { font-size: .58rem; }
  .brand__tag { right: 12px; bottom: 12px; left: 12px; padding: 12px; }
  .avales { grid-template-columns: 1fr; }
  .lines { grid-template-columns: 1fr; row-gap: 48px; }
  .linecard,
  .linecard:nth-child(4) { border-left: 1px solid var(--line); }
  .linecard__media { height: 210px; }
  .linecard__body p { font-size: .84rem; }
  .adit-grid { grid-template-columns: repeat(2, 1fr); }
  .prodgrid { grid-template-columns: 1fr; }
  .licit { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .gal__item { aspect-ratio: 4 / 3; }
  .gallery__menu button { padding-block: 14px; }
  .cta__list { grid-template-columns: 1fr; }
  .form { padding: 22px 18px; }
  .footer { padding-top: 56px; }
}

@media screen and (max-width: 520px) {
  .adit-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; }
}
