﻿:root {
  --brand-coral: #f48460;
  --brand-blue: #238bb8;
  --ink: #2e333d;
  --muted: #69727d;
  --line: #e5e8eb;
  --paper: #fff;
  --soft-paper: #f6f7f8;
}

html { min-height: 100%; scroll-behavior: smooth; }
body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
}
.wrapper.upper, #main-wrapper { flex: 1 0 auto; width: 100%; }
#core { flex: 1 0 auto; }
#footer_fix { display: none !important; }
#footer { 
  flex-shrink: 0;
margin-top:90px;
}

/* Header and primary navigation */
#header {
  position: relative !important;
  top: auto !important;
  z-index: 30;
  margin: 0;
  background: var(--paper);
}
body.home #header { position: absolute !important; top: 0 !important; left: 0; right: 0; background: transparent; }
#header .header_inn {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: var(--paper);
}
#header .above-nav {
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  min-height: 29px;
  padding: 0 15px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--line);
}
#header .above-nav h2.tagline {
  float: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  text-transform: none;
}
#header .above-nav .above-nav-links { display: flex; gap: 18px; margin-left: auto; font-size: 11px; }
#header .above-nav .above-nav-links a { color: var(--ink); text-decoration: none; }
#header .above-nav .above-nav-links a:hover { color: var(--brand-blue); }
#header .header_inn > .clearfix { display: none; }
#header .header-left {
  display: flex;
  flex: 0 0 200px;
  align-items: center;
  width: 200px;
  max-width: none;
  box-sizing: border-box;
  border-right: 1px solid var(--line);
}
#header #titles { float: none; width: 100%; padding: 12px 18px; box-sizing: border-box; }
#header #titles .logo img { display: block; width: 100%; max-width: 185px; height: auto; max-height: 54px; }
#header .header-right { display: flex; flex: 1 1 0; align-items: center; min-width: 0; width: auto; }
#header #navigation {
  display: block !important;
  position: relative;
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent !important;
}
#header #main-nav { display: block; float: none; width: 100%; margin: 0; padding: 0; }
#header #menu-main-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 0 4px;
  overflow: visible;
  list-style: none;
  scrollbar-width: none;
  box-sizing: border-box;
}
#header #menu-main-menu::-webkit-scrollbar { display: none; }
#header #menu-main-menu > li {
  position: relative;
  display: block;
  flex: 0 0 auto;
  float: none;
  width: auto;
  margin: 0;
  border: 0;
  white-space: nowrap;
}
#header #menu-main-menu > li > a {
  display: block;
  width: auto;
  margin: 0;
  padding: 26px 7px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}
#header #menu-main-menu > li.current-menu-item > a,
#header #menu-main-menu > li.current-menu-ancestor > a,
#header #menu-main-menu > li > a:hover,
#header #menu-main-menu > li > a:focus-visible {
  background: transparent !important;
  color: var(--brand-blue) !important;
}
#header #menu-main-menu > li > ul.sub-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 50;
  width: 270px !important;
  min-width: 220px;
  margin: 0 !important;
  padding: 8px 0 !important;
  background: var(--paper) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 8px 22px rgba(25, 38, 51, .12);
  visibility: visible !important;
}
#header #menu-main-menu > li:hover > ul.sub-menu,
#header #menu-main-menu > li:focus-within > ul.sub-menu { display: block !important; }
#header #menu-main-menu .sub-menu li {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
}
#header #menu-main-menu .sub-menu a {
  display: block;
  width: auto !important;
  margin: 0 !important;
  padding: 9px 15px !important;
  color: var(--ink) !important;
  font-size: 12px !important;
  line-height: 1.4;
  white-space: normal;
}
#header #menu-main-menu .sub-menu a:hover,
#header #menu-main-menu .sub-menu a:focus-visible { color: var(--brand-blue) !important; background: var(--soft-paper) !important; }
#header #menu-main-menu > li:last-child { margin-left: auto; }
#header #menu-main-menu > li:last-child > a {
  margin: 12px 7px;
  padding: 15px 11px;
  color: #fff;
  background: var(--brand-coral);
}
#header #menu-main-menu > li:last-child > a:hover,
#header #menu-main-menu > li:last-child > a:focus-visible { color: #fff !important; background: var(--brand-blue) !important; }
#header #navtrigger { display: none !important; }

