/* ==========================================================================
   Actual — Home (index.html)
   Mobile-first; builds on the tokens and components in site.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — berry color block, staggered slogan, product collage + sticker
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: clip;
  background: var(--berry);
  color: var(--ivory);
}
/* soft glow + grain so the berry block doesn't feel flat */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 100% 100%, rgba(253, 236, 214, 0.12), transparent 60%),
    radial-gradient(90% 60% at 0% 0%, rgba(0, 0, 0, 0.16), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 40px;
  padding-block: 28px 44px;
}

.hero__eyebrow { color: rgba(253, 236, 214, 0.85); }
.hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
}

.hero__title {
  display: grid;
  justify-items: start;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 14vw, 5.9rem);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.015em;
}
.hero__line { display: block; }
.hero__line--em { margin-top: 0.2em; }
.hero__line--em > span {
  display: inline-block;
  padding: 0.04em 0.2em 0.1em;
  border-radius: 0.16em;
  background: var(--ivory);
  color: var(--berry);
  transform: rotate(-2.5deg);
  transform-origin: 0 100%;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.55);
}

.hero__lead {
  max-width: 34ch;
  margin-top: 22px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(253, 236, 214, 0.92);
  text-wrap: pretty;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hero__ctas .btn { flex: 1 1 auto; padding-inline: 20px; }

/* Collage */
.hero__art {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 0.92;
  justify-self: center;
}
.hero__ph {
  position: absolute;
  display: block;
  overflow: hidden;
  background: var(--berry-deep);
  box-shadow: 0 22px 40px -26px rgba(0, 0, 0, 0.7);
  transition: transform 0.5s var(--ease);
}
.hero__ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.hero__ph:hover img { transform: scale(1.05); }
.hero__ph--a {
  left: 0;
  top: 0;
  width: 55%;
  height: 100%;
  border-radius: 999px 999px var(--radius-l) var(--radius-l);
}
.hero__ph--b {
  right: 0;
  top: 2%;
  width: 41%;
  aspect-ratio: 1;
  border-radius: 50%;
}
.hero__ph--c {
  right: 5%;
  bottom: 0;
  width: 35%;
  height: 43%;
  border-radius: var(--radius-l);
}
.hero__ph--a img { object-position: 38% 50%; }
.hero__ph--b img { object-position: 50% 35%; }

/* Rotating "Más diseño · Más estilo · Más Actual" sticker (brandbook stickers) */
.sticker {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--olive);
  color: var(--ivory);
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.6);
}
.sticker__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.sticker__ring text {
  fill: currentColor;
  font-family: "Actual Condensed", var(--font-sans);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.sticker__mark { width: 40%; }

.hero__sticker {
  position: absolute;
  left: 41%;
  bottom: 5%;
  width: 29%;
  transform: translateX(-50%) rotate(-12deg);
}

.hero__tag {
  position: absolute;
  right: 26%;
  top: 44%;
  padding: 8px 16px 10px;
  border-radius: var(--radius-pill);
  background: var(--ochre);
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.6vw, 1.75rem);
  font-style: italic;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(7deg);
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.6);
}

