/* San Jorge Seguros: capa visual adaptable para las páginas corporativas. */
:root {
  --sj-green: #15ae7d;
  --sj-green-dark: #087a59;
  --sj-ink: #18342d;
  --sj-muted: #64756f;
  --sj-line: #dce9e4;
  --sj-paper: #ffffff;
  --sj-canvas: #f2f7f4;
  --sj-radius: 16px;
  --sj-shadow: 0 12px 32px rgba(19, 65, 49, .09);
}

html { scroll-behavior: smooth; }
body {
  color: var(--sj-ink);
  background: var(--sj-canvas);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body p { line-height: 1.75; margin-bottom: 1.15rem; }
a { color: var(--sj-green-dark); }
a:hover, a:focus-visible { color: var(--sj-green); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(21, 174, 125, .35);
  outline-offset: 3px;
}
.wrapper { width: min(1120px, calc(100% - 40px)); }
#logo { padding: 10px 0; }
#logo img { display: block; max-width: min(100%, 250px); height: auto; }
header { min-height: 90px; }
nav { height: auto; min-height: 42px; }
#nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
#nav li { margin: 0; }
#nav > li > a {
  border-radius: 999px;
  padding: 9px 13px;
  text-shadow: none;
  transition: background-color .18s ease, color .18s ease;
}
#nav > li > a:hover, #nav > li.current-menu-item > a,
#nav > li.current_page_item > a { background: rgba(21,174,125,.13); border-bottom: 0; }
#nav > li ul { z-index: 30; border: 1px solid var(--sj-line); border-radius: 12px; overflow: hidden; box-shadow: var(--sj-shadow); }
#nav > li ul li a { padding: 11px 16px; }
#main { padding: 36px 0; margin-bottom: 0; background: transparent; }
#main > .wrapper, #main .wrapper > .clearfix,
.fullwidth-content, .floated-content, #posts-content, #post-content {
  min-width: 0;
}
.page-heading { background: none; border-bottom: 1px solid var(--sj-line); padding-bottom: 12px; margin-bottom: 24px; }
.page-heading span { display: inline-block; margin: 0; padding: 0; color: var(--sj-ink); font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.2; font-weight: 650; }
h1, h2, h4, h5, h6 { color: var(--sj-ink); line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
img, video, iframe { max-width: 100%; }
img { height: auto; }
figure, .widget-block, .feature-image, .map-content {
  border-radius: var(--sj-radius);
}
.portfolio-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; width: 100%; padding-top: 20px; }
.portfolio-thumbs figure { float: none; width: auto; margin: 0; border: 1px solid var(--sj-line); border-radius: 14px; background: var(--sj-paper); box-shadow: 0 5px 18px rgba(19,65,49,.06); }
.portfolio-thumbs figure img { display: block; width: 100%; object-fit: contain; }
.widget-cols { display: flex; flex-wrap: wrap; gap: 22px; }
.widget-cols > li { float: none; flex: 1 1 190px; width: auto; margin: 0; }
.widget-block { height: auto; }
input, select, textarea, button, .button, input[type="submit"] { font: inherit; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  max-width: 100%; border: 1px solid #c8d8d1; border-radius: 10px; padding: 11px 13px;
}
input[type="submit"], button, .button, a.button {
  display: inline-block; border: 0; border-radius: 999px; padding: 11px 20px;
  background: var(--sj-green); color: #fff; font-weight: 650; cursor: pointer;
}
input[type="submit"]:hover, button:hover, .button:hover, a.button:hover { background: var(--sj-green-dark); color: #fff; }
table { max-width: 100%; border-collapse: collapse; }
footer { color: #eaf5f0; background: #123e32; font-size: 14px; }
footer a { color: #d5f2e6; }
footer .wrapper { padding-top: 28px; padding-bottom: 28px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding-top: 14px; }

@media (max-width: 767px) {
  .wrapper { width: min(100% - 28px, 600px); }
  header { min-height: 0; }
  #logo { display: block; text-align: center; }
  #logo img { margin: 0 auto; }
  nav { margin: 8px 0 0; }
  #nav { justify-content: center; }
  #nav > li > a { padding: 8px 10px; font-size: 13px; }
  #combo-holder, #comboNav { width: 100%; float: none; }
  #comboNav { display: block; margin: 12px 0; }
  #main { padding: 26px 0; }
  .portfolio-thumbs { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; }
  .widget-cols { display: block; }
  .widget-cols > li { margin-bottom: 22px; }
  .right, .left { float: none; }
  .right:after { display: none; }
  table { display: block; overflow-x: auto; }
  footer .wrapper { padding-top: 22px; padding-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
