/* === RUBBERCAV S.A.S — Estilos principales === */
:root {
  --navy: #04244F;
  --navy-mid: #0A3A85;
  --navy-light: #E8EEF6;
  --accent: #F26B3A;
  --white: #FFFFFF;
  --gray-100: #F4F6F9;
  --gray-200: #E2E8F0;
  --gray-500: #6B7891;
  --gray-700: #354360;
  --gray-900: #14213D;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow: 0 4px 16px rgba(4,36,79,.12);
  --shadow-sm: 0 1px 4px rgba(4,36,79,.08);
  --r: 6px;
  --navbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-700); background: var(--white); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4 { color: var(--gray-900); line-height: 1.25; font-weight: 700; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === POLYMERS BANNER === */
.top-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: linear-gradient(90deg, #D94F20, var(--accent));
  color: #fff; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 6px 48px 6px 20px; text-align: center;
  gap: 12px; flex-wrap: wrap;
  transform: translateY(-100%);
  animation: slideDown .5s .1s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes slideDown { to { transform: translateY(0); } }
.top-banner.hiding { animation: slideUp .3s ease forwards; }
@keyframes slideUp { to { transform: translateY(-100%); } }
.top-banner a {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff; color: #D94F20; font-weight: 700; font-size: 12px;
  padding: 4px 12px; border-radius: 99px; white-space: nowrap;
}
.top-banner a:hover { background: #fff5f0; }
.top-banner-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: #fff; opacity: .8; padding: 4px; line-height: 1;
  font-size: 16px;
}
.top-banner-close:hover { opacity: 1; }

/* === NAVBAR === */
.navbar {
  position: fixed; left: 0; right: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  transition: top .35s cubic-bezier(.2,.7,.3,1), box-shadow .2s;
  height: var(--navbar-h);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: var(--navbar-h);
  display: flex; align-items: center; gap: 0;
}

.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 42px; width: auto; }

.nav-menu {
  display: none; /* mobile: hidden */
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; font-size: 13px; font-weight: 600;
  color: var(--gray-700); border-radius: var(--r);
  transition: color .15s, background .15s;
  white-space: nowrap; position: relative;
}
.nav-link:hover { color: var(--navy); background: var(--navy-light); }
.nav-link.active { color: var(--navy); }
.nav-link.active::after {
  content: ''; position: absolute; left: 12px; right: 12px;
  bottom: 2px; height: 2px; background: var(--navy); border-radius: 2px;
}

/* Dropdown */
.nav-dd { position: relative; }
.nav-dd-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; font-size: 13px; font-weight: 600;
  color: var(--gray-700); border-radius: var(--r);
  transition: color .15s, background .15s;
  cursor: pointer;
}
.nav-dd-btn:hover, .nav-dd-btn.open { color: var(--navy); background: var(--navy-light); }
.nav-dd-btn svg { transition: transform .2s; flex-shrink: 0; }
.nav-dd-btn.open svg { transform: rotate(180deg); }

.nav-dd-menu {
  display: none; position: absolute;
  top: calc(100% + 4px); left: 0;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: 4px; min-width: 220px; z-index: 300;
}
.nav-dd-menu.open { display: block; }
.nav-dd-menu a {
  display: block; padding: 9px 14px; font-size: 13px; font-weight: 500;
  color: var(--gray-700); border-radius: 4px;
  transition: background .15s, color .15s;
}
.nav-dd-menu a:hover { background: var(--navy-light); color: var(--navy); }

/* Nav actions */
.nav-actions {
  display: none; /* mobile: hidden */
  align-items: center; gap: 8px; flex-shrink: 0; margin-left: 16px;
}

/* Search */
.nav-search { position: relative; }
.nav-search-input {
  width: 180px; height: 34px; padding: 0 10px 0 32px;
  font-size: 13px; background: var(--gray-100);
  border: 1px solid transparent; border-radius: var(--r);
  transition: border-color .15s, background .15s;
}
.nav-search-input:focus { outline: none; background: var(--white); border-color: var(--navy-mid); }
.nav-search-icon {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  color: var(--gray-500); pointer-events: none; display: flex;
}
.nav-search-results {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r);
  box-shadow: var(--shadow); max-height: 300px; overflow-y: auto; z-index: 400;
}
.nav-search-results.open { display: block; }
.nsr-item {
  display: block; padding: 9px 12px; font-size: 13px; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100); transition: background .1s;
}
.nsr-item:last-child { border-bottom: 0; }
.nsr-item:hover, .nsr-item.active { background: var(--navy-light); color: var(--navy); }
.nsr-item mark { background: rgba(4,36,79,.12); color: inherit; font-weight: 600; padding: 0 2px; border-radius: 2px; }
.nsr-cat { display: block; font-size: 10px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 1px; }
.nsr-empty { padding: 12px; font-size: 13px; color: var(--gray-500); text-align: center; }

