@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@layer theme, base, components, utilities;
@import "tailwindcss-v4/theme.css" layer(theme);
@import "./preflight.css" layer(base);
@import "./fonts.css" layer(base);
@import "tailwindcss-v4/utilities.css" layer(utilities);

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../../modules/**/*.blade.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: "Montserrat", sans-serif;
    --color-principal: #ff7533;
    --color-secundario: #ff4a00;
}


@plugin "tailwindcss-animated";
@plugin "@tailwindcss/typography";

@utility container {
    margin-inline: auto;

    @variant lg {
        max-width: 960px;
    }

    @variant xl {
        max-width: 1152px;
    }

    @variant 2xl {
        max-width: 1344px;
    }
}

@layer utilities {
    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }

    .no-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

[x-cloak] {
    display: none;
}
/* 
.video-card {
    position: relative;
    width: 276px;
    border-radius: 12px;
    overflow: hidden;

    background: #fff;

    transition: all .25s ease;
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}


.video-frame iframe {
    width: 100% !important;
    height: 490px !important;
    border: 0 !important;
    border-radius: 12px !important;
}


.video-frame blockquote {
    margin: 0 !important;
    min-width: 100% !important;
    max-width: 100% !important;
} */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 276px));
    justify-content: center;
    align-items: start;
    gap: 28px;
}

.video-card {
    position: relative;
    width: 100%;
    max-width: 281px;
    /* max-height: 493px; */
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    /* box-shadow: 0 14px 35px rgba(0, 0, 0, .08); */
    transition: transform .25s ease, box-shadow .25s ease;
}
.video-card iframe{
    width: 100%;
    max-width: 281px;
    max-height: 476px;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

.video-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

/*
Embeds normales:
TikTok, Instagram, Facebook, YouTube normal.
No se les fuerza altura.
*/
.video-frame iframe:not(.video-short-iframe) {
    display: block;
    max-width: 100% !important;
    border: 0 !important;
    border-radius: 14px !important;
}

.video-frame blockquote,
.video-frame .instagram-media,
.video-frame .tiktok-embed {
    margin: 0 !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

/*
YouTube Shorts generado desde link.
Formato vertical 9:16.
*/
.video-short-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #000;
    border-radius: 14px;
}

.video-short-wrapper iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

/*
Título opcional abajo
*/
.video-info {
    padding: 12px 14px 14px;
    background: #fff;
}

.video-title {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

/*
Badge anclado
*/
.video-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    background: #ff2d55;
    color: white;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    padding: 6px 9px;
    /* border-radius: 999px; */
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, .15); */
}

/*
Móvil: uno debajo del otro
*/
@media(max-width:768px) {
    .video-grid {
        grid-template-columns: minmax(0, 360px);
        gap: 24px;
    }

    .video-card {
        max-width: 360px;
        margin-inline: auto;
    }
}

@media(max-width:480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-card {
        max-width: 100%;
    }
}

[x-cloak] {
    display: none !important;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.35);
    border-radius: 999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(249, 115, 22, 0.55);
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}


.marquee {
    overflow: hidden;
    width: 100%;
}

.track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
    gap: 2rem;
    padding-right: 2rem;

    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

/* Importante para contenido que viene de TinyMCE */
.marquee-content p,
.marquee-content div,
.marquee-content span,
.marquee-content strong,
.marquee-content b,
.marquee-content em,
.marquee-content i {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

/* Evita que un <br> de TinyMCE mande el texto a otra línea */
.marquee-content br {
    display: none;
}

/* Si TinyMCE mete párrafos separados, los deja en línea */
.marquee-content p:not(:last-child)::after,
.marquee-content div:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 2rem;
}

/* Opcional: SVGs o íconos dentro del texto */
.marquee-content svg {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: inline-block;
}

@media (min-width: 640px) {
    .marquee-content {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .marquee-content {
        font-size: 1.5rem;
    }
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* whatsapp */
/* whatsapp */
.pulse-wrapper {
    position: fixed !important;
    right: 18px !important;
    bottom: 90px !important;
    /* arriba del footer */
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    z-index: 9999;
}

.pulse-ring {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    pointer-events: none;
    transition:
        width .45s cubic-bezier(.65, 0, .076, 1),
        height .45s cubic-bezier(.65, 0, .076, 1);
}

.pulse-wrapper:hover .pulse-ring {
    width: 190px;
    height: 70px;
}

.pulse-ring-1 {
    background: rgba(255, 74, 0, .65);
    animation: pulseWave 2s ease-out infinite;
}

.pulse-ring-2 {
    background: rgba(255, 74, 0, .45);
    animation: pulseWave 2s ease-out infinite 1s;
}

.whatsapp-btn {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
    transition: all .45s cubic-bezier(.65, 0, .076, 1);
}

.whatsapp-btn:hover {
    width: 180px;
}

.whatsapp-icon {
    min-width: 55px;
    width: 55px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-text {
    white-space: nowrap;
    opacity: 0;
    transform: translateX(15px);
    transition: .35s ease;
    font-weight: 700;
    color: #000;
}

.whatsapp-btn:hover .btn-text {
    opacity: 1;
    transform: translateX(0);
}

/* tablet / desktop */
@media (min-width: 768px) {
    .pulse-wrapper {
        right: 24px !important;
        bottom: 110px !important;
        /* súbelo si el footer es más alto */
    }

    .pulse-ring {
        width: 72px;
        height: 72px;
    }

    .whatsapp-btn {
        width: 60px;
        height: 60px;
    }

    .whatsapp-icon {
        min-width: 60px;
        width: 60px;
        height: 36px;
    }
}

/* desktop grande */
@media (min-width: 1200px) {
    .pulse-wrapper {
        right: 30px !important;
        bottom: 120px !important;
    }
}

@keyframes pulseWave {
    0% {
        transform: scale(1);
        opacity: .55;
    }

    40% {
        opacity: .9;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.glide {
    position: relative;
}

.glide__bullets {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    bottom: -35px !important;
}

.glide__bullet {
    width: 9px !important;
    height: 9px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background-color: #000 !important;
    opacity: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.glide__bullet:hover,
.glide__bullet:focus {
    background-color: #fd5f1e !important;
    outline: none !important;
}

.glide__bullet--active {
    background-color: #fd5f1e !important;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 117, 51, 0.35);
    border-radius: 999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 117, 51, 0.55);
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}