/*
 Theme Name:   Auka 25 Theme
 Theme URI:    https://www.aukabiotech.com
 Description:  Specific them for Auka biotech website
 Author:       Aitor Fdz. de Landa
 Author URI:   https://www.daeldigital.com
 Version:      1.0
*/

@charset "utf-8";
/* CSS Document */

body {
  margin: 0;
  background-color: #FFF;
  font-family: "Barlow Condensed", sans-serif;
  display:flex; /* para el footer pegado al bottom */
  /*height:100vh;*/ /* para el footer pegado al bottom */
  flex-direction:column; /* para el footer pegado al bottom */
}

a {
  color: #000;
}

/* header */

/* Menú */

.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  color: white;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
}

.menu-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
}

.menu-bar .logo img {
  height: 60px;
}

.menu-bar.white .logo img {
  filter: invert(1); /* hace que el SVG quede negro */
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* menú con hijos */

/* Contenedor del menú */
.header-menu {
  display: flex;
  justify-content: center;
}

/* Nivel principal */
.header-menu > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Elementos principales */
.header-menu > ul > li {
  position: relative;
}

/* Enlaces principales */
.header-menu > ul > li > a {
  display: inline-block;
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  transform-origin: center center; /* clave */
  margin: 0 10px;
}

.header-menu > ul > li > a:hover {
  transform: scale(1.1);
}

/* Submenús: ocultos por defecto */
.header-menu ul ul {
  display: block; /* necesario para poder animar opacidad */
  opacity: 0;
  /*visibility: hidden;*/
  position: absolute;
  top: 110%; /* ligeramente debajo del padre */
  left: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  transform: translateY(-10px);
  transition: all 0.4s ease;
}

/* Mostrar con fade + slide */
.header-menu > ul > li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hijos */
.header-menu ul ul li {
  margin: 0 10px;
}

.header-menu ul ul li a {
  color: white;
  text-decoration: none;
  font-weight: 300;
  font-size: 1rem;
  padding: 6px 0;
  display: block;
  transition: all 0.3s ease;
}

/* Hover de los hijos */
.header-menu ul ul li a:hover {
  transform: scale(1.1);
  /*font-weight: 500;*/
}

/* Por defecto (PC): ocultamos el botón + */
.submenu-toggle {
  display: none;
}


/* fin menú con hijos */

/* Inicio menú con hijos movil */

/* ===========================
/* ===========================
   MODO MÓVIL
=========================== */
@media (max-width: 920px) {

  /* Barra superior */
  .menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    transition: background 0.6s ease;
  }

  /* Fondo degradado animado cuando se abre */
  .menu-bar::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0; /* cerrado */
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: height 0.6s ease, opacity 0.6s ease;
    z-index: 55;
    pointer-events: none;
  }

  .menu-bar.menu-open::after {
    height: 100vh;
    opacity: 1;
  }

  /* Contenedor logo + hamburguesa */
  .menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    position: relative;
    z-index: 60;
  }

  .menu-container .logo {
    flex-shrink: 0;
  }

  /* Hamburguesa */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.5s ease;
    z-index: 70;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.4s ease;
  }

  .menu-toggle.open {
    transform: rotate(90deg);
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Menú desplegable */
  .header-menu {
    position: absolute;
    top: 100%; 
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.7rem;
    padding: 5px 35px 40px 35px;
    box-sizing: border-box;
    background: transparent;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 60;
  }

  .menu-bar.menu-open .header-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Items principales */
  .header-menu ul.main-menu {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    width: 100%;
    margin: 0;
    list-style: none;
    align-items: flex-end; /* alineación a la derecha */
    text-align: right;
  }

  .header-menu ul.main-menu > li,
  .header-menu .search-box {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .header-menu .search-box {
    margin-top: 1.2rem;
  }

  .header-menu .search-box input {
    display: none;
  }

  .header-menu ul.main-menu > li > a {
    color: white;
    font-size: 2rem;
    font-weight: 300;
    text-decoration: none;
    transition: transform 0.3s ease, font-weight 0.3s ease;
  }

  .header-menu ul.main-menu > li > a:hover {
    transform: scale(1.05);
    font-weight: 500;
  }

  /* Botón "+" para submenús */
  .submenu-toggle {
    display: inline-block;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    margin-left: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .menu-item-has-children.open > .submenu-toggle {
    transform: rotate(45deg);
  }

  /* --- Submenús móviles --- */
  /* 🔹 Estructura del padre con submenú */
  .header-menu ul.main-menu > li.menu-item-has-children {
    display: block;             /* ya no flex, para que el ul quede debajo */
    position: relative;
    width: 100%;
  }

  /* 🔹 Link y botón + en la misma línea */
  .header-menu ul.main-menu > li.menu-item-has-children > a {
    display: inline-block;
    width: auto;
    color: white;
    font-size: 2rem;
    font-weight: 300;
    text-decoration: none;
    transition: transform 0.3s ease, font-weight 0.3s ease;
  }

  .header-menu ul.main-menu > li.menu-item-has-children > .submenu-toggle {
    /*position: absolute;*/
    right: 0;
    top: 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    line-height: 1; /* evita que se desplace verticalmente */
  }

  /* 🔹 Efecto de rotación del + */
  .header-menu ul.main-menu > li.menu-item-has-children.open > .submenu-toggle {
    transform: rotate(45deg);
  }

  /* 🔹 Submenú (cerrado inicialmente) */
  .header-menu ul ul {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0 -1.5rem 0;
    padding-left: 1.5rem;
    box-sizing: border-box;
    position: static;  /* fuerza que esté en flujo */
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s ease; /* controla velocidad y suavidad */
  }

  /* 🔹 Submenú abierto */
  .header-menu .menu-item-has-children.open > ul {
    display: flex; /* visible y empuja al siguiente */
    opacity: 1;
    max-height: 500px; /* suficiente para mostrar todos los hijos */
    animation: fadeSlideDown 0.35s ease;
  }

  /* 🔹 Animación: fade + desplazamiento */
  @keyframes fadeSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* 🔹 Hijos alineados a la izquierda */
  .header-menu ul ul li {
    text-align: right;
  }

  .header-menu ul ul li a {
    display: block;
    padding: 6px 0;
    font-size: 1.6rem;
  }


}








/* fin menú con hijos movil */


/* Buscador */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 3px;
}

.search-box.active{
  padding-top: 0;
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.search-toggle img {
  height: 18px;
  width: 18px;
  display: block;
}

.menu-bar.white .search-toggle img {
  filter: invert(0.7); /* hace que el SVG quede negro */
}

.search-input {
  display: none;
  width: 0;
  opacity: 0;
  padding: 5px 10px;
  margin-left: 5px;
  border: none;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
  background: white;
  color: black;
}

.menu-bar.white .search-input {
  background: #e6e6e6;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-bar.white .menu-toggle span {
  background: #000;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Fondo base con gradiente y transparencia */
.menu-bar.white{
  background: #fff;
  box-shadow: 0 7px 8px rgba(0,0,0,0.2); /* sombra hacia abajo */
  color: #000;
}

/* Cuando el menú móvil está abierto, fondo más oscuro */
.menu-bar.menu-open {
  /*background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.3));*/
  background: rgba(0,0,0,0.85);
}
.menu-bar.white.menu-open {
  background: #fff;
}

@media (max-width: 920px) {
  .menu-links {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}

/* Fin menú */

/* Fin Header */

/* Inicio main */

main{
	position:relative;
  /* top mismo valor que margin-bottom */
	/* top:80px; */
  /* margin-bottom mismo valor que top */
	margin-bottom:80px;
  /* flex para el footer pegado al bottom */
	flex: auto;
}

/*.main-content{
	max-width:1240px;
	margin:0 auto;
}*/

.fp-scroller{
  overflow:hidden;
}
.two {
  background: green;
}

.section{
  background-size: cover;
  background-position: right;
}

.container{
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* manda el contenido al fondo */
  height: 100vh;   /* fallback clásico */
  height: 100dvh;  /* si el navegador lo soporta, sobreescribe */
}

.slidefooter{
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.7));
}

.slidetext{
  padding: 40px 20px;
  max-width:1240px;
  margin: 0 auto;
  color: #fff;
  /* animación */
  /*opacity: 0;
  transform: translateY(20px);
  transition: all 2.8s ease;*/
}

.slidetext h2,
.slidetext p {
  opacity: 0;
  transform: translateY(20px);
}

/* Cuando la sección está activa */
section.active .slidetext h2 {
  opacity: 1;
  transform: translateY(0);
  transition: all 1.8s ease 0.2s; /* 0.2s de retraso */
}

section.active .slidetext p {
  opacity: 1;
  transform: translateY(0);
  transition: all 1.8s ease 0.6s; /* aparece un poco después */
}

.slidetext h2{
  text-transform: uppercase;
  font-weight: 700;
  font-size: 52px;
  margin: 0;
}

.slidetext h2 span.light{
  font-weight: 300;
}

.slidetext h3{
  font-weight: 600;
  font-size: 26px;
  margin: 0;
}

.slidetext p{
  font-size: 22px;
  margin: 10px 0;
  text-transform: uppercase;
}

.slidetext a{
  color: #FFF;
  text-decoration: none;
  font-size: 22px;
}

@media only screen and (max-width: 560px) {
  .slidetext{width:calc(100% - 40px);}
  .slidetext h2{font-size: 38px;}
  .slidetext h3{font-size: 26px;}
  .slidetext p, .slidetext a{font-size: 20px;}
}

.container img{
  margin-top: 15px;
}

@media only screen and (max-width: 560px) {
  .section{background-position: 70%;}
}

.fp-slidesNav ul li a span{
  background: #FFF !important;
}

/* Tamaño general de las flechas */
#fullpage-products .fp-controlArrow {
    border-width: 20px !important; /* tamaño del triángulo */
}

/* Flecha izquierda */
#fullpage-products .fp-controlArrow.fp-prev {
    border-color: transparent #ffffff transparent transparent !important;
    left: 26px !important;
}

