/*
 Theme Name: Divi Acuabit
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme, enriquezido por Acuabit
 Author: Acuabit
 Author URI: https://www.acuabit.es 
 Template: Divi
 Version: 1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */
/*--Generales--*/
  :root {
    --negro: #000000;
    --texto: #555555;
    --blanco: #FFFFFF;
    --beige: #F6F0E7;
    --beige2: #F1E9DE;
    --marron: #8d5849;
    --marron2: #8E5546;
    --rosita: #f1e1d5;
  }
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  [tabindex]:focus-visible {
    outline: 3px solid #9f604b;
    outline-offset: 3px;
  }
  .texto-dest span{
    font-family: 'Rochester';
    font-size: 54px;
  }
  
/*-- Cabecera --*/
  .cabecera-fija .et_flex_row{
    position: fixed !important;
    top: 0px;
    left: 0px;
    width: 100% !important;
    max-width: 100% !important;
    background: var(--beige);
    box-shadow: 0px 2px 10px 0.015em rgba(0,0,0,0.05);
  }
  .cabecera-fija .et_flex_row .et_pb_column{
    max-width: 1420px !important;
    margin: auto !important;
  }
  .idiomas_top .wpml-ls-sidebars-et_pb_widget_area_1{
    padding: 0px !important;
  }
  .idiomas_top::after{
    content: none;
  }
  .idiomas_top a{
    color: var(--marron) !important;
    opacity: 0.6;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }
  .idiomas_top  a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.8);
    color: var(--marron2) !important;
    opacity: 1;
  }
/* -- HOME -- */
  .bloghome img{
    object-fit: cover;
    object-position: top;
  }
  .newslform #mlb2-46527119.ml-form-embedContainer .ml-form-embedWrapper.embedForm {
    max-width: 100% !important;
  }
  .newslform .ml-form-embedBody .ml-form-embedBodyHorizontal{
    padding: 0px !important;
  }
  .newslform #mlb2-46527119.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-formContent.horozintalForm {
    padding-bottom: 10px !important;
  }
  .newslform #mlb2-46527119.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody{
    padding: 0px !important;
  }
  .newslform .ml-form-checkboxRow.ml-validate-required{
    margin-bottom: 0px !important;
  }
  .newslform #mlb2-46527119.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-checkboxRow label p,
  .newslform #mlb2-46527119.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-checkboxRow label a{
    color: var(--blanco) !important;
  }
  .newslform #mlb2-46527119.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-horizontalRow input {
    background: var(--beige) !important;
    border-color: var(--beige2) !important;
    color: var(--texto) !important;
    border-radius: 24px !important;
  }
  .newslform #mlb2-46527119.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-horizontalRow input::placeholder {
    color: var(--texto) !important;
  }
  .newslform #mlb2-46527119.ml-form-embedContainer .ml-form-embedWrapper {
    background-color: transparent !important;
  }
  .newslform #mlb2-46527119.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-horizontalRow button {
    background-color: var(--rosita) !important;
    border-color: var(--rosita) !important;
    color: var(--marron) !important;
    border-radius: 24px !important;
  }
  .newslform #mlb2-46527119.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-horizontalRow button:hover {
    background-color: var(--texto) !important;
    border-color: var(--texto) !important;
    color: var(--beige) !important;
  }
  /* ---- Tarjetas del blog ---- */
  .bloghome .et_pb_post {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
  }
  /* imagen */
  .bloghome .et_pb_image_container {
      order: 1;
      margin-bottom: 0px !important;
  }
  .bloghome .entry-featured-image-url{
    margin-bottom: 1em !important;
  }
  /* categoría */
  .bloghome .post-meta {
      order: 2;
      margin-bottom: 6px;
  }
  /* título */
  .bloghome .entry-title {
      order: 3;
      margin-bottom: 8px;
  }
  /* extracto + leer más */
  .bloghome .post-content {
      order: 4;
  }
