/* ----------------------------------------------------
   CSS Reset & Normalize
----------------------------------------------------*/
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;
}
html {
  scroll-behavior: smooth;
  background: #F5F8FA;
}
body {
  font-family: 'Montserrat', 'Segoe UI', Arial, Helvetica, sans-serif;
  color: #222d3a;
  font-size: 16px;
  line-height: 1.7;
  background: #F5F8FA;
  min-height: 100vh;
  letter-spacing: 0.01em;
  font-variant-ligatures: common-ligatures;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: #14386B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #76B041;
}

/* ----------------------------------------------------
   Typography -- "elegant_classic" style
----------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  color: #14386B;
  margin-bottom: 16px;
  line-height: 1.23;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
p, ul, ol, dl, blockquote {
  font-family: 'Montserrat', 'Segoe UI', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-bottom: 14px;
}
strong {
  font-weight: 700;
}

blockquote {
  font-family: 'Roboto Slab', Georgia, serif;
  font-style: italic;
  background: #f8fafb;
  border-left: 4px solid #76B041;
  padding: 16px 20px 16px 34px;
  margin: 12px 0 18px 0;
  color: #1a2636;
  border-radius: 12px 3px 12px 3px;
}

/* Typography scale for classic, elegant proportions */
.text-section ul, .text-section ol, .content-wrapper ul, .content-wrapper ol {
  margin-left: 30px;
  margin-bottom: 16px;
}
.text-section li, .content-wrapper li {
  margin-bottom: 10px;
  list-style: disc outside;
  font-size: 1rem;
}

/* ----------------------------------------------------
   Layout containers & Structure
----------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  padding: 0 0 0 0;
}
.header-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 12px 0;
  position: relative;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 0 12px 0;
  border-top: 1px solid #e1e6ed;
}
.footer-contact {
  font-size: 1rem;
  color: #3C4651;
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 5px;
}

/* Spacing Utility for All Cards */
.card-container,
.service-grid,
.value-grid,
.process-steps-grid,
.service-list,
.step-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card,
.value-card,
.service-card,
.process-step,
.testimonial-card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  box-shadow: 0 1px 9px 0 rgba(52,60,69,0.07);
  border-radius: 16px;
  padding: 28px 28px 24px 28px;
  min-width: 0;
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover, .service-card:hover, .value-card:hover {
  box-shadow: 0 4px 20px 0 rgba(20,56,107,0.16);
  transform: translateY(-6px) scale(1.012);
}

.value-grid, .service-grid, .process-steps-grid {
  margin-top: 24px;
}
.value-card {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  border: 1px solid #e1e6ed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
}
.value-card img {
  height: 36px;
  margin-bottom: 12px;
}
.service-card {
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #e1e6ed;
  box-shadow: 0 2px 12px 0 rgba(20,56,107,0.05);
  margin-bottom: 24px;
}
.service-card h3, .service-card h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}
.service-price {
  color: #14386B;
  font-weight: bold;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.1rem;
  margin-top: 14px;
}

/***** Cards for process and steps *****/
.process-step {
  flex: 1 1 200px;
  min-width: 200px;
  max-width: 300px;
  align-items: flex-start;
  padding: 24px 18px 20px 18px;
  box-shadow: 0 1px 6px 0 rgba(20,56,107,0.05);
  border-radius: 13px;
  border-top: 3px solid #76B041;
  text-align: left;
  background: #fff;
  transition: box-shadow .2s, border-color .19s;
}
.process-step img {
  height: 32px;
  margin-bottom: 11px;
}
.process-step:hover {
  border-top: 3px solid #14386B;
  box-shadow: 0 4px 20px 0 rgba(20,56,107,0.13);
}

/***** Timeline Steps (Proceso page) *****/
.step-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  justify-content: flex-start;
}

/***** Benefits list step design *****/
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 24px 0 0 24px;
}
.benefit-list li::before {
  content: '\2014';
  color: #76B041;
  margin-right: 9px;
  font-size: 1.4em;
  vertical-align: baseline;
}

/***** Content grid and flex layouts *****/
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/***** Features / Why Us section *****/
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 18px;
  margin-left: 0;
  margin-bottom: 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1rem;
  color: #18345c;
  background: #fafdfe;
  border-radius: 10px;
  padding: 13px 15px;
  min-height: 48px;
  box-shadow: 0 1px 4px 0 rgba(20,56,107,0.045);
  transition: background 0.2s;
}
.feature-list li img {
  flex: 0 0 28px;
  margin-top: 2px;
  filter: grayscale(40%);
  opacity: 0.75;
}
.feature-list li:hover {
  background: #f2f6f9;
}

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

