/* RESET & BASE STYLES */
html,body,div,span,applet,object,iframe,
h1,h2,h3,h4,h5,h6,p,blockquote,pre,
a,abbr,acronym,address,big,cite,code,
del,dfn,em,img,ins,kbd,q,s,samp,
small,strike,strong,sub,sup,tt,var,
b,u,i,center,dl,dt,dd,ol,ul,li,
fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,
article,aside,canvas,details,embed,
figure,figcaption,footer,header,hgroup,
menu,nav,output,ruby,section,summary,
time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
  display: block;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F4F7FA;
  color: #214978;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #214978;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8AC926;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #214978;
}
h1 { font-size: 2.8rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.45rem; margin-bottom: 16px; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }
p, .text-section p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #254462;
}
strong, b {
  font-weight: 700;
}
blockquote {
  font-style: italic;
  color: #214978;
  background: #eaf2ea;
  border-left: 4px solid #8AC926;
  padding: 14px 28px;
  margin-bottom: 8px;
  border-radius: 12px;
  transition: background 0.3s;
}

.text-section {
  margin-bottom: 20px;
}

/* HEADER & NAVIGATION */
header {
  background: linear-gradient(96deg, #214978 52%, #8AC926 100%);
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(33,73,120,0.07);
  padding: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.brand-logo {
  display: flex;
  align-items: center;
  height: 54px;
}
.brand-logo img {
  height: 38px;
  width: auto;
}
.main-nav, .footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a, .footer-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus, .footer-nav a:hover {
  background: rgba(255,255,255,0.10);
  color: #8AC926;
}
.cta-button, .mobile-nav .cta-button {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  background: linear-gradient(96deg, #8AC926 15%, #62b400 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 10px 28px;
  margin-left: 18px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 3px 12px 0 rgba(33,73,120,0.10);
  transition: box-shadow 0.2s, background 0.22s, color 0.2s, transform 0.17s;
  outline: none;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(100deg, #62b400 55%, #8AC926 100%);
  color: #fff;
  box-shadow: 0 6px 16px 0 rgba(138,201,38,0.15), 0 1.5px 4px 0 rgba(33,73,120,0.10);
  transform: translateY(-2px) scale(1.04);
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  display: none;
  margin-left: 14px;
  z-index: 120;
  transition: color 0.19s;
}
.mobile-menu-toggle:focus {
  color: #8AC926;
  outline: none;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: #fff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.47,.9,.49,1), box-shadow 0.19s;
  box-shadow: 0 0 40px 10px rgba(33,73,120,0.08);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #214978;
  font-size: 2.3rem;
  padding: 22px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #8AC926;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 18px 30px 44px 30px;
  width: 100%;
  margin-top: 24px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #214978;
  padding: 10px 0;
  font-weight: 600;
  border-radius: 5px;
  width: 100%;
  text-align: center;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8AC926;
  color: #fff;
}
.mobile-menu .cta-button {
  margin: 42px 0 0 0;
  width: 90%;
  align-self: center;
}

/* MAIN 
-------------------------------------------------- */
main {
  min-height: 60vh;
  display: block;
  /* fallback white for old browsers */
  background: #F4F7FA;
}

/* GRADIENT MODERN SECTION BACKGROUNDS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 26px;
  box-shadow: 0 1.5px 14px 0 rgba(33,73,120,0.07);
  background: #fff; /* fallback */
  position: relative;
  z-index: 2;
}
/* Hero background gradient for first section */
#hero {
  background: linear-gradient(120deg, #F4F7FA 65%, #d4ffcf 100%);
  text-align: left;
  box-shadow: 0 4px 40px 0 rgba(138,201,38,0.05), 0 2px 8px 0 rgba(33,73,120,0.04);
  border-radius: 0 0 48px 48px;
}
#hero h1 {
  color: #214978;
  font-size: 2.7rem;
  margin-bottom: 18px;
}
#hero p {
  color: #254462;
  font-size: 1.22rem;
  margin-bottom: 32px;
}

/* FLEXBOX CONTENT PATTERNS */
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.card-container, .service-card-grid, .article-card-grid, .client-logo-list, .content-grid, .categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .service-card, .article-card, .case-study-card {
  background: #fff;
  box-shadow: 0 3px 14px 0 rgba(33,73,120,0.07);
  border-radius: 18px;
  padding: 28px 22px 26px 22px;
  margin-bottom: 20px;
  position: relative;
  min-width: 230px;
  flex: 1 1 310px;
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:hover, .service-card:hover, .article-card:hover, .case-study-card:hover {
  box-shadow: 0 6px 26px 0 rgba(138,201,38,0.09), 0 1.5px 9px 0 rgba(33,73,120,0.09);
  transform: translateY(-3px) scale(1.025);
  z-index: 2;
}
.service-card-grid {
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
  width: 100%;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.article-card-grid {
  gap: 20px;
  width: 100%;
  justify-content: flex-start;
}
.article-card {
  min-width: 260px;
  min-height: 230px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.categories-filter {
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.category {
  background: #eaf2ea;
  color: #214978;
  padding: 7px 16px;
  font-size: 0.95rem;
  border-radius: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

/* Price Tag */
.price-tag {
  display: inline-block;
  margin-top: 14px;
  background: linear-gradient(85deg, #8AC926 60%, #62b400 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  padding: 5px 20px;
  border-radius: 40px;
  box-shadow: 0 0.8px 5px rgba(138,201,38,0.09);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F4F7FA;
  border: 1.5px solid #eaf2ea;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 1.5px 10px rgba(33,73,120,0.06);
  margin-bottom: 20px;
  max-width: 700px;
  color: #214978;
  transition: border-color 0.2s, box-shadow 0.19s;
}
.testimonial-card blockquote {
  margin: 0;
  background: none;
  border-left: 3px solid #8AC926;
  padding: 8px 20px 8px 14px;
}
.testimonial-card span {
  color: #384f6b;
  font-size: 1.07rem;
  font-weight: 600;
  margin-left: 12px;
}
.testimonial-card:hover {
  border-color: #8AC926;
  box-shadow: 0 6px 18px 0 rgba(138,201,38,0.13), 0 1.5px 9px 0 rgba(33,73,120,0.08);
}

/* Case Study Card */
.case-study-card {
  margin-bottom: 24px;
  background: #fff;
  padding: 28px 20px;
  border-radius: 18px;
  box-shadow: 0 2.5px 16px rgba(33,73,120,0.04);
  border: 1.5px solid #eaf2ea;
  transition: border-color 0.2s, box-shadow 0.16s;
}
.case-study-card:hover {
  border-color: #8AC926;
}

.success-metrics {
  margin: 22px 0;
}
.success-metrics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: center;
  margin-bottom: 0;
}
.success-metrics li {
  font-size: 1.18rem;
  color: #8AC926;
  font-weight: 700;
}

.client-logo-list {
  justify-content: flex-start;
  align-items: center;
  gap: 38px;
  margin: 25px 0 17px 0;
}
.client-logo-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf2ea;
  border-radius: 14px;
  padding: 18px 22px;
  min-width: 75px;
}
.industry-tags {
  margin-top: 16px;
  color: #5c727b;
  font-weight: 500;
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid #eaf2ea;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #214978;
}

.location-map {
  background: #eaf2ea;
  padding: 16px 18px;
  border-radius: 10px;
  color: #384f6b;
  font-size: 1.07rem;
  margin: 16px 0 0 0;
  font-weight: 600;
}

/* Footer */
footer {
  background: linear-gradient(98deg, #214978 52%, #8AC926 100%);
  color: #fff;
  padding: 34px 0 18px 0;
  box-shadow: 0 -2px 16px 0 rgba(33,73,120,0.12);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-nav {
  gap: 26px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.footer-nav a {
  color: #fff;
  font-size: .97rem;
  font-weight: 500;
  opacity: 0.9;
  transition: color 0.18s, opacity 0.19s;
  padding: 6px 8px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #8AC926;
  background: rgba(0,0,0,0.02);
  opacity: 1;
}
footer p {
  color: #f4f7fa;
  font-size: 0.98rem;
  margin-bottom: 0;
  opacity: 0.73;
}
footer img {
  height: 38px;
  width: auto;
  margin-bottom: 6px;
}

/* Tables (Comparativa) */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 30px 0 26px 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(33,73,120,0.045);
  overflow: hidden;
}
th, td {
  padding: 13px 18px;
  text-align: left;
  font-size: 1rem;
}
th {
  background: #eaf2ea;
  color: #214978;
  font-weight: bold;
}
td {
  border-bottom: 1px solid #eaf2ea;
}
tr:last-child td {
  border-bottom: none;
}

/* Form & Inputs */
input[type='search'] {
  width: 100%;
  max-width: 370px;
  background: #fff;
  border: 1.5px solid #eaf2ea;
  border-radius: 25px;
  padding: 11px 38px 11px 18px;
  font-size: 1.1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #214978;
  margin-top: 10px;
  transition: border-color 0.16s, box-shadow 0.16s;
  outline: none;
}
input[type='search']:focus {
  border-color: #8AC926;
  box-shadow: 0 1.5px 7px 0 rgba(33,73,120,0.09);
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  background: #214978;
  color: #fff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 -3px 18px rgba(33,73,120,0.14);
  padding: 26px 20px 18px 20px;
  font-size: 1.07rem;
  transition: transform 0.33s cubic-bezier(.46,.99,.5,1), opacity 0.24s;
}
.cookie-banner.hide {
  transform: translateY(130%);
  opacity: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button {
  background: linear-gradient(96deg, #8AC926 60%, #62b400 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.15s, box-shadow 0.17s, color 0.18s, outline 0.16s;
  outline: none;
}
.cookie-banner button.accept {
  background: linear-gradient(96deg, #8AC926 60%, #62b400 100%);
}
.cookie-banner button.reject {
  background: linear-gradient(98deg, #cccccc 60%, #9e9e9e 100%);
  color: #214978;
}
.cookie-banner button.settings {
  background: linear-gradient(14deg, #fff 84%, #F4F7FA 100%);
  color: #214978;
  border: 1.5px solid #8AC926;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  filter: brightness(0.96) contrast(1.09);
  box-shadow: 0 3px 10px 0 rgba(138,201,38,0.13);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(22,37,55,0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  transition: opacity 0.24s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 36px 24px 28px 24px;
  color: #214978;
  width: 92vw;
  max-width: 420px;
  box-shadow: 0 6px 49px 0 rgba(33,73,120,0.16);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal .modal-header {
  font-size: 1.24rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #214978;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 13px; right: 13px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #8AC926;
  cursor: pointer;
}
.cookie-modal .cookie-pref-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-pref-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.cookie-pref-category label {
  font-size: 1rem;
  color: #214978;
  font-weight: 600;
  cursor: pointer;
}
.cookie-pref-category input[type="checkbox"] {
  accent-color: #8AC926;
  width: 21px;
  height: 21px;
  margin-right: 2px;
  cursor: pointer;
}
.cookie-pref-category input[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .cookie-modal-actions button {
  background: linear-gradient(96deg, #8AC926 60%, #62b400 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.15s, background 0.17s;
}
.cookie-modal .cookie-modal-actions button.save {
  background: linear-gradient(96deg, #8AC926 60%, #62b400 100%);
  color: #fff;
}
.cookie-modal .cookie-modal-actions button.cancel {
  background: #cccccc;
  color: #214978;
}
.cookie-modal .cookie-modal-actions button:hover, .cookie-modal .cookie-modal-actions button:focus {
  filter: brightness(0.97);
  box-shadow: 0 2px 8px rgba(138,201,38,.13);
}

/* RESPONSIVE DESIGN (MOBILE-FIRST) ------------------------------------- */
@media (max-width: 920px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 768px) {
  html, body {
    font-size: 16px;
  }
  header .container {
    flex-direction: row;
    padding: 0 8px;
  }
  .main-nav {
    display: none !important;
  }
  .cta-button {
    margin-left: 8px;
    padding: 10px 18px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .service-card-grid {
    flex-direction: column;
    gap: 20px;
  }
  .article-card-grid {
    flex-direction: column;
    gap: 20px;
  }
  .client-logo-list {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .success-metrics ul {
    flex-direction: column;
    gap: 12px;
  }
  .categories-filter {
    flex-direction: row;
    gap: 8px;
  }
  section, #hero {
    padding: 26px 8px;
    border-radius: 16px;
  }
  .content-wrapper, .text-image-section {
    gap: 14px;
    padding: 0;
  }
  .testimonial-card, .case-study-card, .service-card, .article-card {
    padding: 16px 12px;
    border-radius: 14px;
    min-width: 0;
  }
  .testimonial-card {
    font-size: 0.97rem;
    gap: 10px;
    max-width: 98vw;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.18rem; }
}
@media (max-width: 560px) {
  .footer-nav {
    gap: 12px;
  }
  .container {
    max-width: 100vw;
    padding: 0 6px;
  }
  .location-map {
    margin-left: 0;
    margin-right: 0;
    font-size: .99rem;
    padding: 12px 6px;
  }
}
@media (max-width: 450px) {
  .footer-nav { gap: 7px; }
  .cta-button, .cookie-banner button, .cookie-modal .cookie-modal-actions button {
    width: 100%;
    padding: 9px 0;
    min-width: 0;
    margin: 4px 0 0 0;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
}

/* SCROLLBAR STYLES (optional) */
body::-webkit-scrollbar {
  width: 9px;
  background: #eaf2ea;
}
body::-webkit-scrollbar-thumb {
  background: #8AC926;
  border-radius: 6px;
}

/* VISUAL INTERACTIONS & MICRO-ANIMATIONS */
.card, .service-card, .article-card, .case-study-card, .testimonial-card {
  transition: box-shadow 0.17s cubic-bezier(.38,.72,.43,1), transform 0.21s cubic-bezier(.38,.72,.43,1);
}
.cta-button, button, .cookie-banner button {
  transition: background 0.19s, color 0.19s, box-shadow 0.16s, transform 0.15s;
}
.cta-button:active, .cookie-banner button:active {
  transform: scale(0.98);
}

/* OVERRIDE/ENSURE FLEXBOX LAYOUTS (never grid/columns) ---------------- */
.card-container, .service-card-grid, .article-card-grid, .client-logo-list, .content-grid, .categories-filter,
.text-image-section, .testimonial-card, .feature-item, .footer-nav, .success-metrics ul {
  display: flex;
}

.feature-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* MINIMUM SPACING BETWEEN CARDS AND SECTIONS */
.card, .service-card, .case-study-card, .testimonial-card, .article-card {
  margin-bottom: 20px;
}
section {
  margin-bottom: 60px;
}
.card-container, .service-card-grid, .content-grid, .article-card-grid {
  gap: 24px;
}
.text-image-section {
  gap: 30px;
}

/* HIDE/SHOW FOR JS */
.is-hidden {
  display: none!important;
  visibility: hidden!important;
  opacity: 0!important;
}

/* Accessibility: focus highlight for keyboard navigation */
a:focus, button:focus, .cta-button:focus {
  outline: 2.5px solid #8AC926;
  outline-offset: 2px;
  z-index: 10;
}

/* END CSS */