/*
 Theme Name:   Divi Child Theme
 Theme URI:    http://www.elegantthemes.com/gallery/divi/
 Description:  Mazchenik Theme created by cheni
 Author:       cheni
 Template:     Divi
 Version:      1.0.0 
*/

/* I do not use @import to import the css stylesheet from parent. I use the method wp_enqueue_style() on funcions.php placed in child theme

/* Here I can start with the personalization of the theme
-------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Arizonia&family=Carattere&family=Corinthia:wght@400;700&family=Josefin+Slab:ital,wght@0,100..700;1,100..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* .corinthia-regular {
  font-family: "Corinthia", cursive;
  font-weight: 400;
  font-style: normal;
}

.corinthia-bold {
  font-family: "Corinthia", cursive;
  font-weight: 700;
  font-style: normal;
}
*/

/*  ====== colores principales ====== */
/* gris: #888 */
/* marron claro:  #dabbab */
/* marron granate: #423133 */

/* marron granate #624146 */


/* ======= Paleta de Códigos HEX Exactos ======= */

/* 
Gris Claro: #EDECE9 
Borgoña: #5C1D24 
Arena Ocre: #D9C3B0
*/

/* general */

body {
    text-rendering: geometricPrecision;
    /*-webkit-font-smoothing: antialiased;*/
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.15rem !important;
}

.et_pb_section {
    padding: 0 0 15px 0 !important;
}

.et_pb_row {
    padding: 20px 0 !important;
}

#main-content .container::before {
    /* eliminar linea gris que separa sidebar */
   content: none !important;
}

#main-header {
    box-shadow: none !important;
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background-color: #FFF !important;
    padding-bottom: 2px;

    border-bottom: 1px solid;
    border-image: linear-gradient(to right, transparent, rgba(92, 29, 36, 0.15), transparent) 1;
}

.container.et_menu_container {
    margin-bottom: 0;
}

a {
    color: #c9a18d !important;
    font-weight:  600 !important;
}

a:hover {
    color: #dabbab !important;
    font-weight:  600 !important;
}

h1.entry-title {
    font-weight: 600;
    font-size: 1.5rem !important;
    color: #5C1D24!important;
    font-family: 'Montserrat', sans-serif !important;
    line-height:  1.35;
    text-transform: uppercase !important;
}

/*h1.entry-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #423133;
}*/

h1.workshops-title,
h1.achievements-title {
    font-weight: 600;
    font-size: 1.5rem !important;
    color: #523C3F!important;
    font-family: 'Montserrat', sans-serif !important;
    line-height:  1.2;
    text-transform: uppercase !important;
}

h1.workshops-title { text-align: center; }

h1.achievements-title { text-align: left; }

h2 {
    color: #423133 !important;
    font-weight: 600 !important;
    font-size: 1.4rem !important;
}

#blog h2.entry-title a {
    color: #666 !important;
    font-size: 1.5rem;
    font-weight: 600 !important;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#blog h2.entry-title a:hover {
    color: #dabbab !important;
}

h4.widgettitle {
    background-color: #423133;
    border-radius: 6px 6px 0 0;
    border: 2px solid #423133;
    color: #FFF;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .5px;
    margin: 0 0 7px;
    padding: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
}

ul {
    list-style: none !important;
    margin: 10px 0;
    padding-left: 0 !important;
}

ul li {
    margin-top:  5px;
    padding-left:  0;
    margin-left:  0;
}

