@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..700;1,9..40,400..700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --primary: #2b3dde;
  --primary-hover: #202da8;
  --primary-light: #eef1ff;
  --dark: #292b31;
  --dark-deep: #1d1f24;
  --dark-surface: #f5f6fa;
  --accent: #2b3dde;
  --accent-hover: #202da8;
  --bg-page: #ffffff;
  --bg-card: #f5f6fa;
  --text-main: #292b31;
  --text-muted: #6f727b;
  --text-light: #6f727b;
  --border: #e6e7ec;
  --border-light: #e6e7ec;
  --success: #107e3e;
  --warning: #d97706;
  --danger: #dc2626;
  --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Utilities */
.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* Top bar */
.topline {
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.topline-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.topline-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topline-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.95;
}

.topline-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.topline-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 10px;
  text-transform: uppercase;
}

/* Navbar */
.navbar {
  height: 80px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font: 700 34px / 0.9 var(--font-display);
  letter-spacing: -0.095em;
  color: var(--primary);
}

.wordmark span {
  color: var(--dark);
}

.header-logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Logo oficial (imagen) */
.site-logo {
  display: block;
  height: 40px;
  width: auto;
}

.footer-about .site-logo {
  height: 36px;
}

.auth-header .wordmark {
  display: flex;
  justify-content: center;
}

.auth-header .site-logo {
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: #343c48;
  font-size: 13px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(43, 61, 222, 0.28);
}

.btn-portal {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--border);}

.btn-portal:hover {
  background: #f5f6fa;
  color: var(--primary-hover);}

.btn-portal-active {
  background: #2b3dde;
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(43, 61, 222, 0.3);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-cart {
  position: relative;
  background: #f5f6fa;
  color: var(--dark);
  border: 1px solid var(--border);}

.btn-cart:hover {
  background: #eceef4;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--dark);
}

/* Hero Section */
.hero {
  min-height: 620px;
  background: #ffffff;
  color: var(--text-main);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 0.15) 100%);
  z-index: 1;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 80px 0 100px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  height: 2px;
  width: 26px;
  background: var(--accent);
}

.hero h1 {
  font: 700 clamp(42px, 6vw, 78px) / 1.02 var(--font-display);
  letter-spacing: -0.065em;
  max-width: 720px;
  margin: 22px 0 20px;
}

.hero h1 em {
  color: var(--primary);
  font-style: normal;
}

.hero-copy {
  max-width: 550px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stamps {
  display: flex;
  gap: 28px;
  margin-top: 52px;
  align-items: center;
  flex-wrap: wrap;
}

.stamp {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.stamp b {
  color: var(--text-main);
  display: block;
  font-size: 13px;
}

.stamp-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--primary-light);}

.hero-index {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: var(--primary);
  color: white;
  padding: 16px 26px;
  font: 700 12px var(--font-display);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Ticker */
.ticker {
  background: var(--primary);
  color: white;
}

.ticker-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  font: 600 11px var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* Sections */
.section {
  padding: 90px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 40px;
}

.section-kicker {
  color: var(--primary);
  font: 700 11px var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section h2 {
  color: var(--text-main);
  font: 700 clamp(32px, 4vw, 50px) / 1.05 var(--font-display);
  letter-spacing: -0.055em;
  margin: 0;
}

.section-intro {
  max-width: 420px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Categories Grid */
.categories {
  background: #ffffff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.category-card {
  position: relative;
  min-height: 250px;
  background: #f5f6fa;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}

.category-card:nth-child(1), .category-card:nth-child(4) { grid-column: span 5; }
.category-card:nth-child(2), .category-card:nth-child(5) { grid-column: span 4; }
.category-card:nth-child(3), .category-card:nth-child(6) { grid-column: span 3; }

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card .product-cutout {
  object-fit: contain;
  width: 72%;
  height: 84%;
  left: auto;
  right: -4px;
  top: 6%;
  filter: drop-shadow(0 12px 10px rgba(19, 30, 40, 0.2));
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 25, 39, 0.92) 0%, rgba(15, 25, 39, 0) 75%);
}

.category-copy {
  position: relative;
  z-index: 2;
  padding: 24px;
  width: 100%;
  color: #ffffff;
}

.category-copy small {
  color: #cfd6df;
  display: block;
  font: 700 10px var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.category-copy strong {
  font: 700 20px var(--font-display);
  letter-spacing: -0.04em;
  display: block;
  max-width: 250px;
}

.category-go {
  position: absolute;
  right: 22px;
  bottom: 24px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  color: #ffffff;
  z-index: 2;
  transition: background 0.2s, border-color 0.2s;
}

.category-card:hover .category-go {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;}

/* Catalog */
.catalog {
  background: #ffffff;
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #c9ced4;
  background: #ffffff;
  padding: 0 16px;
  width: min(360px, 100%);
  height: 48px;
  color: #707987;
}

.searchbox input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13px;
  color: var(--text-main);
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  border: 1px solid #c9ced4;
  background: transparent;
  color: #53606d;
  padding: 10px 14px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  background: #ffffff;
  border: 1px solid #d4d7db;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(20, 32, 48, 0.08);
}

.product-visual {
  height: 195px;
  background: #f5f6fa;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-visual img {
  width: 76%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(25, 35, 46, 0.12));
  transition: transform 0.3s;
}

.product-card:hover .product-visual img {
  transform: translateY(-4px) scale(1.03);
}

.product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--primary);
  color: #ffffff;
  font: 700 9px var(--font-display);
  letter-spacing: 0.08em;
  padding: 5px 8px;
  text-transform: uppercase;
}

