/*
Theme Name: Grupo Telecable
Theme URI: https://miweb.com
Author: Alberto Uribe
Author URI: 
Description: Tema para WordPress, diseñado y desarrollado bajo la identidad de Telecable.
Version: 1.0
License: GPL2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grupo-telecable
*/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --base-switzer: 'Switzer-Variable', sans-serif;
    --titles-outfit: 'Outfit', sans-serif;
    --text-6xl: 3.5rem;
    --text-5xl: 3rem;
    --text-4xl: 2.5rem;
    --text-3xl: 2rem;
    --text-2xl: 1.75rem;
    --text-xl: 1.5rem;
    --text-lg: 1.25rem;
    --text-base: 1rem;
    --text-sm: 0.75rem;

    --green-100: #0bd569;
    --black-900: #020402;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: clip;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

body {
    color: white;
    background-color: var(--black-900);
    font-family: var(--base-switzer);
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 200;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

p,
a {
    color: white;
    line-height: 1.3;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5 {
    color: white;
    line-height: 1.2;
    margin: 0;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
    padding: 1rem 5%;
    background-color: var(--black-900);
    z-index: 999;

    & .logo {
        width: 140px;
        content-visibility: auto;
    }

    & nav {
        & .nav-options {
            display: flex;
            gap: 1.5rem;
            font-size: var(--text-base);
            font-weight: 600;

            & .nav-item {
                text-decoration: underline transparent;
                transition: color 0.3s ease;

                &:hover {
                    text-decoration: underline white;
                }
            }
        }
    }
}

.dropdown {
    position: relative;
    display: inline-flex;
    color: var(--black-900);
    font-size: var(--text-base);
    font-weight: 600;
    width: 194px;
    min-width: 120px;
    max-width: 100%;
    margin: 0 0 0 auto;
    cursor: pointer;

    & .dropdown-toggle {
        text-align: left;
        width: 100%;
        padding: 0.5rem 1.5rem;
        border-radius: 50px;
        background-color: white;

        &::after {
            content: '';
            position: absolute;
            display: inline-flex;
            top: 50%;
            right: 0;
            transform: translate(-1.5rem, -50%) rotate(135deg);
            width: var(--text-base);
            aspect-ratio: 1 / 1;
            background: url('./assets/arrow-black.png') center center / contain
                no-repeat;
            transition: transform 120ms ease-out;
        }

        &.open::after {
            transform: translate(-1.5rem, -50%) rotate(45deg);
        }
    }

    & .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 0;
        margin-top: 0.5rem;
        list-style: none;
        border-radius: 8px;
        background-color: white;
        max-height: 210px;
        overflow-y: auto;
        z-index: 1000;

        &::-webkit-scrollbar {
            width: 0.5rem;
        }

        &::-webkit-scrollbar-thumb {
            background-color: var(--green-100);
            border-radius: 0 8px 8px 0;
            transition: background-color 0.3s;
        }

        &::-webkit-scrollbar-thumb:hover {
            background-color: #f3e52e;
        }

        &::-webkit-scrollbar-track {
            background-color: var(--black-900);
            border-radius: 0 8px 8px 0;
        }

        li {
            padding: 0.5rem 1.5rem;
            cursor: pointer;

            &:hover,
            &:focus {
                background-color: #f2f2f2;
                outline: none;
            }
        }
    }
}

.home-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 6rem 5%;
    align-items: center;
    background-image: url('./assets/patron-fondo-1.avif'),
        linear-gradient(
            113deg,
            #020402 0%,
            #01130a 25%,
            #5b7614 50%,
            #01130a 75%,
            #020402 100%
        );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    background-attachment: fixed;

    & h1 {
        font-size: var(--text-4xl);
        font-weight: 600;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    & p {
        font-weight: 300;
        text-align: center;
        margin-bottom: 3rem;
    }

    & .dropdown {
        margin: 0;
    }
}

.video-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;

    & .carousel-slide {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        -webkit-transition: opacity 1s ease-in-out;

        & video.carousel-video {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 100%;
            transform: translate(-50%, -50%);
            -webkit-transform: translate(-50%, -50%);
            object-fit: cover;
            -webkit-object-fit: cover;
        }

        &.active {
            opacity: 1;
        }
    }
}

.video-carousel--desktop {
    display: block;
}

.video-carousel--mobile {
    display: none;
}