/* Flecha derecha */
#fullpage-products .fp-controlArrow.fp-next {
    border-color: transparent transparent transparent #ffffff !important;
    right: 26px !important;
}

/* video dentro de home */

/* Backgrounds will cover all the section */
.section,
.slide{
    /* Important! Videos use absolute */
    position: relative;

    background-size: cover;

    /* Making sure videos won't overflow */
    overflow: hidden;
}

.overlay-video{
    position: absolute;
    right: 0;
    bottom: 0;
    top:0;
    right:0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-color: black; /* in case the video doesn't fit the whole page*/
    background-image: /* our video */;
    background-position: center center;
    background-size: cover;
    object-fit: cover; /*cover video background */
    z-index: -100;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Layer with position absolute in order to have it over the video */
#section0 .layer{
    /*
    * Preventing flicker on some browsers
    * See http://stackoverflow.com/a/36671466/1081396  or issue #183
    */
    -webkit-transform: translate3d(0,0,0);
    -ms-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

/* fin video dentro de home */

/* Fin main */

/* Inicio contenido */



/* Inicio contenido común */

.header-image {
  width: 100%;
  height: 360px;
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  box-shadow: -4px 4px 6px rgba(0,0,0,0.5);
}

.page-container{
  max-width: 1240px;
  margin: 0 auto;
  font-size: 1.2rem;
  padding: 0 30px;
}

.page-container h1{
  text-transform: uppercase;
  margin: 30px 0 15px 0;
}

.page-container .patent-publication{
  font-size: 1.3rem;
}

.page-container .patent-publication strong{
  font-weight: 500;
  display: block;
}

.page-container .patent-publication em{
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  display: block;
}

.page-container {
  /*width: 100%;*/
  display: flex;
  flex-direction: column;
  gap: 1px; /* espacio entre filas */
}

.content {
  display: flex;
  flex-wrap: wrap; /* permite que el texto fluya debajo si necesita */
  width: 100%;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.content h2{
  margin-top: 0;
}

/* Imagen: ocupa 60% del ancho y se recorta si sobrepasa los 300px */
.content__image {
  flex: 0 0 60%;
  max-width: 60%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.content__image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* recorta arriba y abajo */
  display: block;
}

/* Texto */
.content__text {
  flex: 1;
  min-width: 250px; /* evita que se pegue demasiado */
}

/* Dirección según la clase */
.content-img-left {
  flex-direction: row;
  text-align: left;
}

.content-img-right {
  flex-direction: row-reverse;
  /*text-align: right;*/
}

.content-img-empty{
  text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
  .content {
    flex-direction: column;
    text-align: left;
  }

  .content__image {
    max-width: 100%;
    flex: 0 0 100%;
    height: 250px; /* un poco más bajo en móvil */
  }

  .content__text {
    width: 100%;
  }

  .content__text ol{
    padding-left: 8px;
  }
}

/* Toggle contenido */

.content__text h2 {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

h2.content-toggle-title{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.content-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* Ocultar contenido excepto el H2 */
.content-hidden .content__text > *:not(h2) {
  display: none;
}

/* Mostrar al activar */
.content-hidden.active .content__text > * {
  display: block;
}

.content-hidden.active .content__text > h2 {
  display: flex; /* mantener la alineación */
}

/* Inicio formulario contacto u página contacto */

/* Estructura general del layout */
/* Título principal */
.contact-title {
    margin-bottom: 40px;
}

/* Layout general */
.contact-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-top: 20px;
}

/* Columna izquierda (formulario) */
.contact-left {
    flex: 0 0 70%;
    max-width: 70%;
}

/* WPForms ancho completo */
.contact-left .wpforms-container input,
.contact-left .wpforms-container textarea,
.contact-left .wpforms-container select {
    width: 100% !important;
    max-width: 100% !important;
}

/* Para los dos campos Name (First / Last) */
.contact-left .wpforms-field-row {
    display: flex;
    gap: 20px;
}

.contact-left .wpforms-field-row .wpforms-field-row-block {
    flex: 1;
}

/* Columna derecha */
.contact-right {
    flex: 0 0 30%;
    max-width: 30%;
    padding-top: 10px;
}

/* Bloque de dirección */
.contact-direccion {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-top: 20px;
    white-space: pre-line;
}

/* Responsive */
@media (max-width: 900px) {

    .contact-layout {
        flex-direction: column;
        gap: 40px;
    }

    .contact-left,
    .contact-right {
        flex: 100%;
        max-width: 100%;
    }

    .contact-direccion {
        margin-top: 0;
    }
}

.wpforms-form .wpforms-field {
    padding: 0 !important;
}

.wpforms-form input,
.wpforms-form select,
.wpforms-form textarea {
    padding: 4px 8px !important;
    height: 32px !important;
    font-size: 13px;
}

.wpforms-form textarea {
    min-height: 60px !important;
}

.wpforms-form .wpforms-field {
    margin-bottom: 4px !important;
}

.wpforms-form button.wpforms-submit {
    padding: 6px 24px !important;
  font-size: 18px !important;
    height: auto;
}

.wpforms-field-label{
    margin-bottom: 2px !important;
    margin-top: 5px !important;
}

/* Alinear el campo Name como el resto */
/* Evitar que WPForms limite el ancho del bloque Name al 60% */
.contact-left .wpforms-field-name .wpforms-field-row.wpforms-field-medium {
    max-width: 100% !important;
}

/* Eliminar los ::before que añade WPForms */
.wpforms-container .wpforms-field .wpforms-field-row::before{
    display: none !important;
}


/* Fin formulario contacto */

#fullpage-products .section,
#fullpage-products .slide {
    width: 100vw;
    height: 100vh;
}

.slide-content {
    height: 100dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    justify-content: flex-end;
    color: #fff; /* opcional */
}

/* Cuando la sección está activa */
.slide.active .slidetext h2 {
  opacity: 1;
  transform: translateY(0);
  transition: all 1.8s ease 0.2s; /* 0.2s de retraso */
}

.slide.active .slidetext p {
  opacity: 1;
  transform: translateY(0);
  transition: all 1.8s ease 0.6s; /* aparece un poco después */
}

/*#fp-nav ul li a span, .fp-slidesNav ul li a span{
  background: red !important;
}*/

/* Fin contenido común */

/* Fin contenido */

/* Inicio footer */

footer{
	bottom:2vh; /* para el footer pegado al bottom */
	padding:20px 20px 40px 20px;
	margin-top: 30px;
}

.footer-container{
	max-width:1240px;
	margin:0 auto;
  text-align: center;
}

.footer-container img {
  width: 100%;
  max-width: 600px;
  margin-bottom: 14px;
}

/* Fin footer */

