/* ==================================================
   KIPET CORE - SLIDER PRINCIPAL
   ================================================== */

.kipet-slider {
    --kipet-effect-duration: 550ms;

    position: relative;
    width: calc(100% - 48px);
    max-width: 100%;
    margin-inline: auto;
    overflow: hidden;

    background: #EBE7DE;
    border-radius: 32px;
}

.kipet-slider__track {
    position: relative;
}

.kipet-slide {
    position: relative;
    display: none;
    width: 100%;
    overflow: hidden;
}

.kipet-slide.is-active {
    display: block;
}

.kipet-slide__picture,
.kipet-slide__picture img {
    display: block;
    width: 100%;
}

.kipet-slide__picture img {
    aspect-ratio: 1900 / 700;
    height: auto;
    object-fit: cover;
}

/* ==================================================
   CONTENIDO
   ================================================== */

.kipet-slide__content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: clamp(28px, 6vw, 110px);

    transform: translateY(-50%);

    width: min(520px, 40%);
    color: #1D1D1C;
}

.kipet-slide__content h2 {
    --theme-font-size: clamp(38px, 4vw, 58px) !important;
    --theme-font-weight: 700 !important;

    margin: 0 0 16px !important;

    font-family: var(--kipet-font, Manrope, sans-serif) !important;
    font-size: clamp(38px, 4vw, 58px) !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;

    color: #2F3D2C !important;
}

.kipet-slide__content p {
    margin: 0 0 24px !important;
    max-width: 470px;

    font-family: var(--kipet-font, Manrope, sans-serif) !important;
    font-size: clamp(16px, 1.35vw, 20px) !important;
    line-height: 1.5 !important;

    color: #1D1D1C !important;
}

.kipet-slide__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 11px 24px;

    border-radius: 999px;
    background: #2F3D2C;
    color: #EBE7DE !important;

    font-family: var(--kipet-font, Manrope, sans-serif);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;

    transition:
        transform .25s ease,
        background-color .25s ease,
        color .25s ease;
}

.kipet-slide__button:hover {
    transform: translateY(-2px);
    background: #AE8E67;
    color: #1D1D1C !important;
}

/* ==================================================
   ENTRADA DE TÍTULO / TEXTO / BOTÓN
   Título y texto suben a su posición.
   Botón baja a su posición.
   ================================================== */

.kipet-slide.is-active .kipet-slide__content h2 {
    animation: kipetContentUp .75s ease-out .10s both;
}

.kipet-slide.is-active .kipet-slide__content p {
    animation: kipetContentUp .80s ease-out .20s both;
}

.kipet-slide.is-active .kipet-slide__content .kipet-slide__button {
    animation: kipetButtonDown .75s ease-out .30s both;
}

@keyframes kipetContentUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kipetButtonDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================================
   EFECTOS DEL SLIDER
   Mismos modos definidos en VOX:
   Ninguna / Fade / Deslizar / Zoom
   ================================================== */

.kipet-slider--fade .kipet-slide.is-active {
    animation: kipetSlideFade var(--kipet-effect-duration) ease both;
}

.kipet-slider--slide .kipet-slide.is-active {
    animation: kipetSlideMove var(--kipet-effect-duration) cubic-bezier(.22,.61,.36,1) both;
}

.kipet-slider--zoom .kipet-slide.is-active .kipet-slide__picture img {
    animation: kipetSlideZoom var(--kipet-effect-duration) ease-out both;
}

@keyframes kipetSlideFade {
    from { opacity: .15; }
    to   { opacity: 1; }
}

