/* ============================================================
   Pintu Clic — Home
   Paleta y tipografía tomadas del diseño de Figma
   ============================================================ */

/* Iconos Lucide: que los SVG se comporten como iconos de fuente */
svg.lucide {
  width: 1em; height: 1em;
  display: inline-block; vertical-align: -0.125em;
  flex-shrink: 0;
}
/* Números de paso (reemplazan fa-1..4 de la barra de pasos) */
.step-num { font-weight: 700; font-style: normal; }

:root {
  /* Colores de marca */
  --navy-900: #000928;
  --navy-800: #002855;
  --navy-700: #0b1f4d;
  --blue-500: #0877e8;
  --blue-600: #0866c9;
  --green-500: #04a115;
  --green-400: #41bf5a;
  --green-700: #1b6d24;
  --red-500: #d70505;
  --red-600: #ba1a1a;

  /* Neutros */
  --ink-900: #1b1b1f;
  --ink-700: #45464f;
  --ink-500: #6b7280;
  --ink-400: #9ca3af;
  --line: #e4e2e6;
  --line-2: #d1d5db;
  --bg: #fbf8fd;
  --white: #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 9, 40, .06), 0 1px 3px rgba(0, 9, 40, .05);
  --shadow-md: 0 6px 18px rgba(0, 9, 40, .08);
  --container: 1280px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-alt: 'Montserrat', var(--font);
}

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

body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ============ TOP BAR ============ */
.topbar {
  background: var(--navy-800);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 16px;
}
.topbar__benefits { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__benefits li { display: flex; align-items: center; gap: 6px; }
.topbar__benefits i { color: var(--green-400); }
.topbar__help { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.topbar__help a { display: inline-flex; align-items: center; gap: 6px; color: var(--green-400); }

/* ============ HEADER ============ */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.header .logo { margin-left: -48px; }
.logo__img { height: 64px; width: auto; display: block; }
.logo__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-800));
  color: #fff; border-radius: 10px; font-size: 18px;
}
.logo__text { font-size: 20px; color: var(--navy-700); }
.logo__text span { color: var(--blue-500); }

/* Logo en el footer: transparente, igual que en el header */
.logo__img--footer {
  height: 76px; width: auto;
}

.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav__link {
  font-size: 14px; font-weight: 500; color: var(--ink-700);
  position: relative; padding: 6px 0; transition: color .15s;
}
.nav__link:hover { color: var(--blue-500); }
.nav__link.is-active { color: var(--navy-700); font-weight: 700; }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--blue-500); border-radius: 2px;
}
.nav__link--offer {
  color: var(--red-500); font-weight: 700;
}

.header__actions { margin-left: auto; margin-right: -32px; display: flex; align-items: center; gap: 20px; }
.account { text-align: right; line-height: 1.25; }
.account__label { font-size: 12px; font-weight: 700; color: var(--ink-900); }
.account__link { font-size: 12px; color: var(--ink-500); }

.cart { display: flex; align-items: center; gap: 10px; }
.cart__icon {
  position: relative; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; background: #eef4fe; color: var(--blue-500); font-size: 16px;
}
.cart__badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--red-500); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}
.cart__meta { display: flex; flex-direction: column; line-height: 1.2; }
.cart__title { font-size: 12px; font-weight: 700; }
.cart__total { font-size: 12px; font-weight: 700; color: var(--green-500); }

.nav-toggle {
  display: none; background: none; border: 0; font-size: 22px; color: var(--navy-700); cursor: pointer;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background-color: var(--navy-800);
  background-image:
    linear-gradient(90deg, rgba(0,32,72,.96) 0%, rgba(0,32,72,.75) 32%, rgba(0,32,72,.15) 52%, rgba(0,32,72,0) 66%),
    url('../img/hero.jpeg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hero__inner {
  display: flex; align-items: center;
  gap: 40px; min-height: 440px; padding-top: 56px; padding-bottom: 56px;
}
.hero__content { max-width: 560px; }
.hero__content h1 { font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; text-shadow: 0 2px 12px rgba(0,9,40,.35); }
.hero__content p { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.9); margin-top: 18px; max-width: 480px; }
.hero__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; padding: 12px 24px; border-radius: 10px;
  cursor: pointer; border: 2px solid transparent; transition: transform .1s, background .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue-500); color: #fff; }
.btn--primary:hover { background: #fff; color: var(--blue-500); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; }

/* ============ SEARCH BAR ============ */
.searchbar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 14px;
  margin-top: -32px;
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.searchbar__field {
  flex: 1; min-width: 240px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 14px;
}
.searchbar__field i { color: var(--ink-400); }
.searchbar__field input {
  border: 0; outline: 0; background: transparent; width: 100%;
  font-family: var(--font); font-size: 14px; color: var(--ink-900);
}
.searchbar__filters { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--font); font-size: 12px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-700); transition: all .15s;
}
.chip:hover { border-color: var(--blue-500); color: var(--blue-500); }
.chip.is-active { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }

/* ============ BENEFITS ============ */
.benefits {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 24px;
}
.benefit {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
}
.benefit__icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 16px; color: #fff;
}
.benefit__icon--blue { background: var(--blue-500); }
.benefit__icon--navy { background: var(--navy-800); }
.benefit__icon--green { background: var(--green-500); }
.benefit strong { display: block; font-size: 13px; font-weight: 700; }
.benefit span { font-size: 12px; color: var(--ink-500); }

/* ============ SECTIONS ============ */
.section { margin-top: 56px; }
.section:last-of-type { margin-bottom: 64px; }
.section__head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px;
}
.section__head h2 { font-size: 22px; font-weight: 700; color: var(--navy-700); }
.link-all { font-size: 12px; font-weight: 600; color: var(--blue-500); display: inline-flex; align-items: center; gap: 6px; }
.link-all:hover { text-decoration: underline; }

/* ============ PRODUCTS ============ */
.products {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s;
}
.product:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product__media {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center;
  font-size: 46px; color: #cfd8e6; background: linear-gradient(135deg, #f2f6fc, #e9eef7);
}
.product__badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--red-500); color: #fff; font-size: 10px; font-weight: 700;
  padding: 4px 8px; border-radius: 999px;
}
.product__fav {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--ink-400); font-size: 13px;
}
.product__body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.product__title { font-size: 13px; font-weight: 700; color: var(--ink-900); }
.product__desc { font-size: 12px; color: var(--ink-500); margin-top: 6px; flex: 1; }
.product__prices { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.product__price { font-size: 18px; font-weight: 700; color: var(--navy-700); }
.product__old { font-size: 12px; color: var(--ink-400); text-decoration: line-through; }
.product__actions { margin-top: 12px; display: flex; align-items: stretch; gap: 8px; }
.product__btn {
  flex: 1;
  font-family: var(--font); font-size: 12px; font-weight: 600;
  background: #fff; color: var(--blue-500); border: 1px solid var(--blue-500); border-radius: 8px; padding: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, color .15s;
}
.product__btn:hover { background: var(--blue-500); color: #fff; }
.product__cart {
  flex: 0 0 auto; width: 42px;
  background: var(--green-500); color: #fff; border: 0; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; transition: background .15s;
}
.product__cart:hover { background: var(--green-700); }

/* ============ CATEGORIES ============ */
.categories {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.category {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 140px; padding: 22px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
}
.category:nth-child(2) { background: linear-gradient(135deg, #0e5aa8, var(--blue-500)); }
.category:nth-child(3) { background: linear-gradient(135deg, var(--green-700), var(--green-500)); }
.category:nth-child(4) { background: linear-gradient(135deg, var(--red-600), #e8622a); }
.category:nth-child(5) { background: linear-gradient(135deg, #5b3ba8, #8b5cf6); }
.category:nth-child(6) { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); }

/* Categoría con imagen de fondo (el degradado + url se aplican inline en el JS) */
.category--img { background-size: cover; background-position: center; }
.category__icon { font-size: 30px; opacity: .9; }
.category__name { font-size: 18px; font-weight: 700; margin-top: 10px; }
.category__link { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; opacity: .95; }
.category:hover .category__link { gap: 10px; }

/* ============ FOOTER ============ */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.75);
  font-family: var(--font-alt);
  margin-top: 40px;
}
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-top: 54px; padding-bottom: 40px;
}
.footer__brand p { font-size: 14px; margin-top: 16px; max-width: 320px; }
.logo--footer .logo__text { color: #fff; font-family: var(--font-alt); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: #fff; transition: background .15s;
}
.socials a:hover { background: var(--blue-500); }

.footer__col h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col a { font-size: 14px; transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__contact li { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.footer__contact i { color: var(--blue-500); width: 16px; }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer__bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
}
.footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__legal a:hover { color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav, .account { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px;
    box-shadow: var(--shadow-md);
  }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .hero__content h1 { font-size: 32px; }
  .hero__inner { min-height: 380px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .topbar__benefits li:nth-child(n+2) { display: none; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: 1fr; }
  .categories { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__content h1 { font-size: 28px; }
  .hero__inner { padding-top: 44px; padding-bottom: 44px; min-height: 320px; }
  /* En móvil el producto queda detrás del texto: reforzamos el oscurecido */
  .hero {
    background-image:
      linear-gradient(180deg, rgba(0,32,72,.92) 0%, rgba(0,32,72,.7) 55%, rgba(0,32,72,.55) 100%),
      url('../img/hero.jpeg');
    background-position: center center;
  }
}