/* Home page */
.mainflex.flexslider { visibility: visible !important; opacity: 1 !important; }
.mainflex.flexslider .slides > li { display: none !important; float: none !important; }
.mainflex.flexslider .slides > li:first-child { display: block !important; width: 100% !important; height: 850px; position: relative; }
.mainflex.flexslider .slides > li:first-child > a,
.mainflex.flexslider .slides > li:first-child > a img { display: block; width: 100%; height: 100%; }
.mainflex.flexslider .slides > li:first-child > a img { object-fit: cover; object-position: center; }
.mainflex.flexslider .slides > li:first-child::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .33); pointer-events: none; }
.mainflex.flexslider .flexinside { z-index: 2; }
.mainflex .flex-control-nav, .mainflex .flex-direction-nav { display: none !important; }
.site-overview {
  padding: 0;
  background: transparent;
}
.site-overview > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 86px;
}
.site-overview h2 { margin: 0 0 2px; font-size: 24px; line-height: 1.2; }
.site-overview p { margin: 0; color: #606873; font-size: 12px; line-height: 1.55; }
.site-overview > .container > a,
.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  color: #fff;
  background: var(--brand-coral);
  border: 0;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
}
.site-overview > .container > a:hover,
.contact-form__submit:hover { background: var(--brand-blue); color: #fff; }
.home-feature-card .elementor-image-box-wrapper { height: 100%; }
.elementor-5369 .elementor-element.elementor-element-2eb6bc3 .elementor-heading-title { max-width: 540px; }
.home-feature-card .elementor-image-box-img img { display: block; width: 48px; height: 48px; }
.home-feature-card .elementor-image-box-title { max-width: 220px; }
.home-feature-card .elementor-image-box-description { min-height: 4.8em; }
.home-feature-image .elementor-widget-container { height: auto !important; }
.home-feature-image img { display: block; width: 100%; height: 810px; object-fit: cover; object-position: center; }
.elementor-5369 .elementor-element.elementor-element-42e3149 > .elementor-widget-container {
  background-image: linear-gradient(rgba(0, 0, 0, .32), rgba(0, 0, 0, .32)), url('/images/hero-regulacion-online-peru.webp');
  background-position: center;
  background-size: cover;
}
.home-sidebar-feature { height: 242px; overflow: hidden; }
.home-sidebar-feature a { position: relative; display: block; height: 100%; color: #fff; text-decoration: none; }
.home-sidebar-feature img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-sidebar-feature span { position: absolute; inset: auto 0 0; padding: 46px 20px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); color: #fff; font-size: 19px; font-weight: 700; line-height: 1.2; }
.elementor-5369 .elementor-element.elementor-element-d72ecf9 { background-image: url('/images/lima-peru-contexto.webp') !important; background-position: center !important; background-size: cover; }
.elementor-5369 .elementor-element.elementor-element-9008457 { background-image: url('/images/conservacion_amazonia_peru.webp') !important; background-position: center !important; background-size: cover; }
.featured-widget .item_inn { min-height: 268px; box-sizing: border-box; }
.featured-widget .entryhead .imgwrap img { width: 299px; height: 225px; object-fit: cover; }
.tmnf_events .event_item .evnt_thumb img { width: 100%; height: 480px; object-fit: cover; }
.tmnf_events .event_item .evnt_inn p { margin-top: 6px; color: #fff; font-size: 14px; line-height: 1.45; }
.elementor-5369 .elementor-element.elementor-element-7006a84 { min-height: 600px; }
@media (min-width: 1025px) {
  .elementor-5369 .elementor-element.elementor-element-513063e { position: relative; top: 13px; }
  #footer .footerhead { min-height: 170px; box-sizing: border-box; }
  #footer .foocol.first { min-height: 461px; box-sizing: border-box; }
}
#footer .footerhead .logo img { width: 190px; max-width: 190px; height: auto; }
#footer .footer-invite { margin: 0 20px 32px 0; }
#footer .footer-invite h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; }
#footer .footer-invite p { margin: 0 0 12px; font-size: 13px; }
#footer .footer-invite a { display: inline-block; padding: 10px 16px; background: var(--brand-coral); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; text-transform: uppercase; }
#footer .footer-invite a:hover { background: var(--brand-blue); }



/* Article pages */
body.single-post #core { margin-top: 32px !important; }
#core > .postbar .posttitle { max-width: 900px; margin: 0 auto 22px; font-size: clamp(30px, 3.5vw, 42px); line-height: 1.15; }
.entry {
  color: #353b43;
  font-size: 16px;
  line-height: 1.72;
}
.entry > header, .entry > header p { color: inherit; font: inherit; }
.entry > header { margin: 0 0 1.5rem; }
.entry p { margin: 0 0 1.15em; }
.entry h2, .entry h3 { clear: both; color: var(--ink); line-height: 1.25; }
.entry h2 { margin: 1.8em 0 .65em; font-size: clamp(22px, 2.4vw, 28px); }
.entry h3 { margin: 1.4em 0 .55em; font-size: 20px; }
.entry ul, .entry ol { margin: .8em 0 1.35em; padding-left: 1.45em; }
.entry li { margin: 0 0 .45em; padding-left: .15em; }
.entry figure.content-figure {
  float: none !important;
  clear: both;
  width: min(100%, 760px) !important;
  max-width: 100% !important;
  margin: 1.5rem auto 1.8rem !important;
}
.entry figure.content-figure img,
.entry img.alignleft, .entry img.alignright, .entry img.aligncenter {
  display: block;
  float: none !important;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
}
.entry figure figcaption { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.table-scroll { max-width: 100%; margin: 1.45rem 0 1.8rem; overflow-x: auto; overscroll-behavior-inline: contain; }
.entry .table-scroll table, #content .table-scroll table {
  width: 100%;
  min-width: 580px;
  margin: 0;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}
.entry .table-scroll th, #content .table-scroll th {
  padding: 11px 13px;
  color: #fff;
  background: #34495e;
  border: 1px solid #d7dce0;
  text-align: left;
}
.entry .table-scroll td, #content .table-scroll td {
  padding: 10px 13px;
  border: 1px solid #dfe3e7;
  vertical-align: top;
}
.entry .table-scroll tbody tr:nth-child(even) td { background: #f6f7f8; }
.entry blockquote { margin: 1.5rem 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand-coral); color: #59616b; }
.section-heading {
  margin: 40px 0 28px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
}
.topic-overview {
  margin: 0 0 30px;
  padding: 24px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.topic-overview h2 { margin: 12px 0 10px; color: #17324c; font-size: 23px; line-height: 1.3; }
.topic-overview p { margin: 0 0 18px; color: #475569; font-size: 15px; line-height: 1.6; }
.topic-overview h4 { margin: 0 0 10px; color: #17324c; font-size: 15px; }
.observatory-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.observatory-table th { padding: 9px 12px; color: #fff; background: #17324c; text-align: left; }
.observatory-table td { padding: 8px 12px; border-bottom: 1px solid #dfe3e7; }
.observatory-table tbody tr:nth-child(even) { background: #f3f6f8; }
.topic-story { margin: 0 0 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.topic-story__title { margin: 0 0 12px; font-size: 20px; line-height: 1.3; }
.topic-story__title a { color: #17324c; font-weight: 700; text-decoration: none; }
.topic-story__title a:hover { color: var(--brand-blue); }
.topic-story__layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.topic-story__media { flex: 0 0 280px; max-width: 280px; }
.topic-story__media a { display: block; }
.topic-story__image { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 4px; }
.topic-story__body { flex: 1 1 260px; min-width: 260px; }
.topic-story__summary { margin: 0 0 14px; color: #475569; font-size: 14px; line-height: 1.6; }
.topic-story__read-more { display: inline-block; color: var(--brand-blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.topic-story__read-more:hover, .topic-story__read-more:focus-visible { color: var(--brand-coral); text-decoration: underline; }

/* Sidebar navigation */
#sidebar .sidebar-menu-widget { margin-bottom: 25px; }
#sidebar .sidebar-menu-widget > h2 { margin-bottom: 12px; font-size: 15px; }
#sidebar .sidebar-menu-widget > h2::after { top: auto; right: 0; bottom: 0; left: 0; }
#sidebar .sidebar-menu { margin: 0; padding: 0; list-style: none; }
#sidebar .sidebar-menu li { margin: 0; border-bottom: 1px solid var(--line); }
#sidebar .sidebar-menu li:last-child { border-bottom: 0; }
#sidebar .sidebar-menu a {
  display: block;
  padding: 9px 10px;
  color: #17324c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
#sidebar .sidebar-menu a:hover,
#sidebar .sidebar-menu a:focus-visible { color: var(--brand-blue); background: #f5f8fa; }
#sidebar .sidebar-menu .is-current a { color: var(--brand-blue); box-shadow: inset 3px 0 0 var(--brand-coral); }

@media (min-width: 1031px) {
  body.single-post #sidebar .sidebar-menu-widget { margin-top: 20px; }
}

/* Contact and privacy pages */
.site-page { width: min(100% - 36px, 950px); margin: 42px auto 72px; }
.site-page article { color: #353b43; font-size: 16px; line-height: 1.7; }
.site-page h1 { margin: 0 0 18px; color: var(--ink); font-size: clamp(30px, 4vw, 42px); line-height: 1.15; }
.site-page h2 { margin: 1.7em 0 .6em; color: var(--ink); font-size: 23px; line-height: 1.25; }
.policy-updated { color: var(--muted); font-size: 13px; }
.contact-document form { max-width: 720px; margin: 28px 0; }
.contact-form__field { display: grid; gap: 6px; margin: 0 0 17px; }
.contact-form__field label { font-weight: 700; }
.contact-form__field input, .contact-form__field textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd5da;
  border-radius: 2px;
  box-sizing: border-box;
  font: inherit;
}
.contact-form__field input:focus, .contact-form__field textarea:focus { outline: 2px solid #a8d7e8; border-color: var(--brand-blue); }
.contact-form__field textarea { resize: vertical; }
.contact-form__consent { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0; font-size: 14px; line-height: 1.5; }
.contact-form__consent input { margin-top: 4px; }
.contact-form__submit { cursor: pointer; font: inherit; font-weight: 700; }
.contact-form__response { margin: 18px 0; padding: 13px 15px; color: #20563b; background: #edf7f0; border-left: 3px solid #458c62; }
.contact-document__fallback { color: var(--muted); font-size: 14px; }

.scrollTo_top { display: none; position: fixed; right: 18px; bottom: 18px; left: auto; top: auto; z-index: 20; width: 54px; height: 54px; }
.scrollTo_top.is-visible { display: block; }
.scrollTo_top a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

@media (max-width: 1030px) {
  #header .header-left { flex: 1 1 auto; width: auto; max-width: calc(100% - 72px); border-right: 0; }
  #header #titles { padding: 10px 16px; }
  #header .header-right { flex: 0 0 100%; order: 3; display: block; }
  #header #navtrigger { display: block !important; align-self: center; margin: 8px 14px; }
  #header #navigation { display: none !important; padding: 0 !important; border-top: 1px solid var(--line); }
  #header #navigation.shownav { display: block !important; }
  #header #menu-main-menu { display: block; padding: 0; overflow: visible; }
  #header #menu-main-menu > li { display: block; width: 100%; border-bottom: 1px solid var(--line); white-space: normal; }
  #header #menu-main-menu > li > a { padding: 13px 18px !important; font-size: 13px !important; }
  #header #menu-main-menu > li:last-child > a { margin: 0; color: #fff !important; }
  #header #menu-main-menu > li > ul.sub-menu {
    display: block !important;
    position: static !important;
    width: 100% !important;
    min-width: 0;
    padding: 0 0 8px 15px !important;
    border: 0 !important;
    box-shadow: none;
  }
  #header #menu-main-menu .sub-menu a { padding: 8px 18px !important; }
}
@media (min-width: 701px) and (max-width: 1030px) {
  .mainflex.flexslider .slides > li:first-child,
  .mainflex.flexslider .slides > li:first-child > a,
  .mainflex.flexslider .slides > li:first-child > a img { height: min(850px, 85vw); }
  .elementor-5369 .elementor-element.elementor-element-1dfbe59 { min-height: 196px; }
}
@media (min-width: 701px) and (max-width: 767px) {
  body.home #header { position: relative !important; }
  #header .header-left { min-height: 98px; }
}
@media (max-width: 700px) {
  body.home #header { position: relative !important; }
  .elementor-5369 .elementor-element.elementor-element-1dfbe59 { min-height: 246px; }
  .site-overview > .container { align-items: flex-start; flex-direction: column; gap: 16px; }
  .mainflex.flexslider { height: auto !important; }
  .mainflex.flexslider .slides > li:first-child { height: auto; }
  .mainflex.flexslider .slides > li:first-child > a { height: 390px; }
  .mainflex.flexslider .slides > li:first-child > a img { height: 390px; }
  .mainflex.flexslider .flexinside { min-height: 434px; box-sizing: border-box; }
  .home-feature-card .elementor-image-box-description { min-height: 0; }
  .home-feature-image img { height: 525px; max-height: none; }
  .site-page { width: min(100% - 28px, 950px); margin: 30px auto 48px; }
  .topic-story__media { flex-basis: 100%; max-width: 100%; }
  .topic-story__image { height: auto; aspect-ratio: 16 / 9; }
  .topic-story__body { min-width: 0; }
  #core > .postbar .posttitle { font-size: 30px; }
}
