/*

 Theme Name:   GeneratePress Child

 Theme URI:    https://generatepress.com

 Description:  Default GeneratePress child theme

 Author:       Tom Usborne

 Author URI:   https://tomusborne.com

 Template:     generatepress

 Version:      0.1

*/



/* FUENTE */


@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

@font-face {
  font-family: 'Gambetta';
  src: url('fonts/Gambetta-Italic.eot'); 
  src:
    url('fonts/Gambetta-Italic.eot?#iefix') format('embedded-opentype'), 
    url('fonts/Gambetta-Italic.woff2') format('woff2'),   
    url('fonts/Gambetta-Italic.woff') format('woff'),     
    url('fonts/Gambetta-Italic.otf') format('opentype'),  
    url('fonts/Gambetta-VariableItalic.ttf') format('truetype'); 
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gambetta Footer';
  src: url('fonts/Gambetta-Variable.eot'); 
  src:
    url('fonts/Gambetta-Semibold.woff2') format('woff2'),   
    url('fonts/Gambetta-Semibold.woff') format('woff'),     
    url('fonts/Gambetta-Semibold.otf') format('opentype'),  
    url('fonts/Gambetta-Semibold.ttf') format('truetype'); 
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'InterTight';
  src: url('fonts/InterTight-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'InterTight';
  src: url('fonts/InterTight-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* VARIABLES POR DEFECTO */

:root {

  --c-negro: #201012;
  --c-blanco: #FFFFFF;

  --c-primario-dark: #2C1D23;
  --c-primario: #E01F4F;
  --c-primario-light: #A4586A;

  --c-secundario-dark: #39413A;
  --c-secundario: #61F283;
  --c-secundario-light: #4F7D52;

  --c-fondo: #F2F2F2;

  --c-grisclaro: #EFEFEF;
  --c-gris: #f9f9f9;

  --font-main: 'Gambetta', serif;
  --font-cuerpo: 'InterTight', 'Inter', sans-serif;
  --font-footer: 'Gambetta Footer', serif;

  --size: 15px;

}

/* OUTLINE */

*:focus { outline: 0px solid orange; }

::selection {
  background-color: var(--c-secundario); 
  color: var(--c-negro); 
}

html {
  scroll-behavior: smooth;
}

.zindex0 {
  color: var(--c-negro);
}

.zindex1 {
  z-index:1;
}

.alinear-derecha {
  text-align: right;
  margin-bottom: 0px !important;
}

.text-light {
  color: var(--c-blanco);
}

.rosa {
  color: var(--c-primario);
}

@media (max-width: 560px) {
  .alinear-derecha {
    text-align: left;
  }
}

.alinear-centro {
  text-align: center;
}

.cursiva  {
  font-family: var(--font-main), serif;
  font-style: italic;
}

.mayuscula {
  text-transform: uppercase;
}

/* ESTILOS COMUNES */


body {
  font-family: var(--font-cuerpo), sans-serif;
  color: var(--c-negro);
  font-size: clamp(1rem, 1.9vw, 1.375rem);
  line-height: 1.6875rem ;
  font-weight: 300;
}

h2, h3 {
  font-family: var(--font-cuerpo), serif;
  font-weight: 300;
  text-transform: uppercase;
}


h2.subtit-home {
  color: var(--c-primario);
  font-size: clamp(3rem, 5.2vw, 5rem);
}

h1.tit-subpage {
  color: var(--c-primario);
  font-size: clamp(3.0rem, 5.2vw, 5rem);
  text-transform: uppercase;
  font-weight: 300;

}

h3 {
  font-size: clamp(1.5rem, 3.5vw, 2.8125rem);
}

strong, b {
  font-weight: 600;
}

/* ENLACES */

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.4s ease !important;
}

a:hover {
  color: inherit;
  opacity: 0.8;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: var(--c-primario);
  font-weight: 700;
}


/* HERO HOME */

.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  
}

.titulo-hero {
  position: relative;
  width: 100%;
  height: 100%;
  font-family: var(--font-main);
 
  font-size: clamp(3.8rem, 8vw, 8rem);
  
  color: var(--c-negro);
  text-transform: uppercase;
  z-index: 23
}

.site-logo {
    display: inline-block;
    max-width: 100%;
    position: absolute;
    z-index: 9;
    width: 150px;
    left: 7%;
}

.parte-izquierda {
  position: absolute;
  top: 10%;
  left: 5%;
  text-align: left;
  line-height: 1.1;
  display: block;
}

.parte-derecha {
  position: absolute;
  bottom: 0px;
  right: 5%;
  text-align: right;
  line-height: 1.1;
  display: block;
}

.parte-izquierda span:first-child, .parte-derecha span:last-child {
  font-family: var(--font-main); 
  color: var(--c-fondo);
  font-weight: 400;
   font-style: italic;
}

.parte-derecha span:first-child, .parte-izquierda span:last-child {
  font-family: var(--font-cuerpo); 
  color: var(--c-primario);
  font-weight: 300;
}

.img-hero {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  transform: translate(-50%, -50%) rotate(-3deg);
  border-radius: 20px;
  z-index: 1;
}

.subtit-hero {
  position: absolute;
  bottom: 0px;
  left: 8%;
  font-family: var(--font-cuerpo);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 40ch;
  color: var(--c-fondo);
  text-transform: uppercase;
  z-index: 2;
  font-weight: 300;
}

/* Contenedor fijo y escala en hover */
.boton-wrap {
  position: fixed;
  bottom: 10%;
  left: 5%;
  z-index: 9999;
  display: inline-block;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.boton-wrap:hover {
  transform: scale(1.05);
}

/* Rotación solo en la imagen */
.boton-fijo {
  width: 60px;
  height: auto;
  --rotation: 0deg;
  transform: rotate(var(--rotation));
  will-change: transform;    
}

@media (max-width: 1799px) {

  .site-logo {
    
    left: 80px;
}
  .parte-izquierda {

    left:  35px;

  }
  .parte-derecha {
  
    bottom: -20px;
    right:  35px;
    
  }

  .subtit-hero {
    bottom: -20px;
    left: 80px;
  }

  .boton-fijo {
    left: 35px;
    bottom: 79px;
  }

}

@media (max-width: 1799px) {
  .img-hero {
    width: 70%;
    
  }
}

@media (max-width: 1160px) {
 
  .img-hero {
    width: 90%;
    transform: translate(-50%, -50%) rotate(-1deg);
  }

  .site-logo {
    
    left: 45px;
}

  .parte-izquierda {
      left: 0px;
  }

  .parte-derecha {
    bottom: 80px;
    right: 0px;
  }

  .subtit-hero {
    bottom: -30px;
    left: 0;
    right: 0;
    margin-inline: auto;
    font-size: 17px;
    text-align: center;
    line-height: 1.4em;
  }

   .boton-fijo {
    bottom: 55px;
  }
}

@media (max-width: 600px) {
    .img-hero {
      width: 100%;
        transform: translate(-50%, -65%) rotate(-1deg);
    }

    .parte-derecha {
        bottom: 18%;
        right: 0px;
    }

    .subtit-hero {
        bottom: 7%;
    }

    .boton-fijo {
    bottom: 30px;
    left: 20px;
  }

  

}

@media (max-width: 561px) {
      .subtit-hero {
      
        font-size: 14px;
    }
}


/* FICHAS PROYECTO */

.ficha-proyecto {
  color: var(--c-blanco);
  cursor: pointer;
  

  h3 {
    font-weight: 300;
    margin-bottom: -12px;
  }

  .anno {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: -1.3em;
  }

  ul.info-proyecto {
    list-style: none;
    margin-left: 2px;
    max-width: 350px;
    line-height: 1.4em;
  }

  .categorias {

    display: flex;
    gap: 10px;
    align-items: center;

    p {
      text-transform: uppercase;
      display: inline-block;
      border: 1px solid var(--c-fondo);
      padding: 6px 40px;
      border-radius: 40px;
      margin-bottom: -1em;
    }

  }


}

/*  ANIMACIÓN COLUMNA */

.reproducir {
  position: relative;
  transition: transform 0.4s ease;
  z-index: 0;
}

.reproducir::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
  border-radius: 10px;
}


.reproducir::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 0;
  height: 0;
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent;
  border-left: 50px solid white;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.3));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 2px; 
}

