﻿@font-face {
  font-family: "Montserrat";
  src: url("Fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
}

@font-face {
  font-family: "Montserrat";
  src: url("Fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

@font-face {
  font-family: "Montserrat";
  src: url("Fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --finilager-blue: #002856;
  --finilager-red: #e1251b;
  --finilager-gray: #9aa4af;
  --ink: #132336;
  --muted: #627184;
  --line: #dde3ea;
  --surface: #f6f8fa;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(1, 46, 86, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  background: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  min-height: 78px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.brand-preciso {
  width: min(230px, 42vw);
}

.brand-finilager {
  width: 124px;
}

.brand-divider {
  width: 1px;
  height: 34px;
  background: var(--line);
}

.site-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--finilager-blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.header-whatsapp,
.primary-action,
.secondary-action,
.quote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.header-whatsapp,
.primary-action,
.quote-button {
  border: 1px solid var(--finilager-red);
  color: var(--white);
  background: var(--finilager-red);
}

.header-whatsapp {
  padding: 0 18px;
  white-space: nowrap;
}

.secondary-action {
  border: 1px solid var(--finilager-blue);
  color: var(--finilager-blue);
  background: var(--white);
  padding: 0 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  min-height: calc(100vh - 78px);
  padding: clamp(40px, 7vw, 92px) clamp(18px, 5vw, 72px) 44px;
  color: var(--white);
  background:
    linear-gradient(112deg, rgba(0, 40, 86, 0.98) 0%, rgba(0, 40, 86, 0.86) 54%, rgba(225, 37, 27, 0.9) 100%),
    url("PRECISO DE PRECIOS 2026.pdf");
}

.hero-logo {
  width: min(520px, 78vw);
  margin-bottom: 26px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--finilager-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffffff;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero h1 strong {
  color: #ffffff;
  text-shadow: 4px 4px 0 var(--finilager-red);
}

.hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  padding-inline: 22px;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.hero-panel div {
  min-height: 128px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel span {
  display: block;
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
}

.hero-panel small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

.promo-strip {
  padding: 18px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--finilager-red);
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  line-height: 1.55;
}

.controls-section,
.pdf-section,
.asset-section {
  padding: clamp(44px, 6vw, 72px) clamp(18px, 5vw, 72px);
}

.controls-section,
.asset-section {
  background: var(--surface);
}

.pdf-section {
  background: var(--white);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  color: var(--finilager-blue);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.product-tools {
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--finilager-blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--finilager-blue);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--white);
  cursor: pointer;
}

.filter-tabs button.is-active {
  border-color: var(--finilager-blue);
  color: var(--white);
  background: var(--finilager-blue);
}

.catalog-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.product-card {
  display: grid;
  grid-template-rows: 210px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(19, 35, 54, 0.06);
}

.product-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f5 100%);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--finilager-red);
  box-shadow: 0 8px 20px rgba(225, 37, 27, 0.22);
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 6px;
  padding: 0 9px;
  color: var(--finilager-blue);
  font-size: 0.72rem;
  font-weight: 700;
  background: #eef2f5;
}

.product-card h3 {
  min-height: 52px;
  margin: 0;
  color: var(--finilager-blue);
  font-size: 0.98rem;
  line-height: 1.34;
  letter-spacing: 0;
}

.product-card p {
  min-height: 58px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.quote-button {
  width: 100%;
  min-height: 42px;
  font-size: 0.88rem;
}

.pdf-frame {
  width: 100%;
  min-height: min(82vh, 820px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.asset-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.asset-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--finilager-blue);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--white);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.asset-item {
  display: grid;
  grid-template-rows: 140px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.asset-item div {
  display: grid;
  place-items: center;
  padding: 10px;
  background: #f1f4f7;
}

.asset-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.asset-item span {
  padding: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--white);
  background: var(--finilager-blue);
}

.site-footer img {
  width: 150px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #ffffff;
}

.site-footer p {
  margin: 0;
  font-weight: 600;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 6px;
  padding: 0 18px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  background: #1fae59;
  box-shadow: 0 12px 30px rgba(31, 174, 89, 0.32);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel {
    margin-top: 34px;
  }

  .product-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-divider,
  .brand-finilager {
    display: none;
  }

  .header-whatsapp {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 13vw, 4.3rem);
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .pdf-frame {
    min-height: 520px;
  }

  .floating-whatsapp {
    left: 18px;
  }
}

/* Ajustes solicitados: FINIBOT, logo superior y productos estandar */
.site-header {
  grid-template-columns: minmax(280px, 1fr) auto auto;
  background: rgba(255, 255, 255, 0.98);
}

.brand-finilager {
  width: clamp(168px, 16vw, 230px);
  padding: 6px 8px;
  border-radius: 6px;
  background: #ffffff;
}

.brand-preciso {
  width: clamp(104px, 12vw, 160px);
}

.hero {
  position: relative;
  align-items: center;
  color: var(--finilager-blue);
  background:
    radial-gradient(circle at 82% 24%, rgba(154, 164, 175, 0.24) 0 4px, transparent 5px 24px),
    radial-gradient(circle at 82% 24%, transparent 0 44px, rgba(154, 164, 175, 0.22) 45px 47px, transparent 48px 86px),
    radial-gradient(circle at 92% 72%, transparent 0 34px, rgba(0, 40, 86, 0.12) 35px 38px, transparent 39px 74px),
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 250, 0.94) 60%, rgba(154, 164, 175, 0.22) 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(-120px, -6vw, -42px);
  top: 50%;
  width: min(48vw, 560px);
  aspect-ratio: 1;
  border: clamp(28px, 4vw, 48px) solid rgba(0, 40, 86, 0.08);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: min(500px, 78vw);
  padding: 10px 0;
  filter: none;
}

.hero .eyebrow,
.hero h1,
.hero p {
  color: var(--finilager-blue);
}

.hero h1 strong {
  color: var(--finilager-red);
  text-shadow: none;
}

.hero-panel {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.hero-panel div {
  background: rgba(255, 255, 255, 0.72);
}

.hero-panel span {
  color: var(--finilager-red);
}

.hero-panel small {
  color: var(--finilager-blue);
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  align-items: stretch;
}

.product-card {
  grid-template-rows: 246px 1fr;
  height: 548px;
}

.product-image {
  height: 246px;
  min-height: 0;
  overflow: hidden;
  padding: 22px;
  background: #ffffff;
}

.product-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 188px;
  object-fit: contain;
}

.product-body {
  grid-template-rows: auto 58px 88px auto;
}

.product-card h3,
.product-card p {
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.product-card h3 {
  -webkit-line-clamp: 2;
}

.product-card p {
  -webkit-line-clamp: 4;
}

.header-whatsapp,
.primary-action,
.quote-button {
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .brand-finilager {
    display: block;
    width: 164px;
  }

  .brand-preciso,
  .brand-divider {
    display: none;
  }

  .product-card {
    height: 526px;
  }
}
