/* Qué Rico — sistema visual catálogo 2026: azul, blanco y negro */

:root {
  --navy: #21467C;
  --navy-dark: #16305A;
  --navy-deep: #0E2145;
  --blue: #3D6FC4;
  --blue-pale: #EAF0F9;

  --ink: #111315;
  --ink-2: #3C444E;
  --ink-3: #5F6975;
  --ink-4: #8C95A1;
  --bg: #FFFFFF;
  --surface: #F3F6FA;
  --line: #DEE4EC;
  --line-2: #EAEEF4;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(60px, 7vw, 100px);
  --maxw: 1320px;

  --display: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
html[lang^="zh"] body {
  font-family: var(--body), 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.8;
}

img { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: 12px 20px; }
.skip:focus { left: 0; color: #fff; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(32px, 4.6vw, 56px); }
h2 { font-size: clamp(27px, 3.4vw, 42px); }
h3 { font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3 { letter-spacing: 0; line-height: 1.3; }

.eyebrow {
  font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin: 0 0 14px;
}
html[lang^="zh"] .eyebrow { letter-spacing: .06em; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 14.5px; }
.rule { width: 64px; height: 4px; background: var(--blue); margin-top: 22px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 15px 32px; border-radius: var(--r-sm);
  font-family: var(--display); font-size: 15px; font-weight: 600; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--blue-pale); color: var(--navy); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline-white:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.link-arrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--navy); }
.link-arrow svg { transition: transform .16s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-deep); color: rgba(255,255,255,.8); font-size: 14px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 46px; }
.topbar a { color: rgba(255,255,255,.8); }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; gap: 28px; }
.topbar-info span { display: inline-flex; align-items: center; gap: 9px; }
@media (max-width: 820px) { .topbar-info span:not(:first-child) { display: none; } }

/* banderas circulares */
.flags { display: flex; align-items: center; gap: 10px; }
.flag {
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: block;
  border: 2px solid rgba(255,255,255,.35); transition: border-color .16s ease, transform .16s ease;
}
.flag:hover { border-color: #fff; transform: translateY(-1px); }
.flag[aria-current="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--blue); }
.flag svg { width: 100%; height: 100%; display: block; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 54px; width: auto; }
@media (max-width: 600px) { .brand img { height: 44px; } }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--display); color: var(--ink-2); font-size: 15px; font-weight: 500; padding-block: 32px; border-bottom: 4px solid transparent; }
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; border-bottom-color: var(--blue); }

.header-end { display: flex; align-items: center; gap: 14px; flex: none; }
.header-cta { background: var(--navy); color: #fff; font-family: var(--display); font-size: 14px; font-weight: 600; padding: 14px 24px; border-radius: var(--r-sm); }
.header-cta:hover { background: var(--navy-dark); color: #fff; }
.nav > .header-cta { display: none; }

.burger { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy); transition: transform .2s ease; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav, .header-end > .header-cta { display: none; }
  .burger { display: inline-flex; }
  .header-inner { min-height: 72px; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 22px;
  }
  .nav.open a { padding: 16px 0; border-bottom: 1px solid var(--line-2); border-left: 4px solid transparent; font-size: 17px; }
  .nav.open a[aria-current="page"] { border-bottom-color: var(--line-2); padding-left: 12px; border-left-color: var(--blue); }
  .nav.open > .header-cta { display: inline-flex; justify-content: center; margin-top: 18px; border: 0; padding: 16px 24px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,33,69,.92) 0%, rgba(14,33,69,.78) 45%, rgba(14,33,69,.35) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(72px, 10vw, 140px); max-width: 760px; }
.hero h1 { color: #fff; margin-top: 20px; }
.hero .eyebrow { color: #9FC0F0; }
.hero .lead { color: rgba(255,255,255,.85); margin-top: 22px; max-width: 56ch; }
@media (max-width: 700px) { .hero::after { background: linear-gradient(180deg, rgba(14,33,69,.86) 0%, rgba(14,33,69,.94) 70%); } }

.page-head {
  position: relative; background: var(--navy-deep); color: #fff; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(300px, 31vw, 420px);
}
.page-head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,33,69,.93) 0%, rgba(14,33,69,.80) 48%, rgba(14,33,69,.42) 100%);
}
.page-head .wrap { position: relative; z-index: 2; width: 100%; padding-block: 48px; }
.page-head h1 { color: #fff; }
.page-head .eyebrow { color: #9FC0F0; }
.page-head .lead { color: rgba(255,255,255,.85); margin-top: 20px; max-width: 68ch; }
@media (max-width: 700px) {
  .page-head { min-height: 260px; }
  .page-head::after { background: linear-gradient(180deg, rgba(14,33,69,.88) 0%, rgba(14,33,69,.95) 70%); }
}

/* ---------- Franja de cifras ---------- */
.stats { background: var(--blue); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 32px 30px; border-left: 1px solid rgba(255,255,255,.25); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.4vw, 40px); line-height: 1; letter-spacing: -.02em; }
.stat-label { font-size: 15px; color: rgba(255,255,255,.85); margin-top: 8px; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-left: 0; padding-inline: 0; padding-block: 24px; }
  .stat:nth-child(2n) { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.25); }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.25); }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); }
