/*

 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=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap');

/* VARIABLES POR DEFECTO */



:root {

  --c-negro: #242424;
  --c-blanco: #ffffff;
  --c-fondo: #e1e1e0;

  /* --c-primario: #254a4a;

  --c-secundario-light: #61513a;
  --c-secundario: #393a36; */

  --c-primario: #254A4A; /*#004d28;*/

  --c-secundario-light: #edf0ed;
  --c-secundario: #004d40;

  /* --c-gris-claro: #EFEFEF;
  --c-gris-oscuro: #242424; */
  
  --c-gris-claro: #e9e9e9;
  --c-gris-oscuro: #242424;

  --c-borde: #e1e1e033;

  --c-gris: #f9f9f9; 

  --f-serif: 'Newsreader', 'Times New Roman', serif;
  --f-sans: 'DM Sans', Arial, sans-serif;

}

/* OUTLINE */

*:focus { outline: 0px solid orange; }

::selection {
  background-color: #00b65e4f;
}

/* ESTILOS COMUNES */

.zindex0 {
  z-index: 0;
}

.zindex1 {
  z-index: 1;
} 

body {
  color: var(--c-gris-oscuro);
  font-family: var(--f-sans);
  font-size: clamp(15px, 1vw, 18px);  
  font-weight: 300;
  line-height: 1.5em;
}

a {
  color: var(--c-primario);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s ease-in-out;

  &:hover {
    outline: 0;
    color: var(--c-secundario);
    opacity: 0.8;
  }
}

h1, h2, h3, h4, .display-heading, .cita {
  font-family: var(--f-serif);
  margin-top: 0;
  margin-bottom: 0;
  letter-spacing: -.01em;
}

h1, h2, h3, h4, .cita {
  font-weight: 300;
}

h1 {
  font-variation-settings: "opsz" 72;
  font-size: clamp(48px, 5vw, 96px);
  line-height: 1.1em;
}

h2 {
font-size: clamp(30px, 3vw, 60px); 
line-height: 1.1em;
}

h2.pequeño {
  font-size: 30px;
}

h3, .cita {
  font-size: clamp(24px, 2vw, 42px);  
  line-height: 1.2em;
}

h3.pequeño {
  font-size: 30px;
}

h4 {
  font-size: 36px;
  line-height: 1.2em;
}

.cita {
  text-indent: 50px;
}

.display-heading {
  font-size: clamp(48px, 5vw, 96px);
  font-weight: 200;
  line-height: .9em;
}

.txt-claro {
  color: var(--c-fondo) !important;

  a {
    color: var(--light);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease-in-out;

    &:hover {
      outline: 0;
      color: var(--light);
      opacity: 0.8; 
    }
    }
}

.site-content ul {
  list-style-type: none;
  padding-left: 20px;
  margin: 0 0 1.5em 0.6em !important;
}

.site-content ul li {
  position: relative;
}

.site-content ul li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 44%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--c-primario);
  border-radius: 0;
}


@media screen and (max-width: 991px) {
  h2 {
    font-size: 54px;
    line-height: 1.15em;
  }
  
}

@media screen and (max-width: 767px) {
  h1, h2, h3, h4, .cita {
     letter-spacing: 0;
  }

  .display-heading {
    font-weight: 300;
  }

  h2 {
    font-size: 32px;
    line-height: 1.2em;
  }

  h3, h4, .cita {
    font-size: 24px;
    line-height: 1.3em;
  }
}

@media screen and (max-width: 1360px) {
  .subtit-curso {
    display: none;
  }

  .tit-curso {
    margin-bottom: -20px !important;
  }
}

.arrow-link {
  position: relative;
  display: inline-block;
  padding-right: 30px; /* Ajusta según el tamaño del icono */
  color: #fff;
  text-decoration: none;
  background-color: transparent;
  font-weight: 600;
}

.arrow-link::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url('/wp-content/uploads/2025/12/arrow-right.webp');
  background-size: cover;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.arrow-link:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(5px); /* Ajusta el movimiento del icono */
}

.underlined-link {
  font-variation-settings: "wght" 500;
  align-self: flex-start;
  font-family:var(--f-serif);
  font-size: 17px;
  font-style: italic;
  text-decoration: underline;
}

.underlined-link:hover {
  opacity: 0.8;
}

/* HEADER */
.inside-header {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 30px;

  .site-branding {
    width: 100%;
  }
}

.main-title {
  margin-bottom: 30px;
}

.main-title a, .main-title a:hover {
  color: var(--c-gris-oscuro);
  font-family: 'Newsreader';
  font-size: 40px;
  font-weight: 300; 
}

.nav-float-right #site-navigation {
  margin-left: 0px;
  width: 100%;
  background-color: transparent;
  border-top: 1px solid var(--c-primario);
  padding-top: 10px;
}

div#primary-menu {
  width: 100%;
}

.main-navigation .main-nav>ul {
  justify-content: space-between;
}

.main-navigation .main-nav>ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.main-navigation .main-nav ul li a {
  color: var(--c-negro) !important;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: var(--c-primario);
  font-weight: 600;
  text-decoration: none;
  padding-left: 0px !important;
  padding-right: 0px !important;
}

/* SECCIONES SCROLL HOME */
body .entry-content>.vce-row-container {
  position: sticky;
  top: 0;
  height: 100dvh;

  & > .vce-row {
    height: 100%;
  }

  .seccion-1 {
    overflow: hidden;

    .vce-asset-parallax-container .vce-asset-parallax {
      filter: blur(4px);
    }
  }
}

