/* Antonio Marquez — static Divi cleanup & visual polish */
html{scroll-behavior:smooth}
body{overflow-x:hidden}

/* Static export: content must never wait for Divi waypoint/animation JS. */
.et_animated,.et-waypoint{
  opacity:1!important;
  visibility:visible!important;
  animation:none!important;
  transition:none!important;
  transform:none!important;
}

/* Parallax from old Divi is visually fragile without the WP runtime. */
.et_pb_section_parallax .et_pb_parallax_css,
.et_pb_slides .et_parallax_bg.et_pb_parallax_css{
  background-attachment:scroll!important;
}
.et_parallax_bg{transform:none!important}

/* Remove accidental empty layout artefacts. */
.et_pb_row:empty,.et_pb_column:empty{display:none!important}

/* A tighter vertical rhythm on the home page. */
.home .et_pb_section_3{margin-bottom:28px!important}
.home .et_pb_row_7{margin-top:32px!important;margin-bottom:32px!important}

/* The original 210px centered header feels oversized on current screens. */
@media (min-width:981px){
  .et_header_style_centered #main-header .logo_container{height:130px!important}
  .et_header_style_centered #logo{max-height:112px!important}
  .et_header_style_centered #top-menu>li>a{padding-bottom:22px!important}
  #top-menu li a{letter-spacing:4px!important}
  .et_header_style_centered header#main-header.et-fixed-header .logo_container{height:86px!important}
  .et-fixed-header #top-menu li a{font-size:15px!important}

  /* Portada: legacy Divi added section + row padding, creating blank bands. */
  .home .et_pb_section_2{padding-bottom:22px!important}
  .home .et_pb_section_4,
  .home .et_pb_section_5,
  .home .et_pb_section_6,
  .home .et_pb_section_9{padding-top:34px!important;padding-bottom:34px!important}
  .home .et_pb_section_4>.et_pb_row,
  .home .et_pb_section_5>.et_pb_row,
  .home .et_pb_section_6>.et_pb_row,
  .home .et_pb_section_9>.et_pb_row{padding-top:24px!important;padding-bottom:24px!important}
}

/* Mobile/tablet: keep sections generous but avoid oversized legacy gaps. */
@media (max-width:980px){
  .et_pb_section:not(.et_pb_fullwidth_section){padding-top:44px;padding-bottom:44px}
  .et_pb_row{width:88%}
  .et_header_style_centered #main-header .logo_container{height:auto!important;padding:10px 0}
  .et_header_style_centered #logo{max-height:82px!important}
}
@media (max-width:767px){
  .et_pb_section:not(.et_pb_fullwidth_section){padding-top:34px;padding-bottom:34px}
  .et_pb_row{width:90%}
}