@keyframes kipetSlideMove {
    from {
        opacity: .35;
        transform: translateX(3.5%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes kipetSlideZoom {
    from {
        opacity: .65;
        transform: scale(1.035);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================================================
   CONTROLES - INFERIOR DERECHA
   ================================================== */

.kipet-slider__controls {
    position: absolute;
    z-index: 6;
    right: 22px;
    bottom: 20px;

    display: flex;
    align-items: center;
    gap: 8px;
}

.kipet-slider__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, .96);
    color: #2F3D2C;

    cursor: pointer;
    box-shadow: 0 4px 16px rgba(29, 29, 28, .12);

    transition:
        transform .2s ease,
        background-color .2s ease,
        color .2s ease;
}

.kipet-slider__control:hover {
    transform: translateY(-2px);
    background: #AE8E67;
    color: #1D1D1C;
}

.kipet-slider__arrow span {
    display: block;
    margin-top: -3px;
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
}

.kipet-slider__pause-icon {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
}

.kipet-slider__pause.is-paused .kipet-slider__pause-icon {
    margin-left: 2px;
    font-size: 18px;
    letter-spacing: 0;
}

/* ==================================================
   DOTS - INDICADORES DEL SLIDER
   ================================================== */

.kipet-slider__dots {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 26px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    transform: translateX(-50%);
}

.kipet-slider__dot {
    width: 9px;
    height: 9px;
    padding: 0;

    border: 0;
    border-radius: 999px;

    background: rgba(255, 255, 255, .72);
    box-shadow: 0 2px 8px rgba(29, 29, 28, .12);

    cursor: pointer;
    transition:
        width .25s ease,
        background-color .25s ease,
        transform .25s ease;
}

.kipet-slider__dot:hover {
    transform: scale(1.12);
    background: #FFFFFF;
}

.kipet-slider__dot.is-active {
    width: 24px;
    background: #AE8E67;
}

/* ==================================================
   MÓVIL
   ================================================== */

@media (max-width: 781px) {

    .kipet-slider {
        width: calc(100% - 24px);
        border-radius: 24px;
    }

    .kipet-slide__picture img {
        aspect-ratio: 760 / 1120;
        object-position: center;
    }

    .kipet-slide__content {
        top: 8%;
        left: 7%;
        right: 7%;

        transform: none;

        width: auto;
        max-width: 86%;
        text-align: left;
    }

    .kipet-slide__content h2 {
        --theme-font-size: clamp(30px, 9vw, 42px) !important;
        margin-bottom: 12px !important;
        font-size: clamp(30px, 9vw, 42px) !important;
    }

    .kipet-slide__content p {
        max-width: 92%;
        margin-bottom: 18px !important;
        font-size: 15px !important;
        line-height: 1.45 !important;
    }

    .kipet-slide__button {
        min-height: 42px;
        padding: 10px 20px;
        font-size: 14px;
    }

    .kipet-slider__dots {
        bottom: 14px;
        gap: 7px;
    }

    .kipet-slider__dot {
        width: 8px;
        height: 8px;
    }

    .kipet-slider__dot.is-active {
        width: 20px;
    }

    /* En móvil ocultamos controles visuales.
       El slider mantiene autoplay, dots y gesto swipe. */
    .kipet-slider__controls {
        display: none !important;
    }
}

/* ==================================================
   ACCESIBILIDAD - REDUCIR MOVIMIENTO
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    .kipet-slide.is-active,
    .kipet-slider--zoom .kipet-slide.is-active .kipet-slide__picture img,
    .kipet-slide.is-active .kipet-slide__content h2,
    .kipet-slide.is-active .kipet-slide__content p,
    .kipet-slide.is-active .kipet-slide__content .kipet-slide__button {
        animation: none !important;
    }

    .kipet-slide__button,
    .kipet-slider__control,
    .kipet-slider__dot {
        transition: none;
    }
}

/* ==================================================
   KIPET CORE - OFERTAS HOME
   ================================================== */

.kipet-offers[hidden] {
    display: none !important;
}

.kipet-offers {
    max-width: 1320px;
    margin: 0 auto !important;
    padding: 0 24px 55px;
    font-family: var(--kipet-font, Manrope, sans-serif);
}

.kipet-offers__panel {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    padding: 46px;
    border-radius: 28px;
    background: #2F3D2C;
    color: #EBE7DE;
}

.kipet-offers__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(235, 231, 222, .07) 0 2px, transparent 3px),
        radial-gradient(circle at 24% 36%, rgba(235, 231, 222, .05) 0 3px, transparent 4px);
    background-size: 44px 44px, 72px 72px;
    opacity: .45;
}

.kipet-offers__content {
    position: relative;
    z-index: 2;
    width: min(720px, 62%);
}

.kipet-offers__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(235, 231, 222, .12);
    color: #EBE7DE;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.kipet-offers h2 {
    --theme-font-size: clamp(34px, 3.6vw, 52px) !important;
    --theme-font-weight: 700 !important;
    margin: 0 0 12px !important;
    font-family: var(--kipet-font, Manrope, sans-serif) !important;
    font-size: clamp(34px, 3.6vw, 52px) !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    color: #EBE7DE !important;
}

.kipet-offers__text {
    max-width: 610px;
    margin: 0 0 24px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: rgba(235, 231, 222, .88) !important;
}

.kipet-countdown {
    display: grid;
    grid-template-columns: repeat(4, 92px);
    gap: 10px;
    margin-bottom: 24px;
}

