/*
 Theme Name:   Phoenix Super Theme
 Theme URI:    https://phoenix.madebysuperfly.com
 Description:  A Super Theme Made with ❤ by Superfly
 Author:       BeSuperfly.com
 Author URI:   https://besuperfly.com
 Template:     Divi
 Version:      1.1.2
*/

/*
/////////////////////////////////////////////////
SUPERFLY PHOENIX THEME - CUSTOM CSS
PLACE YOUR CUSTOM CSS AT THE VERY BOTTOM
EDIT AT YOUR OWN RISK
/////////////////////////////////////////////////
*/



/*
/////////////////////////////////////////////////
TYPOGRAPHY
/////////////////////////////////////////////////
*/

h1, .et_pb_text h1 {
  font-size: 48px;
}
h2, .et_pb_text h2 {
  font-size: 40px;
}
h3, .et_pb_text h3 {
  font-size: 36px;
}
h4, .et_pb_text h4 {
  font-size: 30px;
}
h5, .et_pb_text h5 {
  font-size: 24px;
}
h6, .et_pb_text h6 {
  font-size: 16px;
  line-height: 1.4em;
}
blockquote {
  font-size: 36px;
  margin: 10px 0 30px;
  padding-left: 0;
}
.et_pb_text ul, .et_pb_text ol {
  margin-left: 15px;
}
.et_pb_text li {
  margin-bottom: 15px;
}

@media screen and (max-width : 980px) {
  h1, .et_pb_text h1 {
    font-size: 40px;
  }
  h2, .et_pb_text h2 {
    font-size: 36px;
  }
  h3, .et_pb_text h3 {
    font-size: 30px;
  }
  h4, .et_pb_text h4 {
    font-size: 24px;
  }
  h5, .et_pb_text h5 {
    font-size: 20px;
  }
  h6, .et_pb_text h6 {
    font-size: 14px;
  }
  blockquote {
    font-size: 30px;
  }
}

@media screen and (max-width : 767px) {
  h1, .et_pb_text h1 {
    font-size: 36px;
  }
  h2, .et_pb_text h2 {
    font-size: 30px;
  }
  h3, .et_pb_text h3 {
    font-size: 24px;
  }
  h4, .et_pb_text h4 {
    font-size: 20px;
  }
  h5, .et_pb_text h5 {
    font-size: 18px;
  }
  h6, .et_pb_text h6 {
    font-size: 12px;
  }
}



/*
/////////////////////////////////////////////////
HEADER
/////////////////////////////////////////////////
*/

#main-header {
  box-shadow: 0 0px 50px rgba(0, 0, 0, .1);
}
#main-header.et-fixed-header {
  box-shadow: 0 0px 25px rgba(0, 0, 0, .1) !important;
}
#top-header #et-info {
  position: relative;
  top: 3px;
}
#et-info-phone:before, #et-info-email:before {
  margin-right: 8px;
  position: relative;
  top: 2px;
}
#et-secondary-menu {
  position: relative;
  top: 2px;
}
#et-secondary-menu a {
  font-size: 18px;
}
@media screen and (max-width : 600px) {
  #top-header #et-info {
    line-height: 1.5em;
  }
}



/*
/////////////////////////////////////////////////
NAVIGATION
/////////////////////////////////////////////////
*/

#main-header .nav li ul a {
  color: #000;
}
#main-header .nav li ul a:hover {
  background-color: transparent;
}
#top-menu .menu-item-has-children > a:first-child:after, #et-secondary-nav .menu-item-has-children > a:first-child:after {
  top: -2px;
}
li.sfly_social_media_menu_icon .fab {
  font-weight: 300;
}
#et_top_search {
  margin-top: 0;
}
#top-menu ul.sub-menu {
  width: 300px;
  box-shadow: 0 20px 80px rgba(0,0,0,.2);
}
#top-menu ul.sub-menu li {
  font-size: 12px;
  line-height: 1.2em;
}
#top-menu ul.sub-menu li a {
  width: 260px;
  padding: 15px 20px;
}
@media screen and (max-width : 980px) {
  .et_mobile_menu {
    background-color: rgba(0,0,0,.9);
    box-shadow: 0px 25px 50px 0px rgba(0, 0, 0, .25);
    text-align: center;
  }
  .et_mobile_menu li a {
    color: #fff !important;
    text-transform: uppercase;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
    padding: 15px 5%;
  }
  .et_mobile_menu li li {
    padding-left: 0;
  }
  .et_mobile_menu li li a {
    font-size: 18px;
    padding: 6px 5%;
  }
  .et_mobile_menu li li:last-child a {
    padding-bottom: 12px;
  }
  .et_mobile_menu li.sfly_social_media_menu_icon, .et_mobile_menu li.sfly_social_media_menu_icon a {
    display: inline-block;
  }
  .et_mobile_menu li.sfly_social_media_menu_icon a {
    padding: 25px 10px;
  }
}
@media screen and (max-width : 600px) {
  .et_mobile_menu li.sfly_social_media_menu_icon a {
    font-size: 20px;
  }
}



/*
/////////////////////////////////////////////////
OVERLAYS
/////////////////////////////////////////////////
*/

.sfly_black_overlay .et_parallax_bg:before, .sfly_black_overlay:before {
  content:"";
  display: block;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, .5);
}
.sfly_dark_overlay .et_parallax_bg:before, .sfly_dark_overlay:before {
  content:"";
  display: block;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, .25);
}
.sfly_grey_overlay .et_parallax_bg:before, .sfly_grey_overlay:before {
  content:"";
  display: block;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(50, 50, 50, .25);
}



/*
/////////////////////////////////////////////////
COLUMN SWITCH
/////////////////////////////////////////////////
*/

@media screen and (max-width : 980px) {
  .sfly_column_switch {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -webkit-flex-direction: column-reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
  }
}



/*
/////////////////////////////////////////////////
NO MARGIN PADDING BOTTOM ON TABLET / MOBILE
/////////////////////////////////////////////////
*/

@media screen and (max-width : 980px) {
	.sfly_no_column_margin_tablet_mobile .et_pb_column {
		margin-bottom: 0;
	}
}



/*
/////////////////////////////////////////////////
INLINE BUTTON
/////////////////////////////////////////////////
*/

.sfly_inline_button_row .et_pb_button_module_wrapper {
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
}
.sfly_inline_button_row .et_pb_button_module_wrapper:last-of-type {
  margin-right: 0;
}
@media screen and (max-width : 600px) {
  .sfly_inline_button_row .et_pb_button_module_wrapper {
    float: none;
    margin-right: 0;
  }
}



/*
/////////////////////////////////////////////////
HERO
/////////////////////////////////////////////////
*/

body #page-container .sfly_fullwidth_header.et_pb_fullwidth_header_0 .et_pb_button_one.et_pb_button, body #page-container .sfly_fullwidth_header.et_pb_fullwidth_header_0 .et_pb_button_one.et_pb_button:hover, body #page-container .sfly_fullwidth_header.et_pb_fullwidth_header_0 .et_pb_button_two.et_pb_button, body #page-container .sfly_fullwidth_header.et_pb_fullwidth_header_0 .et_pb_button_two.et_pb_button:hover {
  padding: 8px 36px !important;
}
@media screen and (max-width : 767px) {
  .sfly_fullwidth_header .et_pb_fullwidth_header_container .et_pb_button_one, .sfly_fullwidth_header .et_pb_fullwidth_header_container .et_pb_button_two {
    display: block !important;
    margin-left: 0;
    text-align: center;
  }
  .sfly_fullwidth_header .et_pb_fullwidth_header_container.center .header-content {
    width: 100%;
  }
}

/*HERO 1*/

/*HERO 2*/

/*HERO 3*/

/*HERO 4*/

/*HERO 5*/
.sfly_hero_5 .et_pb_row {
  height: 100vh;
}
@media screen and (max-width : 980px) {
  .sfly_hero_5 .et_pb_row .et_pb_column_1 {
    height: 100%;
  }
}

/*HERO 6*/
.sfly_hero_6 .et_pb_row {
  height: 100vh;
}
@media screen and (max-width : 980px) {
  .sfly_hero_6 .et_pb_row .et_pb_column_2 {
    height: 100%;
  }
}



/*
/////////////////////////////////////////////////
CTA
/////////////////////////////////////////////////
*/

/*CTA 1 & 2*/
.sfly_cta_1 h3, .sfly_cta_2 h3 {
  padding-bottom: 0;
}
.sfly_cta_1 .et_pb_button, .sfly_cta_2 .et_pb_button {
  margin-top: 20px;
}
@media screen and (max-width : 1244px) {
  .sfly_cta_1 .et_pb_button, .sfly_cta_2 .et_pb_button {
    margin-top: 50px;
  }
}
@media screen and (max-width : 980px) {
  .sfly_cta_1 h3, .sfly_cta_2 h3 {
    padding-bottom: 10px;
  }
  .sfly_cta_1 .et_pb_text, .sfly_cta_2 .et_pb_text {
    text-align: center;
  }
  .sfly_cta_1 .et_pb_button_module_wrapper, .sfly_cta_2 .et_pb_button_module_wrapper {
    text-align: center;
  }
  .sfly_cta_1 .et_pb_button, .sfly_cta_2 .et_pb_button {
    margin-top: 0;
  }
}

/*CTA 3*/

/*CTA 4*/
.sfly_cta_4 h3 {
  padding-bottom: 0;
}
.sfly_cta_4 a {
  background-color: transparent;
  display: block;
  width: 100%;
  height: 100%;
  padding: 28px 20px 20px;
  transition: all .3s ease-in-out;
}
.sfly_cta_4 i {
  position: relative;
  top: 1px;
  left: 0;
  transition: all .1s ease-in-out;
}
.sfly_cta_4 a:hover i {
  left: 8px;
}



/*
/////////////////////////////////////////////////
GENERAL
/////////////////////////////////////////////////
*/

