/*
Theme Name: CREW Theme
Theme URI: https://crewcreativos.com
Template: hello-elementor
Author: CREW Digital
Author URI: https://crewcreativos.com
Version: 1.0
*/

/* ==========================================================================
   GLOBALES, LENIS Y RESETS
   ========================================================================== */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}
.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

.e-con {
    overflow: visible !important; 
}
.gsap-pin-wrap {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

/* Scrollbars y selección */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
html, 
body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

::selection {
  background-color: var(--e-global-color-accent) !important;
  color: var(--e-global-color-secondary) !important; 
}
::-moz-selection {
  background-color: var(--e-global-color-accent) !important;
  color: var(--e-global-color-secondary) !important;
}

p:only-of-type,
p:last-child {
  margin-bottom: 0 !important;
}

[data-crew-anchor-placement="hero"] {
    opacity: 0;
    visibility: hidden;
}

/* Eyebrow Title */
.eyebrow {
    background-color: rgba(3,27,27,0.6) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}
.eyebrow :is(span, h1, h2, h3, h4, h5, h6) {
    margin: 0 !important;
    font-size: 1em !important;
}
.eyebrow .elementor-icon-box-title span {
    text-transform: none !important;
}

/* Background Blur */
.blur-bg {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    will-change: backdrop-filter, opacity !important;
    transform: translateZ(0) !important;
}


/* ==========================================================================
   1. HEADER
   ========================================================================== */
#header-container {
    pointer-events: none !important;
}

#header {
    position: relative;
    transition: height 0.5s ease, width 0.5s ease, margin 0.5s ease, padding 0.5s ease, background-color 1.0s ease, border-radius 0.5s ease !important;
    background-color: transparent;
    width: 100%;
    height: 65px !important;
    pointer-events: auto !important;
    cursor: pointer;
    margin: 0 auto !important;
}

#header:hover {
    background-color: rgba(10, 20, 15, 0.75);         
    padding: 10px 15px;    
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    will-change: backdrop-filter, opacity !important;
    transform: translateZ(0) !important;
    border-radius: 15px;
    border: 1px solid #ffffff10;
}

#header.shrink {
    width: 35%;
    background-color: rgba(10, 20, 15, 0.75);         
    padding: 10px 15px;    
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    will-change: backdrop-filter, opacity !important;
    transform: translateZ(0) !important;
    border-radius: 15px;
    border: 1px solid #ffffff10;
}

#header.shrink .header-logo-text {
    display: none;    
}

.header-menu-icon svg, .header-menu-icon-close svg {
    transition: fill 0.3s ease !important;
}

#header:hover .header-menu-icon svg,
#header:hover .header-menu-icon-close svg,
#header:hover .header-menu-icon-up svg{
    fill: var(--e-global-color-accent) !important;
}

.header-center-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.header-text,
.header-dynamic-text,
.header-menu-icon-close {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

/* Limpieza de márgenes internos de Elementor en textos dinámicos */
.header-text *,
.header-dynamic-text * {
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
}

.header-menu-icon-close {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: pointer;
	margin-top:2px;
}

body.menu-open .header-text,
body.menu-open .header-dynamic-text {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.menu-open .header-menu-icon-close {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
	margin-top: 2px !important;
}

body.menu-open #header {
    width: 65px !important;
    background-color: rgba(10, 20, 15, 0.75);
    padding: 0;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    will-change: backdrop-filter, opacity !important;
    transform: translateZ(0) !important;
    border-radius: 15px;
    border: 1px solid #ffffff10;
}

.header-logo-container,
.header-menu-icon-container {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

body.menu-open .header-logo-container,
body.menu-open .header-menu-icon-container {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.subheader {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background-color 0.3s ease !important;	
}

body.menu-open .subheader {
    opacity: 1;
    pointer-events: auto;
}

.subheader-menu {
    background-color: rgba(10, 20, 15, 0.75);
    padding: 10px 15px;    
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    will-change: opacity, transform !important;
    border-radius: 15px !important;
    border: 1px solid #ffffff05;
    width: 30% !important;
    min-height: 350px !important;
    transform-origin: bottom center !important;
	transform: scale(0);
    opacity: 0;
	pointer-events: auto;
}

/* Menu interno */
.e-n-menu-heading .e-n-menu-title-text {
    color: #ffffff !important;
    transition:color 0.3s ease, opacity 0.3s ease !important;
}

.e-n-menu-title.e-current .e-n-menu-title-text {
    color: var(--e-global-color-accent) !important; 
}

.e-n-menu-heading:hover .e-n-menu-item:not(:hover) .e-n-menu-title-text {
    opacity:0.3 !important;
}

.menu-items ul {
    flex-direction:column !important;
}
.menu-items li {
    margin: 0 auto !important;
}


/* Footer menu */
.header-menu-icon-up {
    display: none !important;
}

body.at-bottom .subheader {
    background-color: transparent !important;
}

body.at-bottom .header-menu-icon-close {
    display: none !important;
}

body.at-bottom .header-menu-icon-up {
    display: block !important;
    cursor: pointer;
}
@media (max-width: 1024px) {
.list-footer ul {
	flex-direction:column !important;
    margin: 0 auto !important;
	gap:12px !important;
}
}


/* ==========================================================================
   2. HERO
   ========================================================================== */
/* Botón circular rotatorio */
#circle { 
    overflow: hidden; 
    width: 300px; 
    height: 300px; 
    position: relative; 
    margin: -75px;
}

#circle text { 
    font-family: 'Helvetica Neue', Arial; 
    font-size: 18px; 
    font-weight: bold; 
    fill: #ffffff; 
    letter-spacing: 1.8px;
}

#circle text.wallpaper { 
    font-family: 'Helvetica Neue', Arial; 
    font-size: 3em; 
    font-weight: bold; 
    fill: #ffffff;
}

