/**
 * ==========================================
 * MEGALABEL SLIDER - ESTILOS CSS
 * ==========================================
 *
 * Hoja de estilos completa para el slider del Home
 * Compatible con WordPress y Bootstrap 5
 *
 * @version 1.0.0
 * @author Megalabel
 */

/* ==========================================
   VARIABLES CSS
   ========================================== */
:root {
    --color-principal: #C72027;
    --color-principal-oscuro: #B01C22;
    --color-secundario-blanco: #f5f5f5;
    --color-texto-blanco: #ffffff;
    --color-texto-negro: #000000;
    --color-text-negro-light: #010101;
    --color-texr-gris-dark: #787A7D;
    --color-gray: #ABACAE;
    --color-text-gris-light: #242424;
    --color-texto-gris: #ACACAE;
}

/* ==========================================
   TIPOGRAFÍA BASE
   ========================================== */
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
button,
div,
a {
    font-family: 'Manrope', sans-serif;
    font-display: swap;
}

/* ==========================================
   CONTENEDOR PRINCIPAL
   ========================================== */
.main-content {
    min-height: calc(100vh - 200px);
}

.page-container {
    padding: 2rem 0;
}

/* ==========================================
   BOTONES PERSONALIZADOS
   ========================================== */
.btn-custom {
    background-color: var(--color-principal);
    transition: box-shadow 0.3s, background 0.3s;
    color: var(--color-texto-blanco);
    border: none;
    box-shadow: 3px 4px 3px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
    width: max-content;
    border-radius: 40px;
    text-decoration: none;
    display: inline-block;
}

.btn-custom:hover,
.btn-custom:active,
.btn-custom:focus {
    background-color: var(--color-principal-oscuro);
    color: var(--color-secundario-blanco);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0px 8px 9px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
    text-decoration: none;
}

/* ==========================================
   TIPOGRAFÍA - TÍTULOS
   ========================================== */
.lightblack {
    color: var(--color-text-negro-light);
}

h1.tit-principal {
    font-weight: 900;
    font-size: 3.7rem;
    line-height: 1;
}

h2.tit-principal {
    font-weight: 900;
    font-size: 2.6rem;
    line-height: 1.1;
    padding-bottom: 2%;
    width: 83%;
}

.tit-slider {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

/* ==========================================
   CAROUSEL - ESTRUCTURA BASE
   ========================================== */
#carouselMegalabel .carousel-item {
    height: 90vh;
    min-height: 600px;
    position: relative;
}

#carouselMegalabel .background-slider {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

#carouselMegalabel .carousel-caption {
    height: 100%;
    width: 100%;
    justify-content: center;
    left: 0%;
    top: 0%;
    position: relative;
}

/* ==========================================
   SLIDE 1: BANNER ANIMADO CON PRODUCTOS
   ========================================== */
.slider-two {
    position: relative;
}

/* Fondo del círculo estático */
.circulo-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/slider/circulo.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 1;
}

/* Fondo del slider que cambia de color */
.slider-bg-animated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0%, rgba(245, 245, 220, 0.7) 100%);
    z-index: 0;
}

/* Contenedor de animaciones */
.animated-banner-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.transition-group {
    position: absolute;
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
}

/* ==========================================
   SLIDE 2: VASO KALIMAN
   ========================================== */
.slider-one {
    position: relative;
}

#vaso {
    margin-top: 48px;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#vaso-move {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    width: 360px;
    height: 445px;
    z-index: 10;
}

.mask1 {
    -webkit-mask-image: url('../img/slider/vaso-mask.svg');
    mask-image: url('../img/slider/vaso-mask.svg');
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
    width: 360px;
    height: 445px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 2;
}



.mask1.kalimanvaso img.stickkaliman {
    display: block;
    width: auto;
    height: 75%;
    margin-top: 5%;
    transform-origin: center center;
}

.mask1.kalimanvaso img {
    transform: scale(0.86) translateY(30px);
}

img.vaso-top-kaliman {
    width: 360px;
    height: 445px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    pointer-events: none;
}
/* ============================
   SLIDE 2 – Vaso Kaliman
   Capas correctas:
   Fondo < Texto < Botón < Vaso
   ============================ */

.carousel-item.slider-one {
  position: relative;
}

/* Caption como contenedor general */
.carousel-item.slider-one .carousel-caption{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;     /* referencia vertical */
  align-items: center;
  padding: 0 1rem 60px;        /* espacio inferior para el botón */
}

/* ===== TÍTULO (centrado, atrás del vaso) ===== */
.carousel-item.slider-one .tit-principal{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;                  /* detrás del botón y del vaso */
  text-align: center;
  width: min(900px, 90vw);
  margin: 0;
  pointer-events: none;
}