@media (min-width: 560px) {
  .hero__ctas .btn { flex: 0 0 auto; padding-inline: 28px; }
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    min-height: min(720px, calc(100svh - var(--header-h) - 34px));
    padding-block: 56px 64px;
  }
  .hero__lead { font-size: 1.2rem; }
  .hero__art { justify-self: end; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__line { animation: hero-rise 0.9s var(--ease) both; }
  .hero__line:nth-child(2) { animation-delay: 0.12s; }
  .hero__line:nth-child(3) { animation-delay: 0.24s; }
  .hero__line--em > span { animation: hero-pop 0.7s 0.55s var(--ease) both; }
  .hero__lead,
  .hero__ctas { animation: hero-fade 0.9s 0.4s var(--ease) both; }
  .hero__ph { animation: hero-float-in 1s var(--ease) both; }
  .hero__ph--b { animation-delay: 0.15s; }
  .hero__ph--c { animation-delay: 0.3s; }
  .hero__tag { animation: hero-tag 0.8s 0.8s var(--ease) both; }
  .sticker__ring { animation: sticker-spin 26s linear infinite; }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(0.35em); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-pop {
  from { opacity: 0; transform: rotate(0deg) scale(0.92); }
  to { opacity: 1; transform: rotate(-2.5deg) scale(1); }
}
@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes hero-float-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-tag {
  from { opacity: 0; transform: rotate(0deg) scale(0.6); }
  to { opacity: 1; transform: rotate(7deg) scale(1); }
}
@keyframes sticker-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Keyword ticker
   -------------------------------------------------------------------------- */
.ticker {
  overflow: hidden;
  background: var(--moss);
  color: var(--ivory);
}
.ticker__track {
  display: flex;
  width: max-content;
}
ul.ticker__group {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 14px 26px 14px 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  white-space: nowrap;
}
.ticker__icon .icon {
  display: block;
  width: 18px;
  height: 24px;
  color: rgba(253, 236, 214, 0.75);
}
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker 48s linear infinite; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Category highlights (circle badges)
   -------------------------------------------------------------------------- */
.highlights-section { padding-bottom: 8px; }
.highlights-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.highlights-head .link-arrow,
.section-head .link-arrow { min-height: 44px; }

ul.highlights {
  display: flex;
  gap: 14px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 6px var(--gutter) 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  list-style: none;
}
.highlights::-webkit-scrollbar { display: none; }
.highlights > li { flex: none; scroll-snap-align: start; }

.highlight {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  width: 80px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
.highlight .icon-badge {
  --size: 72px;
  margin-bottom: 6px;
  box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4.5px var(--badge-bg);
  transition: transform 0.3s var(--ease);
}
.highlight .icon-badge--ivory { box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4.5px var(--line-strong), inset 0 0 0 1px var(--line); }
.highlight:hover .icon-badge { transform: translateY(-3px) rotate(-4deg); }
.highlight__label {
  min-height: 2.4em; /* two lines, so counts line up even when a label wraps */
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}
.highlight__count {
  min-height: 1.3em;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

@media (min-width: 820px) {
  ul.highlights {
    justify-content: space-between;
    margin: 0;
    padding: 6px 0 10px;
    overflow: visible;
  }
  .highlight { width: 116px; }
  .highlight .icon-badge { --size: 96px; margin-bottom: 10px; }
  .highlight__label { font-size: 0.88rem; }
  .highlight__count { font-size: 0.78rem; }
}

/* --------------------------------------------------------------------------
   Nuevos rail (scroll-snap carousel)
   -------------------------------------------------------------------------- */
.new-section__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.new-section__nav .link-arrow { min-height: 44px; }
.rail-arrows { display: none; gap: 8px; }
.rail-arrow { border: 1.5px solid var(--line-strong); }
.rail-arrow:disabled { opacity: 0.35; cursor: default; background: transparent; color: var(--ink); }

ul.rail {
  --rail-gap: 12px;
  --rail-pad: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--rail-gap)) / 1.6);
  gap: var(--rail-gap);
  margin: 0;
  padding: 4px var(--rail-pad) 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-pad);
  scrollbar-width: none;
  list-style: none;
}
.rail::-webkit-scrollbar { display: none; }
ul.rail[hidden] { display: none; }
.rail__item { min-width: 0; scroll-snap-align: start; }

.rail__item--skeleton { display: grid; gap: 10px; align-content: start; }
.rail__sk-media { aspect-ratio: 4 / 5; }
.rail__sk-line { height: 12px; border-radius: 6px; width: 80%; }
.rail__sk-line--short { width: 40%; height: 18px; }

/* "Ver todos" end tile */
.rail-more {
  display: grid;
  align-content: space-between;
  gap: 16px;
  aspect-ratio: 4 / 5;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--berry);
  color: var(--ivory);
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.rail-more:hover { background: var(--berry-deep); }
.rail-more__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 300;
  line-height: 0.9;
}
.rail-more__label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
}
.rail-more__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}
.rail-more__cta svg { width: 18px; height: 18px; }
.rail-more .icon { width: 44px; height: 54px; color: rgba(253, 236, 214, 0.9); }

.new-section__empty { padding-block: 24px; }

@media (min-width: 640px) {
  ul.rail { --rail-gap: 18px; grid-auto-columns: calc((100% - 2 * var(--rail-gap)) / 2.6); }
}
@media (min-width: 720px) {
  .rail-arrows:not([hidden]) { display: flex; }
}
@media (min-width: 1024px) {
  ul.rail { --rail-gap: 24px; grid-auto-columns: calc((100% - 3 * var(--rail-gap)) / 4); }
}

/* --------------------------------------------------------------------------
   Featured categories (photo tiles)
   -------------------------------------------------------------------------- */
.features-section { padding-top: 0; }
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  display: grid;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.feature__media {
  --tile: var(--olive);
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--tile);
  color: var(--ivory);
}
.feature__media--ochre { --tile: var(--ochre); }
.feature__media--sage { --tile: var(--sage); }
.feature__media--olive { --tile: var(--olive); }
.feature__media--moss { --tile: var(--moss); }
.feature__media--berry { --tile: var(--berry); }
.feature__icon { width: 34%; height: 40%; opacity: 0.9; }
.feature__media img {
  position: absolute;
  left: 14%;
  top: 11%;
  width: 72%;
  height: 70%;
  object-fit: cover;
  border-radius: 999px 999px 16px 16px;
  background: var(--cream);
  box-shadow: 0 18px 30px -20px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.feature__media img.is-loaded { opacity: 1; }
.feature:hover .feature__media img { transform: translateY(-6px) rotate(-1.5deg); }
/* color-block corner badge with the category icon, stays visible over the photo */
.feature__media::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--tile);
  box-shadow: 0 0 0 3px var(--ivory);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.feature__media.has-photo::after { opacity: 1; }
