/* Campos de Bolivia — hand-written replacement for the old Divi theme CSS.
   Class names match the markup migrated from WordPress (et_pb_*). */

:root {
  --green: #087935;
  --text: #333131;
  --heading: #333;
  --link: #2ea3f2;
  --border: #e2e2e2;
  --gray-bg: #eeedee;
  --container: min(80%, 1080px);
  --header-h: 80px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 10px); }
body {
  margin: 0;
  font: 500 14px/1.7 "Open Sans", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--link); text-decoration: none; }
a:hover { opacity: .85; }
p { margin: 0; padding-bottom: 1em; }
p:last-of-type { padding-bottom: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; padding-bottom: 10px; color: var(--heading); font-weight: 500; line-height: 1.2; }
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }
ul, ol { margin: 0; padding: 0 0 23px 1em; line-height: 26px; }
ul { list-style: disc; }
blockquote { margin: 20px 0 30px; padding-left: 20px; border-left: 5px solid var(--green); }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
table { border-collapse: collapse; width: 100%; margin-bottom: 20px; }
td, th { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
iframe { max-width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.clearfix::after { content: ""; display: table; clear: both; }
.container { width: var(--container); margin: 0 auto; position: relative; }
.alignleft { float: left; margin: 0 15px 15px 0; }
.alignright { float: right; margin: 0 0 15px 15px; }
.aligncenter { display: block; margin: 0 auto 15px; }
.wp-caption, figure { margin: 0 0 20px; max-width: 100%; }
.wp-caption-text, figcaption { font-size: 12px; text-align: center; padding-top: 4px; }

/* ---------- header ---------- */
#main-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  background: var(--green);
  box-shadow: 0 1px 7px rgba(0, 0, 0, .1);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo_container { flex: none; display: flex; align-items: center; }
#logo { height: 36px; width: auto; }
#top-menu-nav { flex: 1; }
#top-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; line-height: 1; }
#top-menu a { display: block; padding: 8px 0; color: #fff; font-weight: 600; font-size: 14px; transition: opacity .3s; }
#top-menu a:hover { opacity: .7; }
#top-menu .current-menu-item > a { color: #b9f3c9; }
.mobile_menu_bar { display: none; background: none; border: 0; padding: 6px; color: #fff; cursor: pointer; }
#page-container { padding-top: var(--header-h); }

/* ---------- builder layout (sections / rows / columns) ---------- */
.et_pb_section { padding: 40px 0; position: relative; background-color: #fff; }
.et_pb_section_0 { padding-top: 30px; }
.et_pb_row { width: var(--container); margin: 0 auto; padding: 20px 0; display: flex; flex-wrap: wrap; gap: 0 5.5%; }
.et_pb_column { min-width: 0; }
.et_pb_column_4_4 { width: 100%; }
.et_pb_column_3_4 { width: 73.625%; }
.et_pb_column_2_3 { width: 64.833%; }
.et_pb_column_1_2 { width: 47.25%; }
.et_pb_column_1_3 { width: 29.667%; }
.et_pb_column_1_4 { width: 20.875%; }
.et_pb_module { margin-bottom: 2.75%; }
.et_pb_module:last-child { margin-bottom: 0; }
.et_pb_text_align_left { text-align: left; }
.et_pb_text_align_center { text-align: center; }
.et_pb_bg_layout_dark, .et_pb_bg_layout_dark h2, .et_pb_bg_layout_dark a { color: #fff; }
.et_pb_image { text-align: center; line-height: 0; }
.et_pb_image_wrap { display: inline-block; }
.et_pb_space { height: 23px; }
.et-boc .entry-content, article.page .entry-content { padding: 0; }

/* buttons */
.et_pb_button, a.et_pb_button {
  display: inline-block; font-size: 20px; font-weight: 500; line-height: 1.7;
  padding: .3em 1em; border: 2px solid currentColor; border-radius: 3px;
  color: var(--green); background: transparent; transition: all .3s;
}
.et_pb_button:hover { background: rgba(0, 0, 0, .05); border-color: transparent; opacity: 1; }
.et_pb_button_module_wrapper .et_pb_button { width: 100%; font-size: 15px; text-align: left; }

/* section titles ("Nuestro equipo", "Campos destacados", "Noticias") */
.title_custom { padding: 8px 10px 0; background: var(--gray-bg); }
.title_custom h3 { padding: 0; line-height: 1; }
span.span_title { display: inline-block; padding: 12px; color: #fff; background: var(--green); font-size: 17px; }

/* ---------- slider (home) ---------- */
.et_pb_slider { position: relative; overflow: hidden; box-shadow: inset 0 0 10px rgba(0, 0, 0, .1); }
.et_pb_slides { display: grid; }
.et_pb_slide {
  grid-area: 1 / 1; min-height: 460px; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s;
}
.et_pb_slide.et-pb-active-slide { opacity: 1; visibility: visible; }
.et_pb_slide .et_pb_container { width: 100%; }
.et_pb_slide_description { padding: 16% 8%; }
.et_pb_text_overlay_wrapper { display: inline-block; padding: 12px 30px; border-radius: 3px; background: rgba(40, 40, 40, .45); }
.et_pb_slide_title { font-size: 46px; font-weight: 300; line-height: 1; padding: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.et_pb_slide_title a { color: #fff; }
.et_pb_more_button { margin-top: 20px; color: #fff !important; border-color: #fff; }
.et_pb_slide_content:empty { display: none; }
.et-pb-controllers { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; z-index: 2; }
.et-pb-controllers button { width: 8px; height: 8px; margin: 0 4px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer; }
.et-pb-controllers button.active { background: #fff; }
.et-pb-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; padding: 0 12px; cursor: pointer; opacity: 0; transition: opacity .3s; }
.et_pb_slider:hover .et-pb-arrow, .et-pb-arrow:focus-visible { opacity: 1; }
.et-pb-arrow-prev { left: 10px; }
.et-pb-arrow-next { right: 10px; }

/* ---------- blog grid (home "Noticias", /campos/) ---------- */
.et_pb_blog_grid .et_pb_salvattore_content { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 5.5%; }
.et_pb_blog_grid .column { display: contents; }
.et_pb_blog_grid .et_pb_post {
  border: 1px solid #d8d8d8; padding: 19px; margin-bottom: 30px; background: #fff; overflow-wrap: anywhere;
  word-wrap: break-word;
}
.et_pb_blog_grid .et_pb_image_container { margin: -19px -19px 19px; }
.et_pb_blog_grid .entry-featured-image-url { display: block; }
.et_pb_blog_grid .entry-title { font-size: 18px; padding-bottom: 9px; }
.et_pb_blog_grid .entry-title a { color: var(--heading); }
.et_pb_blog_grid .post-meta { font-size: 13px; padding-bottom: 8px; }
.et_pb_no_thumb .et_pb_image_container { display: none; }
.et_pb_ajax_pagination_container .pagination { grid-column: 1 / -1; }

/* ---------- galleries ---------- */
.et_pb_gallery_items { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; }
.et_pb_gallery_item { position: relative; margin: 0; }
.et_pb_gallery_image { display: block; position: relative; overflow: hidden; line-height: 0; }
.et_pb_gallery_image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.et_overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, .9); border: 1px solid #e5e5e5; opacity: 0; transition: opacity .3s; }
.et_overlay::after { content: "+"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--link); font-size: 32px; line-height: 1; }
.et_pb_gallery_image:hover .et_overlay { opacity: 1; }
.et_pb_gallery_title, .et_pb_gallery_caption { display: none; }
.et_pb_gallery_pagination { display: none; }
.wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.wp-block-gallery img, .blocks-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wp-block-image { margin: 0 0 20px; }
.wp-block-embed { margin: 0 0 20px; }
.wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* lightbox (site.js) */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { display: block; max-width: 92vw; max-height: 88vh; width: auto; }
.lightbox button { position: fixed; top: 12px; right: 18px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }

/* ---------- posts & archives ---------- */
#main-content > .container { padding-top: 58px; }
#content-area { display: flex; align-items: flex-start; }
#left-area { flex: 1; min-width: 0; padding-bottom: 23px; }
.et_pb_post { margin-bottom: 27px; padding-bottom: 25px; word-wrap: break-word; }
#left-area .et_pb_post + .et_pb_post { border-top: 0; }
.et_pb_post .entry-featured-image-url, .et_post_meta_wrapper > img { display: block; margin-bottom: 30px; }
.et_pb_post .entry-title a { color: var(--heading); }
#left-area .et_pb_post > h2.entry-title { font-size: 26px; }
.post-meta { font-size: 14px; margin-bottom: 6px; padding-bottom: 15px; }
.post-meta a { color: var(--link); }
.et_post_meta_wrapper:empty { display: none; }
.entry-content { padding-top: 0; }
.entry-content h2 { margin-top: 10px; }
.more-link { display: block; margin-top: 4px; }
.pagination { display: flex; justify-content: space-between; padding: 10px 0 30px; }
.pagination .alignleft, .pagination .alignright { float: none; margin: 0; }
.pagination a { font-size: 18px; color: var(--heading); }


/* ---------- contact form ---------- */
.et_pb_contact_form { display: flex; flex-wrap: wrap; gap: 0 3%; }
.et_pb_contact_field { width: 100%; padding: 0 0 3%; margin: 0; }
.et_pb_contact_field_half { width: 48.5%; }
.et_pb_contact_form .input {
  width: 100%; padding: 16px; border: 0; border-radius: 0; background: var(--gray-bg);
  color: #4e4e4e; font: inherit; font-size: 14px;
}
.et_pb_contact_form textarea.input { min-height: 150px; resize: vertical; }
.et_pb_contact_form .input:focus { outline: 2px solid var(--green); outline-offset: -2px; }
.et_contact_bottom_container { width: 100%; display: flex; justify-content: flex-end; }
.et_pb_contact_submit { cursor: pointer; font-family: inherit; color: var(--green); background: transparent; }
.et-pb-contact-message p { padding: 16px; background: #e8f5ec; color: var(--green); font-weight: 600; }
.hp-field { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
#main-footer { background: var(--green); color: #fff; }
#footer-bottom { padding: 20px 0 0; }
.footer-cols { display: flex; align-items: center; }
#footer-bottom .section { flex: 1; padding: 0 25px; min-height: 70px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
#footer-bottom .section.rborder { border-right: 1px solid rgba(255, 255, 255, .35); }
.footer-logo { width: 126px; }
.mail-footer, .mail-footer a { color: #fff; }
.et-social-icons { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.et-social-icons a { color: #fff; }
#main-footer hr { border-top-color: rgba(255, 255, 255, .35); margin: 20px 0 7px; }
.footer-visit { text-align: center; padding: 0 0 20px; }
.footer-visit-logos { display: flex; align-items: center; justify-content: center; gap: 40px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .mobile_menu_bar { display: flex; flex-direction: column; gap: 5px; margin-left: auto; order: 2; }
  .mobile_menu_bar span { display: block; width: 24px; height: 3px; background: #fff; border-radius: 2px; }
  #top-menu-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 3px solid var(--green); box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  }
  #top-menu-nav.open { display: block; }
  #top-menu { flex-direction: column; padding: 5%; gap: 0; }
  #top-menu a { color: #666; padding: 10px 5%; border-bottom: 1px solid rgba(0, 0, 0, .03); }
  #top-menu .current-menu-item > a { color: var(--green); }
  .et_pb_row { gap: 0; }
  .et_pb_column { width: 100% !important; margin-bottom: 30px; }
  .et_pb_column:last-child { margin-bottom: 0; }
  .et_pb_row_6 .et_pb_column, .et_pb_row_7 .et_pb_column { margin-bottom: 30px; }
  .et_pb_blog_grid .et_pb_salvattore_content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #content-area { flex-direction: column; }
  .et_pb_slide { min-height: 320px; }
  .et_pb_slide_title { font-size: 32px; }
  .footer-cols { flex-direction: column; }
  #footer-bottom .section.rborder { border-right: 0; }
  #footer-bottom .section { width: 100%; }
}
@media (max-width: 767px) {
  .et_pb_blog_grid .et_pb_salvattore_content { grid-template-columns: minmax(0, 1fr); }
  h3 { font-size: 18px; }
  .et_pb_contact_field_half { width: 100%; }
  .et_pb_slide_description { padding: 18% 4%; }
  .et_pb_slide_title { font-size: 24px; }
  .et_pb_more_button { font-size: 16px; }
  h1, .entry-title { font-size: 24px; }
  .alignleft, .alignright { float: none; margin: 0 auto 15px; display: block; }
  .footer-visit-logos { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .et_pb_slide { transition: none; }
}

/* builder content nested inside posts: rows take the full column width */
#left-area .et_pb_section { padding: 0; }
#left-area .et_pb_row { width: 100%; padding: 0 0 20px; }

/* ---------- phones: tighter spacing, wider content ---------- */
.et_pb_image { margin-left: auto; margin-right: auto; }
.entry-content, .post-content, .et_pb_text_inner { overflow-wrap: anywhere; }
@media (max-width: 767px) {
  :root { --container: 90%; }
  .et_pb_section { padding: 24px 0; }
  .et_pb_row { padding: 12px 0; }
  .et_pb_column { margin-bottom: 20px; }
  .et_pb_column:last-child { margin-bottom: 0; }
  .et_pb_module { margin-bottom: 16px; }
  #main-content > .container { padding-top: 28px; }
  #left-area .et_pb_post > h2.entry-title, .et_pb_blog_grid .entry-title { font-size: 20px; }
  .et_pb_post { margin-bottom: 16px; }
  .et_pb_post .entry-featured-image-url, .et_post_meta_wrapper > img { margin-bottom: 18px; }
  .post-meta { font-size: 13px; }
  /* home "Nuestro equipo": keep the three icons side by side */
  .et_pb_row:has(> .et_pb_column_1_3) { flex-wrap: nowrap; gap: 4%; }
  .et_pb_row > .et_pb_column_1_3 { width: 30.66% !important; margin-bottom: 0; }
  .et_pb_column_1_3 .et_pb_image { max-width: 80px; }
  .et_pb_column_1_3 .et_pb_text_inner p { font-size: 12px; line-height: 1.3; }
  .title_custom { padding-top: 6px; }
  span.span_title { padding: 9px 12px; font-size: 16px; }
  .et_pb_button_module_wrapper .et_pb_button { font-size: 14px; }
  .et_pb_contact_form .input { font-size: 16px; } /* avoids iOS zoom on focus */
  .pagination a { font-size: 15px; }
}

/* error pages */
.error-page { padding: 80px 0 100px; text-align: center; }
.error-page .et_pb_button { margin: 10px 6px 0; }