@media screen and (max-width : 980px) {
  .sfly_general .et_pb_divider.divider_spacer {
    min-height: 400px;
  }
  .et_pb_divider.no_min_height {
    min-height: 0 !important;
  }
}
@media screen and (max-width : 600px) {
  .sfly_general .et_pb_divider.divider_spacer {
    min-height: 300px;
  }
}



/*GENERAL 1*/

/*GENERAL 2*/

/*GENERAL 3*/

/*GENERAL 4*/

/*GENERAL 5*/

/*GENERAL 6*/

/*GENERAL 7*/

/*GENERAL 8*/

/*GENERAL 9*/

/*GENERAL 10*/

/*GENERAL 11*/

/*GENERAL 12*/

/*GENERAL 13*/

/*GENERAL 14*/



/*
/////////////////////////////////////////////////
FEATURE
/////////////////////////////////////////////////
*/

/*FEATURE 1*/
.sfly_feature_1 .column1 {
  min-height: 400px;
}
.sfly_feature_1 .column2 {
  margin-top: 75px;
}
@media screen and (max-width : 980px) {
  .sfly_feature_1 .column2 {
    margin-top: 0;
  }
}
@media screen and (max-width : 600px) {
  .sfly_feature_1 .column1 {
    min-height: 300px;
  }
}

/*FEATURE 2*/
.sfly_feature_2 .column2 {
  min-height: 400px;
}
@media screen and (max-width : 600px) {
  .sfly_feature_2 .column2 {
    min-height: 300px;
  }
}

/*FEATURE 3*/

/*FEATURE 4*/

/*FEATURE 5*/

/*FEATURE 6*/

/*FEATURE 7*/

/*FEATURE 8*/
@media screen and (max-width : 980px) {
  .sfly_feature_8 .column2 {
    margin-bottom: 30px !important;
  }
}

/*FEATURE 9*/

/*FEATURE 10*/
.sfly_feature_10 .et_pb_blurb_position_left .et_pb_blurb_container {
  padding-left: 40px;
}
@media screen and (max-width : 980px) {
  .sfly_feature_10 .et_pb_column {
    margin-bottom: 75px;
  }
}

/*FEATURE 11*/
@media screen and (max-width : 980px) {
  .sfly_feature_11 .et_pb_column {
    margin-bottom: 75px;
  }
}

/*FEATURE 12*/
.sfly_feature_12 .et_pb_blurb_position_left .et_pb_blurb_container {
  padding-left: 40px;
}

/*FEATURE 13*/
.sfly_feature_13 .et_pb_blurb_position_left .et_pb_blurb_container {
  padding-left: 40px;
}

/*FEATURE 14*/

/*FEATURE 15*/

/*FEATURE 16*/

/*FEATURE 17*/

/*FEATURE 18*/

/*FEATURE 19*/

/*FEATURE 20*/

/*FEATURE 21*/
@media screen and (max-width : 980px) {
  .sfly_feature_21 .et_pb_divider.divider_spacer {
    min-height: 400px;
  }
}
@media screen and (max-width : 600px) {
  .sfly_feature_21 .et_pb_divider.divider_spacer {
    min-height: 300px;
  }
}

/*FEATURE 22*/
@media screen and (max-width : 980px) {
  .sfly_feature_22 .column1, .sfly_feature_22 .column2 {
    margin-bottom: 50px;
  }
}

/*FEATURE 23*/
.sfly_feature_23 .et_pb_blurb {
  min-height: 325px;
}
@media screen and (max-width : 1040px) {
	.sfly_feature_23 .et_pb_blurb {
	  min-height: 350px;
	}
}
@media screen and (max-width : 980px) {
	.sfly_feature_23 .et_pb_blurb {
	  min-height: 0;
	}
}



/*
/////////////////////////////////////////////////
COUNTER
/////////////////////////////////////////////////
*/

@media screen and (max-width : 980px) {
  .sfly_counter .et_pb_divider.divider_spacer {
    min-height: 400px;
  }
}
@media screen and (max-width : 600px) {
  .sfly_counter .et_pb_divider.divider_spacer {
    min-height: 300px;
  }
}

/*COUNTER 1*/
.sfly_counter_2 .et_pb_text_align_center {
  margin-left: 0;
}

/*COUNTER 2*/



/*
/////////////////////////////////////////////////
TEAM
/////////////////////////////////////////////////
*/

.sfly_social_icons {
  font-size: 24px;
}
.sfly_social_icons a {
  color: #8c8c8c;
  padding-left: 10px;
  padding-right: 10px;
  opacity: 1;
  transition: all .3s ease-in-out;
}
.sfly_social_icons a:first-of-type {
  padding-left: 0;
}
.sfly_social_icons a:last-of-type {
  padding-right: 0;
}
.sfly_social_icons a:hover {
  opacity: .5;
}
.sfly_social_icons_light a {
  color: #fff;
}
@media screen and (max-width : 980px) {
  .sfly_team .et_pb_divider.divider_spacer {
    min-height: 400px;
  }
}
@media screen and (max-width : 600px) {
  .sfly_team .et_pb_divider.divider_spacer {
    min-height: 300px;
  }
}

/*TEAM 1*/

/*TEAM 2*/

/*TEAM 3*/

/*TEAM 4*/



/*
/////////////////////////////////////////////////
IMAGE
/////////////////////////////////////////////////
*/

.et_overlay {
  border: none;
}
@media screen and (max-width : 980px) {
  .et_pb_column .et_pb_grid_item:nth-child(n) {
    margin: 0 !important;
    width: 33.333% !important;
  }
}
@media screen and (max-width : 767px) {
  .et_pb_column .et_pb_grid_item:nth-child(n) {
    width: 50% !important;
  }
}

/*IMAGE 1*/

/*IMAGE 2*/

/*IMAGE 3*/
@media screen and (max-width : 980px) {
  .sfly_image_3 .et_pb_row {
    padding-bottom: 30px !important;
  }
}
/*IMAGE 4*/

/*IMAGE 5*/

/*IMAGE 6*/

/*IMAGE 7*/
.sfly_image_7 .et_pb_column {
	display: grid;
	align-items: center;
}
.sfly_image_7 .et_pb_column .et_pb_module {
	padding: 100px 25px;
}
.sfly_image_7 h3 {
	padding-bottom: 0;
}
@media screen and (max-width : 600px) {
	.sfly_image_7 .et_pb_column .et_pb_module {
		padding: 75px 25px;
	}
}

/*IMAGE 8*/

/*IMAGE 9*/



/*
/////////////////////////////////////////////////
LOGOS
/////////////////////////////////////////////////
*/

.sfly_logos a img {
  opacity: 1;
  transition: all .3s ease-in-out;
}
.sfly_logos a:hover img {
  opacity: .5;
}

/*LOGOS 1*/



/*
/////////////////////////////////////////////////
SOCIAL
/////////////////////////////////////////////////
*/

.sfly_social_icons {
  font-size: 24px;
}
.sfly_social_icons a {
  color: #8c8c8c;
  padding-left: 10px;
  padding-right: 10px;
  opacity: 1;
  transition: all .3s ease-in-out;
}
.sfly_social_icons a:first-of-type {
  padding-left: 0;
}
.sfly_social_icons a:last-of-type {
  padding-right: 0;
}
.sfly_social_icons a:hover {
  opacity: .5;
}
.sfly_social_icons_light a {
  color: #fff;
}

/*SOCIAL 1*/

/*SOCIAL 2*/
.sfly_social_2 {
  text-align: center;
}
.sfly_social_2 a {
  opacity: 1;
  transition: all .3s ease-in-out;
}
.sfly_social_2 a:hover {
  opacity: .5;
}
.sfly_social_2 i {
  font-size: 48px;
  color: #fff;
  padding: 10px 6%;
}
@media screen and (max-width : 980px) {
  .sfly_social_2 i {
    font-size: 36px;
    padding: 10px 5%;
  }
}
@media screen and (max-width : 600px) {
  .sfly_social_2 i {
    font-size: 24px;
  }
}



/*
/////////////////////////////////////////////////
REVIEWS
/////////////////////////////////////////////////
*/

.sfly_reviews h4 {
  font-size: 16px;
  font-weight: 700;
  padding-top: 25px;
  padding-bottom: 5px;
}
.sfly_reviews h6 {
  font-size: 11px;
}
@media screen and (max-width : 980px) {
  .sfly_reviews .et_pb_divider.divider_spacer {
    min-height: 400px;
  }
}
@media screen and (max-width : 600px) {
  .sfly_reviews .et_pb_divider.divider_spacer {
    min-height: 300px;
  }
}

/*REVIEWS 1*/

/*REVIEWS 2*/
.sfly_reviews_2 img {
  width: 100px;
  height: 100px;
}
.sfly_reviews_2 h4 {
  font-size: 16px;
}
@media screen and (max-width : 600px) {
  .sfly_reviews_2 .et_pb_slide, .sfly_reviews_2 .et_pb_slide_description {
    padding: 0 !important;
  }
}

/*REVIEWS 3*/

/*REVIEWS 4*/

/*REVIEWS 5*/
@media screen and (max-width : 980px) {
  .sfly_reviews_5 .column1 {
    margin-bottom: 0;
  }
}



/*
/////////////////////////////////////////////////
OPTINS
/////////////////////////////////////////////////
*/

.sfly_optin .et_pb_newsletter_description {
  display: none;
}
@media screen and (max-width : 980px) {
  .sfly_optin .et_pb_divider.divider_spacer {
    min-height: 400px;
  }
}
@media screen and (max-width : 600px) {
  .sfly_optin .et_pb_divider.divider_spacer {
    min-height: 300px;
  }
}

/*OPTIN 1*/
@media screen and (max-width : 980px) {
  .sfly_optin_1 .et_pb_newsletter_form {
    padding-left: 0;
  }
}

/*OPTIN 2*/

/*OPTIN 3*/



/*
/////////////////////////////////////////////////
BLOG
/////////////////////////////////////////////////
*/

