/*  
Theme Name: Studio 3D  
Theme URI: 
Author: Studio 3D  
Author URI: 
Description: 
Version: 1.0  
License: GPL-2.0  
*/  

/*UTILITARIAS*/
.relative{
  position: relative;
}
.absolute, 
.relative img,
.scrollVideo::before,
.overlay 
{
  position: absolute;
  inset: 0;
}
.inset-0,
.contact-popup{
  inset: 0;
}
.cover, 
.relative img, 
.prev-post img, 
.next-post img,
.nav-post
{
  width: 100%; 
  height: 100%; 
  object-fit: cover;
}
.full-vw,
.contact-popup{
  width: 100vw;
}
.full-vh,
.contact-popup{
  height: 100vh;
}
.min-vh{
  min-height: 100vh;
}
h2, h3, p, ul{
  margin-bottom: 1em;
}
.transition-all,
.contact-popup,
.popup-content,
.clients-logos img,
.btn, 
.filter-button,
.thumbnail-grid .overlay,
.thumbnail-grid .align-center,
.btn .svg,
.portfolio-filter-mobile,
.hero-icon svg,
.hero-icon svg:hover
{
  transition: all 0.3s ease;
}
svg {
  color: var(--base);
}
.sticky-top,
.intro-text{
  position: sticky;
  top: 0;
}
.uppercase,
.scrollText {
  text-transform: uppercase;
}
.text-center,
.nav-post,
.align-center,
.item,
.site-footer .copyright{
  text-align: center;
}   
.flex,
.align-center,
.intro-text,
.scrollContainer,
#contactForm button,
.contact-popup{
  display: flex;
}
.align-center {
  justify-content: center;
  flex-direction: column;
  z-index:1;
}
.ratio-square,
.prev-post, 
.next-post {
  aspect-ratio: 1/1; 
}