.seccion-1 {
  z-index: 0;
}
.seccion-2 {
  z-index: 1;
}
.seccion-3 {
  z-index: 2;
}
.seccion-4 {
  z-index: 3;
}
.seccion-5 {
  z-index: 4;
}
.seccion-6 {
  z-index: 5;
}

body .entry-content > .vce-row-container:has(.auto-height) {
  top: auto !important;
  height: auto !important;    
  z-index: auto !important;
}

@media screen and (max-width: 767px) {
  body .entry-content>.vce-row-container {
  position: relative;
  height: auto;
  }
}

/* ANIMACIONES */
.h1-home {
  
  text-align: center;

  span {
    animation: h1Fade 1s linear forwards;
    opacity: 0;
    transform: translateY(100px);
    filter: blur(10px);
    &:first-child {
      animation-delay: 0.1s;
    }
    &:last-child {
      animation-delay: 0.6s;
    }
  }
}

.h1-home.h1-internas {
  text-align: left;
}

@keyframes h1Fade {
  0% {
    opacity: 0;
    transform: translateY(100px);
    filter: blur(10px);
  } 100% {
    opacity: 1;
    transform: translateY(0px);
    filter: blur(0px);
  }
}

.fadeIn {
  opacity: 0;
  filter: blur(10px);
  animation: fadeIn 0.5s linear forwards;
  animation-delay: 0.5s;
}

.delay {
  animation-delay: 1.5s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    filter: blur(10px);
  } 100% {
    opacity: 1;
    filter: blur(0px);
  }
}

/* FORMULARIO DE CONTACTO */


/* LOGOS KIT DIGITAL */
.logos-kit-digital {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.logos-kit-digital img {
  display: block;
  max-width: 21%;
  padding: 0 20px;
}

.logos-kit-digital>img:last-child {
  max-width: 15%;
}



/* ---------- RESPONSIVE ---------- */
@media screen and (max-width: 1080px) {

  /* LOGOS KIT DIGITAL */
  .logos-kit-digital img {
    max-width: 210px;
  }

  .logos-kit-digital>img:last-child {
    max-width: 23%;
  }

}

@media screen and (max-width: 600px) {

  /* LOGOS KIT DIGITAL */
  .logos-kit-digital img {
    max-width: 165px;
    padding: 10px 5px;
  }

  .logos-kit-digital>img:last-child {
    max-width: 40%;
  }

}

@media screen and (max-width: 560px) {

}


/* CAPTCHA */
.grecaptcha-badge {
  display: none;
}

.preguntas-frecuentes {
  color: var(--c-blanco) !important;
  .vce-faq-toggle-title-text {
    position: relative;
    font-size: 35px !important;
    padding-left: 20px !important;
  }

  .vce-faq-toggle .vce-faq-toggle-text-block>:first-child {
    margin-top: 0;
    padding-left: 25px;
    padding-top: 20px;
  }
}


@media screen and (max-width: 780px) {
  .preguntas-frecuentes {
  color: var(--c-blanco) !important;
  .vce-faq-toggle-title-text {
    font-size: 25px !important;
  }

  .vce-faq-toggle .vce-faq-toggle-text-block>:first-child {
    margin-top: 0;
    padding-left: 25px;
    padding-top: 20px;
  }
}

}

/* BLOG */

body.post-template-default .site-content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 100px;
  max-width: 80%;
  margin-inline: auto;
}

.single-post .entry-header h1 {
  padding-top: 60px;
  padding-bottom: 10px;

  font-size: 52px !important;
  color: var(--c-primario);
}

.single-post h2 {
  font-size: 32px !important;
  padding-top: 20px;
}

.single-post h3 {
  font-size: 25px !important;
  padding-bottom: 10px;
}

.single-post img {
  padding-top: 20px !important;
}

.comments-area {
  display: none;
}

.single-post .site-content {
  padding-bottom: 150px; 
}

.wp-show-posts-entry-header {
  h3 {
    font-size: 30px !important;

    a {
      font-weight: 400 !important;
    }
  }
}

.wp-show-posts-image img {
  border-radius: 20px !important;
}

.wp-show-posts-columns#wpsp-148 .wp-show-posts-inner {
  margin: 0 0 2em 2em;
  background-color: #f5f5f5;
  padding: 25px;
  border-radius: 25px;
  transition: all 0.3s ease-in-out;

  &:hover {
    transform: translateY(-10px);
  }
}

.wp-show-posts-meta a, .wp-show-posts-meta a:visited {
    color: rgba(0, 0, 0, .5);
    font-weight: 400;
    font-size: 14px;
}

p.subtit-curso {
  text-transform: uppercase;
  font-weight: 300;
  opacity: 0.8;
  margin-top: -20px;
}

.col-movil {
  transition: all 0.3s ease-in-out;

  &:hover {
    transform: translateY(-10px);
  }
}

/* Navigation */

#mega-menu-wrap-primary {
  width: 100%;
}

#mega-menu-wrap-primary #mega-menu-primary {
  display: flex;
  justify-content: space-between;
}

#mega-menu-wrap-primary {
  background-color: transparent !important;
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link, #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link {
  background-color: transparent !important;
  color: var(--c-primario) !important;
  border: none !important;
  font-weight: 600;
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
  background-color: transparent !important;
  color: var(--c-primario) !important;
}