.kipet-countdown > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    padding: 10px;
    border-radius: 14px;
    background: #EBE7DE;
    color: #2F3D2C;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
}

.kipet-countdown strong {
    font-size: 28px;
    line-height: 1;
}

.kipet-countdown span {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
}

.kipet-offers__main-product {
    max-width: 650px;
}

.kipet-offer-product {
    box-sizing: border-box;
    overflow: hidden;
    background: #EBE7DE;
    color: #1D1D1C;
}

.kipet-offer-product--main {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
}

.kipet-offer-product__image {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.kipet-offer-product__image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.kipet-offer-product h3 {
    margin: 0 0 8px !important;
    font-family: var(--kipet-font, Manrope, sans-serif) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.kipet-offer-product h3 a {
    color: #1D1D1C !important;
    text-decoration: none !important;
}

.kipet-offer-product__price {
    margin-bottom: 12px;
    color: #2F3D2C;
    font-size: 18px;
    font-weight: 700;
}

.kipet-offer-product__price del {
    margin-right: 8px;
    opacity: .55;
    font-size: 14px;
    font-weight: 500;
}

.kipet-offer-product__price ins {
    text-decoration: none;
}

.kipet-offer-product__button,
.kipet-offers__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.kipet-offer-product__button {
    background: #2F3D2C;
    color: #EBE7DE !important;
}

.kipet-offer-product__button:hover {
    transform: translateY(-1px);
    background: #AE8E67;
    color: #1D1D1C !important;
}

.kipet-offers__secondary-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 650px;
    margin-top: 12px;
}

.kipet-offer-product--secondary {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
}

.kipet-offer-product--secondary h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px !important;
}

.kipet-offer-product--secondary .kipet-offer-product__price {
    margin-bottom: 8px;
    font-size: 15px;
}

.kipet-offer-product--secondary .kipet-offer-product__button {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 11px;
}

.kipet-offers__all {
    margin-top: 18px;
    background: #AE8E67;
    color: #1D1D1C !important;
}

.kipet-offers__all:hover {
    transform: translateY(-2px);
    background: #C0B3A0;
}

.kipet-offers__pet {
    position: absolute;
    z-index: 1;
    right: -1%;
    bottom: -20px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 42%;
    height: 108%;
    pointer-events: none;
}

.kipet-offers__pet img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
}

@media (max-width: 980px) {
    .kipet-offers__content {
        width: 68%;
    }

    .kipet-offers__pet {
        right: -7%;
        width: 46%;
        opacity: .92;
    }
}