/*BLOG 1*/

/*BLOG 2*/
.sfly_blog_2 article {
  padding: 0 !important;
}
.sfly_blog_2 .et_pb_image_container {
  margin: 0;
  box-shadow: 0px 0px 80px 0px rgba(0,0,0,0.2);
}

/*BLOG 3*/
.sfly_blog_3 article {
  padding-bottom: 50px;
  margin-bottom: 50px;
  border-bottom: 1px solid #f2f2f2 !important;
}
.sfly_blog_3 article:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none !important;
}
.sfly_blog_3 article a.entry-featured-image-url img {
  width: 100%;
}

/*SINGLE POST*/
#main-content .container:before {
  background-color: transparent;
}
#comment-wrap {
  padding-top: 15px;
}
h3#reply-title {
  font-size: 24px;
  font-weight: 700;
}
a.more-link {
  font-family: 'Lato',Helvetica,Arial,Lucida,sans-serif;
  background: #000000;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #000 !important;
  border-radius: 0px;
  font-style: normal;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 4px;
  padding: 6px 18px;
  margin-top: 25px;
  display: inline-block !important;
  transition: all .3s ease-in-out;
}
a.more-link:hover {
  background: rgba(0,0,0,0);
  color: #000;
}



/*
/////////////////////////////////////////////////
CONTACT
/////////////////////////////////////////////////
*/

.sfly_contact input.et_pb_contact_captcha {
  padding: 13px 20px 12px;
}

/*CONTACT 1*/

/*CONTACT 2*/

/*CONTACT 3*/
.sfly_contact_3 .et_pb_row .column1 {
  box-shadow: 0px 0px 80px 0px rgba(0,0,0,0.2);
}

/*CONTACT 4*/
.sfly_contact_4.content {
  z-index: 99;
  margin-top: -100px;
}
.sfly_contact_4 .et_pb_row.content {
  top: 150px;
}
@media screen and (max-width : 980px) {
  .sfly_contact_4.content {
    margin-top: -50px;
  }
  .sfly_contact_4 .et_pb_row.content {
    top: 100px;
  }
}

/*CONTACT 5*/

/*CONTACT 6*/



/*
/////////////////////////////////////////////////
MODULES
/////////////////////////////////////////////////
*/

/*TABS*/
.sfly_tab_phoenix ul.et_pb_tabs_controls {
  background-color: #f5f5f5;
}
.sfly_tab_phoenix ul.et_pb_tabs_controls:after, .sfly_tab_phoenix .et_pb_tabs_controls li {
  border-color: #f2f2f2;
}



/*
/////////////////////////////////////////////////
FOOTER
/////////////////////////////////////////////////
*/

/*FOOTER 1*/

/*FOOTER 2*/

/*FOOTER 3*/

/*FOOTER 4*/

/*SUBFOOTER*/
#footer-info {
  float: none;
  text-align: center;
  letter-spacing: 6px;
  font-weight: 700 !important;
  line-height: 1.3em;
}
#footer-info a {
  font-weight: 700 !important;
}
@media screen and (max-width : 600px) {
  #footer-info {
    font-size: 10px !important;
  }
}



/*
/////////////////////////////////////////////////
END OF PHEONIX CHILD THEME CSS
LAST EDITED BY JOHN WOOTEN ON DECEMBER 27, 2018
/////////////////////////////////////////////////
*/



/*
/////////////////////////////////////////////////
PLACE ANY CUSTOM CSS BELOW
/////////////////////////////////////////////////
*/




















/*
/////////////////////////////////////////////////////////////////
AHN-CUSTOM-2026 :: START
Archivo Historico Nacional del Ecuador
Header azul + footer + responsive + tipografia (tema hijo, reversible).
Paleta oficial: navy #212a5c | turquesa #014748 | cafe #4e2f1f
/////////////////////////////////////////////////////////////////
*/

:root{
  --ahn-navy:#212a5c;
  --ahn-navy-deep:#161c40;
  --ahn-navy-soft:#2c3775;
  --ahn-teal:#014748;
  --ahn-teal-bright:#2f9d95;
  --ahn-cafe:#4e2f1f;
}

body{overflow-x:hidden;}
img{max-width:100%;height:auto;}

/* =============================================================
   TIPOGRAFIA - Philosopher para titulos (menos exposiciones)
   ============================================================= */
.ahn-philo h1, .ahn-philo h2, .ahn-philo h3, .ahn-philo h4, .ahn-philo h5, .ahn-philo h6,
.ahn-philo .et_pb_module_heading,
.ahn-philo .et_pb_heading_container h1,
.ahn-philo .et_pb_heading_container h2,
.ahn-philo .et_pb_slide_description .et_pb_slide_title,
.ahn-philo .et_pb_toggle_title,
.ahn-philo .et_pb_accordion .et_pb_toggle_title{
  font-family:'Poppins',Helvetica,Arial,sans-serif !important;
}

/* =============================================================
   HEADER - fondo BLANCO con franja azul divisora abajo
   ============================================================= */
.et-l--header .et_builder_inner_content{position:relative;}
.et-l--header .et_pb_section_0_tb_header,
.et-l--header .et_pb_section_1_tb_header,
.et-l--header.et-fixed-header .et_pb_section[class*="_tb_header"]{
  background:#ffffff !important;
}
/* fondo blanco del header + franja azul divisora en la base */
.et-l--header{background:#ffffff !important;border-bottom:5px solid var(--ahn-navy) !important;}

/* Barra social: MISMA ALTURA que el menu (derecha, centrada vertical) */
.et-l--header .et_pb_section_0_tb_header{
  position:absolute !important;
  top:0;right:0;z-index:30;
  height:100%;
  display:flex !important;align-items:center !important;
  margin:0 !important;padding:0 20px !important;
  background:transparent !important;
}
.et-l--header .et_pb_section_0_tb_header .et_pb_row{
  display:flex !important;flex-direction:row !important;align-items:center !important;
  justify-content:flex-end !important;gap:9px;
  width:auto !important;max-width:none !important;margin:0 !important;padding:0 !important;min-height:0 !important;
}
.et-l--header .et_pb_section_0_tb_header .et_pb_column{
  width:auto !important;min-height:0 !important;margin:0 !important;padding:0 !important;float:none !important;
  display:flex !important;align-items:center;
}
/* iconos de marca (sobre header blanco) */
.et-l--header .et_pb_icon[class*="_tb_header"]{margin:0 !important;padding:0 !important;}
.et-l--header .et_pb_icon[class*="_tb_header"] a{
  display:inline-flex !important;align-items:center;justify-content:center;
  width:33px;height:33px;border-radius:50%;
  background:transparent;
  transition:transform .2s ease, background-color .2s ease;
}
.et-l--header .et_pb_icon[class*="_tb_header"] a:hover{
  transform:translateY(-2px);
  background:rgba(1,71,72,.09);
}
.et-l--header .et_pb_icon[class*="_tb_header"] .et_pb_icon_wrap,
.et-l--header .et_pb_icon[class*="_tb_header"] .et-pb-icon{margin:0 !important;}

/* Navegacion: neutralizar margenes raros del Theme Builder (alta especificidad) */
#page-container .et-l--header .et_pb_section_1_tb_header{margin:0 !important;padding:0 !important;min-height:0 !important;}
#page-container .et-l--header .et_pb_row_1_tb_header{
  margin:0 auto !important;width:95% !important;max-width:1600px !important;
  padding:0 155px 0 0 !important;min-height:0 !important;
}
#page-container .et-l--header .et_pb_row_0_tb_header{margin:0 !important;padding:0 !important;min-height:0 !important;}
#page-container .et-l--header .et_pb_menu_0_tb_header{margin:0 !important;}
.et-l--header .et_pb_menu[class*="_tb_header"]{padding:9px 0 !important;text-align:left !important;}
#page-container .et-l--header .et_pb_menu[class*="_tb_header"] .et-menu{justify-content:flex-start !important;}
#page-container .et-l--header .et_pb_menu[class*="_tb_header"] .et-menu > li{padding-right:9px !important;}
#page-container .et-l--header .et_pb_menu[class*="_tb_header"] .et-menu > li > a{
  font-size:12.5px !important;letter-spacing:0 !important;
  padding-top:8px !important;padding-bottom:8px !important;line-height:1 !important;
}