ul.square-list {
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

ul.square-list li {
  margin-bottom: 5px;
  margin-top: 5px;
  font-size: 1.0rem !important;
}

ul.square-list li::before {
  content: "";
  height: 8px;
  width: 8px;
  background-color: #dabbab;
  display: inline-block;
  vertical-align: top;
  margin: 10px 15px 0 0;
}

ul.list-check {
    list-style: none;
    padding-left: 0;
}

ul.list-check li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

ul.list-check li::before {
    font-family: "FontAwesome";
    content: "\f00c"; /* check */
    position: absolute;
    left: 0;
    font-size: 20px;
    color: #5C1D24;
}

.et_pb_scroll_top.et-pb-icon {
    background: rgba(218, 187, 171, .7) !important;
}

/* caption image */
.caption {
    font-size: .85rem;
    text-transform: capitalize;
    color: #5C1D24;
    display: inline-block;
    line-height: 1.5;
    padding: 7px;
}

/* image with shadow */
.shadow img {
    box-shadow: 0px 10px 6px -6px rgba(50, 50, 50, 0.6);
    border-radius: 6px;
    border: 1px solid #eee;
    border-bottom: none;
}

.icon_center {
  height: 20px;
  width: 20px;
  vertical-align: middle;
}

/* icons exhibitions, awards and publications */
.info--block {
  color: #888 !important;
  padding: 35px 8px 0px 8px;
  position: relative;
  text-align: center;
  border: 1.8px solid #dabbab;
  background-color: #EDECE9;
  border-radius: 3px;
  border: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

p.info--block_img {
  color: #dabbab !important;
}

.info--block h4.info--block_title {
  color: #5C1D24 !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  /*line-height: 1.5;
  min-height: 58px;*/
  display: flex;
  align-items: center;
  justify-content: center
}

/*.info--block_line {
  border-bottom: 1px solid #dabbab;
  display: block;
  font-size: 0;
  line-height: 1.5;
  margin: 0 auto;
  width: 33%;
}*/

p.info--block_txt {
  font-size: .90rem !important;
}

.info--block:hover .info--block_overlay {
  display: block !important;
}

.info--block_overlay:hover {
  background-color: #ddd;
  opacity: 0.9;
  border-radius: 2%;
  -webkit-border-radius: 2%;
  -moz-border-radius: 2%; 
}

.info--block_overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: none;
}

.info--block_overlay > a {
  color: #5C1D24 !important;
  text-decoration: none !important;
  position: absolute;
  top: 42%;
  left: 50%;
  background: transparent;
  border: 2px solid #dabbab;
  font-size: 16px;
  padding: 10px;
  margin: -22px 0 0 -80px;
  height: auto;
  width: 160px;
  text-align: center;
}

/* ===== maz button ====== */
.et_pb_button.maz--button,
.my-custom-form .et_pb_contact_submit {
    background-color: #5C1D24;
    color: #fff !important;
    font-size: 1.2rem;
    text-transform: uppercase;
    border-radius: 5px !important;
    -webkit-border-radius: 5px !important;
    -moz-border-radius: 5px !important;
    -ms-border-radius: 5px !important;
    -o-border-radius: 5px !important;
    text-align: center !important;
    padding: 8px 30px !important;
}

.et_pb_button.maz--button:hover,
.my-custom-form .et_pb_contact_submit:hover {
    background-color: #fff;
    border: 2px solid #5C1D24;
    color: #5C1D24 !important;
    padding: 8px 30px !important;
    text-decoration: none !important;
}

.et_pb_button.home--button {
    background-color: #EDECE9;
    color: #5C1D24 !important;
    font-size: 1.2rem;
    text-transform: uppercase;
    border: 1.5px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    border-radius: 3px !important;
    -webkit-border-radius: 3px !important;
    -moz-border-radius: 3px !important;
    -ms-border-radius: 3px !important;
    -o-border-radius: 3px !important;
    text-align: center !important;
    padding: 8px 30px !important;
    width: 100% !important;
    max-width: 100% !important;

}

.et_pb_button.home--button:hover {
    background-color: #5C1D24 !important;
    border: 1.5px solid #5C1D24;
    color: #FFF !important;
    padding: 8px 30px !important;
    text-decoration: none !important;
}

.et_pb_button.maz--button::after,
.my-custom-form .et_pb_contact_submit::after {
    content: "\24" !important;
    position: relative;
    -webkit-transition: .2s ease-in-out;
    -o-transition: .2s ease-in-out;
    transition: .2s ease-in-out;
    left: 5px !important;
    font-family: 'etModules';
    font-size: 24px;
    vertical-align: sub;
    margin-left: 8px;
    color: #fff;
    opacity: 1 !important;
}

.et_pb_button.maz--button:hover::after,
.my-custom-form .et_pb_contact_submit:hover::after {
    content: "\24" !important;
    position: relative;
    left: 5px !important;
    opacity: 1 !important;
    color: #5C1D24 !important;
}

.et_pb_button.home--button:hover::after {
    content: none !important;
}

/* ============== Sldie Menu Container =========== */
.et_slide_in_menu_container {
    background: #EDECE9 !important;
}

.et_slide_in_menu_container #mobile_menu_slide li.current-menu-item a, 
.et_slide_in_menu_container #mobile_menu_slide li a {
    color: #5C1D24 !important;
    font-size: 2.5rem !important;
    padding: 25px;
    text-transform: uppercase;
}