.fixed,
.contact-popup,
.close-popup{
  position: fixed;
}
.scrollText{
  font-size: clamp(24px, 5vw, 64px);
  font-weight: 600;
  text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
  z-index: 10;
}
.nav-post {
  color: var(--base-1); 
}
/*NAVEGACION PORTFOLIO ITEM______________ */
.nav-post{
  place-content: center;
  background: rgba(0,0,0,0.2);
}
.sidebar{
  padding-top: 2em;
}
p{
  font-weight: 300;
}
.entry-title{
  margin-bottom: 1.5em;
}
/*MENU HEADER*/
.menu-toggle:checked + .menu-icon {
  color: var(--contrast);
}
.menu-toggle:checked + .menu-icon::before {
  transform: rotate(45deg);
  top: 50%;
}
.menu-toggle:checked + .menu-icon::after {
  transform: rotate(-45deg);
  top: 50%;
}
.menu-toggle:checked + .menu-icon span {
  opacity: 0;
}
.menu-toggle:checked + .menu-icon + .main-menu {
  display: flex;
}
.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  z-index: 1000;
}
.inside-header{
  padding: 10px 10px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo img {
  width: 60px;
  display: block;
  height: auto;
}
.menu-toggle {
  display: none;
}
.menu-icon {
    width: 30px;
    height: 24px;
    position: relative;
    display: block;
    cursor: pointer;
    z-index: 1000;
    color: var(--base);
}
.menu-icon span,
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-icon span {
  top: 50%;
  transform: translateY(-50%);
}
.menu-icon::before {
  top: 4px;
}
.menu-icon::after {
  top: 20px;
}
.site-header{
  position: fixed; 
  width: 100%;
  background: linear-gradient(to bottom, #1b1a26 , transparent);
  top: 0;
  z-index: 100;
}
.main-menu {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--base);
  z-index: 999;
  padding: 2rem;
}
.menu-items {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  list-style: none;
}
.menu-items a {
  text-decoration: none;
  font-size: 2em;
  font-weight: 100;
  color: inherit;
	color: var(--contrast);
}
@media (min-width: 769px) {
  .menu-icon {
    display: none;
  }
  .main-menu {
    all: unset;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .menu-items {
    flex-direction: row;
    gap: 2rem;
    list-style: none;
  }
  .menu-items a {
    font-size: 18px;
    font-weight: 400;
    color: var(--base);
  }
}

/*CONTACT FORM_______________*/
#contactForm input:not([type="checkbox"]),
#contactForm textarea {
  width: 100%;
  min-height: 2em;
  border: none;
  border-bottom: 1.5px solid var(--base);
  background-color: var(--contrast);
}
fieldset{
  margin-top: 1.5em;
  border: none;
}
/*CF POP-UP*/
.contact-popup {
  background: var(--contrast);
  justify-content: center;
  align-items: center;   
  z-index: 1000;
  overflow-y: auto; 
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.contact-popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.popup-content {
  margin-top: 6em;
  max-width: 500px;
  max-height: 100%;
}
.close-popup {
  top: 1em;
  right: 1em;
  font-size: 1.5rem;
  z-index: 300;
}
/*cliente logos*/
.clients-logos img {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  justify-self: center;
  padding: 1em;
  width: 100%;
}
.clients-logos img:hover {
  filter: grayscale(0%);
}
.item{
  padding: 1em;
}
.services-grid img{
  filter: brightness(50%);
}
.service-grid .relative{
  height: 500px;
}
/**/
.inside-right-sidebar span{
  font-weight:500;
}
.lucide {
  margin: auto;
}
.gradient-bg,
.custom-header,
.intro-text{
  background: linear-gradient(to bottom,    #1b1a26 0%,    rgba(0, 0, 0, 0) 100%);
}
.intro-text{
  font-size: 21px;
  height: 100px;
  align-items: center;
  justify-content: center;
  padding: 0em 3.5em;
  z-index:10;
}


/*Scroll Video*/
.scrollContainer{
  justify-content: center;
  height: 250vh;
}
.scrollVideo {
  filter: brightness(0.75);
}

a:hover {
  color:  var(--accent);
}
.custom-fields-sidebar .pair {
  display: flex;
}

.custom-fields-sidebar dt {
  font-weight: 500;
  white-space: nowrap;
}
.custom-fields-sidebar dd {
  margin-left: 0.4em;
  font-weight: 300;
}
.custom-fields-sidebar p {
  padding-bottom: 1em;
}
body:not(.home)
{ 
  padding-top: 6em;
}
.site-content .content-area {
  width: 100%;
}

iframe {
  width: 100%;
	height: 100%;
  aspect-ratio: 16 / 9; 
}
.site-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1em;
}


@media (max-width: 767px) {
  .hide-on-mobile {
    display: none;
  }
}
@media (min-width: 768px) {
  .hide-on-desktop {
    display: none;
  }
}

.sidebar-desktop > *,
.sidebar-mobile > *{
  margin-bottom: 2em; 
}

.wp-block-list{
	padding-left: 2em;
}
#contactForm .btn{
	margin: 0 auto;
}
.service-grid .absolute{
	margin: 1em;
}



img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.close-popup{
  border: none;
	color: var(--base);
	background-color: var(--contrast);
	font-size: 2em;
}
.sidebar-desktop{
  position: sticky;
	top: 6em;
}

.site-footer{
  margin: 1em;
}

a,
aside,
#contactForm,
.thumbnail-grid a:hover {
  color: var(--base);
}



body.tag .site-content,
body.category .site-content {
  display: block;
}
.btn svg,
.cta svg{
  width: 24px;   
  height: 24px;   
  stroke-width: 1.5;
}
model-viewer {
  width: 100%;
  height: 100%;
  display: block;
}
.item.text-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
svg {
  width: 64px;   
  height: 64px;  
  stroke-width: 0.5;
}
.btn, 
.filter-button,
.filter-menu {
  color: var(--base);
  border-radius: 100px;
  background: var(--contrast);
  border: 1.5px solid;
  border-color: var(--accent);
  padding: 10px 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.5em; 
  margin-bottom: 1em; 
}
.filter-menu {
  appearance: none;
  cursor: pointer;
}
.btn:hover, 
.filter-button.active, 
.filter-button:hover{
  gap: 20px;
  background: var(--accent);
  color: var(--base);
}
.btn .svg {
  opacity: 0;
  margin-left: -24px; 
}
.btn:hover .svg {
  opacity: 1;
  margin-left: 0;
}
.overlay {
  background-color: rgba(27, 26, 38, 0.5);
  pointer-events: none; 
  mix-blend-mode: multiply; 
}
.filter-mobile{
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.portfolio-filter{
  z-index: 500;
  top: 1.8em;
}
.portfolio-filter{
  pointer-events: none; 
}
.filter-menu, .filter-desktop {
  pointer-events: auto;
}
.load-model-btn{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
}
.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9; 
}


.carrousel {
  overflow-x: auto;
  display: flex;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.carrousel > .item {
  border: 1px solid var(--base);
  flex: 0 0 80%;
  scroll-snap-align: center;
}

.portfolio-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.portfolio-main {
  width: 100%;
}

.sidebar-desktop {
  display: none;
}

.sidebar-mobile {
  padding: 1em 0;
}
/* por defecto (mobile) */
.sidebar-desktop { display: none; }
.sidebar-mobile { display: block; }

/* a partir de 768px (desktop) */
@media (min-width: 768px) {
  .sidebar-desktop { display: block; }
  .sidebar-mobile  { display: none;  }
}

/* Desktop */
@media (min-width: 768px) {
  .portfolio-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .portfolio-main {
    width: 70%;
  }
  .sidebar-desktop {
    display: block;
    width: 30%;
    padding-left: 2rem;
  }
  .sidebar-mobile {
    display: none;
  }
}
/*COLUMNAS*/
/**********************/
.grid,
.thumbnail-grid,
.clients-logos  {
  display: grid;
}
.gap{
  gap: 1em;   
}
.thumbnail-grid[data-type="nav"]
.thumbnail-grid[data-type="portfolio"],
.thumbnail-grid[data-type="featured"],
.grid-cols-1 {
  grid-template-columns: 1fr;
}
.thumbnail-grid[data-type="nav"] {
  grid-template-columns: repeat(2, 1fr);
}
.clients-logos {
  grid-template-columns: repeat(4, 1fr);
}
@media (min-width: 768px) {
  .grid-cols-2,
  .thumbnail-grid[data-type="portfolio"] {
    grid-template-columns: repeat(2, 1fr);
  }
  .thumbnail-grid[data-type="featured"] {
    grid-template-columns: repeat(3, 1fr);
  }
  .thumbnail-grid .overlay,
  .thumbnail-grid .align-center {
    opacity: 0;
  }
  .thumbnail-grid .item:hover .overlay,
  .thumbnail-grid .item:hover .align-center {
    opacity: 1;
  }
  .service-grid .relative {
    aspect-ratio: 1/1;
    height: auto;
  }
  .intro-text{
    height: 200px;
  }
  .carrousel {
    display: grid;
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
  .carrousel > .item {
    flex: unset;
  }
  .portfolio-filter{
    z-index: 100;
    top: 6em;
  }
}
@media (min-width: 1024px){
  .grid-cols-3,
  .thumbnail-grid[data-type="portfolio"] {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .clients-logos{
    grid-template-columns: repeat(8, 1fr);
  }
}