/* LOGO del header (izquierda) */
#page-container .et-l--header .et_pb_menu_inner_container{align-items:center !important;}
#page-container .et-l--header .et_pb_menu__logo-wrap{
  flex:0 0 auto !important;
  max-height:50px !important;
  margin:0 12px 0 0 !important;
  display:flex !important;align-items:center;
}
.et-l--header .et_pb_menu__logo-wrap img,
.et-l--header .et_pb_menu__logo img{
  max-height:50px !important;width:auto !important;height:auto !important;
}
.et-l--header .et_pb_menu[class*="_tb_header"] .et-menu > li > a{
  color:var(--ahn-navy) !important;
  font-weight:600;letter-spacing:.2px;padding-bottom:4px;
  box-shadow:inset 0 -2px 0 rgba(1,71,72,0);
  transition:box-shadow .25s ease,color .2s ease;
}
.et-l--header .et_pb_menu[class*="_tb_header"] .et-menu > li > a:hover,
.et-l--header .et_pb_menu[class*="_tb_header"] .et-menu > li.current-menu-item > a,
.et-l--header .et_pb_menu[class*="_tb_header"] .et-menu > li.current_page_item > a{
  color:var(--ahn-navy) !important;
  box-shadow:inset 0 -2px 0 var(--ahn-teal);
}
/* flechas del menu: navy y CENTRADAS verticalmente con el texto */
.et-l--header .et_pb_menu[class*="_tb_header"] .menu-item-has-children > a:first-child:after{
  color:var(--ahn-navy) !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  margin-top:0 !important;
  font-size:15px !important;
  line-height:1 !important;
}
/* submenu desplegable: tamano de letra legible y consistente */
#page-container .et-l--header .et_pb_menu[class*="_tb_header"] ul.sub-menu li a{
  font-size:14px !important;
  line-height:1.3em !important;
  padding:12px 20px !important;
}
#page-container .et-l--header .et_pb_menu[class*="_tb_header"] ul.sub-menu{
  width:260px !important;
}
#page-container .et-l--header .et_pb_menu[class*="_tb_header"] ul.sub-menu li{
  font-size:14px !important;
}
/* submenus desplegables: fondo blanco, texto oscuro (legible) */
.et-l--header .et_pb_menu[class*="_tb_header"] ul.sub-menu{background:#ffffff;}
.et-l--header .et_pb_menu[class*="_tb_header"] ul.sub-menu a{color:#1a1a1a !important;}
.et-l--header .et_pb_menu[class*="_tb_header"] ul.sub-menu a:hover{color:var(--ahn-teal) !important;}
.et-l--header.et-fixed-header{box-shadow:0 6px 24px rgba(0,0,0,.22) !important;}

/* =============================================================
   HEADER responsive (<=980px): social estatica y centrada, hamburguesa blanca
   ============================================================= */
@media screen and (max-width:980px){
  .et-l--header .et_pb_section_0_tb_header{
    position:static !important;height:auto !important;
    justify-content:center !important;padding:8px 0 !important;
  }
  .et-l--header .et_pb_section_0_tb_header .et_pb_row{
    justify-content:center !important;flex-wrap:nowrap !important;gap:14px;width:92%;
  }
  .et-l--header .et_pb_section_0_tb_header .et_pb_column:before{display:none !important;}
  .et-l--header .et_pb_icon[class*="_tb_header"] a{width:42px;height:42px;}
  #page-container .et-l--header .et_pb_row_1_tb_header{padding:0 !important;width:100% !important;}
  .et-l--header .et_pb_menu[class*="_tb_header"]{text-align:center;padding:6px 0 !important;}
  .et-l--header .mobile_menu_bar:before{color:var(--ahn-navy) !important;}
  /* logo izquierda + hamburguesa derecha en movil/tablet */
  #page-container .et-l--header .et_pb_menu_inner_container{
    justify-content:space-between !important;align-items:center !important;
    width:92% !important;margin:0 auto !important;
  }
  #page-container .et-l--header .et_pb_menu__logo-wrap{max-height:44px !important;margin:0 !important;}
  .et-l--header .et_pb_menu__logo-wrap img,.et-l--header .et_pb_menu__logo img{max-height:44px !important;}
  /* hamburguesa pegada a la derecha */
  #page-container .et-l--header .et_pb_menu__wrap{
    flex:0 0 auto !important;width:auto !important;margin-left:auto !important;
    display:flex !important;justify-content:flex-end !important;align-items:center !important;
  }
}
@media screen and (max-width:479px){
  .et-l--header .et_pb_section_0_tb_header .et_pb_row{gap:10px;}
  .et-l--header .et_pb_icon[class*="_tb_header"] a{width:38px;height:38px;}
}

/* =============================================================
   MENU MOVIL - acordeon (submenus cerrados; se abren al pulsar)
   ============================================================= */
@media screen and (max-width:980px){
  .et_mobile_menu .menu-item-has-children > .sub-menu{display:none !important;}
  .et_mobile_menu .menu-item-has-children.ahn-open > .sub-menu{display:block !important;}
  .et_mobile_menu .menu-item-has-children > a{position:relative;}
  .et_mobile_menu .menu-item-has-children > a:after{
    content:"";
    position:absolute;right:7%;top:52%;
    width:9px;height:9px;
    border-right:2px solid var(--ahn-navy);
    border-bottom:2px solid var(--ahn-navy);
    transform:translateY(-70%) rotate(45deg);
    opacity:.7;transition:transform .25s ease;
  }
  .et_mobile_menu .menu-item-has-children.ahn-open > a:after{
    transform:translateY(-30%) rotate(225deg);
  }
}

/* =============================================================
   SLIDER HERO - altura estable (sin salto al cargar) y adaptable
   El padding % de Divi (~196px) hacia que la altura saltara al cargar.
   ============================================================= */
.et_pb_slider_0 .et_pb_slide_description{
  padding-top:60px !important;
  padding-bottom:60px !important;
}
.et_pb_slider_0,
.et_pb_slider_0 .et_pb_slides,
.et_pb_slider_0 .et_pb_slide,
.et_pb_slider_0 .et_pb_slide .et_pb_container,
.et_pb_slider_0 .et_pb_slide .et_pb_slider_container_inner{
  min-height:630px !important;
  overflow:hidden !important; /* sin barra de desplazamiento en el slider */
}
@media screen and (max-width:980px){
  .et_pb_slider_0 .et_pb_slide_description{padding-top:40px !important;padding-bottom:40px !important;}
  .et_pb_slider_0,
  .et_pb_slider_0 .et_pb_slides,
  .et_pb_slider_0 .et_pb_slide,
  .et_pb_slider_0 .et_pb_slide .et_pb_container,
  .et_pb_slider_0 .et_pb_slide .et_pb_slider_container_inner{min-height:470px !important;}
}
@media screen and (max-width:600px){
  .et_pb_slider_0 .et_pb_slide_description{padding-top:28px !important;padding-bottom:28px !important;}
  .et_pb_slider_0,
  .et_pb_slider_0 .et_pb_slides,
  .et_pb_slider_0 .et_pb_slide,
  .et_pb_slider_0 .et_pb_slide .et_pb_container,
  .et_pb_slider_0 .et_pb_slide .et_pb_slider_container_inner{min-height:360px !important;}
}

/* =============================================================
   FOOTER
   ============================================================= */
.et-l--footer{background:var(--ahn-navy-deep);}
.et-l--footer .et_pb_section[class*="_tb_footer"]{
  background-color:var(--ahn-navy) !important;
  background-image:linear-gradient(160deg,var(--ahn-navy-soft) 0%,var(--ahn-navy) 45%,var(--ahn-navy-deep) 100%) !important;
  padding:22px 0 28px !important;
  border-top:3px solid var(--ahn-teal-bright);
}
/* menos espacio arriba de "Contactanos" */
#page-container .et-l--footer .et_pb_row_0_tb_footer{padding-top:0 !important;margin-top:0 !important;min-height:0 !important;}
.et-l--footer .et_pb_row[class*="_tb_footer"]{
  width:94%;
  max-width:1320px;
}

/* Titulo "Contactanos" */
.et-l--footer .et_pb_heading_0_tb_footer .et_pb_module_heading{
  color:#ffffff !important;font-size:30px !important;font-weight:700 !important;
  text-align:center;letter-spacing:.3px;margin-bottom:6px;
}
.et-l--footer .et_pb_heading_0_tb_footer .et_pb_heading_container:after{
  content:"";display:block;width:64px;height:3px;margin:14px auto 4px;
  background:var(--ahn-teal-bright);border-radius:2px;
}

/* Sedes (titulo de cada columna) */
.et-l--footer .et_pb_heading[class*="_tb_footer"]:not(.et_pb_heading_0_tb_footer) .et_pb_module_heading{
  color:#ffffff !important;font-size:15px !important;font-weight:600 !important;
  text-transform:uppercase;letter-spacing:.5px;text-align:center !important;
  margin:0 0 5px !important;
}

/* Texto (direccion/correo/telefono): mas pequeno para que ajuste */
.et-l--footer .et_pb_text[class*="_tb_footer"],
.et-l--footer .et_pb_text[class*="_tb_footer"] p,
.et-l--footer .et_pb_text[class*="_tb_footer"] span,
.et-l--footer .et_pb_text[class*="_tb_footer"] a{
  color:rgba(255,255,255,.88) !important;letter-spacing:0 !important;
}
.et-l--footer .et_pb_text[class*="_tb_footer"]{
  text-align:center !important;font-size:12px;line-height:1.5;
  overflow-wrap:anywhere;word-break:break-word;
}
.et-l--footer .et_pb_text[class*="_tb_footer"] i{color:var(--ahn-teal-bright) !important;margin-right:6px;}
.et-l--footer a{transition:color .2s ease;}
.et-l--footer a:hover{color:var(--ahn-teal-bright) !important;}

/* Columna = una sede completa; aire entre modulos */
.et-l--footer .et_pb_column[class*="_tb_footer"]{padding:6px 16px !important;}
.et-l--footer .et_pb_column[class*="_tb_footer"] .et_pb_text{margin-bottom:6px !important;}

/* Logo del Ministerio: centrado (anula el margin-left del builder) y compacto */
#page-container .et-l--footer .et_pb_image[class*="_tb_footer"]{
  text-align:center !important;
  margin:8px auto 0 !important;
  padding-top:6px !important;
  float:none !important;
  width:360px !important;
  max-width:90% !important;
}
.et-l--footer .et_pb_image[class*="_tb_footer"] .et_pb_image_wrap{
  display:block !important;width:100% !important;margin:0 auto !important;float:none !important;
}
.et-l--footer .et_pb_image[class*="_tb_footer"] img{
  width:100% !important;max-width:100% !important;height:auto !important;float:none !important;
}
@media screen and (max-width:600px){
  #page-container .et-l--footer .et_pb_image[class*="_tb_footer"]{width:260px !important;max-width:80% !important;}
}

/* Footer responsive: SOLO las 4 columnas de sede (1_4) pasan a 2 -> 1.
   Las columnas 4_4 (titulo "Contactanos" y logo) siempre full width y centradas. */
