/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
 
 @font-face {
    font-family: 'scramble';
    src: url('fonts/Scramble-KVBe.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
	color: black !important;
}

body ::selection {
  color: black !important;
  background-color: #cf8529 !important;
}

h3 {
	line-height: 1.5 !important;	
}

.uppercase {
	text-transform: uppercase;
}

.wep-card {
  --wep-card-border-radius: 5px;
}

.wep-card-title {
  text-transform: none;
  font-size: 1rem !important;
  font-weight: 500;
}

.grid-layout .wep-btn.wep-btn-primary {
    background-color: var(--paletteColor2) !important;
    border-radius: 5px !important;
}

#menu-noticias-destacadas li:first-child:before {
   content: "contacto";
   padding: 3px 5px;
   margin-right: 12px;
   background-color: var(--theme-palette-color-3);
   color: var(--theme-palette-color-1);
   font-weight: 600;
   text-transform: uppercase;
   font-size: 10px;
   border-radius: 5px;
}

.wep-card {
	background: none;
	min-width: inherit !important;
	text-align: center;
}

.wep-card-body {
	padding: 1rem 0 !important;
}

.wep-card-img {
  width: 100%;
  min-width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1;
  overflow: visible;
  border-radius: 3px;
  height: auto !important;
}

.wep-card-img .wep-chip {
  left: 50% !important;
  transform: translate(-50%, 50%) !important;
  bottom: 25px !important;
}

.wep-card-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wep-card-text p {
	font-size: .9rem;	
}

.wep-card-footer {
	display: none !important;
}

[data-header*="type-1"] #offcanvas .ct-panel-inner {
	background: var(--theme-palette-color-2);
}

.page-title {
	font-family: "scramble", "Jost", sans-serif;
	font-size: 2.5rem;
}

.single-post .page-title, .single-equipo .page-title, .single-publicacion .page-title {
	font-family: 'Jost', sans-serif !important;
}

.char {
    display: inline-block;
    will-change: transform, opacity;
}

.line, .word, .char {
    display: inline-block;
}

.home #header-text, 
.home #hero-index,
#home .entry-content {
    opacity: 1 !important;
    visibility: visible !important;
}

.ct-header, 
.entry-content, 
#header-text, 
.page-title,
.entry-title,
#hero-index, 
.ct-share-box, 
.ct-footer {
    opacity: 0;
    visibility: hidden;
}

.ct-container-full {
    visibility: visible;
    opacity: 1;
}

#wrapper {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height, 80px));
  min-height: 500px;
  overflow: hidden;
}

#bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

canvas {
  display: block;
}

.hero-section-index {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #8080802b;
}

.hero-title {
  font-size: 4rem;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0px;
  line-height: 1.2;
  font-family: 'scramble';
  color: white;
  opacity: 0;
  visibility: hidden;
      max-width: 1280px;
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 30px;
  max-width: 650px;
  color: white;
  opacity: 0;
  visibility: hidden;
}

.scroll-arrow {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    cursor: pointer;
    visibility: hidden;
}

.scroll-arrow span {
    display: block;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid black;
    border-right: 2px solid black;
    transform: rotate(45deg);
    margin: 0 auto;
}

.story-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden; /* Evita scrolls raros por animaciones */
}

.story-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px; 
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}
.story-content-timeline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0px; 
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 2;
}

.story-image {
  flex: 0 1 500px; /* No crece más de 500, pero puede achicarse */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
}

.story-text-container {
  flex: 0 1 500px;
  text-align: left;
  opacity: 0;
}

#story-1 { background-image: linear-gradient(to right top, #547792, #738da3, #90a3b4, #aebac5, #ccd1d6); }
#story-2 { background: #deffdf; }
#story-3 { background: #7f715c; }
#story-4 { background: rgba(128, 113, 92, 0.25); }

.pin-container {
  width: 100%;
  display: flex;
  justify-content: center;
}


.cta-section {
	  background: #00407b3d;
	background-image: linear-gradient(to left bottom, #8ea7bb, #a9bccb, #c5d2dc, #e1e8ed, #ffffff);

  height: 40vh !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cta-title {
  font-size: 2.2rem;
  margin: 0 0 30px;
  font-weight: 100;
  letter-spacing: 2px;
  text-shadow: 0 2p 0 rgba(255,255,255,.7);
}

#cta-btn {
  background: none;
  color: #7f715c;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s;
  border: 3px solid #7f715c;
}

#timeline {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 500px !important; 
    background-color: #00407b !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 999 !important;
}

.tl-item {
    flex: 1 !important;
    position: relative !important;
    height: 100% !important;
    min-width: 0 !important;
    cursor: pointer !important;
    transition: flex 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    display: block !important;
}

.tl-item:hover {
    flex: 3.5 !important;
}

.tl-bg {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    z-index: 0 !important;
    filter: grayscale(100%);
    transition: filter 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tl-item:hover .tl-bg { filter: grayscale(0); }

.tl-item:after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #7f715c;
    z-index: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(255,255,255,0.1);
}
.tl-item:first-child:after{border-left: none;}
.tl-item:hover:after { opacity: 0; }

.tl-year {
    position: absolute;
    top: 30%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    border-top: 1px dotted white;
    border-bottom: 1px dotted white;
    transition: opacity 0.6s ease;
}
.tl-year p{
	margin: 1rem;
	font-weight: 400;
	transition: all .6s ease-in-out;
	font-size: 1.2rem;
}

.tl-content {
    position: absolute;
      bottom: 25%;;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 35vw;
  min-width: 300px;
  text-align: center;
  z-index: 3;
  opacity: 0;
  color: white;
  padding: 0 20px;
  box-sizing: border-box;
  white-space: normal;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tl-item:hover .tl-content {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    
    /* 3. Retraso estratégico: El texto aparece cuando el item ya tiene espacio */
    transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
}

.tl-item:hover .tl-year p{
	font-weight: 600;
}

.custom-post-type-equipo{
	margin-bottom: 0 !important;
	text-align: center;
}
.miembro-tipo{
	text-align: center;
	margin-bottom: 3rem !important;
	color: #aaa;
}
.miembro-img{
	border-radius: 1000px;
	overflow: hidden;
}




/* Footer */
.main-footer {
  padding: 30px;
  text-align: center;
  background-color: #000;
  font-size: 0.9rem;
  opacity: 0.5;
}
.wp-element-button{
	font-weight: normal;
}






/* Media Queries */
@media (max-width: 1024px) {
  .story-section {
    flex-direction: column;
  }
  .story-text-container {
    margin: 50px auto !important;
    text-align: center;
  }
  .story-image {
    width: 80vw;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .cta-title {
    font-size: 3rem;
  }
}
@media (max-width: 600px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .site-logo-container img, .site-logo-container svg, .site-logo-container picture {
  max-width: 350px !important;
}
  .pin-container.img-left{
	  display: none;
  }
  .hero-tagline {
    font-size: 1.2rem;
  }
  .story-title {
    font-size: 2rem;
  }
  .cta-title {
    font-size: 2.5rem;
  }
  .story-image{
	  display: none;
  }
  .cta-title{
	  font-size: 1.6rem;
  }
  h6 img{
	  max-width: 250px;
  padding: 1rem 0;
  }
   #story-2{
	   display: none;
   }
   
   .hide-for-small-only{
	   display: none;
   }
   .page-title {
	font-size: 1.75rem;
	}
}