#circle svg { 
    position: absolute;
    animation: rotate 6s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(360deg); }
    to { transform: rotate(0); }
}

#circle:before {
    content: '';
    width: 60px;
    height: 60px;
    position: absolute;
    background: #fff;
    border-radius: 50%;
    display: block;
    margin: 120px;
    text-align: center;
    padding: 0;
    color: #f33283;
    cursor: pointer;
    pointer-events: auto;
}

#circle:after {
    content: url(https://crewcreativos.com/wp-content/uploads/2026/09/icon-arrow-down.svg);
    width: 35px;
    height: 35px;
    position: absolute;
    margin: 132px;
    text-align: center;
    pointer-events: auto;
    animation: bounce 2s infinite;
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(3px);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Secuencia Hero & Doors */
.hero-pin-parent,
#crew-hero-pin {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 2;
}

.site-main {
    padding-top: 0;
}

.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.hero-sequence-wrapper {
    position: relative;
    width: 100%;
    height: 100dvh;
    background-color: transparent;
    overflow: hidden;
}

.hero-visuals {
    position: relative;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    z-index: 1;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-door {
    position: absolute;
    top: 0;
    width: 50vw;
    height: 100dvh;
    overflow: hidden;
    z-index: 3;
}
.door-left { left: 0; }
.door-right { right: 0; }

.hero-door canvas {
    position: absolute;
    width: 100vw;
    height: 100dvh;
}

#canvas-left, #canvas-right {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
#canvas-right {
    left: -50vw;
}

.hero-btn {
    position: relative;
    z-index: 15;
    pointer-events: auto !important;
}

.hero-icon-start,
.hero-eyebrow,
.hero-title,
.hero-btn1,
.hero-btn2 {
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px);
    will-change: transform, opacity;
}





/* ==========================================================================
   3. ENFOQUE
   ========================================================================== */
.custom-heading {
    font-family: inherit;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    text-align: center;
}

.sweep-line {
    position: relative;
    display: block;
    width: 100%;
}

.sweep-line-base {
    display: block;
    color: rgba(255, 255, 255, 0.2);
}

.sweep-line-base .highlight-accent {
    color: rgba(255, 255, 255, 0.2);
}

.sweep-line-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #ffffff;
    pointer-events: none;
    clip-path: inset(0% 100% 0% 0%);
    -webkit-clip-path: inset(0% 100% 0% 0%);
}

.sweep-line-overlay .highlight-accent {
    color: var(--e-global-color-accent, #ff0055);
}

.circle-container {
    position: absolute !important;
    width: 100%;
    overflow: hidden;
}

.contenedor-3d {
    perspective: 500px;
    width: 100%;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.anillos {
    position: absolute;
    margin-top: -80px;
    height: 600px;
    border: 4px solid #ffffff80;
    border-radius: 50%;
    
    transform: rotateX(78deg) rotateZ(0deg) translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    
    box-shadow: 0 0 15px #ffffff30;

    -webkit-mask-image: linear-gradient(to bottom, transparent 10%, black 60%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 10%, black 60%, black 100%);
}

/* ==========================================
   1. Tamaños para DESKTOP (Por defecto)
   ========================================== */
.anillo1 { width: 600px; }
.anillo2 { width: 500px; border: 4px solid var(--e-global-color-accent) !important; }
.anillo3 { width: 400px; }
.anillo4 { width: 300px; }


/* ==========================================
   2. Tamaños para TABLET (Hasta 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .anillo1 { width: 500px; }
    .anillo2 { width: 420px; }
    .anillo3 { width: 330px; }
    .anillo4 { width: 280px; }
}


/* ==========================================
   3. Tamaños para MOBILE (Hasta 768px)
   ========================================== */
@media (max-width: 768px) {
	.anillos { margin-top: -100px; }
    .anillo1 { width: 305px; }
    .anillo2 { width: 295px; }
    .anillo3 { width: 285px; }
    .anillo4 { width: 275px; }
}  


/* ==========================================================================
   4. SOLUCIONES
   ========================================================================== */
:root {
    --fluid-side-padding-min: 0.5rem;
    --fluid-side-padding-max: 5rem;
}

.soluciones-wrapper {
    position: relative;
    width: 100%;
}

.soluciones-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column !important;
    z-index: 0;
    pointer-events: none;
}

.bg-anim {
    position: relative;
    width: 100%;
    flex: 1;
    left: 50% !important;
    transform: translateX(-50%);
    will-change: width;
    --current-padding: clamp(var(--fluid-side-padding-min), 6.522vw + -0.217rem, var(--fluid-side-padding-max));
    overflow: hidden !important; 
}

.color-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw; 
    height: 200%;
    background: #070e0b;
    z-index: -1;
    pointer-events: none;
    transition: background 0.5s ease !important;
}