.product-resistencia {
  position: absolute;
  right: 12px;
  top: 12px;
  background: rgba(25, 41, 58, 0.85);
  color: #ffffff;
  font: 600 10px var(--font-display);
  padding: 4px 8px;
  border-radius: 2px;
}

.product-info {
  padding: 18px 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-cat {
  color: #77808a;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-info h3 {
  font: 700 16px / 1.3 var(--font-display);
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin: 6px 0 8px;
  min-height: 42px;
}

.sku {
  color: #707987;
  font: 500 11px var(--font-display);
}

.product-bottom {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px dashed #dcdcda;
}

.price {
  font: 700 22px var(--font-display);
  letter-spacing: -0.04em;
  color: var(--text-main);
}

.price small {
  display: block;
  font: 500 10px var(--font-main);
  color: #707987;
}

.add-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.add-button:hover {
  background: var(--primary-hover);
}

/* Proof / Certifications Section */
.proof {
  background: #ffffff;
  color: var(--text-main);}

.proof .section-kicker {
  color: var(--primary);}

.proof h2 {
  color: var(--text-main);}

.proof-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.proof-photo {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border: 1px solid var(--border);}

.proof-copy p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 500px;
}

.proof-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 28px 0;
}

.proof-point {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.proof-point svg {
  color: var(--accent);
  flex-shrink: 0;
}

.proof-point b {
  display: block;
  color: var(--text-main);
  font-size: 13px;
  margin-bottom: 3px;
}

.cert-row {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.cert-row img {
  width: 95px;
  height: 90px;
  object-fit: cover;
  border: 1px solid var(--border);}

.cert-row span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
  max-width: 250px;
}

/* Yellow Manifesto Banner */
.manifesto {
  background: var(--accent);
  padding: 70px 0;
}

.manifesto-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.manifesto h2 {
  color: #ffffff;
  font: 700 clamp(30px, 4vw, 46px) / 1.05 var(--font-display);
  letter-spacing: -0.055em;
  max-width: 680px;
}

.manifesto p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  max-width: 490px;
  line-height: 1.65;
  margin-top: 14px;
}

.manifesto-mark {
  font: 700 clamp(80px, 12vw, 150px) / 0.8 var(--font-display);
  letter-spacing: -0.12em;
  color: rgba(255, 255, 255, 0.14);
  user-select: none;
}

/* Contact Section */
.contact {
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}

.contact-info p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 14px;
  max-width: 380px;
  margin-bottom: 24px;
}

