/* ============================================================
   DISTRIBUCIONES SILVANA — style.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1565C0;
  --blue-dark:   #0A1628;
  --blue-mid:    #1976D2;
  --blue-light:  #E3F2FD;
  --red:         #E53935;
  --red-light:   #FFEBEE;
  --yellow:      #FFB300;
  --yellow-light:#FFF8E1;
  --white:       #FFFFFF;
  --gray-50:     #F8FAFC;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-400:    #94A3B8;
  --gray-500:    #64748B;
  --gray-700:    #334155;
  --gray-800:    #1E293B;
  --gray-900:    #0F172A;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.11), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 64px rgba(0,0,0,.14), 0 8px 20px rgba(0,0,0,.08);

  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --ease: cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--red) 50%, var(--yellow) 100%);
  width: 0%;
  z-index: 9999;
  transition: width .08s linear;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}

.nav.scrolled {
  background: rgba(10,22,40,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: .55rem 0;
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo { flex-shrink: 0; transition: opacity .2s; }
.nav__logo:hover { opacity: .85; }

.nav__links {
  display: flex;
  align-items: center;
  gap: .2rem;
}

.nav__link {
  padding: .5rem .9rem;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: white; background: rgba(255,255,255,.1); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  background: #25D366;
  color: white;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 9px;
  margin-left: .5rem;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.nav__cta:hover {
  background: #1ebe5c;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,211,102,.4);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  z-index: 1001;
}
.nav__hamburger span {
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  display: block;
  transition: all .3s var(--ease);
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: blobFloat 9s ease-in-out infinite alternate;
}
.hero__blob--1 {
  width: 700px; height: 700px;
  background: var(--blue-mid);
  top: -260px; left: -180px;
  opacity: .3;
  animation-duration: 11s;
}
.hero__blob--2 {
  width: 420px; height: 420px;
  background: var(--red);
  top: 45%; right: -120px;
  transform: translateY(-50%);
  opacity: .18;
  animation-duration: 13s;
  animation-delay: -5s;
}
.hero__blob--3 {
  width: 320px; height: 320px;
  background: var(--yellow);
  bottom: -100px; left: 42%;
  opacity: .15;
  animation-duration: 8s;
  animation-delay: -3s;
}

@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -70px) scale(1.2); }
}
.hero__blob--2 { animation-name: blobFloat2; }
@keyframes blobFloat2 {
  0%   { transform: translateY(-50%) translate(0,0) scale(1); }
  100% { transform: translateY(-50%) translate(-40px, 50px) scale(1.1); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .375rem 1rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 100px;
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
}

.hero__title {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  line-height: 1;
  gap: .05em;
}

.hero__title-sm {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 700;
  font-style: italic;
  color: rgba(255,255,255,.65);
  letter-spacing: -.01em;
}

.hero__title-lg {
  font-family: var(--font-display);
  font-size: clamp(4rem, 13vw, 10.5rem);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.025em;
  background: linear-gradient(140deg, #ffffff 0%, #FFD54F 55%, #E53935 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,.6);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: .875rem;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.scroll-dot {
  width: 2px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  border-radius: 2px;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: .35; transform: scaleY(.4); transform-origin: top; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background .2s, transform .2s, box-shadow .2s, border-color .2s;
  line-height: 1;
}

.btn--primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21,101,192,.45);
}

.btn--outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.35);
}
.btn--outline:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.65);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: #25D366;
  color: white;
  border-color: #25D366;
}
.btn--whatsapp:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
}

.btn--lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--blue-dark);
  padding: 3.5rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1.5rem;
  position: relative;
  transition: background .2s;
}
.stat-item::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,.08);
}
.stat-item:last-child::after { display: none; }

.stat-row {
  display: flex;
  align-items: baseline;
  gap: .1rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.stat-suf {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}

.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin-top: .4rem;
  font-weight: 400;
  letter-spacing: .01em;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
  display: inline-block;
  padding: .28rem .875rem;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: .875rem;
}
.section-tag--light {
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.85);
}
.why-tag {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: .75rem;
}
.section-title--light { color: white; }

.section-desc {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   CATALOG SECTIONS
   ============================================================ */
.catalog-section {
  padding: 6rem 0;
  background: var(--gray-50);
}
.catalog-section--alt { background: white; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.catalog-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 840px;
  margin: 0 auto;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  border: 1px solid var(--gray-100);
}
.catalog-section--alt .product-card { background: var(--gray-50); }

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-xl);
}

.product-card__icon {
  padding: 2rem;
  background: color-mix(in srgb, var(--c, #1565C0) 7%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--c, #1565C0) 10%, transparent);
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-card__icon svg { width: 76px; height: 76px; }

.product-card--lg .product-card__icon { padding: 2.5rem; }
.product-card--lg .product-card__icon svg { width: 100px; height: 100px; }

.product-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .6rem;
}

.product-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
}

.product-card__desc {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.65;
  flex: 1;
}

.product-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .85rem;
  color: var(--gray-700);
  margin-top: .25rem;
}