.color-bg-top {
    top: 0;
}

.color-bg-bottom {
    top: -100%; 
}

.expand-bg {
    --wx: 1;
    width: calc(100% - (var(--current-padding) * 2 * (1 - var(--wx)))) !important;
    border-radius: calc(35px * (1 - var(--wx))) !important;
    margin-top: calc(60px * (1 - var(--wx))) !important;
}

.shrink-bg {
    --ws: 1;
    width: calc(100% - (var(--current-padding) * 2 * (1 - var(--ws)))) !important;
    border-radius: calc(35px * (1 - var(--ws))) !important;
    margin-bottom: calc(60px * (1 - var(--ws))) !important;
}

.soluciones-contenido {
    position: relative;
    z-index: 2; 
    width: 100%;
}

#evolucion, #ecosistema, #growth {
    pointer-events: auto !important;
    overflow: hidden !important;
}

#soluciones:has(#evolucion:hover) .color-bg,
#soluciones:has(#ecosistema:hover) .color-bg,
#soluciones:has(#growth:hover) .color-bg {
    background: var(--e-global-color-secondary) !important;
}

#solutions-lottie {
    position: relative;
    width: 180px;
    height: 180px;
    margin: -50px;
    transition: margin 0.8s ease, height 0.8s ease, width 0.8s ease !important;
}

.extra-content-evolucion, .extra-content-ecosistema, .extra-content-growth {
    display: flex;
    flex-direction: column;
    max-height: 0;
    opacity: 0;
    transition: max-height 1.5s ease, opacity 1.5s ease !important;
}

#evolucion:hover .extra-content-evolucion,
#ecosistema:hover .extra-content-ecosistema,
#growth:hover .extra-content-growth {
    max-height: 600px;
    opacity: 1;
}

.grow-line {
    transition: width 0.5s ease, height 0.5s ease !important;
}
.solution-content:has(#evolucion:hover) .grow-line {
    width: 33%;
}
.solution-content:has(#ecosistema:hover) .grow-line {
    width: 67%;
}
.solution-content:has(#growth:hover) .grow-line {
    width: 100%;
}

