/* =====================================================================
   Aluminios Ruta 5 · Home
   ===================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 0 2.5rem;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__grid { position: absolute; inset: 0; mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%); }
.hero__sheen {
  position: absolute; inset: -20% -10%;
  background:
    radial-gradient(60% 50% at 78% 38%, rgba(10, 127, 190, .35), transparent 70%),
    radial-gradient(40% 40% at 20% 80%, rgba(10, 127, 190, .12), transparent 70%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0) 0 22px, rgba(255, 255, 255, .025) 22px 23px);
  animation: sheen 18s ease-in-out infinite alternate;
}
@keyframes sheen { to { transform: translate3d(2%, -2%, 0) rotate(1deg); } }

.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__eyebrow { color: var(--alu-300); }
.hero__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(10, 127, 190, .25); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(10, 127, 190, 0); } }
.hero__title {
  margin-top: 1.4rem;
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .98;
  font-stretch: 105%;
}
.hero__word { color: var(--blue); font-stretch: 118%; font-weight: 800; white-space: nowrap; }
.hero__lead { margin-top: 1.6rem; max-width: 52ch; font-size: var(--text-lg); color: var(--alu-300); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }

.hero__visual { position: relative; min-height: 420px; }
.hero__profile {
  position: absolute; left: -14%; top: -16%; width: 92%; max-width: 560px;
  color: rgba(255, 255, 255, .6);
  filter: drop-shadow(0 0 30px rgba(10, 127, 190, .15));
}
.hp { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 3.2s var(--ease-out) forwards; }
.hp-2 { animation-delay: .3s; } .hp-3 { animation-delay: .5s; } .hp-4 { animation-delay: .7s; } .hp-5 { animation-delay: .9s; } .hp-6 { animation-delay: 1.1s; } .hp-7 { animation-delay: 1.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__card {
  position: relative; margin: 14% 0 0 6%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotate(-2deg);
  transition: transform 1s var(--ease-out);
}
.hero__card:hover { transform: rotate(0); }
.hero__card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.hero__chip {
  position: absolute; left: 1rem; bottom: 1rem;
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem .9rem .65rem .75rem;
  border-radius: 999px;
  background: rgba(11, 11, 13, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; font-size: .85rem; line-height: 1.15;
}
.hero__chip-dot { width: 10px; height: 10px; border-radius: 50%; background: #22b573; box-shadow: 0 0 0 4px rgba(34, 181, 115, .25); flex: none; }
.hero__chip strong { display: block; font-family: var(--font-display); font-weight: 600; }
.hero__chip small { color: var(--alu-400); font-size: .75rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero__stats li { padding: 1.4rem 1.25rem 0 0; border-right: 1px solid rgba(255, 255, 255, .12); margin-right: 1.25rem; }
.hero__stats li:last-child { border-right: 0; margin-right: 0; }
.hero__stats strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.hero__stats span { display: block; margin-top: .25rem; font-size: .85rem; color: var(--alu-400); }

@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; margin-top: 1rem; }
  .hero__profile { display: none; }
  .hero__card { margin: 0; transform: none; max-width: 560px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stats li:nth-child(2) { border-right: 0; margin-right: 0; }
}
@media (max-width: 560px) {
  .hero { padding-top: calc(var(--nav-h) + 1.5rem); min-height: 0; }
  .hero__br { display: none; }
  .hero__title { font-size: clamp(2.6rem, 12.5vw, 3.4rem); }
  .hero__lead { font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__profile { display: none; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .hero__stats li { padding: 1rem 0 0; border-right: 0; margin-right: 0; }
  .hero__stats strong { font-size: .95rem; }
  .hero__stats span { font-size: .78rem; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--blue); color: #fff; overflow: hidden; padding: .85rem 0; }
.marquee__track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.marquee__track i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Categorías (bento) ---------- */
.cats { background: var(--white); }
.cats__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(300px, auto); gap: 1rem; }
.cat {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--alu-50);
  border: 1px solid var(--alu-200);
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s, background .3s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--alu-300); background: #fff; }
.cat--big { grid-column: span 2; grid-row: span 1; }
.cat:nth-child(4) { grid-column: span 2; }
.cat:not(.cat--big) { min-height: 360px; padding-top: 9.5rem; }
.cat__num { position: absolute; top: 1.4rem; left: 1.6rem; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .12em; color: var(--blue); }
.cat__body { position: relative; z-index: 1; max-width: 32ch; }
.cat__body h3 { font-size: var(--text-xl); }
.cat__body p { margin: .6rem 0 1rem; color: var(--alu-700); font-size: .95rem; }
.cat__art {
  position: absolute; right: 4%; top: 1.2rem; width: 46%; max-width: 220px;
  opacity: .9; transition: transform .7s var(--ease-out);
}
.cat--big .cat__art { width: 40%; max-width: 320px; right: 4%; top: 12%; }
.cat:nth-child(4) .cat__art { max-width: 260px; top: 8%; }
.cat:hover .cat__art { transform: translateY(-6px) scale(1.03); }
@media (max-width: 900px) {
  .cats__grid { grid-template-columns: 1fr 1fr; }
  .cat--big, .cat:nth-child(4) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .cats__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .cat, .cat--big, .cat:nth-child(4) { grid-column: span 1; min-height: 0; padding: 1.4rem; padding-top: 7rem; }
  .cat__art, .cat--big .cat__art, .cat:nth-child(4) .cat__art { width: 40%; right: 4%; top: 1rem; max-width: 150px; }
}

