/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/
html {
    scroll-behavior: smooth;
}

:root {
	--tick-color: #eb303b;
}
.tick-rojo {
	list-style: none;
	padding-left: 0;
}
.tick-rojo li {
	position: relative;
	padding-left: 25px; /* Espacio para el icono */
	margin-bottom: 0.5em;
}
.tick-rojo li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 15.7px;
	height: 16.1px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15.7 16.1'%3E%3Cpolygon fill='%23eb303b' points='0,10.3 4.7,16.1 15.7,1.5 13.7,0 4.6,12 1.9,8.7 0,10.3'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15.7 16.1'%3E%3Cpolygon points='0,10.3 4.7,16.1 15.7,1.5 13.7,0 4.6,12 1.9,8.7 0,10.3'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15.7 16.1'%3E%3Cpolygon points='0,10.3 4.7,16.1 15.7,1.5 13.7,0 4.6,12 1.9,8.7 0,10.3'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	background-color: var(--tick-color);
	background-image: none; /* Desactivamos el fill fijo cuando usamos mask */
}

/* Variantes de color para el tick */
.tick-rojo.blanco {
	--tick-color: #fff; 
}
.tt-zoom {
    position: relative;
    overflow: hidden;
    background-image: url('https://dev-pixandlab.com.es/314-tt/wp-content/uploads/2026/03/home-hero.jpg');
    background-size: cover;
    background-position: center;
    animation: slowHeroZoom 10s ease-out forwards;
    transform-origin: center center;
}

/* El contenido permanece estático */
.tt-zoom .fusion-builder-row {
    position: relative;
    z-index: 2;
    transform: none !important;
    background: transparent !important;
}