.et_header_style_fullscreen .et_slide_in_menu_container span.mobile_menu_bar.et_toggle_fullscreen_menu::before {
    color: #5C1D24 !important;
    font-size: 45px !important;
}

.et_slide_menu_top ul.et-social-icons {
    padding-top: 10px;
}

.et-social-instagram a.icon::before,
.et-social-facebook a.icon::before { 
    color: #5C1D24;
    border: 1px solid #5C1D24;
    padding: 9px;
    border-radius: 50%;
    margin: 0 1px;
}

#et-info-email {
    color: #5C1D24 !important;
}

#et-info-email::before {
    color: #5C1D24 !important;
}

/* ============== HEADER ========================= */
#top-header {
  background-color: rgba(66,49,51,.88) !important;
}

#top-header .container {
    padding-top: 0.60em !important;
}

#top-header #et-info {
  font-size: 1.05em;
}

#et-info-email {
    color: #fff;
}

#top-header .et-social-icon a {
  font-size: 15px;
  background-color: #FFF;
  border-radius: 50%;
  padding: 6px;
  width: 33px;
  height: 33px;
  border: 2px solid;
}

ul.et-social-icons {
  list-style: none !important;
  margin: 0;
  padding-left: 0 !important;
}

/*img#logo { display: none !important; }*/

/* .logo_container { margin-top: 2px !important; } */

/*.logo_container a {
    font-size: 1.6rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif !important;
    padding: 6px;
    color:#624146 !important;
}*/

#logo {
    max-height: 100% !important;
    max-width: 100% !important;
}

#et-top-navigation .mobile_menu_bar::before, 
.mobile_menu_bar::after, 
#top-menu li.current-menu-ancestor > a, 
#top-menu li.current-menu-item > a {
    color: #5C1D24 !important;
}

#et-top-navigation .mobile_menu_bar::before {
    font-size: 40px !important; 
}

/* ============== top menu ======================= */
nav#top-menu-nav, #top-menu, nav.et-menu-nav, .et-menu {
  text-transform: uppercase;
  font-size: 1.8em;
}

nav#top-menu-nav ul {
    margin: 0 0 13px 0 !important;
}

#top-menu li {
    padding-right: 10px;
    padding-bottom: 10px !important;
}

#top-menu a {
    color: #423133 !important;
    font-size: 1.0rem !important;
    font-weight: 600 !important;
}

#top-menu a:hover {
    color: #dabbab !important;
    font-weight: 600 !important;
}

.et_header_style_left #et-top-navigation nav > ul > li > a {
  padding-bottom: 4px !important;
}

#top-menu li.current-menu-item > a {
  color: #dabbab !important;
  font-weight: 600 !important;
  border: 2px solid #dabbab !important;
  padding: 5px;
}

#top-header .et-social-icons li {
  margin-left: 3px;
  margin-top: 0px;
}

#et-info {
    margin-top: 12px;
}

#et-info-right { 
  float: right;
  padding-bottom: 10px;
}

#et-top-navigation {
  padding-top: 25px !important;
}

/* ============== slider HOME ===================== */
.et_pb_slide {
  background-size: contain !important;  /* Muestra la imagen completa */
  background-repeat: no-repeat !important;
  background-position: center center !important;
}

/* (Opcional) Define una altura mínima para que no quede demasiado bajo */
.et_pb_slide {
  min-height: 60vh; /* ajusta al gusto: 50–80vh */
}

.et-pb-arrow-next, .et-pb-arrow-prev {
  color: #423133 !important;
}

/* ============== carousel-footer ================= */
#carousel-footer {
  background-color: #EDECE9;
}

#carousel-footer .slick-slide img {
    border-radius: 6px;
    border: 1px solid #ddd !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1) !important;
    padding: 0 !important;
    width: auto !important;
    height: 415px;
}

#carousel-footer .slick-slide a,
#carousel-footer .slick-slide a:hover {
   color: #ddd !important;
}

#carousel-footer h2 {
    margin-top: 20px;
    font-weight: 600 !important;
    font-size: 1.6rem !important;
    color: #5C1D24 !important;
    font-family: 'Montserrat', sans-serif !important;
    line-height:  1.2;
    text-transform: uppercase !important;
    text-align: center;
}