/* -- BANNER COOKIES --*/
  html.show--consent .btnpref,
  html.show--preferences .btnpref {
    display: none;
  }
  .btnpref {
    position: fixed;
    z-index: 999;
    bottom: 15px;
    left: 15px;
    max-width: 72px;
    font-size: 14px;
    padding: 5px;
    border-radius: 8px;
    background-color: var(--beige);
    box-shadow: 1px -1px 1px 0px rgba(0, 0, 0, 0.3);
    border: 1px solid black;
  }
  .btnpref img {
    max-width: 40px;
    transition: transform 0.3s ease-in-out;
  }
  .btnpref img:hover {
    transform: scale(1.1);
    animation: bounce 0.5s ease;
  }
  /*animacion efecto rebote*/
  @keyframes bounce {
    0% {
      transform: scale(1);
    }
    30% {
      transform: scale(1.2);
    }
    50% {
      transform: scale(1);
    }
    70% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }
  .btnpref:hover {
    cursor: pointer;
  }
  #firma {
    background: var(--beige2);
    color: var(--texto);
    font-size: 12px;
    text-align: center;
  }
  #firma a {
    color: var(--texto);
  }
  /*Medias*/
  @media(min-width: 981px){
    @media (max-width: 1300px) {
      header .et_pb_column{
        justify-content: space-around;
      }
      .et_pb_row{
        width: 100% !important;
        max-width: 90% !important;
      }
      header .et_pb_row{
        width: 100% !important;
        max-width: 100% !important;
      }
    }
    @media(max-width: 1100px){
      header #menu-menu-principal li{
        padding-left: 6px;
        padding-right: 6px;
      }
      .idiomas_top a{
        font-size: 14px;
      }
      header .et_pb_column {
        justify-content: space-around;
      }
      .bloque-cuenta .idiomas_top li{
        font-size: 14px;
      }
    }
    .bloque-cuenta .et_pb_button_module_wrapper{
      width: 100% !important;
    }
    header .et_pb_menu__menu .sub-menu li{
      width: max-content;
      max-width: max-content;
      display: block;
    }
    header .et_pb_menu__menu .sub-menu{
      width: max-content;
      max-width: max-content;
    }
    header .et_pb_menu__menu li a{
      padding-top: 0.3em !important;
      padding-bottom: 0.3em !important;
      width: max-content;
      max-width: max-content;
    }
    .cabecera-fija .et_flex_row {
      padding: 0.3em 0px !important;
    }
  }
  @media(max-width:980px){
    /* Proper Collapsable Mobile Menu */
    /* Style the icon's placeholder */
    ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
    ul.et_mobile_menu li.page_item_has_children .mobile-toggle,
    .et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
    .et-db #et-boc .et-l ul.et_mobile_menu li.page_item_has_children .mobile-toggle {
        width: 44px;
        height: 100%;
        padding: 0px !important;
        max-height: 44px;
        position: absolute;
        right: 0px;
        top: 0px;
        z-index: 999;
        background-color: transparent;
        border-bottom: 0;
        text-align: center;
    }
    ul.et_mobile_menu > li.menu-item-has-children,
    ul.et_mobile_menu > li.page_item_has_children,
    ul.et_mobile_menu > li.menu-item-has-children .sub-menu li.menu-item-has-children,
    .et-db #et-boc .et-l ul.et_mobile_menu > li.menu-item-has-children,
    .et-db #et-boc .et-l ul.et_mobile_menu > li.page_item_has_children,
    .et-db #et-boc .et-l ul.et_mobile_menu > li.menu-item-has-children .sub-menu li.menu-item-has-children {
        position: relative;
    }
    .et_mobile_menu .menu-item-has-children > a,
    .et-db #et-boc .et-l .et_mobile_menu .menu-item-has-children > a {
        background-color: transparent;
    }
    /* Hide the Sub-menu */
    ul.et_mobile_menu .menu-item-has-children .sub-menu,
    #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu,
    .et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu,
    .et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu {
        display: none !important;
        visibility: hidden !important;
    }
    /* Show the sub-menu when the + icon is clicked */
    ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
    #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
    .et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
    .et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible {
        display: block !important;
        visibility: visible !important;
    }
    /* Create the opening/closing icon using the SVG Icons */
    ul.et_mobile_menu li.menu-item-has-children .mobile-toggle .dt-icons,
    .et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle .dt-icons {
        top: 10px;
        position: relative;
    }
    /* Hide the closing icon if the sub-menu is not open */
    ul.et_mobile_menu li.menu-item-has-children:not(.dt-open) .mobile-toggle .dt-close-icon,
    .et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children:not(.dt-open) .mobile-toggle .dt-close-icon {
        display: none;
    }
    /* Hide the opening icon if the sub-menu is open */
    ul.et_mobile_menu li.menu-item-has-children.dt-open > .mobile-toggle .dt-open-icon,
    .et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children.dt-open > .mobile-toggle .dt-open-icon {
        display: none;
    } 
    header .et_pb_row{
        width: 100% !important;
        max-width: 100% !important;
    }
    .dt-icons path {
      fill: var(--marron2);
    }
      .btnpref {
        bottom: 45px !important;
        left: 0px;
        max-width: 180px;
        border: none !important;
        border-radius: 0px 8px 0px 0px !important;
        border-bottom-left-radius: 0px !important;
        border-bottom-right-radius: 0px !important;
    }
    .btnpref img {
        max-width: 14px !important;
    }
  }
  @media(max-width:767px){
    .texto-dest span {
      font-size: 42px;
      line-height: 0px;
    }
    header .et_pb_menu__logo{
      margin-right: 0px !important;
      padding-left: 15px;
    }
    
  }
