/* Co Crear Home — carácter (promos, ofertas, video, motion). Extiende v5. */

/* ——— Franja de promoción ——— */
.cocrear-home .promo-bar {
  background: #21263E;
  color: #fff;
  position: relative;
  z-index: 5;
  border-bottom: 2px solid #F4D137;
}
.cocrear-home .promo-bar a,
.cocrear-home .promo-bar .promo-item {
  color: #fff;
  text-decoration: none;
  font-family: "Poppins", "Roboto", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.cocrear-home .promo-bar a:hover,
.cocrear-home .promo-bar a:focus-visible {
  color: #F4D137;
  text-decoration: none;
}
.cocrear-home .promo-inner {
  max-width: 1080px;
  margin: 0 auto;
  min-height: 42px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.cocrear-home .promo-item {
  display: none;
  width: 100%;
}
.cocrear-home .promo-item.is-on { display: block; }
.cocrear-home .promo-item.is-on { animation: promoFade 0.45s ease; }
@keyframes promoFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ——— Video / Ken Burns en el hexágono ——— */
.cocrear-home .hero-hex-frame video.hero-video,
.cocrear-home .hero-hex-frame .hero-still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.cocrear-home .hero-hex-frame video.hero-video {
  display: none;
  z-index: 1;
}
.cocrear-home .hero-photo.is-video .hero-video { display: block; }
.cocrear-home .hero-photo.is-video .hero-still { opacity: 0; }
.cocrear-home .hero-hex-tint { z-index: 2; }
.cocrear-home .hero-hex-deco { z-index: 3; }

@media (prefers-reduced-motion: no-preference) {
  .cocrear-home.has-motion .hero-photo:not(.is-video) .hero-still {
    animation: kenburns 28s ease-in-out infinite alternate;
    transform-origin: 50% 50%;
  }
  .cocrear-home.has-motion .hero-hex-deco {
    animation: hexfloat 9s ease-in-out infinite;
    transform-origin: 40% 45%;
  }
  .cocrear-home.has-motion .hero-hex-deco polygon,
  .cocrear-home.has-motion .hero-hex-deco circle {
    animation: hexpulse 3.6s ease-in-out infinite;
  }
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-1.5%, 1%); }
}
@keyframes hexfloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -6px); }
}
@keyframes hexpulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.62; }
}

/* ——— Revelado al scroll ——— */
.cocrear-home.has-motion .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.cocrear-home.has-motion .reveal.is-in {
  opacity: 1;
  transform: none;
}
.cocrear-home.has-motion .offers-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.cocrear-home.has-motion .offers-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.cocrear-home.has-motion .offers-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.cocrear-home.has-motion .stat-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.cocrear-home.has-motion .stat-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ——— Cifras / beneficios ——— */
.cocrear-home .stats-strip {
  background: #fff;
  border-bottom: 1px solid #E3E6EC;
  padding: 36px 0;
}
.cocrear-home .stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.cocrear-home .stat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 8px 0;
}
.cocrear-home .stat .hex-ico { width: 44px; height: 51px; flex: 0 0 44px; }
.cocrear-home .stat .stat-num {
  font-family: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  color: #21263E;
  margin: 0 0 4px;
}
.cocrear-home .stat h3 {
  font-size: 1rem;
  margin: 0 0 2px;
}
.cocrear-home .stat p {
  margin: 0;
  color: #5D6676;
  font-size: 0.92rem;
}

/* ——— Categoría destacada ——— */
.cocrear-home .feat-cat {
  background: #F6F7F9;
  border-top: 1px solid #E3E6EC;
  border-bottom: 1px solid #E3E6EC;
  padding: 0;
  overflow: hidden;
}
.cocrear-home .feat-cat-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
}
.cocrear-home .feat-cat-copy {
  padding: 36px 24px 32px;
}
.cocrear-home .feat-cat-copy h2 {
  font-size: 1.85rem;
  max-width: 16ch;
}
.cocrear-home .feat-cat-copy h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: #F4D137;
  margin: 18px 0 0;
}
.cocrear-home .feat-cat-copy .lead {
  margin: 16px 0 24px;
}
.cocrear-home .feat-cat-photo {
  position: relative;
  min-height: 220px;
  background: #21263E;
  overflow: hidden;
}
.cocrear-home .feat-cat-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.cocrear-home .feat-cat-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33,38,62,0.08), rgba(33,38,62,0.28));
  pointer-events: none;
}
.cocrear-home .feat-hex {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  width: 88px;
  height: auto;
  right: 16px;
  top: 16px;
}