.triangulos-container,
.triangulos-container-sucursales {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    z-index: 0;

    & .triangulo {
        position: absolute;
        transform-origin: center;
        pointer-events: none;
        user-select: none;
        height: auto;
        opacity: 1;
        background-image: url('./assets/triangulo.avif');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        aspect-ratio: 1 / 1;
        will-change: transform, opacity, filter;
        content-visibility: auto;
        contain-intrinsic-size: auto none;

        &.triangulo-1 {
            width: 6vw;
            top: 0%;
            left: 15%;
            transform: rotate(3deg);
            z-index: 1;
        }

        &.triangulo-2 {
            width: 8vw;
            top: 16%;
            left: 40%;
            transform: rotate(-3deg);
            z-index: 5;
        }

        &.triangulo-3 {
            width: 12vw;
            top: 25%;
            left: -1%;
            transform: rotate(4deg);
            filter: blur(10px);
            z-index: 1;
        }

        &.triangulo-4 {
            width: 9vw;
            top: 70%;
            left: 15%;
            transform: rotate(-14deg);
            filter: blur(2px);
            z-index: 1;
        }

        &.triangulo-5 {
            width: 4vw;
            top: 50%;
            left: 35%;
            transform: rotate(-17deg);
            filter: blur(2px);
            z-index: 1;
        }

        &.triangulo-6 {
            width: 4vw;
            top: 2%;
            right: 12%;
            transform: rotate(-22deg);
            filter: blur(2px);
            z-index: 1;
        }

        &.triangulo-7 {
            width: 4vw;
            top: 30%;
            right: 41%;
            transform: rotate(10deg);
            filter: blur(3px);
            z-index: 1;
        }

        &.triangulo-8 {
            width: 6vw;
            top: 36%;
            right: 22%;
            transform: rotate(-24deg);
            filter: blur(2px);
            z-index: 1;
        }

        &.triangulo-9 {
            width: 10vw;
            top: 48%;
            right: -1%;
            transform: rotate(4deg);
            filter: blur(4px);
            z-index: 1;
        }

        &.triangulo-10 {
            width: 6vw;
            top: 65%;
            right: 42%;
            transform: rotate(-22deg);
            filter: blur(2px);
            z-index: 1;
        }

        &.triangulo-11 {
            width: 4vw;
            top: 70%;
            right: 17%;
            transform: rotate(14deg);
            filter: blur(3px);
            z-index: 1;
        }
    }
}