#carousel-footer h2::after {
  position: absolute;
  content: "";
  background-color: #5C1D24;
  width: 9%;
  top: 95%;
  height: .7px;
  left: 45%;
}

/* ============== Portfolio HOME ================== */
#portfolio {
    padding: 40px 0 !important;
}

/* ============== ABOUT =========================== */
#full-about {
  background-color: #FFF !important;
}

#full-about .et_pb_slide {
  background-size: cover !important;  /* Muestra la imagen completa */
  background-repeat: no-repeat !important;
  background-position: center center !important;
}

/* (Opcional) Define una altura mínima para que no quede demasiado bajo */
#full-about .et_pb_slide {
  /*min-height: 85vh;*/
  height: 93.5vh;
}

#full-about .et_pb_slide_content {
  border: 2px solid #ddd;
  background: rgba(200,200,200,.6);
  color: #423133;
  line-height: 1.7;
  /* font-family: "Corinthia", cursive; */
  font-weight: 400;
  font-style: normal;
  /*font-family: "Arizonia", cursive;
  font-weight: 400;
  font-style: normal;*/
  /*font-family: "Josefin Slab", serif;
  font-optical-sizing: auto;*/
  /*font-family: "Carattere", cursive;*/
  /*font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;  font-variation-settings: "wdth" 100;*/
  font-family: 'Montserrat', sans-serif !important;
  font-optical-sizing: auto;
  padding: 45px 35px 45px 35px;
}

#full-about .et_pb_slide_content p {
  font-size: 2.1rem;
  line-height: 1.7;
}

.et_header_style_left .et-fixed-header #et-top-navigation {
    padding-top: 5px !important;
    margin-top: 12px;
}

#about .et_pb_column.et_pb_column_1_2 > .et_pb_row_inner.et_pb_gutters2 > .et_pb_column_1_4, .et_pb_gutters2 .et_pb_column_1_2 > .et_pb_row_inner > .et_pb_column_1_4 {
    width: 50%;
    margin-right: 1% !important;
}

#about .et_pb_image_sticky {
    margin-bottom: 8px !important;
} 

/* ============== ceramic-sculpture magazine =============== */
#intro-ceramic-sculpture {
    margin-top: 30px;
    margin-bottom: 10px;
}

#ceramic-sculpture {
    background: #EDECE9;
}

#ceramic-sculpture .ipgs-book-transform,
#ceramic-sculpture .ipgs-book-wrap {
    padding-top: 50px;
}

/* ============= achievements =================== */
#achievements {
    margin-top: 30px !important;
}

/* ============== accordion profile =============== */
#achievements .accordion-profile .et_pb_toggle_close {
    background-color: rgba(238, 238, 238, .4);   
    padding: 20px;
    margin-bottom: 2%;
}

#achievements .accordion-profile .et_pb_toggle_open {
    background-color: transparent;   
    padding: 10px;
    border: none !important;
    box-shadow: none !important;
}

#achievements .accordion-profile .et_pb_toggle_close:last-child {
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

#achievements .accordion-profile .et_pb_accordion_item_7.et_pb_toggle::before {
    color: #5C1D24 !important;
}

#achievements .accordion-profile .et_pb_accordion_item_7.et_pb_toggle .et_pb_toggle_title {
    color: #5C1D24 !important;
    font-size: .80rem !important;
    font-weight: 400;
}

#achievements .accordion-profile .et_pb_toggle {
    border: 1px solid #DDD;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

#achievements .accordion-profile .et_pb_toggle_title::before {
    color: #5C1D24;
    font-size: 1.0rem !important;
}

#achievements .accordion-profile h5.et_pb_toggle_title {
    font-weight: 600;
    font-size: 1.0rem !important;
    color: #523C3F !important;
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1.2;
    text-transform: uppercase !important;
}

/* ============== WORK ============================ */
#work {∫
    padding: 40px 0 60px !important;
    background-color: #EDECE9;
}

#work .et_pb_blog_grid .et_pb_image_container img {
    border: 1px solid #ddd;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgb(221, 221, 221);
    border-bottom: none;
    -moz-box-shadow: 0 10px 6px -6px #777;
    -webkit-box-shadow: 0 10px 6px -6px #777;
    box-shadow: 0 10px 6px -6px #777;
}

/* ============= Nuevo PORTFOLIO =============== */
#portfolio {
    padding: 100px 0 120px 0 !important;
    background: #EDECE9 !important;
}

