/* ======================================================
     STYLES: Home / Category / Announcements (Vista pública)
====================================================== */
.hero-banner {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at top left, rgba(234, 166, 192, 0.22), transparent 28%),
      linear-gradient(135deg, #09090b 0%, #141217 45%, #1b1820 100%);
    color: var(--hero-button-text);
    padding: 4rem 0 3.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.03), transparent 40%, rgba(255,255,255,0.025));
    pointer-events: none;
}

.hero-shell {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(234, 166, 192, 0.28);
    background: rgba(234, 166, 192, 0.1);
}

.hero-badge-label {
    color: #e08ba8;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ce1fce;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.hero-badge-link:hover {
    color: #8a0fa3;
    text-decoration: none;
    transform: translateY(-2px);
}

.hero-badge-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.hero-badge-link:hover i {
    transform: translateX(3px);
}

.hero-banner h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 4vw, 4.3rem);
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 720px;
    margin: 0 auto 1.2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--hero-button-bg), #e791a7);
    color: var(--hero-button-text);
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 50px;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 10px 30px rgba(214, 107, 134, 0.24);
}

.hero-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-kicker {
    margin: 0 0 0.25rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.76rem;
    font-weight: 700;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-dark);
}

.section-copy {
    max-width: 460px;
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* PRODUCT CARD */
.product-card {
  display: block;
  height: 100%;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background: linear-gradient(180deg, rgba(20,18,22,0.96), rgba(13,12,15,0.96));
  color: var(--text-dark);
}

.product-card-media {
  position: relative;
}

.product-card .product-img {
  object-fit: cover;
  height: 220px;
  transition: transform 0.4s ease;
}

.product-card-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(10,10,12,0.78);
  color: var(--primary-color);
  border: 1px solid rgba(234,166,192,0.28);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.product-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.product-card-head i {
  color: var(--primary-color);
}

.product-card .card-title {
  color: var(--text-dark);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-card .card-text {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-card-prices {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.product-card-prices .price-value {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.product-card-prices small {
  color: var(--primary-color);
  font-size: 0.75rem;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.38);
  border-color: rgba(234,166,192,0.22);
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

/* ===================================
   MAIN CONTENT
   =================================== */
main.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* ===================================
   ANNOUNCEMENTS CAROUSEL
   =================================== */
.announcement-card {
  position: relative;
  display: block;
  height: 400px;
  overflow: hidden;
  text-decoration: none;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.announcement-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 16px;
}


.announcement-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    background: transparent;
    border-radius: 16px;
    filter: blur(7px);
}

.announcement-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(234, 166, 192, 0.15) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(234, 166, 192, 0.2);
}

.announcement-overlay h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.announcement-overlay p {
    margin: 0 0 0.5rem 0;
}

.announcement-overlay small {
    display: block;
    margin: 0.25rem 0;
    font-size: 0.8rem;
}

.announcement-card:hover {
    transform: translateY(-5px);
}

.announcement-card:hover img {
    transform: none;
}

/* ===================================
   PRODUCTS CAROUSEL
   =================================== */
.product-card-carousel {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#productsCarousel1 {
    z-index: 2;
}

#productsCarousel2 {
    z-index: 3;
}
.product-overlay-carousel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.5);
    color: #fff;
}

.product-price-carousel {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.product-card-carousel img,
.product-img-carousel {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    display: block;
}

/* Announcement specific image */
.announcement-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
}

