/* Quitamos la capitalización automática del template 
    global fuerte: headings, botones, links, etc. */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
span,
li,
.sec-title_two-heading,
.btn-style-one,
.btn-style-two,
.btn-style-three,
.theme-btn,
.main-header .navigation>li>a {
    text-transform: none !important;
}

:root {
    /* Elegimos 2 colores base del gradiente */
    /* Colores principales de marca */
    --color-primary: #7114EF;
    --color-secondary: #1475F7;

    /* Gradiente principal */
    --color-gradient: linear-gradient(
        to bottom,
        var(--color-primary),
        var(--color-secondary)
    );

    /* Opcional: gradiente alternativo */
    --color-gradient-diagonal: linear-gradient(
        to top left,
        var(--color-primary),
        var(--color-secondary)
    );
    

    /* Usamos las variantes que usa el template */
    --color-thirtythree: var(--color-primary);
    --color-thirtytwo: var(--color-secondary);

    /* Colores “solid” que usa en hover/active */
    --main-color: var(--color-secondary);
}

/* INDEX
    ======================= */

/* Hero slider */
.slider-two .slide{
    position: relative !important;
    padding: 80px 0px 220px !important;
}

/* Activamos el gradiente vertical en el fondo del logo */
.header-style-two .logo:before {
    background-image: var(--color-gradient) !important;}



/* HERO SLIDER (slider-two) - Mobile: ocultar flechas, mostrar dots */
@media (max-width: 767px) {

    .slider-two .single-item-carousel {
        position: relative; /* clave */
    }

    /* ocultar prev/next */
    .slider-two .single-item-carousel .owl-nav {
        display: none !important;
    }

    /* mostrar dots */
    .slider-two .single-item-carousel .owl-dots {
        display: flex  !important;
        justify-content: center;
        gap: 10px;
        position: absolute !important;
        left: 0;
        right: 0;

        bottom: 170px;         
        z-index: 9999 !important;

        pointer-events: auto;
    }

    .slider-two .single-item-carousel .owl-dots .owl-dot {
        display: inline-flex !important;
    }

    .slider-two .single-item-carousel .owl-dots .owl-dot span {
        width: 10px;
        height: 10px;
        margin: 0 !important;
        border-radius: 999px;
        background: rgba(255,255,255,.55);
    }

    .slider-two .single-item-carousel .owl-dots .owl-dot.active span {
        background: rgba(255,255,255,.9);
        transform: scale(1.2);
    }
}

/* TARJETAS DE SERVICIOS */
.content-factory-icon {
    transform: scale(1.25);
    transform-origin: center;
}

/* mismo tamaño de tarjetas */
/* INDEX Servicios: igualar altura de tarjetas */
.services-one .four-item-carousel .owl-stage {
    display: flex;
}

.services-one .four-item-carousel .owl-item {
    display: flex;
}

.services-one .four-item-carousel .service-block_three,
.services-one .four-item-carousel .service-block_three-inner {
    height: 100%;
}

.services-one .four-item-carousel .service-block_three-inner {
    width: 100%;
    padding: 0px 20px 0px;
}

/* NUESTROS CLIENTES */
/* Primero borramos la linea de :before despues de "nuestros clientes */
.client-one_title:before{
    content: none;
}

/* Ajustamos el tamaño */
@media (min-width: 992px) {

  /* achicar la columna del título */
    .clients-one .clients-one_title-column {
        flex: 0 0 auto;
        width: 25%;
        top: 25px;
    }

  /* agrandar la columna del carousel */
    .clients-one .clients-one_carousel-column {
        flex: 0 0 auto;
        width: 75%;
    }
}

.client-logo-small {
    max-width: 90%;
}

