
.page-layout main { min-height: 100vh; }
.page-layout .site-header nav a[aria-current="page"] { color: #fff; background: #0879d6; border-color: #0879d6; }
.page-layout:not(.page-inicio) main > .section:first-of-type { padding-top: 54px; }
.page-layout:not(.page-inicio) .contact { margin-top: 0; }
.page-inicio footer { margin-top: 48px; }
.page-inicio .impact-strip { margin-bottom: 48px; }
.page-layout .why { margin-top: 0; }
@media(max-width:700px) { .page-layout:not(.page-inicio) main > .section:first-of-type { padding-top: 32px; } }

/* Keep every navigation tab visible on phones and small tablets. */
@media (max-width:850px) {
  .site-header { height:auto; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; padding:10px 16px 16px; }
  .site-header .brand-with-logo { min-width:0; width:130px; height:112px; }
  .site-header .brand-logo { width:130px; height:112px; object-fit:contain; }
  .site-header .header-actions { grid-column:2; grid-row:1; justify-content:flex-end; min-width:0; }
  .site-header .menu-button { display:none; }
  .site-header nav, .site-header nav.open { grid-column:1 / -1; grid-row:2; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; position:static; width:100%; padding:0; box-shadow:none; background:#fff; }
  .site-header nav a { display:flex; align-items:center; justify-content:center; text-align:center; min-height:44px; padding:8px 5px; border:1px solid #d8e7f5; border-radius:8px; background:#f2f7fc; font-size:12px; line-height:1.25; overflow-wrap:anywhere; }
  .site-header nav a:focus-visible { outline:3px solid #0879d6; outline-offset:2px; }
}
@media (max-width:359px) { .site-header nav, .site-header nav.open { grid-template-columns:repeat(2,minmax(0,1fr)); } }@media (max-width:850px) {
  .site-header nav a { white-space:normal; }
  .site-header .header-actions { flex-direction:column; gap:8px; }
  .site-header .header-quote { display:block; text-align:center; max-width:180px; white-space:normal; }
}@media (max-width:359px) {
  .site-header .brand-with-logo, .site-header .brand-logo { width:110px; }
  .site-header .header-quote { max-width:140px; padding:10px; }
}
/* One dedicated quote tab in mobile navigation. */
.site-header nav .mobile-quote-tab { display:none; }
@media (max-width:850px) {
  .site-header nav .mobile-quote-tab { display:flex; color:#fff; background:#0879d6; border-color:#0879d6; }
  .site-header .header-quote, .page-inicio .impact-strip > a { display:none; }
}

/* Readable company description above the footer security badge. */
footer > p { font-size:18px; line-height:1.6; font-weight:600; color:#063b78; }
@media(max-width:650px) { footer > p { font-size:17px; } }
footer .footer-description { display:block; padding:16px 20px; border:2px solid #0879d6; border-radius:14px; background:#fff; box-shadow:0 5px 16px #0758d810; }

.quote-areas { grid-column: 1 / -1; padding: 14px; min-width: 0; border: 1px solid #bbd8ef; border-radius: 10px; background: #f1f8ff; color: #063b78; }
.quote-areas summary { cursor: pointer; font-weight: 700; padding: 10px 2px; }
.quote-areas summary:focus-visible { outline: 2px solid #0879d6; outline-offset: 3px; }
.quote-areas p { margin: 4px 0 16px; line-height: 1.5; }
.quote-areas-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.quote-areas label { min-width: 0; }
.quote-areas input { width: 100%; min-width: 0; }
@media(max-width:480px) { .quote-areas-grid { grid-template-columns: 1fr; } }

@media (max-width: 850px) {
  .page-layout .site-header { gap: 4px 10px; padding: 5px 12px 9px; }
  .page-layout .site-header .brand-with-logo,
  .page-layout .site-header .brand-logo { width: 108px; height: 88px; }
  .page-layout .site-header nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .page-layout .site-header nav a {
    min-height: 26px;
    padding: 2px 3px;
    font-size: 11px;
    line-height: 1.1;
    border-color: #89b6e3;
    border-radius: 6px;
  }
  .page-layout .site-header nav a.mobile-quote-tab { border-color: #0879d6; }
}
.quote-areas .quote-areas-error { color: #9e241c; background: #fff1ef; border-left: 3px solid #b42318; border-radius: 4px; padding: 9px 12px; font-weight: 700; }
.quote-areas .quote-areas-error[hidden] { display: none; }
