/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* VARIABLES REUTILIZABLES  */

:root {
  --primary: var(--primary_color);
  --secondary: #a30000;
}

/* HEADER */
.home header {
  background-color: transparent !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  box-shadow: none !important;
  padding-top: 25px !important;
  transition: all 0.3s ease-in-out !important;
}

.home .fusion-header {
  background-color: transparent !important;
}

.fusion-logo img {
  width: 250px !important;
}

.home .fusion-menu > li > a > span {
  color: var(--primary) !important;
  background-color: #ffffffff !important;
  padding: 5px 10px;
  border-radius: 10px;
  
}

.fusion-menu > li:last-child > a > span {
  background-color: var(--secondary) !important;
  border-radius: 25px !important;
  padding: 12.5px 27.5px !important;
  color: white !important;
  border: none !important;
}

.fusion-header > div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px !important;
}

.fusion-header > div::after,
.fusion-header > div::before,
.fusion-clearfix {
  display: none;
}

.fusion-bar-highlight {
  border: none !important;
  color: black !important;
}

.scrolled,
.scrolled .fusion-header {
  background-color: white !important;
}

.scrolled .fusion-menu > li > a > span {
  color: black !important;
}

.scrolled .fusion-menu > li:last-child > a > span {
  color: white !important;
}

.home .scrolled {
  box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px !important;
  padding-top: 0 !important;
}

body:not(.home) header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
  color: black !important;
}

.adhoc-menu{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: right;
    gap: 30px;
}

#flags{
    width: fit-content !important;
}

/* NAV */
.fusion-mobile-nav-holder {
  display: none !important;
}

.custom-mobile-nav {
  display: none;
  position: relative;
}

.custom-mobile-nav-items .fusion-menu > li > a > span {
  color: black !important;
}

.custom-mobile-nav-items .fusion-menu > li:last-child > a > span {
  color: white !important;
}

.custom-mobile-nav-items {
  z-index: 10;
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #fffe;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  display: flex !important;

  /* Animación */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.custom-mobile-nav-items.open {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.custom-mobile-nav-items .fusion-main-menu {
  display: flex !important;
}

.custom-mobile-nav-items .fusion-main-menu > ul {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.custom-mobile-nav-items .fusion-main-menu li {
  margin: 0 !important;
  padding: 0 !important;
  height: fit-content !important;
}

.custom-mobile-nav-items .fusion-main-menu a {
  height: fit-content !important;
  padding: 14px !important;
}

.burger {
  position: relative;
  width: 40px;
  height: 30px;
  background: transparent;
  cursor: pointer;
  display: block;
}

.burger input {
  display: none;
}

.burger span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: var(--secondary);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
  z-index: 100;
}

.burger span:nth-of-type(1) {
  top: 0px;
  transform-origin: left center;
}

.burger span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
}

.burger span:nth-of-type(3) {
  top: 100%;
  transform-origin: left center;
  transform: translateY(-100%);
}

.burger input:checked ~ span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 0px;
  left: 5px;
}

.burger input:checked ~ span:nth-of-type(2) {
  width: 0%;
  opacity: 0;
}

.burger input:checked ~ span:nth-of-type(3) {
  transform: rotate(-45deg);
  top: 28px;
  left: 5px;
}

label[for='close-burger'] {
  position: absolute;
  top: 59px;
  right: 60px;
}

#menu-menu-principal-1.custom-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Rubik', sans-serif;
}

.custom-mobile-menu .menu-item {
  position: relative;
}

.menu-item-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}

.menu-item {
  list-style: none !important;
}

.menu-item-wrapper a {
  text-decoration: none;
  width: 100%;
  text-align: center;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Botón de submenú (flecha) */
.submenu-toggle {
  background: none;
  position: absolute;
  right: 0;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--primary_color);
  transition: transform 0.3s ease;
  transform: rotate(-90deg);
}

.submenu-toggle[aria-expanded='true'] {
  transform: rotate(0deg);
}