/* ===== BOTÓN (abajo, centrado, DELANTE del texto) ===== */
.carousel-item.slider-one .gap-1{
  position: absolute;
  left: 50%;
  bottom: 200px;                /* distancia desde abajo */
  transform: translateX(-50%);
  z-index: 15;                 /* delante del texto */
}

/* ===== VASO (encima de todo) ===== */
.carousel-item.slider-one #vaso{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin-top: 0 !important;
  width: 100%;
  height: 100%;
  z-index: 25;                 /* capa superior */
}

.carousel-item.slider-one #vaso-move{
  z-index: 30;
}

/* El botón debe recibir clicks sí o sí */
.carousel-item.slider-one .gap-1,
.carousel-item.slider-one .gap-1 a{

  z-index: 9999;
  pointer-events: auto;
}

/* Todo lo “decorativo” no debe bloquear clicks */
.carousel-item.slider-one #vaso,
.carousel-item.slider-one #vaso-move,
.carousel-item.slider-one .mask1,
.carousel-item.slider-one .vaso-top-kaliman,
.carousel-item.slider-one .stickkaliman,
.carousel-item.slider-one .tit-principal{
  pointer-events: none;
}


/* ==========================================
   SLIDE 5: VASO POWER PUFF GIRL + ISO
   ========================================== */
.slider-four {
    position: relative;
}

#vaso-power {
    position: relative;
}

.vasopower {
    margin-top: 48px;
}

#vaso-move-powerpuffgirl {
    position: absolute;
    left: 75%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1.5) rotate(340deg);
    width: 360px;
    height: 445px;
    z-index: 10;
}

#vaso-move-powerpuffgirl #top {
    width: 360px;
    height: 445px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    pointer-events: none;
}

.mask2 {
    -webkit-mask-image: url('../img/slider/vaso-mask.svg');
    mask-image: url('../img/slider/vaso-mask.svg');
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
    width: 360px;
    height: 445px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 2;
}

.mask2.powerpuffgirl img {
    transform: scale(1) translateY(18px);
}

#isomove {
    position: absolute;
    left: 76%;
    top: 40%;
    width: 400px;
    filter: blur(1px);
    height: 400px;
    z-index: 9;
}

.iconIso {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: auto;
    z-index: 3;
    pointer-events: none;
}

.contIso {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================
   SLIDE 5 (slider-four): vaso Powerpuff
   Centrar vaso dentro de su columna derecha
   ============================ */

.carousel-item.slider-four .cont-img-powerpoffgirl{
  position: relative;     /* clave: referencia para absolutos */
  min-height: 520px;      /* ajusta según tu alto de slide */
  overflow: visible;
}

/* Contenedor general del vaso */
.carousel-item.slider-four #vaso-power{
  position: absolute;
  left: 20%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0 !important;
  width: 100%;
  height: 100%;
  pointer-events: none;   /* evita bloquear clicks */
}

/* La pieza animada centrada (la que mueve GSAP) */
.carousel-item.slider-four #vaso-move-powerpuffgirl{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.2); /* ajusta el scale */
  transform-origin: center center;
  width: 360px;
  height: 445px;
}

/* Si ISO se te va a la derecha/izq, céntralo respecto al vaso */
.carousel-item.slider-four #isomove{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
/* Padre común que controla el stacking */
#vaso-power {
  position: relative;
  isolation: isolate; /* importante: crea un stacking context “limpio” */
}

/* Ambos deben ser posicionados para que z-index aplique */
#vaso-move-powerpuffgirl,
#isomove {
  position: absolute;
  will-change: transform, filter;
}


/* ==========================================
   SLIDE 6: LOGOS DE EMPRESAS
   ========================================== */
.slider-five {
    position: relative;
}

.gcont-log {
    display: flex;
    flex-direction: column;
    width: 80%;
    align-items: center;
}

.cont1-logo,
.cont2-logo,
.cont3-logo {
    padding: 3% 0%;
}

.cont1-logo {
    display: flex;
    justify-content: space-between;
    width: 125%;
    height: auto;
}

.cont2-logo {
    display: flex;
    gap: 0%;
    width: 130%;
    justify-content: center;
}

.cont3-logo {
    display: flex;
    justify-content: space-evenly;
    width: 80%;
}

.cont1-logo img,
.cont2-logo img,
.cont3-logo img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   CONTROLES DEL SLIDER
   ========================================== */
.slider-controls {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
}

.btn-slider {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-principal);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-slider:hover {
    background-color: var(--color-principal-oscuro);
    transform: scale(1.1);
}

/* ==========================================
   RESPONSIVE - TABLETS (768px - 991px)
   ========================================== */