/* Lang toggle */
.lang-toggle { display: flex; align-items: center; background: var(--gray-100); border-radius: 99px; padding: 3px; gap: 2px; }
.lang-btn { padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: .8px; color: var(--gray-500); border-radius: 99px; transition: background .15s, color .15s; }
.lang-btn.active { background: var(--navy); color: var(--white); }
.lang-btn:not(.active):hover { color: var(--navy); }

/* Hamburger */
.hamburger { display: flex; flex-direction: column; gap: 5px; padding: 10px; margin-left: auto; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; top: 0; right: 0; bottom: 0;
  width: min(80%, 300px); background: var(--white);
  box-shadow: -4px 0 24px rgba(4,36,79,.15); z-index: 150;
  padding: 80px 20px 20px; flex-direction: column; gap: 4px;
  transform: translateX(100%); transition: transform .3s;
}
.mobile-nav.open { display: flex; transform: translateX(0); }
.mobile-nav a, .mobile-nav button {
  display: block; padding: 12px 8px; font-size: 14px; font-weight: 600;
  color: var(--gray-700); border-bottom: 1px solid var(--gray-100);
  text-align: left; width: 100%;
}
.mobile-nav a:hover { color: var(--navy); }
.mobile-nav-sub { display: none; padding-left: 16px; }
.mobile-nav-sub.open { display: block; }
.mobile-nav-sub a { font-size: 13px; font-weight: 500; padding: 8px 8px; }
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.3); z-index: 140;
}
.mobile-overlay.open { display: block; }

/* Desktop only */
@media (min-width: 900px) {
  .nav-menu { display: flex; }
  .nav-actions { display: flex; }
  .hamburger { display: none; }
}

/* Main padding */
main { padding-top: var(--navbar-h); }
body.with-banner .navbar { top: 40px; }
body.with-banner main { padding-top: calc(var(--navbar-h) + 40px); }

/* === CAROUSEL === */
.carousel {
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  background: var(--gray-100);
}
.carousel-track { position: relative; width: 100%; padding-bottom: 44.5%; /* 712/1600 */ }
.carousel-slide { position: absolute; inset: 0; }
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--gray-100); }
.carousel-arrow { top: 50%; transform: translateY(-50%); }
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease;
  pointer-events: none;
}
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: background .15s; z-index: 10;
}
.carousel-arrow:hover { background: var(--white); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); border: 0; cursor: pointer; transition: background .2s, width .2s; }
.carousel-dot.active { background: var(--white); width: 20px; border-radius: 99px; }

/* === SECTIONS === */
.section { padding: 56px 0; }
.section-alt { background: var(--gray-100); }
.section-title { font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--navy); margin-bottom: 8px; }
.section-sub { color: var(--gray-500); margin-bottom: 32px; max-width: 600px; }

/* === PAGE HERO (interior pages) === */
.page-hero {
  background: var(--navy); color: var(--white); padding: 40px 0 32px;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 15px; max-width: 600px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* Industry banner image */
.industry-banner { width: 100%; overflow: hidden; background: var(--navy); }
.industry-banner img { width: 100%; height: auto; display: block; object-fit: contain; max-height: 300px; }

/* === PRODUCT GRID === */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.prod-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r); overflow: hidden; transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.prod-card img { width: 100%; height: 150px; object-fit: contain; object-position: center; padding: 12px; background: var(--gray-100); }
.prod-card-name { padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--navy); flex: 1; }

/* === CATALOG (home 3 columns) === */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 768px) { .catalog-grid { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 768px) { .catalog-grid { grid-template-columns: 1fr 1fr; } }
.catalog-col h3 { font-size: 14px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .5px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); margin-bottom: 12px; }
.catalog-col ul li a { display: block; padding: 5px 0; font-size: 13px; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); transition: color .15s, padding-left .15s; }
.catalog-col ul li a:hover { color: var(--navy); padding-left: 6px; }
.catalog-col .view-all { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--navy); }
.catalog-col .view-all:hover { text-decoration: underline; }

/* === INDUSTRY HUBS === */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.hub-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.hub-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.hub-card-banner { width: 100%; height: 100px; overflow: hidden; background: var(--navy); }
.hub-card-banner img { width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; }
.hub-card-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hub-card h3 { font-size: 15px; color: var(--navy); }
.hub-card p { font-size: 13px; color: var(--gray-500); flex: 1; }
.hub-card .hub-link { font-size: 13px; font-weight: 600; color: var(--navy); margin-top: 4px; }
.hub-card .hub-link:hover { text-decoration: underline; }