/* ============== WORKSHOPS ====================== */
#workshops {
    margin: 30px 0 50px 0;
}

/* ============== contact ========================= */

#contact .fa {
    color: #dabbab !important;
    font-weight:  600 !important;
}

#contact {
    margin: 0 0 50px 0;
}

/* ============= blog fullwidth ================ */
#blog {
  padding-top: 25px !important;
}

/* ====== posts ======== */
#blog p {
    font-family: 'Montserrat', sans-serif !important; 
    font-size: 1.15rem !important;
}

#blog span.published {
    font-size: .95rem !important;
    color: #dabbab;
}

.et_pb_post .entry-featured-image-url {
  margin-bottom: 10px !important;
}

.et_pb_post a img {
    width: 100% !important;
}

.et_pb_module .et_pb_post {
    display: flex !important;
    flex-direction: column !important;
}

.et_pb_module .et_pb_post .entry-title {
    order: 1;
}

.et_pb_module .et_pb_post .entry-featured-image-url {
    order: 2;
}

.et_pb_module .et_pb_post .post-meta {
    order: 3;
}

.et_pb_module .et_pb_post .post-content {
    order: 4;
}

.et_pb_gutter.et_pb_gutters4.et_right_sidebar #main-content .container::before {
    background-color: transparent !important;
}

#blog .et_pb_widget,
#project.et_pb_widget {
    margin-bottom: 0;
    border-radius: 0 0 6px 6px;
    border: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

#blog .et_pb_widget li a {
    font-size: .98rem;
    color: #666 !important;
    text-transform:  capitalize;
}

#blog .et_pb_widget img {
    width: 100% !important;
    margin-top: -10px;
    margin-bottom: -10px;
}

#blog .et_pb_widget li a:hover {
    color: #dabbab !important;
}

#blog .et_pb_widget ul li {
  margin-bottom: 1.2em;
  line-height: 1.15;
}

#blog .et_pb_widget_area ul {
    padding:  0 15px !important;
}

#blog .et_pb_widget ul li ul li {
  margin-left: 0 !important;
}

/* wp-pagenavi */
.wp-pagenavi {
    margin-bottom: 40px;
}

.wp-pagenavi a {
    color: #dabbab !important;
}

.wp-pagenavi a:hover, .wp-pagenavi span.current {
    border-color: #666 !important;
}

.wp-pagenavi span {
    padding: 3px 10px !important;
}

.wp-pagenavi span.current {
    color: #666 !important;
    background: #dabbab;
}

.wp-pagenavi span.pages {
    border: none !important;
    font-size: .90rem !important;
    color: #666 !important;
    font-weight: 600 !important;
}

/* ---------------- Project page ------------------------ */

#project {
    margin: 40px 0;   
}

#project h3.entry-title {
    background-color: #5C1D24;
    border-radius: 6px 6px 0 0;
    border: 2px solid #5C1D24;
    color: #FFF;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    padding: 15px;
    margin-bottom: -10px !important;
    line-height: 1.35;
}

#project .et_pb_column_2_3 .et_pb_row_inner {
    padding: 0 !important;
}

#project .et_pb_column_single {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

#project .description p {
    font-family: 'Montserrat', sans-serif !important; 
    font-size: 1.15rem !important;
}

#project .description {
    padding: 20px 25px 25px 25px;
    margin-bottom: 0;
    border-radius: 0 0 6px 6px;
    border: 1px solid #eee;
    border-top: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    margin-top: -35px;
}

/* ----------------- Single project ---------------------- */
/* nav cross project */

.nav-single a {
    font-size: 1.0rem !important;
}

.single-project.et_pb_pagebuilder_layout .nav-single {
    padding-bottom: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*width: 100% !important;*/
    max-width: 100% !important;
}

.nav-previous a,
.nav-next a {
    background-color: transparent;
    padding: 5px;
    border-bottom: 3px solid #FFE400;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    color: #232427 !important;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #232427 !important;
    background-color: #ffe400;
}

.nav-previous {
    float: none !important;
}

.nav-next {
    float: none !important;
}

a.return-link {
    display: inline-flex;
    background-image: url(images/squares.png);
    width: 30px;
    height: 30px;
    margin: 0 15%;
    transition: opacity .2s;
}

a.return-link:hover {
    background-image: url(images/squares_hover.png);
    opacity: 1;
}

/* div shares social networks */