.feature__media.has-photo .feature__icon {
  -webkit-mask-image: var(--icon-sm, var(--icon));
  mask-image: var(--icon-sm, var(--icon));
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 12px;
  width: 46px;
  height: 46px;
  -webkit-mask-size: 50% 56%;
  mask-size: 50% 56%;
  opacity: 1;
}

.feature__body { display: grid; gap: 4px; padding-inline: 2px; }
.feature__label {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.6vw, 1.9rem);
  line-height: 1.08;
}
.feature__blurb {
  display: none;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.feature__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-ink);
}
.feature__count::after { content: "→"; letter-spacing: 0; transition: transform 0.2s var(--ease); }
.feature:hover .feature__count::after { transform: translateX(4px); }
.feature:hover .feature__label { color: var(--berry); }

@media (min-width: 900px) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .feature__blurb { display: block; }
  .feature__media::after,
  .feature__media.has-photo .feature__icon { left: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* --------------------------------------------------------------------------
   ¿Qué es Actual? teaser — color-block stripes
   -------------------------------------------------------------------------- */
.about-teaser { background: var(--cream); }
.about-teaser__inner { display: grid; gap: 36px; }
.about-teaser__copy { display: grid; gap: 18px; justify-items: start; }
.about-teaser__copy .prose { color: var(--ink); font-size: 1.05rem; }
.about-teaser__copy .btn { margin-top: 6px; }

.stripes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: clamp(220px, 60vw, 300px);
  overflow: hidden;
  border-radius: var(--radius-l);
}
.stripe {
  --stripe: var(--berry);
  display: grid;
  place-items: center;
  background: var(--stripe);
  color: var(--ivory);
}
.stripe .icon {
  width: 52%;
  height: 26%;
  transition: transform 0.5s var(--ease);
}
.stripe--berry { --stripe: var(--berry); }
.stripe--olive { --stripe: var(--olive); }
.stripe--ochre { --stripe: var(--ochre); }
.stripe--moss { --stripe: var(--moss); }
.stripe--ivory { --stripe: var(--sand); color: var(--moss); }
.stripes:hover .stripe .icon { transform: translateY(-8px); }
.stripes:hover .stripe:nth-child(even) .icon { transform: translateY(8px); }

@media (min-width: 900px) {
  .about-teaser__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(48px, 7vw, 96px);
  }
  .stripes { height: 480px; }
}

/* --------------------------------------------------------------------------
   Así de fácil — 3 steps
   -------------------------------------------------------------------------- */
.steps-section__head { margin-bottom: 28px; }
.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 6px;
  padding: 22px 22px 24px;
  border-radius: var(--radius-l);
  background: var(--cream);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--olive) 0 38%, var(--berry) 38% 62%, var(--olive) 62% 100%);
}
.step__num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 0.9;
  color: var(--berry);
}
.step__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.1;
}
@media (min-width: 820px) {
  .step__title { min-height: 2.2em; } /* align the step texts when one title wraps */
}
.step p { color: var(--ink-soft); }

.steps-section__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.steps-section__ctas .btn { flex: 1 1 auto; }

@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .step {
    grid-template-columns: 1fr;
    row-gap: 12px;
    padding: 32px 28px 34px;
  }
  .step__num { grid-row: auto; font-size: 4.5rem; margin-bottom: 12px; }
  .steps-section__ctas { justify-content: center; }
  .steps-section__ctas .btn { flex: 0 0 auto; }
}

/* --------------------------------------------------------------------------
   Instagram band
   -------------------------------------------------------------------------- */
.ig-band {
  padding-block: var(--section-space);
  background: var(--berry);
  color: var(--ivory);
}
.ig-band__inner { display: grid; gap: 36px; }
.ig-band__copy { display: grid; gap: 16px; justify-items: start; }
.ig-band__eyebrow { color: rgba(253, 236, 214, 0.85); }
.ig-band h2 { font-style: italic; }
.ig-band__text { max-width: 36ch; font-size: 1.1rem; color: rgba(253, 236, 214, 0.92); }
.ig-band__copy .btn { margin-top: 8px; }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 30px 50px -34px rgba(0, 0, 0, 0.7);
}
.ig-grid__tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--berry-deep);
  color: var(--ivory);
}
.ig-grid__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.ig-grid:hover .ig-grid__tile img { transform: scale(1.05); }
.ig-grid__tile--ochre { background: var(--ochre); }
.ig-grid__tile--ochre .icon { width: 34%; height: 50%; }
.ig-grid__tile--moss { background: var(--moss); }
.ig-grid__tile--moss .icon { width: 30%; height: 48%; }

@media (min-width: 900px) {
  .ig-band__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(48px, 7vw, 96px);
  }
}

/* --------------------------------------------------------------------------
   Scroll reveal (CSS scroll-driven animations; progressive enhancement)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0 entry 220px; /* fixed distance: tall cards must not stay half-transparent */
    }
  }
}
@keyframes reveal-up {
  from { opacity: 0; translate: 0 32px; }
  to { opacity: 1; translate: none; }
}