.tabs-section {
    position: relative;
    padding: 0;
    background-attachment: fixed;
    background-size: cover;
    width: 100%;
    padding: 2rem 0;
    overflow: hidden;
    z-index: 5;

    .punchlines {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100vh;
        padding: 0 8%;
        gap: 2.25rem;
        background-color: transparent;
        z-index: 1;
        width: 100%;

        & .punchline {
            font-size: var(--text-5xl);
            font-weight: 600;
        }
    }

    .tabs {
        display: flex;
        justify-content: center;
        gap: 4rem;
        margin-bottom: 3rem;
        padding: 0 8%;
        z-index: 5;

        & .tab-button {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: white;
            font-size: var(--text-lg);
            text-transform: uppercase;
            font-weight: 500;
            letter-spacing: 1px;
            background: none;
            border: none;
            padding: 0.5rem 1rem;
            cursor: pointer;
            background-color: transparent;
            filter: hue-rotate(0deg) saturate(0);
            transition: filter 120ms ease-out;

            &[aria-selected='true'] {
                filter: hue-rotate(0deg) saturate(1);

                &:hover {
                    filter: hue-rotate(0deg) saturate(1);
                }
            }

            & span {
                margin-top: -1rem;
            }

            &:hover {
                filter: hue-rotate(-35deg) saturate(1);
            }
        }
    }

    .tab-content {
        position: relative;
        display: flex;
        gap: 1rem;
        padding: 0 8%;
        width: 100%;
        overflow-x: auto;
        z-index: 5;

        &::-webkit-scrollbar {
            height: 0.75rem;
        }

        &::-webkit-scrollbar-thumb {
            background-color: var(--green-100);
            border-radius: 10px;
            transition: background-color 0.3s;
        }

        &::-webkit-scrollbar-thumb:hover {
            background-color: #f3e52e;
        }

        &::-webkit-scrollbar-track {
            background-color: var(--black-900);
            border-radius: 10px;
        }

        & .content {
            display: none;

            &[hidden] {
                display: none;
            }

            &:not([hidden]) {
                display: flex;
            }
        }

        & .cards-wrapper {
            display: flex;
            gap: 1.75rem;
            align-items: stretch;
            margin: 0 auto;

            .card-service {
                position: relative;
                display: flex;
                flex-direction: column;
                align-items: center;
                min-width: 256px;
                width: max-content;
                max-width: 280px;
                padding: 3rem 1.5rem;
                margin-bottom: 1rem;
                background-position: center bottom 0px;
                background-image: url('./assets/fondo-cards.png');
                background-color: var(--black-900);
                background-size: cover;
                border-radius: 1.5rem;
                overflow: hidden;

                & .velocidad {
                    font-size: var(--text-5xl);
                    font-weight: 600;
                    margin-bottom: 0.25rem;
                }

                & .producto {
                    font-family: var(--base-switzer);
                    font-size: var(--text-base);
                    font-weight: 200;
                    margin-bottom: 2.5rem;
                }

                & .pronto-pago {
                    font-family: var(--titles-outfit);
                    font-size: var(--text-5xl);
                    font-weight: 600;
                    text-align: center;
                    width: 100%;
                    padding-bottom: 0.5rem;
                    margin-bottom: 1rem;
                    border-bottom: 2px solid white;

                    & span {
                        font-family: var(--base-switzer);
                        font-size: var(--text-base);
                        font-weight: 200;
                    }
                }

                & .service-info {
                    align-self: flex-start;
                    margin-bottom: 0.5rem;

                    &:last-of-type {
                        margin-bottom: 2rem;
                    }

                    &::before {
                        content: '';
                        display: inline-flex;
                        width: 16px;
                        height: 16px;
                        margin-right: 0.5rem;
                        background-image: url('./assets/telecable-favicon.png');
                        background-size: contain;
                        background-repeat: no-repeat;
                        background-position: center;
                        vertical-align: middle;
                    }
                }

                & .contratar-wa {
                    font-weight: 600;
                    color: var(--black-900);
                    text-align: center;
                    text-decoration: none;
                    width: 100%;
                    border-radius: 50px;
                    background-color: var(--green-100);
                    padding: 0.5rem 1.5rem;
                    box-sizing: border-box;
                    margin: auto 0 0;
                }

                & .folio {
                    position: absolute;
                    bottom: 1rem;
                    color: lightgray;
                    font-size: var(--text-sm);
                }
            }
        }
    }

    & .asterisc {
        padding: 1.5rem 8%;

        &.opciones {
            padding: 0 8%;
        }
    }
}

.ribbon {
    position: relative;
    font-size: var(--text-xl);
    font-weight: 600;
    text-align: center;
    padding: 2.5rem 8%;
    width: 100%;
    background-image: url('./assets/fondo-ribbon.avif'),
        linear-gradient(to right, #f9e405 0%, #94c120 15%, #06763b 100%);
    background-size: cover;
    background-blend-mode: overlay;

    & .short-contact {
        position: relative;
        z-index: 2;
        content-visibility: auto;
    }
}

.background-decorativo {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    background-attachment: fixed;
    z-index: 0;
    content-visibility: auto;
}

.canales-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5rem 8%;
    z-index: 1;
    overflow: hidden;

    & .canales-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
        pointer-events: auto;

        & .canales {
            min-width: 300vw;
            height: 80px;
            background-repeat: repeat-x;
            background-size: contain;
            background-position: 0 center;

            &.canales-1 {
                background-image: url('./assets/tira-canales-1.avif');
            }
            &.canales-2 {
                background-image: url('./assets/tira-canales-2.avif');
            }
            &.canales-3 {
                background-image: url('./assets/tira-canales-3.avif');
            }
        }
    }

    & .person-tv {
        position: absolute;
        width: 300px;
        top: 50%;
        left: 8%;
        transform: translate(-25%, -50%);
        z-index: 5;
    }
}

.cta-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3.5rem;
    min-height: 100vh;
    padding: 3rem 5%;

    & .info-container {
        width: 55%;
        text-wrap: balance;
        text-wrap: pretty;
    }

    & .person-internet {
        position: absolute;
        width: 300px;
        top: 50%;
        right: 8%;
        transform: translate(-25%, -50%) scaleX(-1);
        z-index: 5;
    }
}