.supsystic-social-sharing.supsystic-social-sharing-content-align-center {
    text-align: center !important;
    margin-bottom: 30px !important;
    padding: 5px !important;
}

.supsystic-social-sharing a.social-sharing-button {
    border-radius: 50% !important;
    font-size: 1.1em !important;
    padding: .85em .75em !important;
}

.supsystic-social-sharing.supsystic-social-sharing-spacing a.social-sharing-button {
    margin-right: 0.8em !important;
}


/* nav cross project */

.nav-single a {
    font-size: 1.0rem !important;
}

.single-project.et_pb_pagebuilder_layout .nav-single {
    padding-bottom: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*width: 100% !important;*/
    max-width: 100% !important;
}

.nav-previous a,
.nav-next a {
    padding: 7px;
    margin: 50px;
    border-bottom: none !important;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    color: #5C1D24 !important;
    font-size: 45px !important;
    font-weight: 700 !important;
    line-height: 1;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #dabbab !important;
    background-color: transparent;
}

.nav-previous {
    float: none !important;
}

.nav-next {
    float: none !important;
}


/* Comments for the project */

#comment-wrap h1 {
    font-size: 1.5rem !important;
    color: red !important;
}

#commentform input[type="email"],
#commentform input[type="text"],
#commentform input[type="url"],
#commentform textarea {
    background: #f5f5f5 !important;
    border-radius: 5px 5px 5px 5px;
    overflow: hidden;
    border-width: 1px;
    border-color: #f5f5f5;
    box-shadow: 0px 6px 10px -7px rgba(0, 0, 0, 0.3);
}

.mfp-iframe-holder .mfp-close,
.mfp-image-holder .mfp-close {
    font-size: 45px;
    top: 0px;
    opacity: .5;
}

p.nota {
    font-style: italic;
    font-size: .8rem;
}

span.title_field {
    font-weight: bold;
}

p.title-part-project {
    font-weight: 400;
    font-size: 1.8rem;
    color: #CACACA;
}


/* --------- gallery into the projects -------------- */

.et_pb_gallery_image .et_overlay::before {
    display: block !important;
}

/* Forzar rejilla compacta de 3 columnas en espacios estrechos */
.gallery-tree-columns .et_pb_gallery_items {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important; /* Separación pequeña para columnas estrechas */
    margin-top: 30px;
}

/* Limpiar propiedades nativas de Divi que causan saltos de línea */
.gallery-tree-columns .et_pb_gallery_item {
    width: 100% !important;
    margin: 0 !important;
    clear: none !important;
}

/* Forzar imágenes pequeñas, uniformes y perfectamente adaptadas */
.gallery-tree-columns .et_pb_gallery_image img {
    height: 90px !important; /* Ajusta este número si quieres las fotos más altas o bajas */
    object-fit: cover !important;
    border: 1px solid #EDECE9;
}

/* ---------------- PORTFOLIO FILTRABLE ------------- */

.portfolio .et_pb_portfolio_item img {
    margin-bottom: 5px;
    border-radius: 3px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    padding: 0 !important;
}

.portfolio .et_pb_portfolio_item.et_pb_grid_item {
    margin-right: 13px !important; /* Ajusta este valor a tu gusto (ej. 5px, 0px) */
    width: calc(25% - 13px) !important; /* Ajusta la fórmula para 4 col, ajusta % y px */
}

/* Eliminar el margen en el último elemento de cada fila */
.portfolio .et_pb_portfolio_item:nth-child(4n) {
    margin-right: 0 !important;
}

.portfolio .et_pb_portfolio_image {
    width: 100% !important;
}

.portfolio .et_overlay {
    background: hsla(0,0%,100%,.8) !important;
}

.portfolio .et_overlay::before {
    color: rgba(66, 49, 51, .6) !important;
}

.portfolio .et_pb_portfolio_item h2 {
    word-wrap: break-word;
    margin: 15px 0 0;
    padding-bottom: 0;
    text-align: center;
    font-size: 1.0rem !important;
}

.portfolio .et_pb_portfolio_item h2 a {
    color: #5C1D24 !important;
    line-height: 1.3;
    text-transform: uppercase;
}

.portfolio .et_pb_portfolio_item h2 a:hover {
    color: #c9a18d !important;
}

.et_pb_portfolio_filters li a.active,
.et_pb_portfolio_filters li a:hover {
    background-color: #dabbab !important;
    color: #5C1D24 !important;
}

