/* ══════════════════════════════════════════════════════════════
   EL OTRO BANDO — Home Page Styles
   ══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */

.hero {
  background-color: var(--color-bg-dark);
  padding: var(--space-3xl) 0 0;
  overflow: hidden;
  position: relative;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__badge {
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-family: var(--font-headline);
  font-size: calc(var(--text-hero) * 0.8);
  font-weight: var(--weight-extrabold);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero__title em {
  color: var(--color-accent);
  font-style: normal;
}

.hero__description {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-gray-400);
  max-width: 45ch;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__media {
  position: relative;
  z-index: 1;
}

.hero__image-wrapper {
  position: relative;
  border: var(--border-thick);
  box-shadow: var(--shadow-hard-xl);
  overflow: hidden;
}

.hero__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sticker flotante sobre la imagen */
.hero__sticker {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 3;
  background-color: var(--color-accent);
  color: var(--color-white);
  border: var(--border-base);
  box-shadow: var(--shadow-hard);
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  transform: rotate(3deg);
}


/* ═══════════════════════════════════
   QUOTE SECTION
   ═══════════════════════════════════ */

.home-quote {
  background-color: var(--color-bg-cream);
  padding: var(--space-3xl) 0;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

@media (max-width: 1023px) {
  .quotes-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }
}

.home-quote__inner {
  position: relative;
  padding-left: var(--space-xl);
}

.home-quote__mark {
  position: absolute;
  top: -10px;
  left: -10px;
  font-family: var(--font-headline);
  font-size: clamp(3rem, 5vw, 4rem);
  color: var(--color-accent);
  line-height: 1;
  user-select: none;
}

.home-quote__text {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-on-light);
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.home-quote__author-box {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.home-quote__author-img {
  width: 50px;
  height: 50px;
  background-color: var(--color-gray-300);
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  flex-shrink: 0;
  overflow: hidden;
  /* Placeholder background pattern */
  background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0,0,0,0.05) 5px, rgba(0,0,0,0.05) 10px);
}
.home-quote__author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-quote__author {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-style: normal;
  line-height: 1.4;
}

.home-quote__author small {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: var(--weight-extrabold);
  margin-top: 2px;
}


/* ═══════════════════════════════════
   CATEGORIES SECTION
   ═══════════════════════════════════ */

.home-categories {
  background-color: var(--color-white);
  padding: var(--space-3xl) 0;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.category-card {
  background-color: var(--color-white);
  border: var(--border-base);
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
  overflow: hidden;
}

.category-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-lg);
}

.category-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: var(--border-base);
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover .category-card__image img {
  transform: scale(1.04);
}

.category-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex-grow: 1;
}

.category-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.category-card__name {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  color: var(--color-text-on-light);
}

.category-card__desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: var(--leading-normal);
  flex-grow: 1;
}

.category-card__cta {
  margin-top: var(--space-md);
}


/* ═══════════════════════════════════
   FEATURED PRODUCTS SECTION
   ═══════════════════════════════════ */

.home-featured {
  background-color: var(--color-bg-dark);
  padding: var(--space-3xl) 0;
}

.home-featured .section-header {
  margin-bottom: var(--space-xl);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

/* Product card con precio visible como en la referencia */
.featured-product {
  background-color: var(--color-white);
  border: var(--border-base);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.featured-product:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-lg);
}

.featured-product__header {
  padding: var(--space-md) var(--space-lg) var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
}

.featured-product__name {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-text-on-light);
}

.featured-product__price {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-text-on-light);
  white-space: nowrap;
}

.featured-product__desc {
  padding: 0 var(--space-lg) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: var(--leading-normal);
}

.featured-product__images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border-top: var(--border-base);
}

.featured-product__images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.featured-product__cta {
  padding: var(--space-md) var(--space-lg);
  border-top: var(--border-base);
}

.featured-product__cta .btn {
  font-size: var(--text-xs);
}

.featured-product__cta a {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--transition-fast);
  text-decoration: none;
}

.featured-product__cta a:hover {
  gap: var(--space-sm);
}

.featured-product__cta a svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}


/* ═══════════════════════════════════
   DIFFERENTIATORS SECTION
   ═══════════════════════════════════ */

.home-differentiators {
  background-color: var(--color-bg-cream);
  padding: var(--space-3xl) 0;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

.diff-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.diff-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.diff-card__icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-accent);
  border: var(--border-base);
  box-shadow: var(--shadow-hard-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.diff-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.diff-card__title {
  font-family: var(--font-headline);
  font-size: var(--text-lg);
  font-weight: var(--weight-extrabold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
}

.diff-card__text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}


/* ═══════════════════════════════════
   ORDER WINDOW BANNER
   ═══════════════════════════════════ */

.home-order-window {
  background-color: var(--color-bg-dark);
  padding: var(--space-2xl) 0;
}

.order-banner {
  background-color: var(--color-accent);
  border: var(--border-base);
  box-shadow: var(--shadow-hard-lg);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.order-banner__content {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.order-banner__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--color-white);
}

.order-banner__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.order-banner__text {
  color: var(--color-white);
}

.order-banner__text h3 {
  font-family: var(--font-headline);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  text-transform: uppercase;
  margin-bottom: var(--space-2xs);
}

.order-banner__text p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  opacity: 0.9;
}


/* ═══════════════════════════════════
   FAQ HOME SECTION
   ═══════════════════════════════════ */

.home-faq {
  background-color: var(--color-white);
  padding: var(--space-3xl) 0;
}


/* ═══════════════════════════════════
   CTA FINAL
   ═══════════════════════════════════ */

.home-cta {
  background-color: var(--color-bg-dark);
  padding: var(--space-4xl) 0;
  text-align: center;
}

.home-cta__title {
  font-family: var(--font-headline);
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}

.home-cta__title span {
  color: var(--color-accent);
}

.home-cta__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-gray-400);
  margin-bottom: var(--space-xl);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.home-cta__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}


/* ═══════════════════════════════════
   RESPONSIVE — HOME
   ═══════════════════════════════════ */

@media (max-width: 1023px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero__media {
    order: -1;
  }

  .hero__sticker {
    top: -8px;
    right: -8px;
  }

  .category-cards {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-banner {
    flex-direction: column;
    text-align: center;
  }

  .order-banner__content {
    flex-direction: column;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .category-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-cards > :last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid > :last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }
}

@media (max-width: 639px) {
  .hero {
    padding: var(--space-xl) 0 0;
  }

  .hero__title {
    font-size: clamp(2rem, 9.6vw, 3.2rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

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

  .home-cta__title {
    font-size: var(--text-4xl);
  }

  .home-quote__inner {
    padding-left: var(--space-2xl);
  }

  .home-quote__text {
    font-size: var(--text-2xl);
  }
}