.section-surface { background: var(--surface); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,.78); }
.section-navy .eyebrow { color: #9FC0F0; }
.section-navy .rule { background: #9FC0F0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section-head > div:first-child { max-width: 680px; }
.section-head p.lead { margin-top: 16px; }
.center { text-align: center; max-width: 720px; margin-inline: auto; }
.center .rule { margin-inline: auto; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 60px); align-items: center; }
.split > .col-6 { grid-column: span 6; }
.split > .col-5 { grid-column: span 5; }
.split > .col-7 { grid-column: span 7; }
@media (max-width: 900px) { .split > [class^="col-"] { grid-column: 1 / -1; } }

figure { margin: 0; }
.photo { border-radius: var(--r-md); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-4x3 { aspect-ratio: 4 / 3; }
.photo-16x9 { aspect-ratio: 16 / 9; }
figcaption { font-size: 13.5px; color: var(--ink-4); margin-top: 10px; }

/* ---------- Por qué nos eligen ---------- */
.pillar { text-align: center; padding: 8px 12px; }
.pillar .ico { width: 68px; height: 68px; margin: 0 auto 22px; color: var(--blue); }
.pillar .ico svg { width: 100%; height: 100%; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--ink-3); font-size: 16px; }

/* ---------- Sellos de calidad ---------- */
.seals { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1080px) { .seals { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 620px) { .seals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seal { text-align: center; display: grid; gap: 12px; justify-items: center; }
.seal .ico { width: 46px; height: 46px; color: #fff; opacity: .92; }
.seal .ico svg { width: 100%; height: 100%; }
.seal span { font-family: var(--display); font-size: 14px; font-weight: 500; line-height: 1.35; color: rgba(255,255,255,.9); }

/* ---------- Tarjetas de categoría ---------- */
.cat {
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff;
  display: grid; grid-template-rows: auto 1fr; transition: border-color .16s ease, transform .16s ease;
}
.cat:hover { border-color: var(--blue); transform: translateY(-2px); }
.cat-img {
  background: var(--surface); height: 210px; display: grid; place-items: center;
  padding: 20px; overflow: hidden;
}
.cat-img img {
  width: 100%; height: 150px; object-fit: contain; object-position: center;
}
@media (max-width: 620px) { .cat-img { height: 260px; } .cat-img img { height: 200px; } }
.cat-body { padding: 24px 24px 28px; display: grid; gap: 10px; align-content: start; }
.cat-body h3 { color: var(--navy); }
.cat-body p { font-size: 15.5px; color: var(--ink-3); }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { background: #fff; padding: 30px 28px; }
.step-num { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--blue); margin-bottom: 12px; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15.5px; color: var(--ink-3); }

/* ---------- Mercados ---------- */
.markets { display: grid; gap: 26px; }
.market { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.2); }
.market:first-child { border-top: 0; }
.market dt { font-family: var(--display); font-weight: 600; font-size: 16px; color: #9FC0F0; }
.market dd { margin: 0; color: rgba(255,255,255,.86); font-size: 16.5px; }
@media (max-width: 620px) { .market { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Catálogo ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 24px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin-right: 6px; }
html[lang^="zh"] .filter-label { letter-spacing: .05em; text-transform: none; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--body); font-size: 15px; color: var(--ink-2);
  padding: 11px 20px; min-height: 44px; cursor: pointer; transition: all .15s ease;
}
.chip:hover { border-color: var(--blue); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.table-card { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
table.catalog { width: 100%; border-collapse: collapse; }
table.catalog th {
  text-align: left; font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; background: var(--navy); padding: 16px 22px; white-space: nowrap;
}
html[lang^="zh"] table.catalog th { letter-spacing: .04em; text-transform: none; }
table.catalog td { padding: 14px 22px; border-bottom: 1px solid var(--line-2); font-size: 16px; vertical-align: middle; }
table.catalog tr:last-child td { border-bottom: 0; }
table.catalog td.pname { font-weight: 600; color: var(--navy); }
.pvariant {
  display: block; margin-top: 3px; font-family: var(--display); font-weight: 600;
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
}
html[lang^="zh"] .pvariant { letter-spacing: .04em; text-transform: none; font-size: 13px; }
table.catalog td:not(.pname):not(.pthumb) { color: var(--ink-3); }
.pthumb { width: 116px; padding-block: 10px !important; }
.pthumb img { width: 100px; height: 76px; object-fit: contain; object-position: center; margin: 0 auto; }
.pres-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pres-list em { font-style: normal; background: var(--blue-pale); color: var(--navy); border-radius: var(--r-sm); padding: 4px 11px; font-size: 14px; }
.count { font-size: 15px; color: var(--ink-4); margin-bottom: 14px; }
.empty-row td { text-align: center; color: var(--ink-4); padding-block: 48px; }

@media (max-width: 760px) {
  table.catalog thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.catalog tr:not([hidden]) { display: grid; grid-template-columns: 84px 1fr; gap: 0 14px; border-bottom: 1px solid var(--line); padding: 16px 18px; }
  table.catalog tr[hidden] { display: none; }
  table.catalog td { display: flex; gap: 10px; border: 0; padding: 3px 0; font-size: 15.5px; }
  .pthumb { grid-row: span 3; grid-column: 1; width: auto; padding: 0 !important; align-items: flex-start; }
  .pthumb img { width: 84px; height: 76px; margin: 0; }
  table.catalog td::before { content: attr(data-label); flex: none; width: 88px; font-size: 13.5px; color: var(--ink-4); }
  table.catalog td.pthumb::before { display: none; }
  table.catalog td.pname { font-size: 17px; }
  table.catalog td.pname::before { display: none; }
  .pvariant { letter-spacing: .06em; }
  .empty-row:not([hidden]) td { display: block; text-align: center; }
}

/* ---------- Novedades ---------- */
.post { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; display: grid; grid-template-rows: auto 1fr; }
.post .photo { border-radius: 0; }
.post-body { padding: 22px 24px 26px; display: grid; gap: 10px; align-content: start; }
.post-date { font-size: 14px; color: var(--ink-4); }

/* ---------- Listas ---------- */
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 16.5px; }
.list-plain li:last-child { border-bottom: 0; }
.chips-static { display: flex; flex-wrap: wrap; gap: 10px; }
.chips-static span { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 18px; font-size: 15px; color: var(--ink-2); }

.card-surface { background: var(--surface); padding: 30px 28px; border-radius: var(--r-md); }
.cards-line { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cards-line > div { background: #fff; padding: 30px 28px; }
.cards-line h3 { color: var(--navy); margin-bottom: 10px; }
.cards-line p { font-size: 16px; color: var(--ink-3); }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--display); font-size: 14.5px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 15px; min-height: 52px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,111,196,.18);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field-error { font-size: 14px; color: #B42318; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B42318; }
.field.invalid .field-error { display: block; }

.info-list { display: grid; gap: 24px; }
.info-list dt { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 6px; }
html[lang^="zh"] .info-list dt { letter-spacing: .05em; text-transform: none; }
.info-list dd { margin: 0; font-size: 16.5px; }

.notice { background: var(--blue-pale); border-left: 4px solid var(--blue); padding: 16px 20px; font-size: 15px; color: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.74); padding-block: clamp(48px, 6vw, 76px) 28px; }
.footer img.logo { height: 56px; width: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer h4 { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9FC0F0; margin-bottom: 16px; }
html[lang^="zh"] .footer h4 { letter-spacing: .05em; text-transform: none; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255,255,255,.74); font-size: 16px; }
.footer a:hover { color: #fff; }
.footer .addr { font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.62); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); font-size: 14px; color: rgba(255,255,255,.5); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 12px;
  background: #4CAF50; color: #fff; border-radius: 999px;
  padding: 15px 26px 15px 22px; min-height: 56px;
  font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.2;
  box-shadow: 0 6px 20px rgba(17, 19, 21, .22);
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.wa:hover { background: #43A047; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(17, 19, 21, .28); }
.wa:active { transform: translateY(0); }
.wa-ico { width: 26px; height: 26px; flex: none; }
.wa-ico svg { width: 100%; height: 100%; display: block; }

@media (max-width: 820px) {
  .wa { right: 16px; bottom: 16px; padding: 0; width: 58px; height: 58px; justify-content: center; gap: 0; }
  .wa-text { display: none; }
  .wa-ico { width: 30px; height: 30px; }
}
@media print { .wa { display: none; } }

/* ------------------------------------------------------- notas / blog */
.post-feature + .post-feature { margin-top: clamp(56px, 7vw, 92px); }
.post-bullets-title {
  margin-top: 26px; font-family: var(--display); font-weight: 600;
  color: var(--navy); font-size: 1.02rem;
}
.post-bullets {
  margin-top: 12px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.post-bullets li { position: relative; padding-left: 26px; color: var(--ink-soft, #40464D); }
.post-bullets li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}

/* --------------------------------------------------------- exportación */
.map-figure { margin: 40px 0 0; }
.map-figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
}
.map-figure figcaption {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; font-size: 15px; color: var(--ink-3);
}
.map-key { width: 18px; height: 18px; border-radius: 4px; background: #7AC143; flex: none; }

/* ----------------------------------------------------------- galería */
.gallery { margin-top: 40px; }
.gal-viewport { overflow: hidden; }
.gal-track {
  display: flex; align-items: center; gap: 18px;
  margin: 0; padding: 0; list-style: none;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}
.js .gal-track { will-change: transform; }

.gal-slide {
  flex: 0 0 var(--gal-w, 440px);
  transition: opacity .35s ease, transform .35s ease;
  opacity: .42;
}
.gal-slide figure { margin: 0; }
.gal-slide img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-md); background: var(--line-2);
  box-shadow: 0 2px 10px rgba(14, 33, 69, .07);
}
.gal-slide figcaption {
  margin-top: 14px; text-align: center;
  font-family: var(--display); font-size: 14px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-4);
  opacity: 0; transition: opacity .3s ease;
}
html[lang^="zh"] .gal-slide figcaption { letter-spacing: .02em; text-transform: none; font-size: 15px; }

.gal-slide[aria-current="true"] { opacity: 1; }
.gal-slide[aria-current="true"] img { box-shadow: 0 12px 34px rgba(14, 33, 69, .18); }
.gal-slide[aria-current="true"] figcaption { opacity: 1; color: var(--navy); }

/* sin JS: tira scrolleable, todo visible */
html:not(.js) .gal-viewport { overflow-x: auto; }
html:not(.js) .gal-slide { opacity: 1; }
html:not(.js) .gal-slide figcaption { opacity: 1; }
html:not(.js) .gal-controls { display: none; }

.gal-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-top: 26px;
}
.gal-btn {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: #fff;
  color: var(--navy); cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.gal-btn svg { width: 20px; height: 20px; }
.gal-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.gal-btn[disabled] { opacity: .35; cursor: default; }
.gal-btn[disabled]:hover { background: #fff; border-color: var(--line); color: var(--navy); }

.gal-dots { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gal-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line); cursor: pointer; transition: background .16s ease, transform .16s ease;
}
.gal-dot:hover { background: var(--ink-4); }
.gal-dot[aria-current="true"] { background: var(--navy); transform: scale(1.4); }

@media (max-width: 900px) { .gal-slide { flex-basis: var(--gal-w, 330px); } }
@media (max-width: 620px) {
  .gal-track { gap: 12px; }
  .gal-slide { flex-basis: var(--gal-w, 260px); }
  .gal-dots { max-width: 200px; }
}

/* "Dónde producimos": las tarjetas se ajustan al contenido, no se estiran */
.infra-grid { align-items: start; }
@media (max-width: 1100px) { .infra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .infra-grid { grid-template-columns: 1fr; } }