@media screen and (max-width:980px){
  .et-l--footer .et_pb_section[class*="_tb_footer"]{padding:38px 0 24px !important;}
  .et-l--footer .et_pb_column.et_pb_column_1_4[class*="_tb_footer"]{
    width:50% !important;margin:0 0 22px !important;padding:6px 14px !important;
  }
  .et-l--footer .et_pb_column.et_pb_column_4_4[class*="_tb_footer"]{
    width:100% !important;float:none !important;text-align:center !important;
  }
  .et-l--footer .et_pb_heading_0_tb_footer .et_pb_module_heading{font-size:26px !important;text-align:center !important;}
}
@media screen and (max-width:600px){
  .et-l--footer .et_pb_column.et_pb_column_1_4[class*="_tb_footer"]{width:100% !important;}
}

/* Subfooter / creditos */
#footer-info{color:rgba(255,255,255,.85);letter-spacing:1px !important;}

/*
/////////////////////////////////////////////////////////////////
AHN-CUSTOM-2026 :: END
/////////////////////////////////////////////////////////////////
*/

/* =============================================================
   AHN-SUBMENU-NOWRAP :: submenús del header en una sola línea
   ============================================================= */
#page-container .et-l--header .et_pb_menu_0_tb_header .nav li ul.sub-menu{ width:max-content !important; min-width:220px !important; max-width:380px !important; }
#page-container .et-l--header .et_pb_menu_0_tb_header .nav li ul.sub-menu li{ display:block !important; width:auto !important; }
#page-container .et-l--header .et_pb_menu_0_tb_header .nav li ul.sub-menu li a{ white-space:nowrap !important; width:auto !important; font-size:13px !important; letter-spacing:0.2px !important; padding:10px 38px 10px 18px !important; }
#page-container .et-l--header .et_pb_menu_0_tb_header .nav li ul.sub-menu li.menu-item-has-children > a:first-child::after{ right:14px !important; }

/* =============================================================
   AHN-MOBILE-FIX-2026 :: títulos + sección "Quiénes somos"
   ============================================================= */
/* Títulos de sección de la home: line-height correcto (se encimaban al partir en 2 líneas) */
.et_pb_text_1 p, .et_pb_text_2 p, .et_pb_text_3 p, .et_pb_text_4 p, .et_pb_text_5 p{ line-height:1.15 !important; }

/* Sección "Quiénes somos": quitar el párrafo duplicado (2a columna) y centrar el bloque
   (icono + texto + botón) en una sola columna, en escritorio y móvil. */
body.home #page-container .et_pb_section_1 .et_pb_text_0{ display:none !important; }
#page-container .et_pb_section_1 .et_pb_row .et_pb_column{ width:100% !important; max-width:760px !important; float:none !important; margin-left:auto !important; margin-right:auto !important; }
#page-container .et_pb_section_1 .et_pb_blurb_0{ margin:0 auto 14px auto !important; text-align:center !important; }
#page-container .et_pb_section_1 .et_pb_blurb_0 .et_pb_main_blurb_image{ display:block !important; float:none !important; margin:0 auto 12px auto !important; text-align:center !important; }
#page-container .et_pb_section_1 .et_pb_blurb_0 .et_pb_blurb_container{ margin-left:0 !important; }
#page-container .et_pb_section_1 .et_pb_blurb_0 .et_pb_blurb_description,
#page-container .et_pb_section_1 .et_pb_blurb_0 .et_pb_module_header{ text-align:center !important; }
#page-container .et_pb_section_1 .et_pb_button_0_wrapper{ margin:6px 0 0 0 !important; text-align:center !important; }
#page-container .et_pb_section_1 .et_pb_button_0_wrapper .et_pb_button{ display:inline-block !important; float:none !important; max-width:100%; white-space:normal; }

/* =============================================================
   AHN-MOBILEMENU-2026 :: menú de celular compacto (ítems en 1 línea)
   ============================================================= */
@media (max-width:980px){
  #page-container .et-l--header .et_mobile_menu li a{ letter-spacing:0.5px !important; font-size:14px !important; white-space:nowrap !important; }
  #page-container .et-l--header .et_mobile_menu li li a{ font-size:13px !important; padding-left:26px !important; }
}

/* =============================================================
   AHN-HEADER-NOLOGO-2026 :: quitar logo + menú en una sola fila (incl. tablet)
   ============================================================= */
/* Quitar el logo del header */
#page-container .et-l--header .et_pb_menu__logo-wrap,
#page-container .et-l--header .et_pb_menu__logo-slot{ display:none !important; }
/* Menú aprovecha el ancho liberado y cabe en una fila */
#page-container .et-l--header .et_pb_menu_0_tb_header.et_pb_menu .et-menu-nav li a{ font-size:clamp(10.5px, 0.92vw, 14px) !important; }
#page-container .et-l--header .et_pb_menu_0_tb_header .nav > li{ padding-left:5px !important; padding-right:5px !important; }

/* AHN-HEADER-BP-2026 :: por debajo de 1100px usar el menú hamburguesa (evita 2 filas en tablet) */
@media (min-width:981px) and (max-width:1180px){
  #page-container .et-l--header .et_pb_menu_0_tb_header .et_pb_menu__menu{ display:none !important; }
  #page-container .et-l--header .et_pb_menu_0_tb_header .et_mobile_nav_menu{ display:block !important; }
}

/* =============================================================
   AHN-SEDES-2026 :: tarjetas de sedes (botón "leer más" alineado abajo)
   ============================================================= */
#page-container .et_pb_section_3 .et_pb_column.sfly_black_overlay{ display:flex !important; flex-direction:column !important; }
#page-container .et_pb_section_3 .et_pb_column.sfly_black_overlay > .et_parallax_bg_wrap{ position:absolute !important; }
#page-container .et_pb_section_3 .et_pb_column.sfly_black_overlay > .et_pb_button_module_wrapper{ margin-top:auto !important; }

/* AHN-SEDES-IMG-2026 :: presentación más compacta (fotos de edificaciones más visibles) */
#page-container .et_pb_section_3 .et_pb_column.sfly_black_overlay{ padding-top:55px !important; padding-bottom:45px !important; }
#page-container .et_pb_section_3 .et_pb_column.sfly_black_overlay .et_pb_blurb_description{ font-size:14px !important; line-height:1.45 !important; }
#page-container .et_pb_section_3 .et_pb_column.sfly_black_overlay .et_parallax_bg{ background-position:center top !important; }

/* =============================================================
   AHN-CONTACTO-2026 :: Contáctanos (footer) alineado a la izquierda + letra uniforme
   ============================================================= */
#page-container .et-l--footer .et_pb_column_1_4 .et_pb_text,
#page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p,
#page-container .et-l--footer .et_pb_column_1_4 .et_pb_text span{ text-align:left !important; font-size:14px !important; }
#page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading .et_pb_module_header,
#page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h1,
#page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h2,
#page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h3,
#page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h4,
#page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h5,
#page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h6{ text-align:left !important; font-size:14px !important; font-weight:700 !important; }

/* AHN-SLIDERFAST-2026 :: revelar descripción del slide activo sin esperar a window.load */
#page-container .et_pb_slider_0 .et-pb-active-slide .et_pb_slide_description{ opacity:1 !important; }

/* AHN-CONTACTO-FIT-2026 :: ampliar el row de Contáctanos y evitar quiebres feos del correo */
#page-container .et-l--footer .et_pb_section_0_tb_footer .et_pb_row{ max-width:1680px !important; width:92% !important; }
#page-container .et-l--footer .et_pb_column_1_4 .et_pb_text,
#page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p,
#page-container .et-l--footer .et_pb_column_1_4 .et_pb_text span{ font-size:13px !important; word-break:break-word; overflow-wrap:anywhere; }

/* AHN-MMENU-ACC-2026 :: menú hamburguesa en modo acordeón (submenús colapsados por defecto) */
@media (max-width:1180px){
  #page-container .et-l--header .et_mobile_menu .menu-item-has-children > .sub-menu{ display:none !important; visibility:hidden !important; opacity:0 !important; max-height:0 !important; overflow:hidden !important; transition:none !important; }
  #page-container .et-l--header .et_mobile_menu .menu-item-has-children.ahn-open > .sub-menu{ display:block !important; visibility:visible !important; opacity:1 !important; max-height:none !important; overflow:visible !important; }
  #page-container .et-l--header .et_mobile_menu .menu-item-has-children > a{ position:relative !important; padding-right:40px !important; }
  #page-container .et-l--header .et_mobile_menu .menu-item-has-children > a::after{ content:"3" !important; font-family:'ETmodules'; position:absolute; right:18px; top:50%; transform:translateY(-50%); transition:transform .25s ease; display:inline-block !important; visibility:visible !important; }
  #page-container .et-l--header .et_mobile_menu .menu-item-has-children.ahn-open > a::after{ transform:translateY(-50%) rotate(180deg); }
}

/* AHN-MMENU-COLOR-2026 :: texto blanco en el menú hamburguesa (fondo navy) */
@media (max-width:1180px){
  #page-container .et-l--header .et_mobile_menu,#page-container .et-l--header .et_mobile_menu ul.sub-menu{ background-color:#ffffff !important; }
  #page-container .et-l--header .et_mobile_menu li a,
  #page-container .et-l--header .et_mobile_menu li a:hover,
  #page-container .et-l--header .et_mobile_menu .menu-item-has-children > a::after{ color:#212a5c !important; }
  #page-container .et-l--header .et_mobile_menu li{ border-color:rgba(33,42,92,.14) !important; }
}

/* AHN-CONTACTO-ONELINE-2026 :: correos/datos del footer en una sola línea */
@media (min-width:981px){
  #page-container .et-l--footer .et_pb_section_0_tb_footer .et_pb_row{ max-width:1680px !important; width:98% !important; }
  #page-container .et-l--footer .et_pb_column_1_4{ padding-left:6px !important; padding-right:6px !important; }
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text span,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text a{ font-size:clamp(10px, 0.78vw, 13px) !important; white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; }
  /* La dirección sí puede partir en 2 líneas (es texto, no un correo largo) */
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text:nth-of-type(1) p,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text:nth-of-type(1) span{ white-space:normal !important; overflow:visible !important; text-overflow:clip !important; }
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading .et_pb_module_header,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h1,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h2,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h3,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h4,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h5{ font-size:clamp(11px, 0.9vw, 15px) !important; white-space:nowrap !important; }
}