.ficha-proyecto:hover .reproducir {
  transform: rotate(1deg) scale(1.0125);
}

.ficha-proyecto:hover .reproducir::after {
  opacity: 1;
}

.ficha-proyecto:hover .reproducir::before {
  opacity: 1;
}

/* FILTRO PROYECTOS */

div#filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

#filtros select {
  appearance: none; /* Quita el estilo por defecto */
  -webkit-appearance: none;
  -moz-appearance: none;
  
  background-color: var(--c-primario);
  color: var(--c-fondo);
  padding: 0.7em 2.5em 0.7em 1em;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 300;
  font-family: inherit;
  text-transform: uppercase;
  position: relative;
  cursor: pointer;

  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.0);
  transition: box-shadow 0.2s ease-in-out;

  background-image: url("data:image/svg+xml;utf8,<svg width='14' height='10' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'><polyline points='1,1 7,7 13,1' fill='none' stroke='white' stroke-width='2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 1em;
}

#filtros select:focus, #filtros select:hover {
  outline: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  background-color: var(--c-primario);
  opacity: 0.9;
}

#filtros select option {
  background-color: var(--c-fondo); 
  color: var(--c-primario-dark);
  border: none;
  padding: 0.5em;
  border-radius: 0; /
}

/* SUBPAGE */