/* Logo fallback: keep logo fully visible */
.img-logo {
    object-fit: contain !important;
    background: transparent;
    padding: 12px;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.product-overlay h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.product-overlay .product-price {
    margin: 0;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card:hover img {
    transform: none;
}

/* BOTÓN "VER MÁS" - estilo reutilizable por la vista de categorías */
.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: .8rem 1.2rem;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    box-shadow: var(--shadow-light);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.load-more-btn i{opacity:.9}
.load-more-btn:disabled{opacity:.6;pointer-events:none}
.load-more-btn:hover{transform: translateY(-3px);box-shadow: var(--shadow-medium)}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 10%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 100% 100%;
  filter: invert(1);
}

/* Carousel wrapper */
.carousel-wrapper {
  position: relative;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .hero-banner {
        padding: 2.2rem 0 2.2rem;
    }

    .hero-banner h1 {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-copy {
        max-width: none;
    }

    .category-card {
        height: 200px;
    }

    .category-overlay h2 {
        font-size: 1.4rem;
    }
}

/* ===================================
   INFO SECTION
   =================================== */
.infos-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.info-container {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.1); /* separador más visible */
}

.info-container:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.info-img {
  max-width: 100%;   /* nunca se pasa del ancho del contenedor */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px #f0518e54;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

/* Animación al pasar el mouse sobre el contenedor de info */
.info-container:hover .info-img {
  transform: scale(1.06);
  box-shadow: 0 15px 40px #f0518e80;
  filter: brightness(1.08) contrast(1.05);
}
.info-description h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.4;
}

.info-image.align-left {
    order: 0;
    margin-right: 2rem;
    transform: translateX(-4vw);
}

.info-image.align-right {
    order: 1;
    margin-left: 2rem;
    transform: translateX(4vw);
}

.info-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    background: transparent;
    aspect-ratio: 4 / 3;
}

.info-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
}

/* soft pink glow behind image */


.info-image > img,
.info-image .info-img {
    position: relative;
    z-index: 1;
    border-radius: 8px;
    box-shadow: 0 10px 30px #f0518e54;
}

/* Align text depending on side class on the container */
.info-container.left .info-description {
    text-align: left;
    justify-content: flex-start;
}

.info-container.right .info-description {
    text-align: right;
    justify-content: flex-end;
}

.info-description {
    flex-grow: 1;
    display: flex;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}


/* Responsive */
@media (max-width: 768px) {
    .info-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .info-container:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .info-image {
        margin: 0 auto;
        width: 280px;
        height: 320px;
    }

    .info-description h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .info-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .info-container:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .info-image {
        margin: 0 auto;
        width: 220px;
        height: 260px;
    }

    .info-description h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        padding: 1.5rem 0;
    }

    .hero-banner h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .category-card {
        height: 160px;
    }

    .category-overlay h2 {
        font-size: 1.1rem;
    }

    .announcement-card {
        height: 200px;
    }

    .announcement-overlay h2 {
        font-size: 1.2rem;
    }

    .product-card {
        height: auto;
    }

    .product-card .product-img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .product-overlay h2 {
        font-size: 1rem;
    }
}

/* ===================================
   INFO SECTION (Responsive)
   =================================== */
@media (max-width: 768px) {
    .info-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .info-container:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .info-image {
        margin: 0 auto;
        width: 280px;
        height: 320px;
    }

    .info-description h3 {
        font-size: 1.4rem;
    }
}

/* ===================================
   PAGE ANIMATIONS / SCROLL REVEAL
   =================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(18px) scale(.995);
    transition: opacity .6s var(--delay, 0s) ease-out, transform .6s var(--delay, 0s) cubic-bezier(.2,.9,.3,1);
    will-change: opacity, transform;
}
.animate-on-scroll.in-view {
    opacity: 1;
    transform: none;
}

.animate-pop {
    opacity: 0;
    transform: scale(.96) translateY(6px);
    transition: opacity .5s var(--delay, 0s) ease, transform .5s var(--delay, 0s) ease;
}
.animate-pop.in-view {
    opacity: 1;
    transform: none;
}

/* Stagger helper: children will be revealed with incremental delays applied by JS */
.stagger > * { opacity: 0; transform: translateY(12px); }
.stagger.in-view > * { opacity: 1; transform: none; }

/* Slight tilt on hover for interactive feel */
.product-card.animate-on-scroll.in-view:hover { transform: translateY(-6px) rotate(-0.2deg); }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll, .animate-pop, .stagger > * { transition: none !important; transform: none !important; }
}

@media (max-width: 480px) {
    .info-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .info-container:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .info-image {
        margin: 0 auto;
        width: 220px;
        height: 260px;
    }

    .info-description h3 {
        font-size: 1.2rem;
    }
}