/* AHN-EMAIL-OVERFLOW-2026 :: email del footer en una línea, visible aunque sobresalga */
@media (min-width:981px){
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]),
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]) span,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]) a{
    font-size:10.5px !important;
    letter-spacing:-0.2px !important;
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
  /* Garantizar que el gap entre columnas sea visible para que el email sobresalga en el espacio libre */
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text{ overflow:visible !important; }
}

/* AHN-ADDRESS-WRAP-2026 :: la dirección puede partirse en 2 líneas */
@media (min-width:981px){
  /* Allow wrap in paragraphs that contain fa-map-marker-alt (address line) */
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-map-marker-alt),
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-map-marker-alt) span{
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    font-size:11px !important;
  }
}

/* AHN-FOOTER-BIGGER-2026 :: letras del footer más grandes, columnas más juntas, 1 línea */
@media (min-width:981px){
  /* Row ancho y columnas pegadas */
  #page-container .et-l--footer .et_pb_section_0_tb_footer .et_pb_row{ max-width:1800px !important; width:99% !important; padding:0 !important; }
  #page-container .et-l--footer .et_pb_column_1_4{ padding-left:4px !important; padding-right:4px !important; }
  /* Letras más grandes: datos uniformes a ~13px */
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text span,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text a{
    font-size:13px !important;
    letter-spacing:0 !important;
  }
  /* Emails (teléfono + correo): nowrap + visible */
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]),
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]) span,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]) a{
    font-size:11.5px !important;
    letter-spacing:-0.1px !important;
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
  /* Dirección en 2 líneas si hace falta (mapmarker) */
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-map-marker-alt),
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-map-marker-alt) span{
    font-size:13px !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
  /* Encabezados de columna más grandes */
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading .et_pb_module_header,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h1,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h2,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h3,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h4,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h5{
    font-size:16px !important;
    letter-spacing:1px !important;
    white-space:nowrap !important;
  }
}
/* AHN-FOOTER-HEAD-FIX-2026 */
html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h1,
html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h2,
html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h3,
html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h4,
html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h5,
html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading .et_pb_module_header{ font-size:16px !important; letter-spacing:1px !important; font-weight:700 !important; }

/* AHN-FOOTER-ALIGN-2026 :: iconos y texto alineados, correos sin invadir columna vecina */
@media (min-width:981px){
  /* Línea de datos: icono + texto en flex, misma línea base */
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p{
    display:flex !important;
    align-items:flex-start !important;
    gap:8px !important;
    margin:0 0 8px 0 !important;
    line-height:1.4 !important;
  }
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p > span{
    display:inline-flex !important;
    align-items:flex-start !important;
    gap:8px !important;
    padding:0 !important;
    min-width:0 !important;
    flex:1 !important;
  }
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p i.fas,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p i.fab{
    flex:0 0 auto !important;
    font-size:14px !important;
    color:#80b3ff !important;
    width:16px !important;
    text-align:center !important;
    line-height:1.5 !important;
  }
  /* Ocultar los <br> internos: ya no hacen falta porque usamos flex */
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p br{ display:none !important; }
  /* Correos: SIEMPRE caber en su columna (reducir si hace falta) */
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]),
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]) span,
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]) a{
    font-size:9.5px !important;
    letter-spacing:-0.2px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:clip !important;
    max-width:100% !important;
  }
  /* Teléfono y dirección: tamaño agradable 13px */
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-phone-alt),
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-phone-alt) span{
    font-size:13px !important;
    white-space:nowrap !important;
  }
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-map-marker-alt),
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-map-marker-alt) span{
    font-size:13px !important;
    white-space:normal !important;
  }
  /* Encabezados centrados y espaciados */
  #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading{ margin-bottom:14px !important; }
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h1,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h2,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h3,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h4,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading h5,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_heading .et_pb_module_header{
    font-size:16px !important; letter-spacing:1px !important; font-weight:700 !important;
    text-align:left !important; padding-left:24px !important;
  }
}

/* AHN-FOOTER-UNIFORM-2026 :: letra uniforme, columnas pegadas, correo cabe */
@media (min-width:981px){
  /* Row máximo + columnas pegadas (quito gaps internos de Divi) */
  html body #page-container .et-l--footer .et_pb_section_0_tb_footer .et_pb_row{
    max-width:1800px !important; width:100% !important; padding:0 !important;
  }
  html body #page-container .et-l--footer .et_pb_section_0_tb_footer .et_pb_gutters1 .et_pb_column,
  html body #page-container .et-l--footer .et_pb_section_0_tb_footer .et_pb_gutters2 .et_pb_column,
  html body #page-container .et-l--footer .et_pb_section_0_tb_footer .et_pb_gutters3 .et_pb_column,
  html body #page-container .et-l--footer .et_pb_column_1_4{
    width:25% !important;
    margin-right:0 !important;
    margin-left:0 !important;
    padding-left:4px !important;
    padding-right:4px !important;
  }
  /* TODOS los datos al MISMO tamaño: 11px uniforme */
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p span,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p a,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]),
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]) span,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]) a,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-phone-alt),
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-phone-alt) span,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-map-marker-alt),
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-map-marker-alt) span{
    font-size:10.5px !important;
    letter-spacing:-0.15px !important;
  }
  /* Email: nowrap + overflow hidden como salvaguarda */
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]){
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    max-width:100% !important;
  }
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]) a{
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    display:block !important;
    min-width:0 !important;
  }
  /* Teléfono y dirección: una línea cuando sea posible */
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-phone-alt){
    white-space:nowrap !important;
  }
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-map-marker-alt){
    white-space:normal !important;
  }
}
/* AHN-FOOTER-EMAIL-TIGHT-2026 */
html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^=mailto]),
html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^=mailto]) span,
html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^=mailto]) a{ gap:4px !important; font-size:10.5px !important; letter-spacing:-0.25px !important; }
html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^=mailto]) i.fas{ font-size:11px !important; width:14px !important; }

/* AHN-FOOTER-TURQ-2026 :: iconos turquesa + letra uniforme más grande + alineación */
@media (min-width:981px){
  /* Todos los iconos en turquesa claro (variación sobre fondo navy) */
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p i.fas,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p i.fab{
    color:#2f9d95 !important;
    font-size:13px !important;
    width:14px !important;
    text-align:center !important;
    flex:0 0 14px !important;
    line-height:1.5 !important;
  }
  /* Letra uniforme 11.5px para TODO (dirección, correo, teléfono) */
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p span,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p a,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]),
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]) span,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]) a,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-phone-alt),
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-phone-alt) span,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-map-marker-alt),
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(i.fa-map-marker-alt) span{
    font-size:clamp(9.5px, 0.8vw, 11.5px) !important;
    letter-spacing:-0.2px !important;
  }
  /* Email: nowrap, dejar que sobresalga al gap sin cortarse con ellipsis */
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]){
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
    max-width:none !important;
  }
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p:has(a[href^="mailto"]) a{
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
    display:inline !important;
    max-width:none !important;
  }
  /* Alinear iconos y texto en la misma línea base */
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p{
    display:flex !important;
    align-items:flex-start !important;
    gap:6px !important;
    margin:0 0 9px 0 !important;
    line-height:1.5 !important;
  }
}

/* AHN-FOOTER-ICONALIGN-2026 :: alinear icono del correo igual que dirección y teléfono */
@media (min-width:981px){
  /* Reset de paddings/display de spans internos del correo */
  html body #page-container .et-l--footer .et_pb_text p a[href^="mailto"],
  html body #page-container .et-l--footer .et_pb_text p a[href^="mailto"] > span{
    display:contents !important;
  }
  html body #page-container .et-l--footer .et_pb_text p a[href^="mailto"] span[style*="padding-left"]{
    padding:0 !important;
    margin:0 !important;
  }
  /* Forzar que la línea del correo use el mismo layout flex que las otras */
  html body #page-container .et-l--footer .et_pb_text p:has(a[href^="mailto"]){
    display:flex !important;
    align-items:flex-start !important;
    gap:0 !important;
    padding:0 !important;
  }
  /* Primer span (dirección, teléfono, correo): mismo padding-left */
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p > span,
  html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p a[href^="mailto"] > span{
    display:inline-flex !important;
    align-items:baseline !important;
    gap:7px !important;
    padding-left:10px !important;
    flex:1 1 auto !important;
    min-width:0 !important;
  }
  /* El icono siempre a la izquierda, mismo ancho */
  html body #page-container .et-l--footer .et_pb_text p i.fas,
  html body #page-container .et-l--footer .et_pb_text p i.fab{
    color:#2f9d95 !important;
    font-size:13px !important;
    width:14px !important;
    text-align:center !important;
    flex:0 0 14px !important;
  }
}
/* AHN-FOOTER-QUITO-FIX-2026 */
@media (min-width:981px){html body #page-container .et-l--footer .et_pb_column_1_4 .et_pb_text p > span > span{padding-left:0 !important;margin-left:0 !important;}}

/* AHN-SERVICIOS-CARDS-2026 :: tarjetas con recuadro para "Nuestros Servicios" */
#page-container .et_pb_section_6 .et_pb_row_6 .et_pb_column_1_3{
  background:#ffffff !important;
  border-radius:18px !important;
  box-shadow:0 10px 30px -8px rgba(33,42,92,.18) !important;
  padding:0 !important;
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
  transition:transform .3s ease, box-shadow .3s ease !important;
  margin-bottom:0 !important;
}
#page-container .et_pb_section_6 .et_pb_row_6 .et_pb_column_1_3:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 44px -12px rgba(33,42,92,.28) !important;
}
#page-container .et_pb_section_6 .et_pb_row_6 .et_pb_column_1_3 .et_pb_image{
  margin:0 !important;
  overflow:hidden;
}
#page-container .et_pb_section_6 .et_pb_row_6 .et_pb_column_1_3 .et_pb_image img{
  width:100% !important;
  height:260px !important;
  object-fit:cover !important;
  display:block;
}
#page-container .et_pb_section_6 .et_pb_row_6 .et_pb_column_1_3 .et_pb_text,
#page-container .et_pb_section_6 .et_pb_row_6 .et_pb_column_1_3 .et_pb_blurb{
  padding:22px 28px !important;
}
#page-container .et_pb_section_6 .et_pb_row_6 .et_pb_column_1_3 .et_pb_button_module_wrapper{
  padding:0 28px 28px 28px !important;
  margin-top:auto !important;
}
#page-container .et_pb_section_6 .et_pb_row_6{
  display:flex !important;
  gap:28px !important;
  align-items:stretch !important;
}
@media (max-width:980px){
  #page-container .et_pb_section_6 .et_pb_row_6{ flex-direction:column; }
}