/***** Testimonials (Home slider, Testimonios page) *****/
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid #e5ebf0;
  box-shadow: 0 2px 12px 0 rgba(20, 56, 107, 0.07);
  padding: 26px 26px 16px 26px;
  border-radius: 16px 3px 16px 3px;
  margin-bottom: 24px;
  color: #202d3b;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 220px;
  max-width: 400px;
  font-size: 1.09rem;
  line-height: 1.6;
  transition: box-shadow 0.18s;
}
.testimonial-card blockquote {
  border-left: 4px solid #76B041;
  background: transparent;
  color: #1a2636;
  padding: 6px 0 6px 16px;
}
.testimonial-card span {
  margin-top: 3px; 
  font-size: 0.97em;
  color: #374256;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.testimonial-card strong {
  font-family: inherit; 
  color: #14386B;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(20,56,107,0.19);
}

/* Ensure contrast in testimonial cards */
.testimonial-card, .testimonial-card p, .testimonial-card blockquote, .testimonial-card span {
  color: #222d3a;
}

/***** FAQ Section *****/
.faq-bar {
  width: 100%;
  margin-bottom: 30px;
}
.faq-bar input[type="search"] {
  width: 100%;
  padding: 12px 22px;
  border: 1px solid #cbd4df;
  border-radius: 9px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #f8fafb;
  outline: none;
  transition: border .2s;
}
.faq-bar input[type="search"]:focus {
  border-color: #14386b;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 21px;
}
.faq-item {
  background: #fff;
  border: 1px solid #e1e6ed;
  border-radius: 10px;
  padding: 19px 23px 17px 23px;
  transition: box-shadow 0.16s;
  box-shadow: 0 1px 6px 0 rgba(20,56,107,0.04);
}
.faq-item h2 {
  font-size: 1.11rem;
  color: #14386B;
  cursor: pointer;
  margin-bottom: 8px;
  font-weight: 600;
  font-family: 'Roboto Slab', Georgia, serif;
}
.faq-answer {
  font-size: 1rem;
  color: #254165;
}

/***** CTA Banner *****/
.cta-banner {
  background: #14386B;
  color: #fff;
  border-radius: 22px;
  margin: 60px 0;
  padding: 45px 0;
  box-shadow: 0 8px 34px 0 rgba(20,56,107,0.14);
  transition: background 0.13s;
}
.cta-banner .btn-primary {
  margin-top: 12px;
}
.cta-banner h2, .cta-banner p {
  color: #fff;
}

/***** Map embed on contact page *****/
.map-embed {
  text-align: left;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.map-embed img {
  border-radius: 9px;
  border: 1px solid #dee6ef;
  box-shadow: 0 2px 10px 0 rgba(44, 54, 66, 0.08);
  width: 100%;
  max-width: 340px;
}

/***** Contact Info Panel *****/
.contact-info-panel {
  background: #f7fafd;
  border: 1px solid #e1e6ed;
  border-radius: 12px;
  padding: 28px 23px 16px 23px;
  margin-bottom: 30px;
}
.contact-info-panel h2 {
  margin-bottom: 11px;
}
.contact-info-panel ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.contact-info-panel li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-info-panel img {
  height: 24px;
  filter: grayscale(30%);
  opacity: 0.85;
}

/***** Hero section *****/
.hero {
  background: #14386B linear-gradient(111deg, #14386B 88%, #eaf0f6 100%);
  padding: 60px 0 58px 0;
  color: #fff;
  border-radius: 0 0 48px 7px;
  box-shadow: 0 3px 32px 0 rgba(20,56,107,0.13);
}
.hero h1 {
  color: #fff;
  font-size: 2.25rem;
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.15rem;
  color: #e5eaf1;
  margin-bottom: 18px;
}
.hero .btn-primary {
  margin-top: 7px;
  background: #76B041;
  color: #fff;
  border: none;
}

/***** Navigation styles *****/
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', 'Segoe UI', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #14386B;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.13s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #76B041;
  border-bottom: 2px solid #76B041;
}

/***** Buttons *****/
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 27px;
  cursor: pointer;
  padding: 0.8em 2.3em;
  box-shadow: 0 2px 10px 0 rgba(20,56,107,0.04);
  transition: background 0.17s, color 0.13s, box-shadow 0.17s, border 0.13s;
  outline: none;
  border: none;
  margin-top: 8px;
  margin-bottom: 7px;
  text-align: center;
}
.btn-primary {
  background: #76B041;
  color: #fff;
  border: 2px solid #76B041;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #14386B;
  color: #fff;
  border: 2px solid #14386B;
  box-shadow: 0 4px 16px 0 rgba(20,56,107,0.09);
}

.btn-secondary {
  background: transparent;
  color: #14386B;
  border: 2px solid #14386B;
}
.btn-secondary:hover,
.btn-secondary:focus {
  color: #fff;
  background: #76B041;
  border: 2px solid #76B041;
}