.contact-detail {
  border-top: 1px solid #d4d8da;
  padding: 18px 0;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-detail svg {
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-detail span {
  font-size: 11px;
  color: #71808c;
  display: block;
  margin-bottom: 4px;
}

.contact-detail b, .contact-detail a {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
}

.contact-form {
  background: #f5f6fa;
  padding: 34px;
}

.contact-form h3 {
  font: 700 24px var(--font-display);
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.contact-form > p {
  color: #67727e;
  font-size: 13px;
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  color: #414c58;
  letter-spacing: 0.04em;
}

.field input, .field select, .field textarea {
  border: 1px solid #c5cbd0;
  background: #ffffff;
  padding: 12px;
  color: var(--text-main);
  outline: none;
  font-size: 13px;
  width: 100%;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 61, 222, 0.14);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

/* Footer */
.footer {
  background: #f5f6fa;
  color: var(--text-muted);
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);}

.footer .wordmark span {
  color: var(--text-main);}

.footer-about {
  max-width: 360px;
}

.footer-about p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 14px 44px;
  align-content: start;
}

.footer-links a {
  color: var(--text-main);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--primary);}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 11px;
}

/* Slide-out Quotation Drawer */
.quote-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 28, 0.65);
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.quote-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.quote-panel {
  background: #ffffff;
  width: min(540px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 30px;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-overlay.open .quote-panel {
  transform: translateX(0);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #d7d9d9;
  padding-bottom: 18px;
}

.panel-head h2 {
  font: 700 26px var(--font-display);
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--text-main);
}

.panel-head p {
  font-size: 12px;
  color: #71808c;
  margin-top: 4px;
}

.close-panel-btn {
  border: 1px solid #cbd0d3;
  background: transparent;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.2s;
}

.close-panel-btn:hover {
  background: #eceef4;
}

.quote-items-container {
  padding: 10px 0;
  max-height: 280px;
  overflow-y: auto;
}

.quote-item-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #dcdee0;
  align-items: center;
}

.quote-item-row h4 {
  font: 700 13px var(--font-display);
  color: var(--text-main);
  margin-bottom: 2px;
}

.quote-item-row small {
  font-size: 11px;
  color: #6c7884;
}

.quote-qty-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #c7cbd0;
  height: 32px;
  background: #ffffff;
}

.qty-control button {
  border: none;
  background: transparent;
  width: 28px;
  height: 30px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: bold;
}

.qty-control input {
  width: 44px;
  border: none;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  outline: none;
}

.btn-remove-item {
  border: none;
  background: transparent;
  color: #b91c1c;
  cursor: pointer;
  padding: 4px;
}

.quote-empty {
  border: 1px dashed #b9c0c4;
  padding: 32px 20px;
  text-align: center;
  color: #697681;
  margin: 20px 0;
}

.quote-summary-box {
  border-top: 1px solid #d0d4d5;
  padding-top: 14px;
  margin-top: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #556270;
  margin-bottom: 6px;
}

.summary-row.total-row {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  border-top: 1px solid #d0d4d5;
  padding-top: 8px;
  margin-top: 8px;
}

.summary-row.total-row span:last-child {
  font: 700 22px var(--font-display);
  color: var(--primary);
}

/* Toast Message */
.toast-notice {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #19293a;
  color: #ffffff;
  padding: 13px 22px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--accent);
  transition: opacity 0.3s;
}

/* Responsive */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card, .category-card:nth-child(n) { grid-column: span 6; }
  .proof-layout { grid-template-columns: 1fr; gap: 36px; }
  .proof-photo { height: 360px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 680px) {
  .topline-inner { justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 79px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .product-grid { grid-template-columns: 1fr; }
  .category-card, .category-card:nth-child(n) { grid-column: span 12; }
  .hero-inner { padding: 60px 0 80px; }
  .form-grid { grid-template-columns: 1fr; }
  .manifesto-mark { display: none; }
}

/* ==========================================================================
   MÓDULO DE BLOG Y GUÍAS TÉCNICAS
   ========================================================================== */
.blog-header {
  background: #ffffff;
  color: var(--text-main);
  padding: 60px 0 45px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);}

.blog-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: none;
  pointer-events: none;
}

.blog-header-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.blog-header h1 {
  font: 700 clamp(28px, 4.5vw, 42px) var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 12px 0 14px;
}

.blog-header h1 span {
  color: var(--primary);}

.blog-header p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  align-items: center;
}

.blog-filter-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(25, 41, 58, 0.1);
}