/* Submenús ocultos por defecto */
.menu-item.has-children .sub-menu {
  visibility: hidden;
  font-size: 14px;
  opacity: 0;
  list-style: none;
  margin: 0;
  padding-left: 0;
  height: 0;
  interpolate-size: allow-keywords;
  transition: all 0.3s ease;
  overflow: hidden;
}

.menu-item.has-children .sub-menu .menu-item-wrapper {
  padding: 6px 0;
}

.menu-item.has-children .sub-menu.open {
  visibility: visible;
  opacity: 1;
  height: auto;
}

.sub-menu .menu-item-wrapper {
  padding: 12px 30px;
}

/* SLIDERS */
sr7-module,
sr7-module > *,
sr7-module > * > * {
  border-radius: 50px !important;
}

.home #main {
  padding-top: 25px !important;
}

/* BODY */
.texto * {
  font-family: 'Prompt', sans-serif !important;
}

.texto h1,
.texto h2,
.texto h3,
.texto h4,
.texto h5,
.texto h6 {
  line-height: 1 !important;
  font-weight: 600 !important;
  margin-top: 0 !important;
  color: var(--primary) !important;
}

.card .texto p,
.texto p {
  line-height: 1.2 !important;
  font-weight: 300 !important;
}

.texto p:has(img) {
  display: flex !important;
  flex-direction: row !important;
  gap: 20px !important;
  align-items: center !important;
}

.imagen img {
  border-radius: 30px !important;
}

div:has(> .boton) {
  background-color: transparent !important;
}

.gform_button,
.boton button,
.boton a {
  font-family: 'Prompt', sans-serif !important;
  background-color: var(--secondary) !important;
  border-radius: 500px !important;
  padding: 12px 28px !important;
  color: white !important;
  border: none !important;
}

.gform_validation_errors {
  display: none !important;
}

.card * {
  font-family: 'Prompt' !important;
}

.card .texto h1,
.card .texto h2,
.card .texto h3,
.card .texto h4,
.card .texto h5,
.card .texto h6 {
  color: var(--secondary) !important;
  font-weight: 500 !important;
}

.card .texto h1 {
  font-size: 30px !important;
}
.card .texto h2 {
  font-size: 26px !important;
}
.card .texto h3 {
  font-size: 22px !important;
}
.card .texto h4 {
  font-size: 20px !important;
}
.card .texto h5 {
  font-size: 18px !important;
}
.card .texto h6 {
  font-size: 16px !important;
}

.card .boton {
  margin-top: auto !important;
}