/* =========================================================
   FORMULARIO CONTACTO
========================================================= */
.cf7-custom-css input::placeholder,
.cf7-custom-css textarea::placeholder,
.cf7-custom-css select {
    color: var(--texto) !important;
    opacity: 1 !important;
}
.cf7-custom-css {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}
.cf7-custom-css .fields {
    display: flex;
    gap: 16px;
    width: 100%;
    margin-bottom: 16px;
}
.cf7-custom-css .fields-cols .field-item {
    width: 50%;
}
.cf7-custom-css .field-item {
    width: 100%;
}
.cf7-custom-css p {
    margin: 0;
}
.cf7-custom-css input[type="text"],
.cf7-custom-css input[type="email"],
.cf7-custom-css input[type="tel"],
.cf7-custom-css select,
.cf7-custom-css textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: var(--texto);
    background: var(--blanco);
    border: 1px solid var(--beige2);
    border-radius: 10px;
    padding: 14px 16px;
    outline: none;
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}
.cf7-custom-css input::placeholder,
.cf7-custom-css textarea::placeholder {
    color: var(--marron);
    opacity: 1;
}
.cf7-custom-css select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--marron) 50%),
        linear-gradient(135deg, var(--marron) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
    padding-right: 42px;
}
.cf7-custom-css input[type="text"]:focus,
.cf7-custom-css input[type="email"]:focus,
.cf7-custom-css input[type="tel"]:focus,
.cf7-custom-css select:focus,
.cf7-custom-css textarea:focus {
    border-color: var(--marron);
    background-color: var(--blanco);
    box-shadow: 0 0 0 3px rgba(173, 109, 86, 0.10);
}
.cf7-custom-css textarea {
    min-height: 150px;
    resize: vertical;
}
.cf7-custom-css .conditions {
    margin-top: 4px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--texto);
}
.cf7-custom-css .conditions p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.cf7-custom-css .conditions a {
    color: var(--marron);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cf7-custom-css .conditions a:hover {
    color: var(--marron);
}
.cf7-custom-css input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--marron);
    cursor: pointer;
}
.cf7-custom-css .submit {
    margin-top: 4px;
}
.cf7-custom-css .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    padding: 13px 26px !important;
    font-family: inherit;
    font-size: 15px !important;
    font-weight: 500;
    color: var(--blanco) !important;
    background: var(--marron) !important;
    border: 1px solid var(--marron) !important;
    border-radius: 30px !important;
    box-shadow: none !important;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}
.cf7-custom-css .wpcf7-submit:hover {
    color: var(--blanco) !important;
    background: var(--marron) !important;
    border-color: var(--marron) !important;
    transform: translateY(-1px);
}
.cf7-custom-css .wpcf7-submit::after {
    display: none !important;
}
.cf7-custom-css .wpcf7-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.cf7-custom-css .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 12px;
    color: var(--marron);
}
.wpcf7 form .wpcf7-response-output {
    margin: 18px 0 0 !important;
    padding: 12px 16px !important;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid var(--beige2) !important;
    border-radius: 8px;
    background: var(--blanco);
}
.cf7-custom-css .wpcf7-spinner {
    margin: 0 0 0 10px;
    vertical-align: middle;
}
@media (max-width: 767px) {
    .cf7-custom-css .fields {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }
    .cf7-custom-css .fields-cols .field-item {
        width: 100%;
    }
    .cf7-custom-css input[type="text"],
    .cf7-custom-css input[type="email"],
    .cf7-custom-css input[type="tel"],
    .cf7-custom-css select,
    .cf7-custom-css textarea {
        font-size: 16px;
        padding: 13px 14px;
    }
    .cf7-custom-css .wpcf7-submit {
        width: 100%;
    }
}