.evolucion-eyebrow span, .ecosistema-eyebrow span, .egrowth-eyebrow span {
    transition: color 0.3s ease !important;
}
.solution-content:has(#evolucion:hover) .evolucion-eyebrow span,
.solution-content:has(#ecosistema:hover) .ecosistema-eyebrow span,
.solution-content:has(#growth:hover) .growth-eyebrow span {
    color: var(--e-global-color-accent);
}

.evolucion-eyebrow, .ecosistema-eyebrow, .growth-eyebrow {
    transition: background-color 0.3s ease !important;
}
.solution-content:has(#evolucion:hover) .evolucion-eyebrow,
.solution-content:has(#ecosistema:hover) .ecosistema-eyebrow,
.solution-content:has(#growth:hover) .growth-eyebrow {
    background-color: #070e0b;
}

.extra-content-evolucion, .extra-content-ecosistema, .extra-content-growth {
    display:grid !important;
	grid-template-columns: 1fr !important;
	grid-template-rows: auto !important;
	gap:12px !important;	
}
.solutions-btn {
  max-width: fit-content !important;
}


/* ==========================================================================
   5. PARTNERS (CON GRÁFICO Y SLIDER)
   ========================================================================== */
.grafico-padre {
    display: flex !important;
    align-items: flex-end !important; 
    gap: 20px !important;
    height: 450px !important;
    width: 100% !important;
}

/* Solución para asegurar que todas las barras respondan al flex y a las alturas porcentuales */
.grafico-padre > * {
    flex: 1 !important;
    box-sizing: border-box !important;
}


/* ==========================================================================
   6. EXPERIENCIA (GRID DE CLIENTES)
   ========================================================================== */
.logo-container {
    background-color: #070e0b;
    min-height: 150px !important;
}
.logo-container img {
    opacity: 0.4;
    max-width: 70% !important;
}
.logo-cta svg, .logo-cta p {
    transition: all 0.3s ease !important;
}
.logo-cta:hover svg {
    fill: var(--e-global-color-accent) !important;
    rotate: 45deg;
}
.logo-cta:hover p {
    color: var(--e-global-color-d94e552) !important;
}


/* ==========================================================================
   7. CALL TO ACTION
   ========================================================================== */
.elementor-widget-button .elementor-button {
  display: inline-block !important;
  will-change: transform !important;
  transition: none !important; 
}
.wp-block-columns {
	margin:0 !important;
}
.jet-apb-calendar-appointments-list-wrapper {
	display:none !important;
}
.jet-apb-calendar .jet-apb-calendar-header {
    padding: 16px !important;
    border-radius: 12px 12px 0 0 !important;
}
.jet-apb-calendar .jet-apb-calendar-body {
    border-radius: 0 0 12px 12px !important;
}
.jet-apb-calendar .jet-apb-calendar-slots .jet-apb-calendar-slots-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
	border-radius:12px !important;
	padding: 0 !important;
}
.jet-apb-calendar .jet-apb-calendar-slots.jet-apb-calendar-slots--active {
	background-color:#D6DAD8 !important;
	margin: 12px !important;
	border-radius:12px !important;
	max-width:calc(100% - 24px) !important;	
}
.jet-apb-calendar .jet-apb-calendar-date {
    padding: 12px 0 !important;
}
.jet-apb-slot {
    text-align: center;
}
.field-type-checkbox-field {
    margin-bottom:18px !important;
}
.jet-form-builder__fields-group.checkradio-wrap {
    background-color: #00303147;
    border-style: 1px solid #00303147;
    border-radius: 8px;
	padding: .5rem 1rem 1.04rem .5rem;
}
.range-wrap {
    background-color: #00303147;
    border-style: 1px solid #00303147;
    border-radius: 8px;
	padding: .5rem 1rem;
}
input:focus, 
textarea:focus, 
select:focus {
	  outline: none;
	  border: 1px solid var(--e-global-color-accent) !important;
}
.phone-field-wrap button, .iti__selected-country-primary {
	outline: none !important;
	border: none !important;
	background-color:transparent !important;
}

.jet-form-builder__next-page-wrap, .jet-form-builder__action-button-wrapper {
    justify-content: space-between !important;
}
.jet-form-builder__prev-page {
	min-width: 44px;
}
.jet-form-builder__next-page, .jet-form-builder__action-button {
	min-width: calc(100% - 50px);
}
.jet-form-builder__next-page-wrap:not(:has(.jet-form-builder__prev-page)) .jet-form-builder__next-page {
	min-width: 100% !important;
}


/* ==========================================================================
   MEDIA QUERIES GLOBALES & RESPONSIVE
   ========================================================================== */
@media only screen and (max-width: 1024px) {
    .expand-bg {
        margin-top: calc(100px * (1 - var(--wx))) !important;    
    }
    .shrink-bg {
        margin-bottom: calc(110px * (1 - var(--ws))) !important;
    }   
	.solution-content:has(#evolucion:hover) .grow-line {
    width: 2px !important;
	height:38% !important;	
}
	.solution-content:has(#ecosistema:hover) .grow-line {
    width: 2px !important;
	height:69% !important;		
}
	.solution-content:has(#growth:hover) .grow-line {
    width: 2px !important;
	height:100% !important;		
}
}

@media screen and (max-width: 768px) {
    #header.shrink {
        width: 100% !important;
    }    
    .subheader-menu {
        width: 80% !important;
    }
    .hero-door {
        background-color: #000000;    
    }
    .hero-door canvas {
        margin-top: 20dvh;
    }
	.custom-heading {
    font-size: 2rem;
	}
    .expand-bg {
        margin-top: calc(70px * (1 - var(--wx))) !important;
        border-radius: calc(20px * (1 - var(--wx))) !important;    
    }
    .shrink-bg {
        margin-bottom: calc(84px * (1 - var(--ws))) !important;
        border-radius: calc(20px * (1 - var(--ws))) !important;    
    }
	.logo-container {
    min-height: 120px !important;
	}
}



/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000 !important;
    z-index: 9999999999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo {
    position: relative;
    width: 100px;
    height: 107px;
}

.svg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.svg-fill-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(100% 0 0 0); 
    will-change: clip-path;
}