@media (min-width: 768px) and (max-width: 991px) {
    #carouselMegalabel .carousel-item {
        min-height: 380px;
        /*height: fit-content;*/
        object-fit: cover;
        height: 86% !important;
    }

    #carouselMegalabel img.background-slider {
        height: 100vh;
        width: auto !important;
    }

    h1.tit-principal {
        font-size: 2.3rem;
    }

    h2.tit-principal {
        font-size: 2rem;
        width: 100%;
    }

    .iconIso {
        width: 40%;
    }

    #vaso-move-powerpuffgirl {
        width: 40%;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE (max-width: 767px)
   ========================================== */
@media (max-width: 767px) {
    /* Carousel */
    .slider-container {
        height: 400px !important;
    }

    .slider-controls {
        right: 10px !important;
    }

    .btn-slider {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }

    /* Títulos */
    h1.tit-principal {
        font-size: 2.4rem;
        width: 100% !important;
    }

    h2.tit-principal {
        font-size: 1.3rem;
        width: 100%;
    }

    /* Carousel Caption */
    #carouselMegalabel .carousel-caption {
        min-height: 320px;
        display: flex;
        justify-content: end;
        padding: 7% !important;
    }

    #carouselMegalabel .carousel-caption {
        justify-content: flex-start;
        padding-top: 20px;
    }

    #carouselMegalabel .tit-slider {
        font-size: 1.8rem !important;
        width: 100% !important;
    }

    /* Ajustar tamaño de las imágenes de las animaciones en mobile */
    .slider-two img[alt*="Metalizada"],
    .slider-two img[alt*="Glow"],
    .slider-two img[alt*="Holográfico"],
    .slider-two img[alt*="Stickers"],
    .slider-two img[alt*="Mangas"],
    .slider-two img[alt*="Farmacéutico"],
    .slider-two img[alt*="Cold Foil"],
    .slider-two img[alt*="Booklet"],
    .slider-two img[alt*="Scratch"],
    .slider-two img[alt*="Seguridad"] {
        height: 200px !important;
    }

    .btn-custom {
        font-size: 12px !important;
    }

    p {
        font-size: 0.9rem;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE PEQUEÑO (max-width: 575px)
   ========================================== */
@media (max-width: 575px) {
    /* Vaso Kaliman */
    #carouselMegalabel .slider-four .carousel-caption {
        justify-content: flex-start !important;
    }

    #vaso-move,
    #vaso-move-powerpuffgirl {
        width: 150px;
        height: 400px;
    }

    #vaso {
        width: 50%;
        margin-top: -12%;
    }


    #vaso-move-powerpuffgirl .mask2 {
        width: 262px;
        height: 319px;
    }

    #isomove {
        width: 200px;
    }

    #vaso-move-powerpuffgirl #top {
        width: 260px !important;
        height: 445px !important;
        top: -32px !important;
        left: 0px !important;
    }

    #vaso.vasopower {
        position: absolute;
        margin-top: 150px !important;
    }

    .mask1,
    img.vaso-top-kaliman {
        width: 300px;
        height: 400px;
    }

    .mask1.kalimanvaso img.stickkaliman {
        width: auto;
        height: 65%;
        margin-top: 10%;
    } 

    /* Power Puff Girl */
    .cont-img-powerpoffgirl {
        position: relative;
        margin-top: 0%;
        width: 100%;
        height: auto;
    }

    /* Logos */
    .gcont-log {
        width: 118%;
        padding: 20% 2%;
        flex-direction: row;
    }

    .cont1-logo,
    .cont2-logo {
        flex-direction: column;
        width: 50%;
    }

    .cont3-logo {
        flex-direction: row;
    }

    .cont3-logo img {
        width: 50%;
    }

    /* Carousel */
    #carouselMegalabel .carousel-item {
        min-height: 380px;
     /*   height: fit-content;*/

        object-fit: cover;
    }

    .carousel .carousel-item img.background-slider {
        min-height: 380px;
        object-fit: cover;
    }

    h1.tit-principal {
        font-size: 2.4rem;
        width: 100% !important;
    }
	.carousel-item.slider-one .mask1{
		width: 300px !important;
		height: 400px !important;
		-webkit-mask-size: 300px 400px !important;
		mask-size: 300px 400px !important;
	  }
}

/* ==========================================
   RESPONSIVE - DESKTOP GRANDE (min-width: 1400px)
   ========================================== */
@media (min-width: 1400px) {
    .page-container {
        padding: 2rem 0;
    }
}

/* ==========================================
   RESPONSIVE - LAPTOP (992px - 1199px)
   ========================================== */
@media (min-width: 992px) and (max-width: 1199px) {
    h1.tit-principal {
        font-size: 2.9rem;
    }

    h2.tit-principal {
        font-size: 2.6rem;
        width: 90%;
    }
}