.client-one_image-box {
    padding: 20px 15px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.client-one_image-box img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.client-one_image-box:hover img {
    transform: scale(1.2) translateY(-8px);
}



/* TESTIMONIAL */
.testimonial-section {
    background-size: contain;
}

/* alinear author-box siempre abajo */
.testimonial-block .inner-box{
    display: flex;
    flex-direction: column;
    height: 200px; /* a ojo */   
}

/* empuja el autor hacia abajo */
.testimonial-block .author-box{
    margin-top: auto;
}


/* ====================
    SERVICE DETAIL */

/* Imagen de fondo HERO */
.page-title {
    background-position: center 40%;
}

/* Sidebar con colores y gradiente */
.cat-list li a:hover,
.cat-list li.active a {
    color: var(--white-color);
    background-color: var(--main-color);
    /* fallback */
    background-image: var(--color-gradient);
    /* el gradiente “oficial” */
    border-color: var(--main-color);
}

.contact-widget .help {
    line-height: 1.1;
}

/* Resetear SOLO el <a class="phone"> del contact widget 
    (nuestro phone de content factory tienen class="phone")*/
.contact-widget a.phone{
    width: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: none !important;
    position: static !important;
}

.contact-widget a.phone::before,
.contact-widget a.phone::after{
    content: none !important;
}

.contact-widget .button-box .fa-brands {
    position: absolute;
    right: 0px;
    top: 0px;
    width: 55px;
    height: 51px;
    line-height: 51px;
    font-size: 30px;
    color: var(--white-color);
    background: linear-gradient(to left, var(--color-sixtyeight) 0%, var(--color-sixtyseven) 100%);
}

/* transición suave */
.contact-widget .button-box .fa-whatsapp{
    transition: transform 0.2s ease;
}

/* agrandar cuando el mouse está sobre el botón */
.contact-widget .button-box a:hover .fa-whatsapp{
    font-size: 40px;
    background: linear-gradient(to left, #25D366 0%, #128C7E 100%);
}

/* Seccion de tarjetas negra scon misma altura */
/* 1) que las columnas se estiren a la misma altura */
.service-detail .row.clearfix{
    align-items: stretch;
}

/* 2) que el wrapper de cada card ocupe todo el alto de la columna */
.service-detail .feature-two{
    display: flex;
}

/* 3) que el fondo (inner) tome todo el alto */
.service-detail .feature-two_inner{
    width: 100%;
    height: 100%;
}

/* SECCION CONTENT FACTORY 
    ==================== */

/* Titulos */
.service-detail.is-content-factory :is(h1, h2, h3, h4){
    margin-top: 0 !important;
    text-align: center;
}

.service-detail.is-content-factory p {
    text-align: center;
}

.sidebar-page-container {
    position: relative;
    padding: 60px 0px 80px !important;
}

/* Divider de "Trabajos realizados" */
/* .content-works-divider {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 3px solid rgba(0, 0, 0, .12);
}

.content-works-title {
    margin: 0 0 14px;
    font-size: 40px;
    font-weight: 700;
    text-align: center;
} */

.content-works-divider--pill{
    margin-top: 28px;
    padding-top: 18px;
    position: relative;
    text-align: center;
}

.content-works-divider--pill::before{
    content:'';
    position:absolute;
    left:0;
    right:0;
    top: 40px;           /* altura de la línea */
    height:1px;
    background: rgba(0,0,0,.12);
}

.content-works-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 25px;
    background: #fff;    /* para “cortar” la línea */
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
    position: relative;
    z-index: 1;
}

/* TEXTOS Y TITULOS POR SLIDES */
/* Por defecto: ocultar textos de todos los slides */
.content-video-slider .video-client,
.content-video-slider .video-desc{
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, max-height .2s ease;
    pointer-events: none;
}

/* Mostrar solo en el slide centrado */
.content-video-slider .owl-item.active.center .video-client,
.content-video-slider .owl-item.active.center .video-desc{
    opacity: 1;
    max-height: 200px; /* suficiente para 2-3 líneas */
    transform: translateY(0);
    pointer-events: auto;
    margin-top: 12px; 
}

.content-video-slide {
    text-align: center;
}

.video-client {
    font-weight: 700;
    margin: 0 0 10px;
    font-size: 25px;
}

.video-desc {
    margin: 12px auto 0;
    max-width: 340px;
    font-size: 14px;
    opacity: .85;
}

/* Separar dots del contenido (para que queden bien abajo) */
.content-video-slider .owl-dots {
    margin-top: 16px !important;
}

/* ===== Content Factory - Mobile first ===== */
.content-video-slider-wrapper {
    margin-top: 26px;
    padding-left: 0;
    padding-right: 0;
}


/* Aire arriba/abajo para que el "scale" no se corte */
.content-video-slider .owl-stage-outer {
    padding-top: 2px;
    padding-bottom: 5px;
}

/* Alternativa (o adicional): aire por slide */
.content-video-slider .owl-item {
    padding-top: 18px;
    padding-bottom: 18px;
    box-sizing: border-box;
}

.phone {
    width: min(320px, 86vw);
    margin: 0 auto;
    position: relative;
    border-radius: 44px;
    /* más “teléfono” */
    padding: 12px;
    background: linear-gradient(180deg, #15151b 0%, #0b0b10 100%);
}

/* Pantalla del teléfono: fija (9:16) con poster */
.phone__screen{
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 34px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Contenedor del player ocupa el “pantallazo” del teléfono */
.phone__player{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* El nodo que YouTube va a usar */
.phone__player .yt-host {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Si YouTube mete iframe adentro (o reemplaza), forzamos full size */
.phone__player iframe,
.phone__player .yt-host iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block !important;
}

/* Iframe de YouTube adentro */
.phone__player iframe{
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
    pointer-events: none; /* Para poder drag/click en owl */
}

/* “bisel” y brillo */
.phone:after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 38px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
    background: radial-gradient(800px 260px at 20% 0%, rgba(255, 255, 255, .10), transparent 55%);
}

/* notch */
.phone:before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 24px;
    border-radius: 0 0 16px 16px;
    background: rgba(0, 0, 0, .55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
    z-index: 3;
}

/* tap overlay */
.phone__tap {
    position: absolute;
    inset: 12px;
    border-radius: 34px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 4;
}

/* icono play (se oculta cuando reproduce) */
.phone__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .15);
}

.phone__play:before {
    content: '';
    position: absolute;
    left: 26px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid rgba(255, 255, 255, .92);
}


/* estado reproduciendo: esconder play */
.phone.is-playing .phone__play {
    display: none;
}

/* Achicamos los costados  */
.content-video-slider .owl-item .content-video-slide {
    opacity: 0.55;
    transform: scale(.60);
    transition: transform .25s ease, opacity .25s ease;
}

.content-video-slider .owl-item.active.center .content-video-slide {
    opacity: 1;
    transform: scale(1);
}

/* todos clickeables para seleccionar */
.content-video-slider .owl-item {
    pointer-events: auto;
}

/* pero dentro del slide, bloqueamos interacción salvo en el centro */
.content-video-slider .owl-item .phone__tap,
.content-video-slider .owl-item .phone__player,
.content-video-slider .owl-item .phone__seek {
    pointer-events: none;
}

.content-video-slider .owl-item.active.center .phone__tap,
.content-video-slider .owl-item.active.center .phone__player,
.content-video-slider .owl-item.active.center .phone__seek {
    pointer-events: auto;
}

/* extra: que nada "se pise" raro */
.content-video-slide {
    position: relative;
    z-index: 1;
}

.content-video-slider .owl-item.active.center .content-video-slide {
    z-index: 5;
}


/* en desktop se nota más el carrusel */
@media (min-width: 992px) {
    .content-video-slider .owl-item .content-video-slide {
        /* transform: scale(.86); */
    }

    .content-video-slider .owl-item.active.center .content-video-slide {
        transform: scale(1.02);
    }
}


/* ===== Owl dots: forzar que se vean ===== */
.content-video-slider.owl-theme .owl-dots {
    display: flex !important;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.content-video-slider.owl-theme .owl-dots .owl-dot {
    display: inline-flex !important;
}

.content-video-slider.owl-theme .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 0 !important;
    border-radius: 999px;
    background: rgba(0, 0, 0, .25);
    transition: transform .15s ease, background .15s ease;
}

.content-video-slider.owl-theme .owl-dots .owl-dot.active span {
    background: rgba(0, 0, 0, .55);
    transform: scale(1.15);
}



/* ==================   
    FOOTER */
/* logo size */
.main-footer .logo img{
    max-width: 200px;
    height: auto;
}