/* AHN-REDARCHIVOS-TITLE-2026 :: título "Red de Archivos Históricos" responsive en 1 línea */
#page-container .et_pb_section_7 .et_pb_text_4 p{
  display:inline !important;
  font-size:clamp(22px, 3.2vw, 44px) !important;
  line-height:1.15 !important;
  white-space:nowrap !important;
  margin:0 !important;
}
#page-container .et_pb_section_7 .et_pb_text_4 p + p::before{ content:" "; }
#page-container .et_pb_section_7 .et_pb_text_4{
  text-align:center !important;
}

/* AHN-RAC-ARROW-SMALL-2026 :: flechas del carrusel de Geniallys más pequeñas */
.ahn-rac-arrow{
  width:34px !important;
  height:34px !important;
  font-size:20px !important;
  box-shadow:0 6px 16px rgba(33,42,92,.3) !important;
}
.ahn-rac-arrow.prev{ left:4px !important; }
.ahn-rac-arrow.next{ right:4px !important; }

/* =============================================================
   AHN-MOBILE-UNIFORM-2026 :: tamaños uniformes y responsive en celular
   ============================================================= */
@media (max-width:767px){
  /* 1) Todos los títulos de sección en 22px (como "Red de Archivos Históricos") */
  #page-container .et_pb_text_1 p,
  #page-container .et_pb_text_2 p,
  #page-container .et_pb_text_3 p,
  #page-container .et_pb_text_4 p,
  #page-container .et_pb_text_5 p{
    font-size:22px !important;
    line-height:1.2 !important;
    text-align:center !important;
    margin:0 0 10px 0 !important;
  }

  /* 2) Botones más chicos en móvil */
  #page-container .et_pb_button,
  #page-container a.et_pb_button{
    font-size:12px !important;
    padding:10px 18px !important;
    letter-spacing:1px !important;
    line-height:1.3 !important;
    white-space:normal !important;
    max-width:100% !important;
  }

  /* 3) Tarjetas de sedes del mismo tamaño en móvil */
  #page-container .et_pb_section_3 .et_pb_column.sfly_black_overlay{
    min-height:360px !important;
    max-height:360px !important;
    padding:30px 20px !important;
    margin-bottom:14px !important;
  }
  #page-container .et_pb_section_3 .et_pb_column.sfly_black_overlay .et_pb_blurb_description{
    font-size:13.5px !important;
    line-height:1.45 !important;
  }
  #page-container .et_pb_section_3 .et_pb_column.sfly_black_overlay h1,
  #page-container .et_pb_section_3 .et_pb_column.sfly_black_overlay h2,
  #page-container .et_pb_section_3 .et_pb_column.sfly_black_overlay h3,
  #page-container .et_pb_section_3 .et_pb_column.sfly_black_overlay h4{
    font-size:20px !important;
    line-height:1.2 !important;
    margin:0 0 10px 0 !important;
  }

  /* 4) Botón "CONOCE MÁS DE NUESTRA HISTORIA" compacto */
  #page-container .et_pb_section_1 .et_pb_button_0_wrapper .et_pb_button{
    font-size:11.5px !important;
    padding:10px 16px !important;
    letter-spacing:1px !important;
    line-height:1.3 !important;
  }

  /* 5) Tarjetas de servicios con padding/tamaño uniforme */
  #page-container .et_pb_section_6 .et_pb_row_6{
    display:flex !important;
    flex-direction:column !important;
    gap:18px !important;
  }
  #page-container .et_pb_section_6 .et_pb_column_1_3{
    width:100% !important;
    margin:0 !important;
  }
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_image img{
    height:200px !important;
  }
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_text h1,
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_text h2,
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_text h3,
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_text h4,
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_module_header{
    font-size:18px !important;
    line-height:1.25 !important;
  }
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_text,
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_blurb,
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_text p{
    font-size:13.5px !important;
    line-height:1.5 !important;
  }
}
/* AHN-MOBILE-TEXTFIX-2026 */
@media (max-width:767px){
  #page-container .et_pb_section_1 .et_pb_blurb_description,
  #page-container .et_pb_section_1 .et_pb_blurb p,
  #page-container .et_pb_section_1 .et_pb_text p,
  #page-container .et_pb_section_6 .et_pb_text p{
    text-align:left !important;
    hyphens:auto !important;
    overflow-wrap:break-word !important;
    font-size:14px !important;
    line-height:1.5 !important;
  }
  #page-container .et_pb_text_1 p + p,
  #page-container .et_pb_text_2 p + p{
    margin-top:-6px !important;
  }
  #page-container .et_pb_text_1 p,
  #page-container .et_pb_text_2 p{
    margin-bottom:4px !important;
  }
}
/* AHN-MOBILE-SPACING-2026 */
@media (max-width:767px){
  /* Noticias title (et_pb_text_6) a 22px */
  #page-container .et_pb_text_6 p,
  #page-container .et_pb_text_6{ font-size:22px !important; line-height:1.2 !important; text-align:center !important; margin:0 !important; }
  /* Reducir espacio entre tarjetas de sedes */
  #page-container .et_pb_section_3 .et_pb_row{ padding:16px 0 !important; }
  #page-container .et_pb_section_3 .et_pb_column.sfly_black_overlay{ margin-bottom:0 !important; }
  #page-container .et_pb_section_3{ padding:20px 0 !important; }
  /* Reducir padding-top del row de servicios */
  #page-container .et_pb_section_6 .et_pb_row{ padding:14px 0 !important; }
  #page-container .et_pb_section_6{ padding:10px 0 24px 0 !important; }
  /* Reducir padding del título de servicios (section_5) */
  #page-container .et_pb_section_5{ padding:24px 0 10px 0 !important; }
  #page-container .et_pb_section_5 .et_pb_row{ padding:0 !important; }
  /* Reducir padding del título de Noticias (section_7) */
  #page-container .et_pb_section_7{ padding:28px 0 !important; }
}
/* AHN-MOBILE-SVC-BLURB-2026 */
@media (max-width:767px){
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_blurb_container h1,
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_blurb_container h2,
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_blurb_container h3,
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_blurb_container h4,
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_blurb_container h5,
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_blurb_container .et_pb_module_header,
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_blurb_container .et_pb_module_header a{
    font-size:18px !important; line-height:1.25 !important; margin:0 0 10px 0 !important;
  }
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_blurb_description,
  #page-container .et_pb_section_6 .et_pb_column_1_3 .et_pb_blurb_description p{
    font-size:13.5px !important; line-height:1.5 !important; text-align:left !important;
  }
}
/* AHN-TITLES-MATCH-2026 :: igualar "Red de Archivos" y "Noticias" */
#page-container .et_pb_section_7 .et_pb_text_4 p,
#page-container .et_pb_section_7 .et_pb_text_6 p,
#page-container .et_pb_section_7 .et_pb_text_6{
  font-size:clamp(22px, 2.4vw, 36px) !important;
  line-height:1.2 !important;
  text-align:center !important;
  margin:0 !important;
  white-space:normal !important;
  color:#212a5c !important;
  font-weight:700 !important;
}
#page-container .et_pb_section_7 .et_pb_text_4,
#page-container .et_pb_section_7 .et_pb_text_6{
  margin-bottom:20px !important;
}
/* Alinear verticalmente las columnas de section_7 (carrusel y noticias) */
#page-container .et_pb_section_7 .et_pb_row{
  align-items:flex-start !important;
}