/***** Hamburger Mobile Navigation *****/
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid #14386B;
  color: #14386B;
  border-radius: 7px;
  padding: 10px 18px;
  font-size: 1.65rem;
  cursor: pointer;
  z-index: 1002;
  transition: background 0.18s, border 0.17s, color 0.16s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #76B041;
}
.auto-hide-nav .main-nav,
.auto-hide-nav .btn-primary {
  display: none !important;
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(20,56,107,0.97);
  z-index: 1200;
  align-items: flex-start;
  justify-content: flex-start;
  transition: transform 0.4s cubic-bezier(.73,-0.1,.45,1.4), opacity 0.28s;
  transform: translateX(100vw);
  opacity: 0;
  will-change: transform, opacity;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  margin: 24px 0 6px 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2em;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 1201;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #76B041;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 55px;
  gap: 17px;
  padding-left: 30px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.22em;
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 600;
  padding: 14px 0 14px 0;
  transition: color 0.14s;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  min-width: 80vw;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #76B041;
}

/***** Cookie Consent Banner *****/
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #f5f8fa;
  border-top: 2px solid #14386B;
  box-shadow: 0 -2px 18px 0 rgba(32,44,80,0.04);
  z-index: 6000;
  width: 100vw;
  padding: 22px 20px 17px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
  transition: transform 0.31s, opacity 0.3s;
}
.cookie-consent-banner.hide {
  transform: translateY(100%);
  opacity: 0;
}
.cookie-consent-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: #14386B;
  color: #fff;
  border: 2px solid #14386B;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.55em 1.7em;
  margin-top: 0;
  margin-bottom: 0;
  margin-right: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.17s, border 0.17s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #76B041;
  color: #fff;
  border-color: #76B041;
}
.cookie-btn.secondary {
  background: transparent;
  color: #14386B;
  border: 2px solid #14386B;
}
.cookie-btn.secondary:hover,.cookie-btn.secondary:focus {
  background: #f2f6f9;
  color: #14386B;
}

/***** Cookie Modal *****/
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(38,48,58,0.36);
  z-index: 6025;
  align-items: center;
  justify-content: center;
  animation: fadeInModalBg .23s both;
}
.cookie-modal.active {
  display: flex;
}

@keyframes fadeInModalBg {
  from { opacity:0; }
  to { opacity:1; }
}

.cookie-modal-content {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 32px 0 rgba(20,56,107,0.1);
  padding: 39px 28px 23px 28px;
  max-width: 380px;
  width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
  animation: fadeInModal .28s 0.05s both;
  position: relative;
}
@keyframes fadeInModal {
  from { transform: scale(.9) translateY(38px); opacity:0; }
  to   { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal-content h2 {
  font-size: 1.23em;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 8px 0 4px 0;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: #76B041;
}
.cookie-modal-close {
  position: absolute; right: 17px; top: 13px;
  border: none;
  background: none;
  color: #14386B;
  font-size: 1.5em;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #76B041;
}

/***** Utility & Animation *****/
@media (max-width: 1100px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  .hero {
    padding: 35px 0 36px 0;
  }
}
@media (max-width: 768px) {
  .header-flex {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .main-nav, .btn-primary:not(.cookie-btn) {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
    margin-right: 14px;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section, section {
    padding: 32px 6px;
  }
  .footer-flex {
    flex-direction: column;
    gap: 18px;
    padding: 22px 0 11px 0;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 13px;
  }
  .footer-contact {
    font-size: 0.97rem;
    gap: 3px;
  }
  .card-container,
  .service-grid,
  .service-list,
  .value-grid,
  .testimonials-slider,
  .step-timeline,
  .process-steps-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
  .card,
  .value-card,
  .service-card,
  .process-step,
  .testimonial-card {
    padding: 21px 13px 17px 13px;
    max-width: 100%;
  }
  .cta-banner {
    padding: 28px 0 29px 0;
    border-radius: 14px;
  }
  .contact-info-panel {
    padding: 18px 9px 12px 13px;
  }
  .map-embed img {
    max-width: 90vw;
  }
  .faq-bar input[type="search"] {
    font-size: 0.98em;
    padding: 10px 9px;
  }
}
@media (max-width: 520px) {
  h1 {font-size: 1.67rem;}
  h2 {font-size: 1.25rem;}
  .hero h1 {font-size: 1.32rem;}
  .footer-contact {font-size: 0.9rem;}
  .btn-primary, .btn-secondary {font-size: 0.97em; padding: 0.8em 1.2em;}
  .card, .testimonial-card, .service-card, .value-card, .process-step {
    padding: 13px 5px 12px 8px;
    font-size: 0.98em;
  }
}

/***** Misc / Quality of Life *****/
::-webkit-input-placeholder { color: #8394aa; }
::-moz-placeholder          { color: #8394aa; }
:-ms-input-placeholder      { color: #8394aa; }
::placeholder              { color: #8394aa; }

/* Focus states */
:focus {
  outline: 2px solid #76B041;
  outline-offset: 1px;
}

/* Table styles if present */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 20px;
  background: #fff;
}
th, td {
  border: 1px solid #e1e6ed;
  padding: 12px 16px;
  text-align: left;
}
th {
  background: #f8fafb;
  font-family: 'Roboto Slab', Georgia, serif;
  color: #14386B;
}
td {
  color: #254165;
}

/* Hide visually */
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