/* === PDF DOWNLOAD === */
.pdf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--white); font-size: 13px; font-weight: 600;
  padding: 10px 20px; border-radius: var(--r); transition: background .15s;
  margin-top: 24px;
}
.pdf-btn:hover { background: var(--navy-mid); }
.pdf-btn svg { flex-shrink: 0; }

/* === EMPRESA === */
.empresa-block { padding: 28px 0; border-bottom: 1px solid var(--gray-200); }
.empresa-block:last-child { border-bottom: 0; }
.empresa-block h2 { font-size: 1.1rem; color: var(--navy); margin-bottom: 12px; }
.empresa-block p { font-size: 15px; color: var(--gray-700); max-width: 800px; }

/* === CLIENTES === */
.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; align-items: center; }
.client-logo { display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r); height: 80px; }
.client-logo img { max-height: 48px; max-width: 100%; object-fit: contain; filter: grayscale(100%); opacity: .7; transition: filter .2s, opacity .2s; }
.client-logo:hover img { filter: grayscale(0); opacity: 1; }

/* === CONTACTO === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.form-input, .form-textarea {
  padding: 10px 12px; font-size: 14px; background: var(--gray-100);
  border: 1px solid transparent; border-radius: var(--r);
  transition: border-color .15s, background .15s;
}
.form-input:focus, .form-textarea:focus { outline: none; background: var(--white); border-color: var(--navy-mid); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); color: var(--white); font-size: 14px; font-weight: 600;
  padding: 12px 24px; border-radius: var(--r); transition: background .15s;
  cursor: pointer; border: 0;
}
.form-submit:hover { background: var(--navy-mid); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-msg { font-size: 13px; padding: 10px 14px; border-radius: var(--r); margin-top: 4px; }
.form-msg.ok { background: #e6f9f0; color: #1a7a4a; }
.form-msg.err { background: #fde8e8; color: #c0392b; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--gray-500); margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { font-size: 15px; color: var(--gray-700); }
.contact-info-item a:hover { color: var(--navy); }
.wa-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  background: #25D366; color: var(--white); font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--r);
}
.wa-btn:hover { background: #1ebe5d; }
.map-wrap { margin-top: 24px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--gray-200); }
.map-wrap iframe { display: block; width: 100%; height: 260px; }

/* === PRODUCT PAGE === */
.prod-page { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
@media (max-width: 700px) { .prod-page { grid-template-columns: 1fr; } }
.prod-img-wrap { background: var(--gray-100); border-radius: var(--r); padding: 24px; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.prod-img-wrap img { max-height: 200px; object-fit: contain; }
.prod-info h1 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); color: var(--navy); margin-bottom: 16px; }
.prod-desc { font-size: 15px; color: var(--gray-700); margin-bottom: 24px; line-height: 1.7; }
.prod-feats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.prod-feat { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-700); }
.prod-feat::before { content: '✓'; color: var(--navy); font-weight: 700; flex-shrink: 0; }
.prod-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: var(--white); font-size: 13px; font-weight: 600;
  padding: 10px 20px; border-radius: var(--r); transition: background .15s;
}
.btn-primary:hover { background: var(--navy-mid); }
.btn-wa {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25D366; color: var(--white); font-size: 13px; font-weight: 600;
  padding: 10px 20px; border-radius: var(--r);
}
.btn-wa:hover { background: #1ebe5d; }

/* Related products */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }

/* === FOOTER === */
.footer { background: var(--white); border-top: 1px solid var(--gray-200); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px; padding-bottom: 32px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 40px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--gray-500); line-height: 1.6; }
.footer h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--navy); margin-bottom: 14px; }
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer ul li a { font-size: 13px; color: var(--gray-500); transition: color .15s; }
.footer ul li a:hover { color: var(--navy); }
.footer-contact p, .footer-contact a { font-size: 13px; color: var(--gray-500); margin-bottom: 6px; display: block; }
.footer-contact a:hover { color: var(--navy); }
.footer-bottom {
  border-top: 1px solid var(--gray-200); padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--gray-500);
}
.footer-bottom a { color: var(--gray-500); }
.footer-bottom a:hover { color: var(--navy); }

/* === FAB WHATSAPP === */
.fab-wa {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}
.fab-wa:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,.5); }

/* Utilities */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.text-center { text-align: center; }
.text-navy { color: var(--navy); }

/* === LOGO SIZE FIX === */
.nav-logo img { height: 48px; width: auto; max-width: 200px; object-fit: contain; }
.footer-brand img { height: 48px; width: auto; max-width: 180px; object-fit: contain; margin-bottom: 14px; }

/* === WA BUTTON CONTACT FIX === */
.wa-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  background: #25D366; color: var(--white); font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: var(--r); transition: background .15s;
  border: 0; cursor: pointer; text-decoration: none;
}
.wa-btn:hover { background: #1ebe5d; color: var(--white); }