.card .boton button,
.card .boton a {
  background: transparent !important;
  padding: 0 !important;
  color: #000 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.card .boton button::after,
.card .boton a::after {
  content: '>' !important;
  color: var(--secondary) !important;
  margin-left: 10px !important;
}

.card .texto p {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  font-size: 13px !important;
}

.card .texto {
  margin: 10px 0 !important;
}

.card .texto p strong {
  color: white !important;
  background-color: var(--accent) !important;
  padding: 3px 5px !important;
  line-height: 1.2 !important;
}

.card .imagen img {
  border-radius: 100% !important;
  width: 75px !important;
  height: 75px !important;
}

.why-choose-us > div {
  display: flex !important;
  flex-direction: row !important;
  gap: 35px !important;
  flex-wrap: wrap !important;
}

.why-choose-us > div p,
.why-choose-us > div h3 {
  font-family: 'Prompt' !important;
  color: black !important;
  z-index: 2;
  background-color: white;
  padding: 10px 30px;
  border-radius: 10px;
}

.why-choose-us > div h3 {
  font-weight: 500;
  font-size: 24px !important;
}

.why-choose-us > div p {
  font-size: 16px !important;
  line-height: 1.2 !important;
}

.why-choose-us > div > div {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  gap: 10px;
  width: auto;
  min-width: 300px;
  height: 500px;
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  border-radius: 30px;
  padding: 15px 30px 15px 30px;
}

.why-choose-us > div > div:nth-child(1) {
  background-image: url('/wp-content/uploads/2025/05/industrial-port-de-barcelona.png');
}

.bg-barco {
  background-image: url('/wp-content/uploads/2025/05/transport-logistics-concept.png') !important;
}

.why-choose-us > div > div:nth-child(2) img {
  align-self: center;
  position: absolute;
  width: calc(100% - 60px);
  bottom: 20px;
  z-index: 1;
  height: auto;
}

.why-choose-us > div > div:nth-child(3) {
  background-image: url('/wp-content/uploads/2025/05/industrial-designer-working-3d-model.png');
}

/* FOOTER */
footer.fusion-footer-widget-area.fusion-widget-area {
  background: var(--secondary) !important;
  border-radius: 200px 200px 0 0 !important;
}

footer .custom-footer {
  display: flex;
  flex-direction: column;
  gap: 35px;
  width: 100%;
  align-items: center;
  justify-content: center;
}

footer .custom-footer * {
  color: white !important;
  font-family: 'Prompt' !important;
  font-weight: 400 !important;
}

footer .custom-footer a:hover {
  color: #ccc !important;
}

footer .custom-footer img {
  width: 300px;
  height: auto;
}

footer .custom-footer > div:nth-child(2) {
  margin-top: 50px;
}

footer .custom-footer > div:nth-child(2) nav,
footer .custom-footer > div:last-child > div {
  display: flex;
  gap: 30px;
}

footer .custom-footer .break {
  border: none;
  border-bottom: 1px solid white;
  width: 100%;
  height: 1px;
}

footer .custom-footer > div:last-child {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

@media (max-width: 1100px) {
  .fusion-main-menu {
    display: none !important;
  }

  .custom-mobile-nav {
    display: block;
  }

  .custom-mobile-nav-items {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  footer.fusion-footer-widget-area.fusion-widget-area {
    border-radius: 100px 100px 0 0 !important;
  }
}

@media (max-width: 900px) {
  .fusion-logo img {
    width: 200px !important;
  }

  label[for='close-burger'] {
    top: 50px;
  }
  .burger {
    width: 30px;
    height: 22px;
  }
  .burger span {
    height: 3px;
  }
  .burger input:checked ~ span:nth-of-type(1) {
    left: 3px;
  }
  .burger input:checked ~ span:nth-of-type(3) {
    top: 21px;
    left: 3px;
  }

  .texto h1 {
    font-size: 34px !important;
  }
  .texto h2 {
    font-size: 30px !important;
  }
  .texto h3 {
    font-size: 24px !important;
  }
  .texto h4 {
    font-size: 20px !important;
  }
  .texto h5 {
    font-size: 16px !important;
  }
  .texto h6 {
    font-size: 14px !important;
  }
  .texto p {
    font-size: 14px !important;
  }

  footer.fusion-footer-widget-area.fusion-widget-area {
    border-radius: 60px 60px 0 0 !important;
  }
}

@media (max-width: 800px) {
  label[for='close-burger'] {
    top: 36px;
  }

  footer .custom-footer img {
    width: 200px;
  }
}

@media (max-width: 768px) {
  footer .custom-footer * {
    font-size: 14px !important;
  }

  footer .custom-footer > div:nth-child(2) nav,
  footer .custom-footer > div:last-child > div {
    flex-direction: column;
    gap: 6px;
  }

  .fusion-footer-widget-area a {
    text-align: center !important;
  }

  footer .custom-footer > div:last-child {
    width: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
  }
}

@media (max-width: 700px) {
  .why-choose-us > div > div {
    overflow: hidden !important;
  }

  .fusion-header > div {
    padding: 0 10px !important;
  }
  
  #main{
    padding: 15px !important;
  }

  .fusion-logo img {
        width: 150px !important;
    }
    sr7-module,
    sr7-module > *,
    sr7-module > * > * {
    border-radius: 30px !important;
    }
    #flags{
        width: fit-content !important;
        position: relative;
        right: -30px !important;
    }
}