.faq {
    position: relative;
    padding: 5rem 8%;

    & .faq-list {
        max-width: 1080px;
        margin: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;

        & .faq-item {
            padding: 0.5rem 0.25rem;
            border-bottom: 2px solid white;
            -webkit-user-select: none;
            user-select: none;
            z-index: 10;

            & p {
                margin-bottom: 1rem;
            }

            & ul {
                margin-bottom: 1rem;
                list-style: disc inside;
            }

            & .pregunta {
                font-family: var(--titles-outfit);
                font-size: var(--text-lg);
                font-weight: 400;
                cursor: pointer;
                position: relative;
                list-style: none;

                &::marker {
                    display: none;
                }

                &::after {
                    content: '';
                    position: absolute;
                    top: 50%;
                    right: 0;
                    transform: translateY(-50%) rotate(135deg);
                    width: var(--text-lg);
                    aspect-ratio: 1 / 1;
                    background: url('./assets/arrow-gray.png') center center /
                        contain no-repeat;
                    transition: transform 120ms ease-out;
                }
            }

            & .respuesta {
                margin-top: 1rem;
                text-transform: lowercase;

                &::first-letter {
                    text-transform: uppercase;
                }
            }

            &[open] {
                padding-bottom: 0;

                & summary::after {
                    transform: translateY(-50%) rotate(45deg);
                }
            }
        }
    }
}

.sucursales {
    padding: 5rem 8%;
    content-visibility: auto;

    & .sucursales-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
        max-width: 100%;
        margin: 0 auto;
    }

    & .sucursal {
        & .sucursal-nombre {
            font-family: var(--titles-outfit);
            font-size: var(--text-lg);
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        & .sucursal-direccion {
            font-style: normal;
            margin-bottom: 0.5rem;

            & a {
                text-decoration: underline transparent;
                transition: color 0.3s ease;

                &:hover {
                    text-decoration: underline white;
                }
            }
        }

        & .sucursal-detalles {
            font-size: var(--text-base);

            & dt {
                font-weight: 400;
            }
        }
    }
}

.beneficios-section {
    position: relative;
    padding: 8rem 8%;
    content-visibility: auto;

    & .beneficios-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-inline: auto;
        width: 100%;

        & .beneficio {
            text-align: center;
            text-wrap: balance;

            & img {
                margin: 0 auto;
                width: 7rem;
                aspect-ratio: 1 / 1;
            }

            & dt {
                font-size: var(--text-lg);
                font-weight: 600;
                margin-bottom: 0.5rem;
            }
        }
    }
}

.pin-spacer {
    width: 100%;
}

.tab-icon {
    width: 7rem;
}

.section-title {
    font-size: var(--text-6xl);
    font-weight: 600;
    text-align: center;
    text-wrap: balance;
    margin-bottom: 6rem;
}

.section-subtitle {
    font-size: var(--text-4xl);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-wrap: balance;
}

.subtitle-description {
    font-size: var(--text-lg);
    font-weight: 300;
}

.site-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-inline: auto;
    width: 100%;
    padding: 2.5rem 8%;
    background-image: linear-gradient(
        92deg,
        #020402 0%,
        #044523 17%,
        #5b7614 33%,
        #789c1a 50%,
        #789c1a 67%,
        #044523 83%,
        #020402 100%
    );
    content-visibility: auto;
    contain-intrinsic-size: auto none;

    & section {
        flex: 1 1 280px;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;

        & .footer-title {
            font-size: var(--text-lg);
            font-weight: 600;
            margin-bottom: 1rem;
        }

        & a {
            font-weight: 300;
            text-decoration: underline transparent;
            transition: color 0.3s ease;

            &:hover {
                text-decoration: underline white;
            }

            &.legal:last-of-type {
                font-weight: 600;
            }
        }
    }
}

.whatsapp-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    width: 4rem;
    padding: 0.25rem;
    aspect-ratio: 1 / 1;
    background-color: white;
    background-image: url('./assets/ico-wa.avif');
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 50%;
    z-index: 999;
    transition: background-color 0.3s ease;

    &::before {
        content: 'Contactar';
        position: absolute;
        right: 100%;
        color: var(--black-900);
        font-size: var(--text-base);
        font-weight: 600;
        padding: 0.5rem 1rem;
        margin-right: 0.75rem;
        background-color: #25d366;
        border-radius: 50px;
        white-space: nowrap;
        opacity: 0;
        transform: translateX(10px);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    &:hover::before {
        opacity: 1;
        transform: translateX(0);
    }
}