.blog-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f5f6fa;}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.05);
}

.blog-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #ffffff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 3px;
  box-shadow: none;}

.blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-card-title {
  font: 700 18px/1.3 var(--font-display);
  color: var(--dark-deep);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.blog-card:hover .blog-card-title {
  color: var(--primary);
}

.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f0f2f5;
  font-size: 12px;
}

.blog-author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.blog-read-link {
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-read-link:hover {
  text-decoration: underline;
}

/* Artículo individual */
.article-header {
  background: #ffffff;
  color: var(--text-main);
  padding: 50px 0 60px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumbs a {
  opacity: 0.8;
}

.breadcrumbs a:hover {
  opacity: 1;
  color: var(--primary);}

.article-headline {
  font: 700 clamp(28px, 4vw, 42px) var(--font-display);
  line-height: 1.2;
  margin-bottom: 14px;
}

.article-lead {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 820px;
  margin-bottom: 24px;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  margin: 40px auto 70px;
}

.article-body {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 40px;
  font-size: 16px;
  line-height: 1.75;
  color: #2b394a;
}

.article-featured-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}

.article-body h3 {
  font: 700 22px var(--font-display);
  color: var(--dark-deep);
  margin: 32px 0 14px;
}

.article-body h4 {
  font: 700 18px var(--font-display);
  color: var(--dark);
  margin: 24px 0 10px;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.blog-callout {
  background: #f0f4ff;
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  margin: 26px 0;
  border-radius: 0 4px 4px 0;
  font-size: 15px;
  color: #1a2a44;
}

.blog-callout strong {
  color: var(--primary);
}

.blog-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.blog-table th, .blog-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.blog-table th {
  background: #f5f6fa;
  font-family: var(--font-display);
  color: var(--dark-deep);
}

.blog-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 24px;
}

.sidebar-widget h4 {
  font: 700 15px var(--font-display);
  color: var(--dark-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

/* ==========================================================================
   MÓDULO DE CALCULADORA DE MATERIALES
   ========================================================================== */
.calc-header {
  background: #ffffff;
  color: var(--text-main);
  padding: 55px 0 45px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.calc-header h1 {
  font: 700 clamp(28px, 4.5vw, 42px) var(--font-display);
  line-height: 1.15;
  margin: 10px 0 12px;
}

.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #f5f6fa;
  padding: 6px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.calc-tab-btn {
  flex: 1;
  min-width: 180px;
  background: transparent;
  border: none;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.calc-tab-btn:hover {
  background: rgba(255, 255, 255, 0.6);
}

.calc-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(43, 61, 222, 0.25);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  margin-bottom: 60px;
}

.calc-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.calc-panel-title {
  font: 700 20px var(--font-display);
  color: var(--dark-deep);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-panel-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-field.full {
  grid-column: span 2;
}

.calc-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-field input,
.calc-field select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  font-size: 15px;
  color: var(--dark-deep);
  background: #ffffff;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 61, 222, 0.12);
  background: #ffffff;
}

/* Panel de Resultados */
.calc-results-panel {
  background: #f5f6fa;
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.calc-results-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
}

.calc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.calc-kpi-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 4px;
}

.calc-kpi-val {
  font: 700 24px var(--font-display);
  color: var(--text-main);}

.calc-kpi-val.accent {
  color: var(--primary);}

.calc-kpi-lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.calc-breakdown-list {
  list-style: none;
  margin: 18px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.calc-breakdown-item span:first-child {
  color: var(--text-muted);}

.calc-breakdown-item span:last-child {
  font-weight: 700;
  color: var(--text-main);}

.calc-total-box {
  background: rgba(43, 61, 222, 0.06);
  border: 1px solid rgba(43, 61, 222, 0.2);
  padding: 16px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-total-box span {
  font-size: 13px;
  color: #2b3dde;
  font-weight: 600;
}

.calc-total-price {
  font: 700 22px var(--font-display);
  color: var(--text-main);}

.calc-btn-quote {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 14px;
  padding: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-btn-quote:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: none;}

.calc-secondary-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.calc-btn-sec {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.calc-btn-sec:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Responsividad para Blog y Calculadora */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .calc-form-grid { grid-template-columns: 1fr; }
  .calc-field.full { grid-column: span 1; }
  .calc-tabs { flex-direction: column; }
  .article-body { padding: 24px; }
  .calc-panel { padding: 20px; }
  .calc-results-panel { padding: 22px; }
}



/* =========================================================
   ECONS — Correcciones de desbordamiento y responsividad
   Añadido sin eliminar los estilos originales
   ========================================================= */
html {
  max-width: 100%;
  overflow-x: clip;
  scroll-padding-top: 90px;
}
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}
img, video, iframe, canvas, svg {
  max-width: 100%;
}
img {
  height: auto;
}
.wrap,
.topline-inner {
  width: min(1180px, calc(100% - 48px));
  max-width: 100%;
}
.wrap > *,
.section-head > *,
.nav-inner > *,
.product-card,
.category-card,
.blog-card,
.contact-grid > *,
.proof-layout > *,
.footer-top > * {
  min-width: 0;
}
h1, h2, h3, p, a, span, b, strong, small, label {
  overflow-wrap: anywhere;
}
button, input, select, textarea {
  max-width: 100%;
}
.product-grid,
.category-grid,
.blog-grid,
.proof-layout,
.contact-grid,
.form-grid,
.calc-grid,
.calc-form-grid {
  min-width: 0;
}
.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.category-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.product-bottom {
  flex-wrap: wrap;
}
.price {
  min-width: 0;
  overflow-wrap: anywhere;
}
.product-badge,
.product-resistencia {
  max-width: calc(100% - 24px);
  overflow-wrap: anywhere;
}
.section-head {
  min-width: 0;
}
.section-head > div {
  flex: 1 1 320px;
  min-width: 0;
}
.section-intro {
  flex: 1 1 260px;
  min-width: 0;
}
.nav-inner {
  min-width: 0;
}
.nav-links {
  min-width: 0;
}
.nav-actions {
  flex-shrink: 0;
}
.blog-card-media img,
.proof-photo,
.cert-row img,
.hero-photo {
  max-width: 100%;
}
.blog-table-wrap,
.table-wrap,
.table-responsive {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
pre, code {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
input, select, textarea {
  min-width: 0;
}

/* En pantallas intermedias, la navegación deja de competir por espacio. */
@media (max-width: 1100px) {
  .nav-inner {
    gap: 14px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-links a {
    font-size: 12px;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn {
    padding: 10px 12px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof-layout,
  .contact-grid {
    gap: 32px;
  }
}

/* Tabletas y móviles: menú plegable y columnas apiladas. */
@media (max-width: 900px) {
  .navbar {
    height: auto;
    min-height: 72px;
  }
  .nav-inner {
    min-height: 72px;
    height: auto;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-links a {
    font-size: 14px;
    max-width: 100%;
  }
  .topline-inner {
    align-items: flex-start;
  }
  .topline-links {
    flex-wrap: wrap;
    min-width: 0;
    gap: 10px 16px;
  }
  .section {
    padding: 64px 0;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .proof-layout,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .proof-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-top,
  .footer-bottom {
    flex-wrap: wrap;
  }
  .manifesto-inner {
    flex-wrap: wrap;
  }
  .manifesto-mark {
    font-size: clamp(64px, 12vw, 110px);
  }
}

/* Teléfonos */
@media (max-width: 680px) {
  .wrap,
  .topline-inner {
    width: calc(100% - 32px);
  }
  .topline {
    font-size: 10px;
    letter-spacing: 0;
  }
  .topline-inner {
    gap: 8px;
    padding: 8px 0;
  }
  .topline-links {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .wordmark {
    font-size: 29px;
  }
  .nav-actions .btn-portal {
    display: none;
  }
  .nav-actions {
    margin-left: auto;
  }
  .hero {
    min-height: 0;
  }
  .hero-inner {
    padding: 54px 0 88px;
  }
  .hero h1 {
    font-size: clamp(34px, 9vw, 48px);
    max-width: 100%;
    overflow-wrap: normal;
  }
  .hero-copy {
    font-size: 14px;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .hero-stamps {
    gap: 16px;
    margin-top: 32px;
  }
  .hero-index {
    max-width: 100%;
    padding: 10px 12px;
    font-size: 10px;
  }
  .ticker-inner {
    justify-content: flex-start;
    gap: 10px 18px;
    font-size: 10px;
  }
  .category-card,
  .category-card:nth-child(n) {
    grid-column: 1 / -1;
  }
  .category-copy {
    padding: 18px;
  }
  .category-copy strong {
    font-size: 18px;
    max-width: calc(100% - 36px);
  }
  .catalog-tools,
  .searchbox,
  .filter-row {
    width: 100%;
    min-width: 0;
  }
  .filter-row {
    max-width: 100%;
  }
  .product-grid,
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-bottom {
    align-items: center;
  }
  .product-info {
    padding: 16px 14px;
  }
  .proof-photo {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .proof-points {
    grid-template-columns: minmax(0, 1fr);
  }
  .cert-row {
    align-items: flex-start;
  }
  .cert-row img {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
  }
  .contact-form {
    padding: 22px 16px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .field.full {
    grid-column: 1 / -1;
  }
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
  }
  .footer-about {
    max-width: 100%;
  }
  .article-body {
    padding: 20px 16px;
  }
  .calc-panel,
  .calc-results-panel {
    padding: 18px 14px;
  }
}

/* Evita animaciones innecesarias para usuarios que las desactivan. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* AJUSTE FINAL: desbordamiento horizontal visible en captura de ECONS */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin-inline: 0;
  width: 100%;
  max-width: 100%;
}

body {
  overflow-x: clip;
}

/* Evita el excedente típico de width:100vw cuando existe barra vertical. */
.topline,
.navbar,
.hero,
.ticker,
.section,
.manifesto,
.blog-header,
footer,
.site-footer {
  width: 100%;
  max-width: 100%;
}

/* Evita que hijos flex/grid obliguen a ampliar el documento. */
.topline-inner,
.topline-links,
.nav-inner,
.nav-links,
.nav-actions,
.hero-inner,
.hero-stamps,
.ticker-inner,
.section-head,
.category-grid,
.product-grid,
.proof-layout,
.contact-grid,
.footer-top,
.footer-bottom,
.manifesto-inner,
.blog-grid,
.article-layout,
.calc-grid {
  min-width: 0;
  max-width: 100%;
}

.nav-inner {
  gap: clamp(12px, 2vw, 32px);
}

.nav-links {
  flex-wrap: wrap;
}

.nav-actions {
  flex-shrink: 1;
}

img,
video,
iframe,
svg,
canvas {
  max-width: 100%;
}

pre,
code,
table {
  max-width: 100%;
}

pre,
.blog-table-wrap {
  overflow-x: auto;
}

@media (max-width: 1100px) {
  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    min-width: 0;
    gap: 12px 18px;
  }
}

@media (max-width: 900px) {
  .nav-inner {
    flex-wrap: nowrap;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-actions .btn-portal {
    display: none;
  }
}


/* =========================================================
   AJUSTE ESPECÍFICO: FRANJA AZUL DE BENEFICIOS Y SELLO HERO
   Evita que los cinco mensajes se distribuyan en 4 + 1
   y que sus textos queden demasiado juntos.
   ========================================================= */
.ticker {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ticker-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-content: initial;
  gap: 16px 26px;
  width: min(1180px, calc(100% - 40px));
  max-width: 100%;
  margin-inline: auto;
  padding: 18px 0;
  box-sizing: border-box;
}

.ticker-inner > span {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ticker-inner > span i {
  flex: 0 0 5px;
  margin-top: 6px;
}

.hero-index {
  max-width: min(100%, 420px);
  box-sizing: border-box;
  white-space: normal;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .ticker-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    width: calc(100% - 32px);
  }
  .hero-index {
    max-width: calc(100% - 24px);
    padding: 12px 16px;
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .ticker-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: calc(100% - 28px);
    padding: 16px 0;
  }
  .ticker-inner > span {
    font-size: 10px;
    letter-spacing: 0.04em;
  }
  .hero-index {
    position: relative;
    right: auto;
    bottom: auto;
    width: fit-content;
    margin-left: auto;
    max-width: 100%;
    font-size: 10px;
    padding: 10px 12px;
  }
}