.hero-subpage {
  background-image: url('/wp-content/uploads/2025/07/aida-ten-degradado-header.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
  
  position: relative;
}

/**/

/* Para navegadores basados en WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  cursor: pointer;
  width: 10px; 
}

/* Fondo de la barra de desplazamiento */
::-webkit-scrollbar-track {
  background: var(--c-fondo); 
  cursor: pointer;
}

/* Color de la barra en sí */
::-webkit-scrollbar-thumb {
  background: var(--c-secundario); 
  transition: all 0.3s ease-in;
  cursor: pointer;
}

/* Cuando el usuario pasa el cursor sobre la barra */
::-webkit-scrollbar-thumb:hover {
  background: var(--c-negro); 
  transition: all 0.3s ease-in;
}

/* CAPTCHA */

.grecaptcha-badge {
  display: none;
}

/* MARGEN PANTALLAS PANORÁMICAS */

@media (min-width: 1800px) {
  .entry-content > .vce-row-container > .vce-row:not(.full-width) {
    padding-inline: 30% !important;
  }


}

.contacto-btn {

  h4 {
    margin-bottom: 10px;
  }

  p:last-child {
    margin-bottom: 0px;
  }

  .vce {
    margin-bottom: 20px;
}
}

	/* Create and position :after pseudo-element */
	
	.vce-col.clickable a:after {
	   content: "";
	   display: block; 
	   position: absolute;
	   top: 0;
	   left: 0;
	   right: 0;
	   bottom: 0;
	   z-index: 2; 
	}
	/* Remove relatively-positioned parent elements in column */
	
	.clickable .vce-col-content, .clickable .vce-col-inner {
	   position: static;
	}

  @media (max-width: 1186px) {
    .ficha-proyecto {
      .categorias {
        gap: 30px;
        align-items: flex-start;
        flex-direction: column;
      }
  }
}

 @media (max-width: 767px) {
    .ficha-proyecto {
      .categorias {
        gap: 10px;
        align-items: center;
        flex-direction: row;
      }
  }
}

 @media (max-width: 495px) {
    .ficha-proyecto {
      .categorias {
        align-items: flex-start;
        flex-direction: column;
        gap: 30px;
      }
  }
}


.vce-faq-toggle-title-text {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
.vce-faq-toggle-title-text:focus-visible {
  outline: 2px solid currentColor; /* o tu estilo de foco */
  outline-offset: 2px;
}

button.vce-faq-toggle-title-text {
  color: var(--c-primario-dark) !important;
}

button.vce-faq-toggle-title-text:hover, button.vce-faq-toggle-title-text:focus {
  background-color: transparent !important;
}