/* ---------- Destacados ---------- */
.featured { background: var(--alu-50); border-top: 1px solid var(--alu-200); border-bottom: 1px solid var(--alu-200); }
.featured__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.featured__head h2 { font-size: var(--text-2xl); margin-top: .6rem; }
.featured__scroller { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.featured__scroller::-webkit-scrollbar { display: none; }
.featured__track {
  display: flex; gap: 1rem;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  width: max-content;
}
.featured__track::after { content: ""; flex: none; width: 1px; }
.featured__card { width: 290px; flex: none; scroll-snap-align: start; }
.featured__skel { width: 290px; height: 360px; flex: none; }
.featured__more {
  flex: none; width: 220px; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .75rem;
  padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--ink); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.15;
  transition: background .3s;
}
.featured__more svg { width: 28px; height: 28px; transition: transform .3s var(--ease-out); }
.featured__more:hover { background: var(--blue); }
.featured__more:hover svg { transform: translateX(6px); }
.featured__empty { padding: 2rem 0; color: var(--alu-700); }
@media (max-width: 560px) {
  .featured__card { width: 78vw; max-width: 300px; }
  .featured__head { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

/* ---------- Nave / Stock ---------- */
.nave { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.nave::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 120px, rgba(255, 255, 255, .03) 120px 121px);
  pointer-events: none;
}
.nave__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; position: relative; }
.nave__media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.nave__media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; filter: saturate(.55) contrast(1.05); }
.nave__media figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem .9rem; border-radius: 999px;
  background: rgba(11, 11, 13, .7); backdrop-filter: blur(10px);
  font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.nave__copy h2 { font-size: var(--text-3xl); margin-top: 1rem; }
.nave__text { margin-top: 1.2rem; color: var(--alu-300); font-size: var(--text-lg); }
.nave__list { display: grid; gap: 1.1rem; margin: 2rem 0; }
.nave__list li { display: flex; gap: 1rem; align-items: flex-start; }
.nave__list svg { width: 44px; height: 44px; padding: 10px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: var(--blue); }
.nave__list strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.nave__list span { color: var(--alu-400); font-size: .92rem; }
@media (max-width: 900px) { .nave__inner { grid-template-columns: 1fr; } }