/* ——— Ofertas de la semana ——— */
.cocrear-home .offers {
  background: #fff;
  padding: 48px 0;
}
.cocrear-home .offers > .wrap > h2 {
  font-size: 1.85rem;
}
.cocrear-home .offers > .wrap > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: #F4D137;
  margin: 18px 0 0;
}
.cocrear-home .offers > .wrap > .lead {
  margin: 16px 0 28px;
}
.cocrear-home .offers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.cocrear-home .offer-card,
.cocrear-home article.offer-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E3E6EC;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cocrear-home .offer-card:hover,
.cocrear-home .offer-card:focus-visible {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(33, 38, 62, 0.12);
  border-color: #d5dae3;
}
.cocrear-home .offer-card .thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #F6F7F9;
  margin: 0;
  border-radius: 0;
}
.cocrear-home .offer-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
@media (hover: hover) {
  .cocrear-home .offer-card:hover .thumb img { transform: scale(1.08); }
  .cocrear-home .p-card:hover {
    box-shadow: 0 10px 24px rgba(33, 38, 62, 0.1);
  }
  .cocrear-home .p-card:hover .thumb img { transform: scale(1.07); }
}
.cocrear-home .offer-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: #F4D137;
  color: #21263E;
  font-family: "Poppins", "Roboto", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 9px;
  line-height: 1.2;
}
.cocrear-home .offer-card h3,
.cocrear-home .offer-card .price,
.cocrear-home .offer-card .btn-card {
  margin-left: 14px;
  margin-right: 14px;
}
.cocrear-home .offer-card h3 { margin-top: 14px; margin-bottom: 4px; font-size: 1.05rem; }
.cocrear-home .offer-card .price {
  color: #21263E;
  font-weight: 600;
  margin: 0 14px 14px;
  font-size: 0.95rem;
}
.cocrear-home .offer-card .btn-card {
  margin-top: auto;
  margin-bottom: 16px;
  align-self: flex-start;
  padding: 10px 16px;
  min-height: 44px;
  font-size: 0.9rem;
}

@media (min-width: 720px) {
  .cocrear-home .promo-inner { min-height: 40px; }
  .cocrear-home .promo-bar a { font-size: 0.88rem; }
  .cocrear-home .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .cocrear-home .feat-cat-inner { grid-template-columns: 1fr 1.15fr; }
  .cocrear-home .feat-cat-inner { min-height: 420px; }
  .cocrear-home .feat-cat-copy { padding: 56px 40px 56px 24px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .cocrear-home .feat-cat-copy h2 { font-size: 2.25rem; }
  .cocrear-home .feat-cat-photo { min-height: 100%; height: auto; }
  .cocrear-home .feat-cat-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }
  .cocrear-home .offers { padding: 64px 0; }
  .cocrear-home .offers > .wrap > h2 { font-size: 2.25rem; }
  .cocrear-home .offers-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cocrear-home .stats-strip { padding: 44px 0; }
}
@media (min-width: 960px) {
  .cocrear-home .offers-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .cocrear-home .promo-item.is-on,
  .cocrear-home.has-motion .reveal,
  .cocrear-home .hero-still,
  .cocrear-home .hero-hex-deco,
  .cocrear-home .hero-hex-deco polygon,
  .cocrear-home .offer-card,
  .cocrear-home .offer-card .thumb img,
  .cocrear-home .p-card .thumb img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .cocrear-home .hero-hex-frame video.hero-video { display: none !important; }
  .cocrear-home .hero-photo.is-video .hero-still { opacity: 1 !important; }
}
