@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ============================================================
   PLASTPOL — VANGUARD DESIGN SYSTEM 2026
   ============================================================ */

:root {
  /* Color Palette - Premium Dark Mode / Industrial Elegance */
  --bg-base: #030712;
  /* Very dark navy/black */
  --bg-surface: #0f172a;
  /* Slate 900 */
  --bg-elevated: #1e293b;
  /* Slate 800 */

  --accent-primary: #f97316;
  /* Vibrant Orange */
  --accent-hover: #ea580c;
  --accent-glow: rgba(249, 115, 22, 0.4);

  --brand-blue: #2563eb;
  --brand-blue-glow: rgba(37, 99, 235, 0.3);

  --text-primary: #f8fafc;
  --text-muted: #94a3b8;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Metrics & Easing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.3s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);

  --container-width: 1280px;
}

/* ── GLOBALS ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent {
  color: var(--accent-primary);
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition-fast);
  box-shadow: 0 8px 32px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
  background: var(--accent-hover);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.btn-outline:hover {
  background: #fff;
  color: var(--bg-base);
  transform: translateY(-3px);
}

/* ── GLASS HEADER ── */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.header.scrolled {
  padding-top: 5px;
  padding-bottom: 5px;
  background: rgba(3, 7, 18, 0.9);
}

.header__top {
  display: none;
}

/* Removed top bar for sleeker look */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar__logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  /* El logo original sin filtros se ve mejor, o si se necesita blanco usar filter: brightness(0) invert(1); */
}

/* Search Box */
.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
  margin: 0 40px;
}

.search-box__form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 12px 20px 12px 48px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}

.search-box__input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-box__btn {
  position: absolute;
  left: 16px;
  background: none;
  color: var(--text-muted);
  font-size: 18px;
  pointer-events: none;
}

/* Desktop Links */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
}

.navbar__links a:hover,
.navbar__links a.active {
  color: #fff;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition-fast);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

.navbar__cta-btn {
  background: #fff !important;
  color: var(--bg-base) !important;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
}

.navbar__cta-btn::after {
  display: none;
}

.navbar__cta-btn:hover {
  background: var(--accent-primary) !important;
  color: #fff !important;
}

/* Mobile Menu */
.hamburger {
  display: none;
  color: #fff;
  font-size: 24px;
  background: none;
  z-index: 1001;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-slow);
  transform: translateY(-20px);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-menu a {
  font-size: 24px;
  font-family: var(--font-heading);
  font-weight: 700;
}

/* ── SEARCH RESULTS DROPDOWN ── */
.search-results {
  position: absolute;
  top: 120%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-fast);
  z-index: 100;
  overflow: hidden;
}

.search-results.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-results__list {
  max-height: 400px;
  overflow-y: auto;
}

.search-results__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s;
}

.search-results__item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.search-results__thumb img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.search-results__info {
  flex: 1;
}

.search-results__name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #fff;
}

.search-results__meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── HERO VANGUARD ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background: radial-gradient(circle at 50% -20%, #1e3a8a 0%, var(--bg-base) 60%);
}

/* Abstract Grid Background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border-subtle) 1px, transparent 1px), linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.2;
  transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 24px;
  align-items: center;
  gap: 8px;
}

.hero__badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
}

.hero__desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 24px 0 40px;
  max-width: 500px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Spline/3D Image Placeholder Area */
.hero__image-col {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
}

.hero__glow--orange {
  background: rgba(249, 115, 22, 0.15);
  top: 10%;
  right: 10%;
}

.hero__glow--blue {
  background: rgba(37, 99, 235, 0.2);
  bottom: 10%;
  left: 10%;
}

.hero__product-img {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 500px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
}

.hero__glass-card {
  position: absolute;
  bottom: 40px;
  left: -20px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  animation: float 5s ease-in-out infinite reverse;
}

.hero__glass-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ── SECTIONS GENERIC ── */
.section-padding {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 700px;
  margin-inline: auto;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* ── BENTO GRID (Benefits) ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 24px;
}

.bento-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.bento-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
}

.bento-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-5px);
}

.bento-item:hover::before {
  opacity: 1;
}

.bento-item:nth-child(1) {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
}

.bento-item:nth-child(4) {
  grid-column: span 2;
}

.bento-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
  margin-bottom: auto;
}

.bento-item h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #fff;
}

.bento-item p {
  color: var(--text-muted);
  max-width: 80%;
}

/* ── PRODUCT CARDS (Premium) ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-card__image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.product-card__image img {
  max-height: 100%;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  transition: var(--transition-slow);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05) rotate(2deg);
}

.product-card__badge {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
}

.product-card__category {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card__name {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: #fff;
  line-height: 1.3;
  font-family: var(--font-heading);
}

.product-card__specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.product-card__spec {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.product-card__spec svg {
  color: var(--accent-primary);
}

.product-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.product-card__price {
  display: flex;
  flex-direction: column;
}

.product-card__price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-heading);
}

.product-card__price-unit {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card__cta {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  border: 1px solid var(--border-strong);
  color: #fff;
}

.product-card:hover .product-card__cta {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--brand-blue-glow);
}

/* ── MARQUEE (Infinite Scroll) ── */
.marquee {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--bg-surface);
  display: flex;
  white-space: nowrap;
}

.marquee__inner {
  display: flex;
  animation: marquee 20s linear infinite;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin: 0 40px;
  font-size: 1.5rem;
  font-weight: 900;
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
}

.marquee__item .star {
  color: var(--accent-primary);
  -webkit-text-stroke: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ── SIDEBAR CATALOG ── */
.catalog-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.sidebar {
  background: var(--bg-surface);
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  position: sticky;
  top: 120px;
  height: max-content;
}

.sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: #fff;
}

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: var(--transition-fast);
  margin-bottom: 8px;
  border: 1px solid transparent;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.filter-btn.active {
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent-primary);
  border-color: rgba(249, 115, 22, 0.2);
}

/* ── BRANCHES ENHANCED ── */
.branch-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 400px;
  transition: var(--transition-slow);
}

.branch-row:hover {
  border-color: var(--border-strong);
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.branch-info {
  padding: 48px;
}

.branch-tag {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 24px;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.branch-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.branch-detail svg {
  color: var(--brand-blue);
  width: 24px;
  height: 24px;
}

.branch-detail strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.branch-map-wrapper {
  background: var(--bg-elevated);
  position: relative;
  border-left: 1px solid var(--border-subtle);
}

/* ── FOOTER ── */
.footer {
  background: #010308;
  padding: 100px 0 40px;
  border-top: 1px solid var(--border-subtle);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer__brand p {
  color: var(--text-muted);
  margin-top: 24px;
  max-width: 300px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul a {
  color: var(--text-muted);
}

.footer ul a:hover {
  color: var(--accent-primary);
}

.footer__bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 14px;
}

/* ── ANIMATIONS & UTILS ── */
@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }

  70% {
    box-shadow: 0 0 0 20px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
  }

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

  .bento-item:nth-child(1),
  .bento-item:nth-child(4) {
    grid-column: span 1;
  }

  .catalog-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {

  .navbar__links,
  .search-box {
    display: none;
  }

  .hamburger {
    display: block;
  }

  h1 {
    font-size: 2.5rem;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .branch-row {
    grid-template-columns: 1fr;
  }

  .branch-map-wrapper {
    height: 300px;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }

  .branch-info {
    padding: 32px 24px;
  }
}

/* ── WHATSAPP FLOATING BUTTON ── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0px 10px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}