.product-card__btn {
  display: inline-flex;
  align-items: center;
  padding: .575rem 1.2rem;
  background: var(--blue);
  color: white;
  font-size: .84rem;
  font-weight: 600;
  border-radius: 9px;
  align-self: flex-start;
  margin-top: .5rem;
  transition: background .2s, transform .2s;
}
.product-card__btn:hover {
  background: var(--blue-mid);
  transform: translateX(4px);
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us {
  padding: 6rem 0;
  background: linear-gradient(150deg, var(--blue-dark) 0%, #0b2d6e 100%);
  position: relative;
  overflow: hidden;
}
.why-us::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,179,0,.06);
  top: -200px; right: -100px;
  pointer-events: none;
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.why-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background .3s, transform .3s, border-color .3s;
  backdrop-filter: blur(6px);
}
.why-card:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-5px);
  border-color: rgba(255,179,0,.35);
}

.why-card__icon { font-size: 2.6rem; display: block; margin-bottom: 1rem; }

.why-card h3 {
  font-size: .975rem;
  font-weight: 700;
  color: white;
  margin-bottom: .5rem;
}

.why-card p {
  font-size: .84rem;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  padding: 6rem 0;
  background: linear-gradient(140deg, #0A1628 0%, #1565C0 100%);
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: rgba(229,57,53,.1);
  right: -280px; top: -280px;
  pointer-events: none;
}
.contact-section::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,179,0,.07);
  left: -150px; bottom: -150px;
  pointer-events: none;
}

.contact-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-section__lead {
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.contact-info__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.75);
  font-size: .975rem;
}
.contact-info__icon { font-size: 1.2rem; }

.whatsapp-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.whatsapp-card__icon {
  width: 84px; height: 84px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 32px rgba(37,211,102,.45);
}

.whatsapp-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: .35rem;
}

.whatsapp-card__sub {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.75rem;
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.float-wa {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37,211,102,.55);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.7);
}
.float-wa::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(37,211,102,.25);
  animation: waPulse 2.5s ease-in-out infinite;
}
@keyframes waPulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50%       { transform: scale(1.35); opacity: 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  padding: 4.5rem 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer__brand p {
  color: rgba(255,255,255,.35);
  font-size: .875rem;
  line-height: 1.75;
  margin-top: 1rem;
  max-width: 260px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.footer__links strong {
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: .25rem;
  display: block;
}
.footer__links a {
  color: rgba(255,255,255,.38);
  font-size: .875rem;
  transition: color .2s;
}
.footer__links a:hover { color: var(--yellow); }

.footer__bottom {
  padding: 1.25rem 1.5rem;
  text-align: center;
  color: rgba(255,255,255,.2);
  font-size: .78rem;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal,
.reveal-left,
.reveal-right,
.fade-up {
  opacity: 0;
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal      { transform: translateY(36px); }
.reveal-left { transform: translateX(-52px); }
.reveal-right{ transform: translateX(52px); }
.fade-up     { transform: translateY(22px); }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.fade-up.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .catalog-grid          { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid--2       { grid-template-columns: 1fr; }
  .why-us__grid          { grid-template-columns: repeat(2, 1fr); }
  .stats-strip__grid     { grid-template-columns: repeat(2, 1fr); }
  .contact-section__inner{ grid-template-columns: 1fr; gap: 3rem; }
  .footer__inner         { grid-template-columns: 1fr 1fr; }
  .footer__brand         { grid-column: 1 / -1; }
  .stat-item::after      { display: none; }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(10,22,40,.98);
    backdrop-filter: blur(20px);
    padding: 5.5rem 2rem 2.5rem;
    gap: .375rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
  }
  .nav__links.open { display: flex; }
  .nav__link { padding: .7rem 1rem; font-size: 1rem; width: 100%; }
  .nav__cta  { width: 100%; justify-content: center; padding: .8rem; font-size: .95rem; }
  .nav__hamburger { display: flex; }

  .catalog-grid          { grid-template-columns: 1fr; }
  .why-us__grid          { grid-template-columns: repeat(2, 1fr); }
  .hero__actions         { flex-direction: column; align-items: flex-start; }
  .hero__title-lg        { font-size: clamp(3.5rem, 16vw, 6rem); }
}

@media (max-width: 480px) {
  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .why-us__grid      { grid-template-columns: 1fr; }
  .footer__inner     { grid-template-columns: 1fr; }
  .contact-section   { padding: 4rem 0; }
  .catalog-section   { padding: 4rem 0; }
}