/* ---------- Envíos ---------- */
.envios { background: var(--alu-50); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step {
  position: relative; padding: 1.8rem 1.6rem 1.6rem;
  background: #fff; border: 1px solid var(--alu-200); border-radius: var(--radius-lg);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .12em; color: var(--blue); }
.step__art { margin: 1.2rem 0 1.4rem; color: var(--ink); }
.step__art svg { width: 140px; height: auto; }
.step h3 { font-size: var(--text-xl); }
.step p { margin-top: .6rem; color: var(--alu-700); font-size: .95rem; }
.envios__note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1rem; padding: 1.4rem 1.6rem;
  background: var(--blue-100); border-radius: var(--radius-lg);
  color: var(--blue-700);
}
.envios__note p { max-width: 62ch; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step__art svg { width: 120px; } }

/* ---------- Por qué aluminio ---------- */
.why { background: #fff; }
.why__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.why__copy h2 { font-size: var(--text-3xl); margin-top: 1rem; }
.why__copy > p { margin-top: 1.2rem; color: var(--alu-700); font-size: var(--text-lg); max-width: 56ch; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; margin-top: 2.2rem; }
.why__list li { display: flex; gap: .9rem; padding-top: 1rem; border-top: 1px solid var(--alu-200); }
.why__list span { font-family: var(--font-display); font-weight: 700; font-size: .8rem; color: var(--blue); letter-spacing: .1em; padding-top: .2rem; }
.why__list strong { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.why__list p { margin-top: .3rem; color: var(--alu-700); font-size: .9rem; }
.why__media { position: sticky; top: calc(var(--nav-h) + 1.5rem); margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.why__media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.why__media figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .5rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); font-size: .8rem; font-weight: 500; }
@media (max-width: 900px) {
  .why__inner { grid-template-columns: 1fr; }
  .why__media { position: relative; top: auto; order: -1; }
  .why__media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) { .why__list { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Nosotros ---------- */
.about { background: var(--alu-100); }
.about__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about__copy h2 { font-size: var(--text-3xl); margin-top: 1rem; }
.about__copy p + p { margin-top: 1rem; }
.about__copy > p { margin-top: 1.2rem; color: var(--alu-700); font-size: var(--text-lg); max-width: 58ch; }
.about__aside { display: grid; gap: 1rem; }
.quote { position: relative; margin: 0; padding: 2rem 1.8rem 1.6rem; background: var(--ink); color: #fff; border-radius: var(--radius-lg); }
.quote svg { width: 34px; height: 34px; color: var(--blue); margin-bottom: 1rem; }
.quote p { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.quote footer { margin-top: 1.2rem; font-size: .82rem; color: var(--alu-400); letter-spacing: .06em; text-transform: uppercase; }
.ig-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem;
  background: #fff; border: 1px solid var(--alu-200); border-radius: var(--radius-lg);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.ig-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ig-card svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--blue-100); color: var(--blue); flex: none; }
.ig-card strong { display: block; font-family: var(--font-display); }
.ig-card span { font-size: .88rem; color: var(--alu-700); }
@media (max-width: 900px) { .about__inner { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { background: #fff; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: stretch; }
.contact__copy h2 { font-size: var(--text-3xl); margin-top: 1rem; }
.contact__copy > p { margin-top: 1.2rem; color: var(--alu-700); font-size: var(--text-lg); max-width: 50ch; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.contact__info { display: grid; grid-template-columns: repeat(3, auto); gap: 1.5rem; margin: 2.2rem 0 0; padding-top: 1.8rem; border-top: 1px solid var(--alu-200); }
.contact__info dt { font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--alu-500); }
.contact__info dd { margin: .4rem 0 0; font-size: .95rem; line-height: 1.5; }
.contact__info a { color: var(--blue); font-weight: 500; }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; border: 1px solid var(--alu-200); background: var(--alu-100); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.4) contrast(1.05); }
@media (max-width: 900px) { .contact__inner { grid-template-columns: 1fr; } .contact__info { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .contact__info { grid-template-columns: 1fr; gap: 1.1rem; } .contact__actions .btn { flex: 1 1 100%; } }
