/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
html, body {
	font-style: normal; 
	text-rendering: optimizeLegibility;  
	-webkit-font-smoothing: antialiased; 
	-moz-osx-font-smoothing: grayscale; 
}

.no-detect {
  -webkit-text-size-adjust: none;
  -webkit-touch-callout: none;
}

.elementor-nav-menu li a {
  overflow: hidden;
}

@media (min-width:861px){
  .k-grid.elementor-section .elementor-container {
        justify-content: space-between;
  }
  /* ancho de 2 columnas en realidad */
  .k-col-3 {
    width: 312px!important;
  }
}

@media (min-width:1025px){
  .k-col-1 {
    width: 156px!important;
  }

  .k-col-2 {
    width: 312px!important;
  }

  .k-col-4 {
    width: 624px!important;
  }

  .k-col-5 {
    width: 764px!important;
  }

  .k-col-8 {
    width: 764px!important;
  }

  .k-col-auto {
    width: auto!important;
    min-width: 12px;
  }
}

@media (min-width:1400px){
  /* a partir de aquí ya si, 3 columnas */
  .k-col-3 {
    width: 468px!important;
  }
  .workmsg {
    /*margin-left: 312px!important;*/
  }
}

*::selection{
  background: #FF0000;
  color: white;
} 

.elementor a {
	color: inherit;
	transition: 0.3s all ease-in;
}

.elementor-item {
  cursor: pointer;
}

.elementor a:active, .elementor a:hover, .elementor a:active span, .elementor a:hover span {
	#color: #FF0000;
  text-decoration: none;
  opacity: 1;
}

.eicon-close {
  width: 37px!important;
  height: 37px!important;
}

.dialog-close-button {
  top: 20px!important;
  inset-inline-end: 20px!important;
  right: 20px!important;
}

.elementor p {
	margin: 0;
}

.eicon-close {
  width: 34.3px;
  height: 34.3px;
  background-image: url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20id%3D%22Capa_1%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20xmlns:xlink%3D%22http%3A//www.w3.org/1999/xlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2034.3%2034.3%22%20style%3D%22enable-background%3Anew%200%200%2034.3%2034.3%3B%22%20xml:space%3D%22preserve%22%3E%3Cstyle%20type%3D%22text/css%22%3E.st0%7Bfill%3A%23FF0000%3B%7D%3C/style%3E%3Cpolygon%20class%3D%22st0%22%20points%3D%2234.3%2C1.4%2032.9%2C0%2017.2%2C15.7%201.4%2C0%200%2C1.4%2015.7%2C17.2%200%2C32.9%201.4%2C34.3%2017.2%2C18.6%2032.9%2C34.3%2034.3%2C32.9%2018.6%2C17.2%20%22/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
}

.eicon-close:before {
	content: '';
}

#scrollspy-menu {
  width: 156px!important;
}

#scrollspy-items {
	list-style:none;
	margin:0;
	padding:0;
}

#scrollspy-items li {
    font-size: 14px;
    font-family: 'Suisse';
    font-weight: 500;
    color: #777;
    margin-bottom:5px;
    cursor:pointer;
    line-height: 1.1;
    text-transform: uppercase;
}

@media(max-width: 1024px) {
    #scroll-container {
        display:none;
    }

    .post-type-archive-proyecto #scroll-container {
        display:block;
        position: absolute;
        top: 74px;
        width: 100%;
    }
}

/* WORK */
.grid-proyectos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.proyecto-item {
  position: relative;
  /*overflow: hidden;*/
  display: flex;
  flex-direction: column;
}

.first-item {
  grid-column: span 1;
}

.media-container {
  position: relative;
  overflow: hidden;
  
}

.media-container video {
  min-height: 185px;
}

.media-container img,
.media-container video,
.media-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: all 0.6s ease;
  /*backdrop-filter: blur(20px);*/
  padding: 0;
  margin: 0;
}

.media-container:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: all .3s ease;
}

@media(min-width: 861px){
  .proyecto-item:hover .media-container:after {
    opacity: 1;
  }

  /*.proyecto-item:hover img {
    filter: blur(20px);
    transform: scale(1.1);
  }

  .proyecto-item:hover iframe {
    filter: blur(20px);
    transform: scale(1.1);
  }

  .proyecto-item:hover video {
    filter: blur(20px);
    transform: scale(1.1);
  }*/
}

.media-container iframe html {
  cursor: pointer;
}

.proyecto-info {
  display: flex;
  padding: 10px 0;
}

.index {
  font-weight: 500;
  font-size: 12px;
  font-family: 'Helvetica Neue';
  font-weight: 500;
  color: white;
  margin-right: 60px;
  line-height: 1;
}