/* AHN-SRV-HEIGHT-2026 :: tarjetas de servicios con altura según contenido */
@media (min-width:768px){
  #page-container .et_pb_section_6 .et_pb_row_6{
    align-items:flex-start !important;
  }
  #page-container .et_pb_section_6 .et_pb_row_6 .et_pb_column_1_3{
    align-self:stretch !important;
  }
  #page-container .et_pb_section_6 .et_pb_row_6 .et_pb_column_1_3 .et_pb_blurb,
  #page-container .et_pb_section_6 .et_pb_row_6 .et_pb_column_1_3 .et_pb_text{
    padding:20px 24px 8px !important;
  }
  #page-container .et_pb_section_6 .et_pb_row_6 .et_pb_column_1_3 .et_pb_button_module_wrapper{
    padding:0 24px 24px !important;
  }
}
/* AHN-MISION-FLIP-2026 :: Misión texto a la izquierda y foto a la derecha (igual que Visión) */
@media (min-width:981px){
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row{
    display:flex !important;
    flex-direction:row-reverse !important;
    align-items:center !important;
  }
}
/* AHN-MISION-VISION-UNIFORM-2026 :: igualar diseño y fix responsive */
body.page-id-100095 #page-container .et_pb_section_1,
body.page-id-100095 #page-container .et_pb_section_2{
  background-color:#f2f2f2 !important;
  padding:60px 0 !important;
}
/* Image columns: background-size:cover + no-repeat para que no se vea la línea */
body.page-id-100095 #page-container .et_pb_section_1 .et_pb_column,
body.page-id-100095 #page-container .et_pb_section_2 .et_pb_column{
  background-size:cover !important;
  background-repeat:no-repeat !important;
  background-position:center center !important;
}
/* Text columns in Misión and Visión - estilo card uniforme */
body.page-id-100095 #page-container .et_pb_section_1 .et_pb_column:not(:has(.et_pb_image)):not([style*="background-image"]),
body.page-id-100095 #page-container .et_pb_section_2 .et_pb_column:not(:has(.et_pb_image)):not([style*="background-image"]){
  background:#fff !important;
  box-shadow:0 10px 40px rgba(33,42,92,.15) !important;
  padding:48px 42px !important;
  z-index:2 !important;
  position:relative !important;
}
/* En móvil: apilar correctamente, letra legible */
@media (max-width:980px){
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row,
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_row{
    display:flex !important;
    flex-direction:column !important;
  }
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_column,
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_column{
    width:100% !important;
    margin:0 0 20px 0 !important;
  }
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_column:has(.et_pb_image) img,
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_column[style*="background-image"]{
    width:100% !important;
    min-height:260px !important;
  }
  body.page-id-100095 #page-container .et_pb_section_1 h1,
  body.page-id-100095 #page-container .et_pb_section_1 h2,
  body.page-id-100095 #page-container .et_pb_section_2 h1,
  body.page-id-100095 #page-container .et_pb_section_2 h2{
    font-size:28px !important; line-height:1.2 !important; margin:0 0 14px 0 !important;
  }
  body.page-id-100095 #page-container .et_pb_section_1 p,
  body.page-id-100095 #page-container .et_pb_section_2 p{
    font-size:15px !important; line-height:1.55 !important; text-align:left !important;
  }
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_column:not(:has(.et_pb_image)):not([style*="background-image"]),
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_column:not(:has(.et_pb_image)):not([style*="background-image"]){
    padding:28px 22px !important;
  }
}
/* AHN-MV-NOOVERLAP-2026 :: evitar que foto tape el texto + justify sin guiones */
@media (min-width:981px){
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row,
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_row{
    display:flex !important;
    gap:30px !important;
    align-items:center !important;
  }
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_column,
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_column{
    flex:1 1 0 !important;
    width:auto !important;
    margin:0 !important;
  }
}
/* Justificar texto sin guiones automáticos ni corte de palabras */
body.page-id-100095 #page-container .et_pb_section_1 .et_pb_text p,
body.page-id-100095 #page-container .et_pb_section_2 .et_pb_text p,
body.page-id-100095 #page-container .et_pb_section_1 .et_pb_text,
body.page-id-100095 #page-container .et_pb_section_2 .et_pb_text{
  text-align:justify !important;
  hyphens:none !important;
  -webkit-hyphens:none !important;
  -moz-hyphens:none !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
}
/* AHN-MV-FULLBLEED-2026 :: foto grande + sin duplicación */
@media (min-width:981px){
  body.page-id-100095 #page-container .et_pb_section_1,
  body.page-id-100095 #page-container .et_pb_section_2{
    overflow:hidden;
  }
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row,
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_row{
    max-width:1600px !important;
    width:95% !important;
  }
  /* Ocultar img interno de columnas que tienen background-image (evita duplicación) */
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_column[style*="background-image"] .et_pb_image,
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_column[style*="background-image"] .et_pb_image{
    display:none !important;
  }
  /* La columna de la foto con background debe tener altura mínima */
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_column[style*="background-image"],
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_column[style*="background-image"]{
    min-height:420px !important;
  }
}
/* AHN-MV-RESET-2026 :: layout limpio texto 50% izq, foto 50% der, sin overlap */
@media (min-width:981px){
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row,
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_row{
    display:flex !important;
    gap:50px !important;
    max-width:1360px !important;
    width:92% !important;
    margin:0 auto !important;
    padding:0 !important;
    align-items:stretch !important;
  }
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row > .et_pb_column,
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_row > .et_pb_column{
    flex:0 0 calc(50% - 25px) !important;
    width:calc(50% - 25px) !important;
    max-width:calc(50% - 25px) !important;
    margin:0 !important;
    min-width:0 !important;
  }
  /* Imagen: llenar su columna por completo */
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_column img,
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_column img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    display:block !important;
  }
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_column .et_pb_image,
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_column .et_pb_image{
    height:100% !important;
    margin:0 !important;
  }
}
/* AHN-MV-SHRINKBOX-2026 :: cuadro texto ajustado al contenido + foto limpia */
@media (min-width:981px){
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row,
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_row{
    align-items:center !important;
  }
  /* El cuadro texto NO estira: solo ocupa su contenido */
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row > .et_pb_column:nth-child(2),
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_row > .et_pb_column:nth-child(1){
    align-self:center !important;
    height:auto !important;
  }
  /* La foto mantiene altura razonable */
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row > .et_pb_column:nth-child(1),
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_row > .et_pb_column:nth-child(2){
    min-height:420px !important;
    background-size:cover !important;
    background-position:center center !important;
    background-repeat:no-repeat !important;
  }
  /* Esconder el <img> roto 1-38 que aparece sobre el background */
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_image img[src*="1-38"],
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_image:has(img[src*="1-38"]){
    display:none !important;
  }
  /* Si la imagen de Misión funciona por <img>, llenar la columna */
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row > .et_pb_column:nth-child(1) .et_pb_image,
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row > .et_pb_column:nth-child(1) .et_pb_image img{
    width:100% !important;
    height:100% !important;
    display:block !important;
    margin:0 !important;
  }
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row > .et_pb_column:nth-child(1) .et_pb_image img{
    object-fit:cover !important;
    object-position:center !important;
  }
}
/* AHN-MV-MOBILE-IMG-2026 */
@media (max-width:980px){
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row > .et_pb_column:nth-child(1),
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_row > .et_pb_column:nth-child(2){
    min-height:260px !important;
    background-size:cover !important;
    background-position:center center !important;
    background-repeat:no-repeat !important;
  }
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row > .et_pb_column:nth-child(1) .et_pb_image,
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row > .et_pb_column:nth-child(1) .et_pb_image img{
    width:100% !important; height:260px !important; object-fit:cover !important;
  }
}
/* AHN-MV-ZOOM-OFFSET-2026 :: zoom hover + offset del cuadro + Misión con background */
@media (min-width:981px){
  /* Columna de foto de Misión: usar background-image como la Visión */
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row > .et_pb_column:nth-child(1){
    background-image:url("https://saludmyg.com/wp-content/uploads/2024/10/Fotos-Archivo-Historico-Nacional-6-de-20-scaled.jpg") !important;
    background-size:cover !important;
    background-position:center center !important;
    background-repeat:no-repeat !important;
    overflow:hidden !important;
    transition:transform .5s cubic-bezier(.22,.61,.36,1) !important;
  }
  /* Esconder el img interno de Misión */
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_image{
    display:none !important;
  }
  /* Zoom hover en ambas fotos */
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row > .et_pb_column:nth-child(1),
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_row > .et_pb_column:nth-child(2){
    transition:background-size 1.2s ease-out !important;
  }
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row > .et_pb_column:nth-child(1):hover,
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_row > .et_pb_column:nth-child(2):hover{
    background-size:120% auto !important;
  }
  /* Offset: el cuadro texto sobresale sobre la foto (foto un poco DEBAJO) */
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row > .et_pb_column:nth-child(2),
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_row > .et_pb_column:nth-child(1){
    position:relative !important;
    z-index:3 !important;
  }
  /* Misión: cuadro texto queda a la izquierda, offset entra sobre la foto */
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row{
    gap:0 !important;
  }
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row > .et_pb_column:nth-child(2){
    transform:translateX(40px) !important;
    margin:0 !important;
  }
  /* Visión: cuadro texto queda a la izquierda, offset entra sobre la foto */
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_row{
    gap:0 !important;
  }
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_row > .et_pb_column:nth-child(1){
    transform:translateX(40px) !important;
    margin:0 !important;
  }
}
/* "La memoria escrita" en móvil más pequeña */
@media (max-width:767px){
  body.page-id-100095 #page-container .et_pb_section_3 .et_pb_text_2,
  body.page-id-100095 #page-container .et_pb_section_3 .et_pb_text_2 h1,
  body.page-id-100095 #page-container .et_pb_section_3 .et_pb_text_2 h2,
  body.page-id-100095 #page-container .et_pb_section_3 .et_pb_text_2 h3,
  body.page-id-100095 #page-container .et_pb_section_3 .et_pb_text_2 p{
    font-size:20px !important; line-height:1.3 !important;
  }
}
/* AHN-MV-ZOOM-OVERFLOW-2026 :: igualar overflow del zoom en Visión */
@media (min-width:981px){
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_row > .et_pb_column:nth-child(2){
    overflow:hidden !important;
    transition:background-size 1.2s ease-out !important;
  }
  body.page-id-100095 #page-container .et_pb_section_2 .et_pb_row > .et_pb_column:nth-child(2):hover{
    background-size:120% auto !important;
  }
}

/* AHN-MV-MISION-MOBILE-DUPE-2026 :: en móvil ocultar fondo duplicado */
@media (max-width:980px){
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_row > .et_pb_column:nth-child(1){
    background-image:none !important;
    background-color:transparent !important;
    min-height:0 !important;
    overflow:visible !important;
  }
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_image.custom-zoom{
    margin:0 !important;
  }
  body.page-id-100095 #page-container .et_pb_section_1 .et_pb_image.custom-zoom img{
    width:100% !important;
    height:auto !important;
    display:block !important;
  }
}

/* AHN-AHG-HIST-LOGO-2026 :: logo junto a Nuestra Historia */
.ahg-head{position:relative;}
.ahg-head .ahg-hist-logo{position:absolute;right:0;top:50%;transform:translateY(-50%);width:clamp(200px,24vw,330px);height:auto;display:block;}
@media (max-width:767px){.ahg-head .ahg-hist-logo{position:static;transform:none;width:220px;margin:18px 0 0;}}