@keyframes slowHeroZoom {
    from {
        background-size: 140%;
    }
    to {
        background-size: 170%;
    }
}
.tt-mitad-izq .fusion-column-wrapper{
    max-width: 600px;
    margin-right: 0!important;
    margin-left: auto!important;
}
.tt-campo{
	width: 211px;
	display: inline-block;
	margin-right: 11px;
	margin-left: 11px;
}
.tt-campo.tt-textarea{
	width: 680px;
}
.tt-campo .wpcf7-form-control-wrap input.wpcf7-form-control{
	height: 40px;
	width: 100%;
	border-radius: 0;
    color: #1a1a1a;
}
.wpcf7-form .tt-campo textarea{
	height: 105px;
	border-radius: 0;
	resize: none;
    color: #1a1a1a;
}
label.tt-campo span.tt-label, label.tt-aceptacion .wpcf7-list-item-label{
	color: #1a1a1a;
	font-size: 14px;
}
label.tt-aceptacion .wpcf7-list-item-label a{
	color: #1a1a1a;
}
.wpcf7 .wpcf7-submit.tt-enviar{
	float: right;
	margin-right: 11px;
	border-radius: 0;
	background-color: #eb303b;
	color: #FFF;
	text-transform: uppercase;
	font-family: Outfit;
	font-weight: bold;
	font-size: 21px;
	padding: 8px 50px;
}
.fusion-fullwidth.tt-fondo-doble{
background: linear-gradient(
	to right, 
	#01355d 0%, 
	#01355d 50%, 
	#E5EAEE 50%, 
	#E5EAEE 100%
	);
}
.fusion-fullwidth.tt-fondo-doble-02{
background: linear-gradient(
    to right, 
    #B1C2CE 0%, 
    #B1C2CE 50%, 
    #E5EAEE 50%, 
    #E5EAEE 100%
    );
}
/* Estilos para el contenedor - TUS ESTILOS ORIGINALES SIN TOCAR */
.tt-cegid-anclas {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 0.5rem;
    padding: 1rem;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.tt-cegid-anclas:active {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

.tt-cegid-anclas::-webkit-scrollbar {
    height: 4px;
}

.tt-cegid-anclas::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tt-cegid-anclas::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.tt-cegid-anclas::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ENLACES CON PADDING REDUCIDO */
.tt-cegid-anclas a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    color: #01355d;
    font-family: "Outfit";
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 4px;
    pointer-events: auto;
}

.tt-cegid-anclas a:hover {
    background: #e0e0e0;
}

/* NUEVOS ESTILOS - Sticky y layout */
.tt-cegid-anclas-outer {
    position: relative;
    width: 100%;
}

.tt-cegid-anclas-container {
    width: 100%;
    background: #fff;
    transition: all 0.3s ease;
}

/* Estado sticky con máxima prioridad */
.tt-cegid-anclas-container.is-sticky {
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 99999 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: #fff;
}

/* Spacer */
.tt-cegid-anclas-spacer {
    display: none;
    height: 60px;
}

.tt-cegid-anclas-container.is-sticky ~ .tt-cegid-anclas-spacer {
    display: block;
}

/* Asegurar que el primer elemento siempre sea visible */
.tt-cegid-anclas {
    justify-content: flex-start;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.tt-cegid-anclas.tt-pi-anclas{
    justify-content: center;
}
/* Zonas agarrables */
.tt-cegid-anclas::before,
.tt-cegid-anclas::after {
    content: '';
    min-width: 10px;
    flex-shrink: 0;
}

/* Para móviles */
@media (hover: none) and (pointer: coarse) {
    .tt-cegid-anclas {
        cursor: default;
    }
    .tt-cegid-anclas:active {
        cursor: default;
    }
}

/* ===== SOLUCIÓN NUCLEAR PARA AVADA ===== */
/* Mover el menú al contexto de apilamiento más alto posible */
html body .tt-cegid-anclas-container.is-sticky,
html body .tt-cegid-anclas-container.is-sticky * {
    z-index: 2147483647 !important;
}

/* Si hay elementos padre con z-index que lo contienen, resetearlos */
.fusion-page-title-bar,
.fusion-header,
.fusion-secondary-header,
#sliders-container,
.fusion-slider-container,
.tfs-slider,
.flexslider,
.rev_slider_wrapper,
.tp-banner-container,
.tp-fullscreen-container,
.wpb_content_element,
.fusion-fullwidth,
.fusion-builder-row,
.fusion-layout-column,
.fusion-column-wrapper,
.fusion-text,
.fusion-code-block {
    position: relative;
    z-index: auto !important;
}

/* ============================================
   EFECTO VIDEO EXPAND - OVERLAY CORREGIDO
   ============================================ */

/* Sección contenedora */
.video-pin-section {
    height: 400vh !important;
    position: relative !important;
    background: transparent !important;
    overflow: visible !important;
}

/* Wrapper sticky */
.video-sticky-wrapper {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    z-index: 10 !important;
}

/* Contenedor de columnas */
.video-columns {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 0 2rem;
    margin: 0 auto;
    position: relative;
    isolation: isolate;
}

/* Columnas laterales - DEBAJO DE TODO */
.video-side-col {
    width: 20%;
    flex-shrink: 0;
    flex-grow: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
    position: relative;
}

.video-side-col img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Columna central */
.video-center-col {
    width: 60%;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    position: relative;
}

/* El video wrapper - ENCIMA DEL OVERLAY */
.video-expand-target {
    width: 100%;
    max-width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transform-origin: center center;
    will-change: transform;
    max-width: 100vw;
    z-index: 30;
    position: relative;
}

.video-expand-target video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: relative;
    z-index: 31;
}

/* Overlay - AHORA DENTRO DE LA COLUMNA DEL VIDEO, NO EN EL WRAPPER GENERAL */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    pointer-events: none;
    /* Entre el fondo y el video */
    z-index: 20;
    border-radius: 12px;
    transition: border-radius 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .video-columns {
        flex-direction: column;
        gap: 1rem;
    }
    .video-side-col {
        width: 40%;
        z-index: 1;
    }
    .video-center-col {
        width: 80%;
        z-index: 10;
    }
}


.megamenu-cegid-revo .awb-submenu__main-ul_column {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0 20px !important;
    columns: unset !important;
}

.awb-submenu__main-ul_column > .awb-submenu__main-li {
    width: 100% !important;
    margin: 0 !important;
    break-inside: unset !important;
}
.tt-pi-banda .fusion-column-wrapper .fusion-builder-row{
    height: 100%;
}
/* Media queries */
@media (max-width: 1200px){
    .tt-campo.tt-textarea {
        width: 100%;
    }
}
@media (max-width: 1024px){
    .tt-zoom {
        animation: none;
        transform-origin: center center;
    }
    .fusion-title h2 br{
        display: none;
    }
}
@media (max-width: 640px){
    .fusion-title h1{
        font-size: 48px!important;
        line-height: 50px!important;
    }
    .fusion-title h2{
        font-size: 38px!important;
        line-height: 40px!important;
    }
    .fusion-title h3{
        font-size: 38px!important;
        line-height: 40px!important;
    }
    .fusion-text p{
        font-size: 18px!important;
        line-height: 20px!important;
    }
    .fusion-fullwidth.tt-fondo-doble{
        background: transparent;
    }
    .tt-campo{
        width: 100%;
        margin-left: 0;
    }
}
@media (max-width: 450px){
    .fusion-title h1{
        font-size: 40px!important;
        line-height: 42px!important;
    }
    .fusion-title h2{
        font-size: 32px!important;
        line-height: 34px!important;
    }
    .fusion-title h3{
        font-size: 32px!important;
        line-height: 34px!important;
    }
}