@media (max-width: 781px) {
    .kipet-offers {
        padding: 0 16px 42px;
    }

    .kipet-offers__panel {
        min-height: 0;
        padding: 26px 20px 0;
        border-radius: 22px;
    }

    .kipet-offers__content {
        width: 100%;
    }

    .kipet-offers h2 {
        --theme-font-size: 30px !important;
        font-size: 30px !important;
    }

    .kipet-offers__text {
        font-size: 14px !important;
    }

    .kipet-countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .kipet-countdown > div {
        min-height: 76px;
    }

    /* En móvil mostramos 1 producto principal + 1 secundario. */
    .kipet-offer-product--main {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .kipet-offer-product--secondary {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 10px;
        padding: 11px;
    }

    .kipet-offers__secondary-products {
        grid-template-columns: 1fr;
        margin-top: 10px;
    }

    .kipet-offers__secondary-products .kipet-offer-product:nth-child(n + 2) {
        display: none;
    }

    /* Evitar cortes raros en nombres largos. */
    .kipet-offer-product h3 {
        margin-bottom: 7px !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: none !important;
    }

    .kipet-offer-product--main h3 {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .kipet-offer-product--secondary h3 {
        font-size: 13px !important;
        -webkit-line-clamp: 2;
    }

    .kipet-offer-product__price {
        margin-bottom: 8px;
        font-size: 15px;
    }

    .kipet-offer-product--secondary .kipet-offer-product__price {
        font-size: 14px;
    }

    .kipet-offer-product__button {
        min-height: 34px;
        padding: 8px 10px;
        font-size: 11px;
        white-space: nowrap;
    }

    .kipet-offers__pet {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 235px;
        margin-top: 8px;
        opacity: 1;
    }

    .kipet-offers__pet img {
        object-position: center bottom;
    }

    .kipet-offers__all {
        margin-bottom: 6px;
    }
}

/* ==================================================
   KIPET CORE - OFERTAS / REVEAL IMAGEN DECORATIVA
   Se activa al entrar la sección en el viewport.
   ================================================== */

/* Solo ocultamos/transicionamos si JavaScript confirmó que puede controlar el reveal. */
.kipet-offers.kipet-offers--reveal-ready .kipet-offers__pet {
    opacity: 0;
    transform: translate3d(64px, 14px, 0) scale(.96);
    transition:
        opacity 1.25s ease,
        transform 1.35s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

.kipet-offers.kipet-offers--reveal-ready.is-visible .kipet-offers__pet {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 781px) {
    .kipet-offers.kipet-offers--reveal-ready .kipet-offers__pet {
        opacity: 0;
        /* En móvil aparece un poco por arriba y BAJA hasta su posición. */
        transform: translate3d(0, -72px, 0) scale(.96);
        transition:
            opacity 1.30s ease,
            transform 1.45s cubic-bezier(.22, .61, .36, 1);
    }

    .kipet-offers.kipet-offers--reveal-ready.is-visible .kipet-offers__pet {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .kipet-offers.kipet-offers--reveal-ready .kipet-offers__pet,
    .kipet-offers.kipet-offers--reveal-ready.is-visible .kipet-offers__pet {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==================================================
   KIPET CORE - MARCAS
   ================================================== */
.kipet-brands {
    position: relative;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px 55px;
    box-sizing: border-box;
}

.kipet-brands__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.kipet-brands h2 {
    --theme-font-size: 32px !important;
    --theme-font-weight: 700 !important;
    margin: 0 !important;
    font-family: var(--kipet-font, inherit) !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #1D1D1C !important;
}

.kipet-brands__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.kipet-brands__viewport::-webkit-scrollbar {
    display: none;
}

.kipet-brands__track {
    display: flex;
    gap: 16px;
    width: max-content;
    min-width: 100%;
}

.kipet-brand {
    flex: 0 0 calc((100vw - 48px - 80px) / 6);
    width: calc((100vw - 48px - 80px) / 6);
    max-width: calc((1320px - 48px - 80px) / 6);
    min-width: 0;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(47, 61, 44, .10);
    border-radius: 14px;
    text-decoration: none !important;
    scroll-snap-align: start;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.kipet-brand img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .72;
    transition: filter .30s ease, opacity .30s ease, transform .30s ease;
}

.kipet-brand__fallback {
    color: #2F3D2C;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

@media (hover: hover) and (pointer: fine) {
    .kipet-brand:hover {
        transform: translateY(-3px);
        border-color: rgba(174, 142, 103, .45);
        box-shadow: 0 10px 24px rgba(29, 29, 28, .08);
    }

    .kipet-brand:hover img {
        filter: grayscale(0%);
        opacity: 1;
        transform: scale(1.06);
    }
}

.kipet-brands__controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.kipet-brands__controls[hidden] {
    display: none !important;
}

.kipet-brands__control {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #2F3D2C;
    color: #EBE7DE;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: transform .22s ease, background-color .22s ease;
}

.kipet-brands__control:hover {
    transform: translateY(-2px);
    background: #AE8E67;
    color: #1D1D1C;
}

@media (max-width: 1024px) {
    .kipet-brand {
        flex-basis: calc((100vw - 48px - 48px) / 4);
        width: calc((100vw - 48px - 48px) / 4);
        max-width: none;
    }
}

@media (max-width: 781px) {
    .kipet-brands {
        padding: 0 16px 42px;
    }

    .kipet-brands__head {
        margin-bottom: 18px;
    }

    .kipet-brands h2 {
        --theme-font-size: 28px !important;
        font-size: 28px !important;
    }

    .kipet-brands__track {
        gap: 12px;
    }

    .kipet-brand {
        flex-basis: calc((100vw - 32px - 12px) / 2);
        width: calc((100vw - 32px - 12px) / 2);
        height: 104px;
        padding: 16px;
    }

    .kipet-brand img {
        filter: none;
        opacity: 1;
        max-width: 140px;
    }

    .kipet-brands__controls {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kipet-brands__viewport {
        scroll-behavior: auto;
    }

    .kipet-brand,
    .kipet-brand img,
    .kipet-brands__control {
        transition: none;
    }
}

/* ==================================================
   BANNER COMPLETO CLICKEABLE
   ================================================== */

.kipet-slide.is-clickable {
    cursor: pointer;
}

.kipet-slide__full-link {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: block;
    border-radius: inherit;
    text-decoration: none !important;
}

.kipet-slide__full-link:focus-visible {
    outline: 3px solid #AE8E67;
    outline-offset: -5px;
}