.title-client h3 {
  margin: 0;
  font-size: 30px;
  font-family: 'Suisse';
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  color: white;
}

.title-client p {
  font-weight: 500;
  font-size: 14px;
  font-family: 'Helvetica Neue';
  color: white;
  line-height: 1;
  text-transform: uppercase;
}

.vimeo-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 95vh;
  overflow: hidden;
}

.vimeo-embed iframe {
  width: 100%;
  height: 100%;
  max-height: 95vh;
}

.vimeo-embed.video-vertical {
  aspect-ratio: 9 / 16;
}

@media(min-width: 861px) {
  .grid-proyectos {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 100px;
    /*margin-top: 140px;*/
    margin-top: 90px;
  }

  .proyecto-item {
    aspect-ratio: 4/3;
  }

  .grid-proyectos a:nth-child(even) .proyecto-item {
    /*aspect-ratio: 1/2;*/
  }

  .grid-proyectos a:nth-child(even) .proyecto-item img {
    min-height: 529px;
    max-height: 529px;  
  }
  
}

@media(max-width: 861px) {
  .title-client h3 {
    font-size: 20px;
    line-height: 18px;
    letter-spacing: 0.1px;
  }

  .title-client p {
    font-size: 11px;
    line-height: 12px;
  }

  .proyecto-item {
    aspect-ratio: auto;
  }

  .vimeo-embed {
    aspect-ratio: 4/3;
  }
  .vimeo-embed.video-16-9 {
    aspect-ratio: 16/9;
  }
}

/* WORK DETAIL */
.fullpage-swiper .swiper, .fullpage-swiper .swiper-slide {
  width: 100vw;
  height: 100vh;
}

.video-bg,
.fullscreen-video {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  background: black;
}