/* 3 Column Portfolio
@media (min-width: 981px) {
    .portfolio .et_pb_grid_item {
        width: 29.66%!important;
        margin-right: 5.5%!important; 
    }
  
    .portfolio .et_pb_grid_item:nth-child(3n) {
        margin-right: 0!important;
    }
  
    .portfolio .et_pb_grid_item:nth-child(4n) {
        margin-right: 5.5%!important;
    }
  
    .portfolio .et_pb_grid_item.et_pb_portfolio_item:nth-child(4n+1) {
        clear: none!important;
    }
    .portfolio .et_pb_grid_item.first_in_row {
        clear: unset;
    }
}*/

/* ============ FOOTER ============== */
#footer-bottom {
    background-color: #5C1D24;
    padding: 15px 0 5px;
     color: #FFF !important;
     font-size: .9rem !important;
}

#footer-bottom #footer-info {
    font-size: .9rem !important;
    color: #FFF !important;
}

#footer-bottom  .footer-right {
    float: right;
}

/* CONTACT FORM */
/* Forzar a todos los campos a ocupar el 100% del ancho y apilarse */
.my-custom-form .et_pb_contact_field {
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 20px !important;
    clear: both !important;
}

/* Mostrar las etiquetas (labels) fuera y arriba de los inputs */
.my-custom-form .et_pb_contact_form_label {
    display: block !important;
    font-weight: 400;
    margin-bottom: 5px;
    color: #5C1D24 !important;
}

/* Ocultar el texto de marcador (placeholder) interno para evitar duplicación */
.my-custom-form .input::placeholder,
.my-custom-form .input::-webkit-input-placeholder,
.my-custom-form input::placeholder,
.my-custom-form textarea::placeholder {
    color: transparent !important;
}

/* Añadir automáticamente un asterisco (*) rojo a las etiquetas obligatorias */
.et_pb_contact_form .et_pb_contact_field:has([data-required_mark="required"]) .et_pb_contact_form_label::after {
    content: " *";
    color: #ff0000;
    font-weight: 400;
}

/* bottom container */
.my-custom-form .et_contact_bottom_container {
    margin-top: 15px;
}

/* Success message styling */
.et-pb-contact-message p {
    font-size: 20px;
    line-height: 1.5em;
    color: #06a022;
}

/* Error message styling */
.et-pb-contact-message:has(ul) p,
.et-pb-contact-message ul {
    font-size: 16px;
    line-height: 1.5em;
    color: red;
}

.required {
    color: #ff0000;
    font-size: .85rem;
}


/* ==========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================== */

/* Móvil pequeño: hasta 480 px */
@media screen and (max-width: 480px) {
    /* Estilos para móviles pequeños */
    #footer-bottom .footer-right {
        float: none;
        text-align: center;
    }
    .et_slide_in_menu_container #mobile_menu_slide li.current-menu-item a, 
    .et_slide_in_menu_container #mobile_menu_slide li a {
        font-size: 2.3rem !important;
        padding: 20px;
    }
    h1.entry-title {
        text-align: center;
    }
    #achievements .accordion-profile .et_pb_toggle_close {
        margin-bottom: 5%;
    }
    /* (Opcional) Define una altura mínima para que no quede demasiado bajo */
    #full-about .et_pb_slide {
      /*min-height: 85vh;*/
      height: 90vh;
    }

    #full-about .et_pb_slide_content {
      padding: 20px
    }

    #full-about .et_pb_slide_content p {
      font-size: 1.6rem;
    }
    #main-header {
        position: fixed;
    }
}

/* Móvil grande: 481–767 px */
@media screen and (min-width: 481px) and (max-width: 767px) {∫
    /* Estilos para móviles grandes */
    #footer-bottom .footer-right {
        float: none;
        text-align: center;
    }
      h1.entry-title {
        text-align: center;
    }
    #achievements .accordion-profile .et_pb_toggle_close {
        margin-bottom: 5%;
    }
    #main-header {
        position: fixed;
    }
}

/* Tablet: 768–980 px */
@media screen and (min-width: 768px) and (max-width: 980px) {
    /* Estilos para tablets */
    #footer-bottom .footer-right {
        float: none;
        text-align: center;
    }
    #main-header {
        position: fixed;
    }
}
/* Pantallas grandes: 981 px en adelante */
@media screen and (min-width: 981px) {
    #main-header {
        position: fixed;
    }
}