.video-bg iframe {
  width: 100vw;
  height: 56.25vw; /* Given a 16:9 aspect ratio, 9/16*100 = 56.25 */
  min-height: 100vh;
  min-width: 177.77vh; /* Given a 16:9 aspect ratio, 16/9*100 = 177.77 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.image-fallback {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Overlay content like title must be on top */
.overlay-title {
  position: relative;
  z-index: 2;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  white-space: nowrap;
}

.overlay-title h1 {
  color: red;
  font-size: calc((90vw / var(--chars))/0.50);
  font-family: "Suisse";
  text-transform: uppercase;
  line-height: 1;
  font-weight: 700;
}

.image-slide {
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: black;
}

.final-slide {
  background: rgba(0, 0, 0, 1) 0% 0% no-repeat padding-box;
  width: 100%;
  height: 100%;
  display: flex;
}

.final-content {
  display: flex;
  align-items: center;
  padding: 30px;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  width: 75%;
  margin: 0 auto;
}

.final-content .description {
  font-size: 21px;
  font-family: 'Suisse';
  font-weight: 500;
  line-height: 21px;
  letter-spacing: -0.32px;
}

.final-content .description p {
  color: white;
}

.final-content .meta {
  width: 50%;
  margin-top: 70px;
}
.final-content .meta p {
  font-size: 16px;
  font-family: 'Suisse';
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0px;
  margin: 0;
  color: white;
}

.final-content .title_sec {
  font-size: 48px;
  font-family: 'Suisse';
  font-weight: 700;
  line-height: 42px;
  letter-spacing: -0.72px;
  color: white;
  text-transform: uppercase;
  margin-bottom: 70px;
}

.final-slide .left{
  font-size: 48px;
  font-family: 'Suisse';
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -0.72px;
  color: white;
}

.swiper-button-next, .swiper-button-prev {
    position: absolute;
    top: var(--swiper-navigation-top-offset, 50%);
    width: 30px;
    height: 35px;
    margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://www.karateagency.com/wp-content/uploads/2025/06/flecha_dch.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    color: transparent;
}

.swiper-button-next {
  right: 20px;
  left: auto;
}

.swiper-button-prev {
  left: 20px;
  right: auto;
}

.swiper-button-prev  {
    background-image: url('https://www.karateagency.com/wp-content/uploads/2025/06/flecha_izq.svg');
}

.proyecto-slider-wrapper {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.proyecto-slider-wrapper.modalOpen {
  filter: blur(20px);
}
    

/* Top bar */
.top-bar {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  mix-blend-mode: exclusion;
}

.final-slide .top-bar {
  /*padding: 30px;*/
}

.top-bar div, 
.bottom-bar div, 
.next-project,
.top-bar a {
    color: white;
    font-weight: 500;
    font-family: 'Suisse';
    font-size: 21px;
    line-height: 21px;
    letter-spacing: -0.32px;
    text-transform: uppercase;
}
 
.next-project:hover,
.top-bar a:hover {
  color: white;
}

/* Bottom bar */
.bottom-bar {
  position: absolute;
  bottom: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  width: 100%;
  mix-blend-mode: exclusion;
}

.tb-mobile {
  display: none;
}

.proyecto-archive {
  padding: 0px 32px 0px 32px;
}

@media (max-width: 860px) {

  .proyecto-archive {
    padding: 0px 20px 0px 20px;
  }

  .tb-mobile {
    display: flex;
  }

  .tb-desktop {
    display: none;
  }

  .proyecto-slider-wrapper .eicon-close,
  #modal .eicon-close {
    background-image: url("data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20id%3D%22Capa_1%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20xmlns:xlink%3D%22http%3A//www.w3.org/1999/xlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2034.3%2034.3%22%20style%3D%22enable-background%3Anew%200%200%2034.3%2034.3%3B%22%20xml:space%3D%22preserve%22%3E%3Cstyle%20type%3D%22text/css%22%3E.st0%7Bfill%3A%23FFFFFF%3B%7D%3C/style%3E%3Cpolygon%20class%3D%22st0%22%20points%3D%2234.3%2C1.4%2032.9%2C0%2017.2%2C15.7%201.4%2C0%200%2C1.4%2015.7%2C17.2%200%2C32.9%201.4%2C34.3%2017.2%2C18.6%2032.9%2C34.3%2034.3%2C32.9%2018.6%2C17.2%20%22/%3E%3C/svg%3E");
  }

  .top-bar div, 
  .bottom-bar div, 
  .next-project,
  .top-bar a {
      font-size: 14px;
      line-height: 15px;
      letter-spacing: -0.21px;
  }

  .final-content {
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
  }

  .final-content .meta,
  .final-content .description{
    width: 100%;
    padding-top: 30px;
  }

  .final-content .description{
    font-size: 14px;
    line-height: 15px;
    letter-spacing: -0.21px;
  }

  .final-slide {
    padding-top: 60px;
  }

  .final-slide .left{
    font-size: 30px;
    line-height: 28px;
  }
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: white;
}

.spinner {
  animation: rotate 2s linear infinite;
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.spinner .path {
  stroke: #FF0000;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

/*.modal.hidden {
  display: none;
}*/

.no-works {
  font-weight: 00;
  font-size: 41px;
  line-height: 41px;
  color: white;
  margin-top: 80px;
  text-align: center;
  text-transform: uppercase;
}

.fade-out {
  opacity: 1;
  transition: opacity 1s ease-in;
  animation: hide 1s ease-in 3s forwards;
}

.fade-out.animate-once {
  opacity: 0!important;
}

@keyframes hide {
  to {
    opacity: 0;
  }
}

.workmsg {
  /*margin-left: 156px;*/
  font-size: 14px;
  font-family: 'Suisse';
  font-weight: 500;
  color: #777;
  /*margin-top: 130px;
  margin-bottom: 165px;*/
  line-height: 1.1;
  margin-top: 65px;
  margin-bottom: 0px;
}

@media (max-width: 1024px) {
  .workmsg {
    margin: 20px 0 45px 0;
  }
  .swiper-button-next,
  .swiper-button-prev {
      display: none;
  }
}

/* WORKS */
.work-section {
  padding: 0 20px;
}

.work-main-content {
  margin-bottom:60px;
}

.images_grid {
  /*position: static;*/
}

.images_grid img {
  /*position: static;
  width: 100%;
  margin-bottom: 20px;
  object-fit: cover;
  max-height: 95vh; */
}

@media(min-width:861px){
  .work-section p {
    font-size: clamp(0.875rem, 0.787rem + 0.438vw, 1.313rem);
    line-height: 1;
  }

  .work-section h1 {
    font-size: clamp(2.5rem, 2rem + 2.5vw, 5rem)!important;
    line-height: 1!important;
  }

    .work-section h2 {
    font-size: 42px!important;
    line-height: 42px!important;
  }



  .images_grid {
    position: relative;
    width: 100%;
  }

  .images_grid img {
    position: absolute;
    transition: all 0.3s ease;
    margin-bottom: 0px;
  }

  .work-section {
    padding: 0 32px;
  }

  .work-main-content {
    display:flex; 
    justify-content: space-between;
    margin-bottom:120px;
  }

  .work-secondary-content {
    margin-top: 100px;
    margin-bottom: 100px;
  }
}