/* =========================================
   Maestro Acuerdo - Minimalist CSS
   Brand: #24385B, #419D78, #F8F9F9
   Fonts: Montserrat, Open Sans
   ========================================= */

/* CSS RESET & BASELINE */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F8F9F9;
  color: #24385B;
  font-size: 1rem;
  line-height: 1.75;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* TYPOGRAPHY & HEADINGS */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #24385B;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }
h4 { font-size: 1.125rem; }
.subtitle {
  font-size: 1.25rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #24385B;
  font-weight: 400;
  margin-bottom: 28px;
}
p, ul, ol, blockquote {
  margin-bottom: 18px;
}
ul, ol {
  padding-left: 24px;
}
ul { list-style: disc inside none; }
ol { list-style: decimal inside none; }
li {
  margin-bottom: 10px;
  font-size: 1rem;
}
blockquote {
  padding: 16px 28px;
  background: #F8F9F9;
  border-left: 3px solid #419D78;
  font-style: italic;
  margin: 20px 0;
  color: #24385B;
}
a {
  color: #419D78;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #24385B;
  text-decoration: underline;
  outline: none;
}

/* CONTAINER & GRID SYSTEM */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* SECTIONS SPACING & CARD LAYOUTS */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(36, 56, 91, 0.04), 0 0.5px 1.5px rgba(36,56,91,.03);
  padding: 32px 24px 24px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 270px;
  flex: 1 1 300px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px rgba(36,56,91,0.07);
  transform: translateY(-3px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}
.card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 1.5px 6px rgba(36,56,91,.07);
  margin-bottom: 20px;
  max-width: 600px;
  color: #24385B;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  font-weight: 400;
  font-size: 1.125rem;
  color: #24385B;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: #419D78;
  font-weight: 600;
}
.stars {
  font-size: 1.1rem;
  color: #419D78;
  letter-spacing: 1.5px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(36,56,91,0.09);
}

/* HERO & BUTTONS */
.cta, button, .cta.primary, .cta.secondary {
  display: inline-block;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  padding: 12px 36px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  outline: none;
  margin: 8px 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.15s, transform 0.18s;
  min-width: 140px;
}
.cta.primary {
  background: #24385B;
  color: #fff;
  box-shadow: 0 2px 8px rgba(36,56,91,.07);
}
.cta.secondary {
  background: #fff;
  color: #24385B;
  border: 1.5px solid #24385B;
}
.cta.primary:hover, .cta.primary:focus {
  background: #419D78;
  color: #fff;
  box-shadow: 0 8px 36px rgba(65,157,120,0.09);
  transform: translateY(-1px) scale(1.04);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #F8F9F9;
  color: #419D78;
  border-color: #419D78;
  transform: scale(1.03);
}
button {
  background: transparent;
  color: #24385B;
  border: none;
}
button:active {
  outline: 1px solid #419D78;
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(36,56,91,0.05);
  padding: 0 0;
  position: relative;
  z-index: 20;
}
header .container,
header .content-wrapper {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}
.logo {
  display: flex;
  align-items: center;
  height: 68px;
  margin-right: 18px;
}
.logo img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #24385B;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 18px;
  transition: background 0.15s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F8F9F9;
  color: #419D78;
  outline: none;
}
.cta.primary {
  margin-left: 24px;
}

/* MOBILE NAV HAMBURGER - Hide by default, show on mobile */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: none;
  font-size: 2rem;
  color: #24385B;
  padding: 5px 8px;
  margin-left: 16px;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.18s;
  z-index: 60;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #F8F9F9;
  color: #419D78;
  outline: none;
}

/* MOBILE MENU STYLES */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 8px 44px rgba(36,56,91,0.09);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.82,.04,.24,.98);
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #24385B;
  align-self: flex-end;
  margin-bottom: 16px;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #419D78;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  padding: 12px 18px;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #24385B;
  font-weight: 500;
  transition: background 0.18s, color 0.17s;
  width: 100%;
  display: block;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #F8F9F9;
  color: #419D78;
}

/* FOOTER */
footer {
  background: #F8F9F9;
  padding: 38px 0 16px 0;
  color: #24385B;
  border-top: 1px solid #e7ecf1;
}
footer .container {
  max-width: 1100px;
  padding: 0 12px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer-logo {
  height: 40px;
  margin-bottom: 6px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #24385B;
  font-size: 0.95rem;
  border-radius: 8px;
  padding: 2px 8px;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: background 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #e4edea;
  color: #419D78;
  outline: none;
}
.mini-contact {
  font-size: 0.93rem;
  color: #34486B;
  opacity: 0.93;
  margin-top: 8px;
}

/* MISC TEXT SECTIONS */
.text-section {
  margin-bottom: 16px;
}
.text-section ul,
.text-section ol {
  margin-bottom: 8px;
}
.text-section > div {
  margin-bottom: 20px;
}

/* RESPONSIVE - MOBILE FIRST DESIGN */
@media (max-width: 1024px) {
  .container { max-width: 94vw; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
  section, .section { padding: 32px 0; }
}
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding: 0 4vw;
  }
  header .container,
  header .content-wrapper {
    flex-direction: row;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .cta.primary {
    display: none;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    min-width: 0;
    width: 100%;
    padding: 22px 14px 18px 14px;
    margin-bottom: 16px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
  .testimonial-card {
    padding: 15px;
    width: 100%;
    min-width: 0;
  }
  .section,
  section {
    margin-bottom: 38px;
    padding: 28px 0 24px 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .card-grid { flex-direction: column; }
}
@media (max-width: 540px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.18rem; }
  .footer-logo { height: 30px; }
  .container, .section, section {
    padding-left: 0; padding-right: 0;
  }
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 9980;
  background: #fff;
  border-top: 1px solid #e5ece5;
  box-shadow: 0 -2px 22px rgba(36,56,91,0.04);
  padding: 20px 4vw 18px 4vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  font-size: 1rem;
  color: #24385B;
  transition: transform 0.33s cubic-bezier(.83,.13,.36,1);
}
.cookie-consent-banner.hide {
  transform: translateY(160%);
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-consent-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  background: #F8F9F9;
  color: #24385B;
  padding: 8px 20px;
  border-radius: 22px;
  margin: 0 2px;
  border: 1px solid #dbeae8;
  box-shadow: 0 1px 4px rgba(36,56,91,0.03);
  transition: background 0.19s, color 0.19s, border-color 0.19s;
}
.cookie-consent-banner button.accept {
  background: #419D78;
  color: #fff;
  border: none;
}
.cookie-consent-banner button.accept:hover,
.cookie-consent-banner button.accept:focus {
  background: #24385B;
  color: #fff;
}
.cookie-consent-banner button.reject {
  background: #fff;
  color: #24385B;
  border: 1px solid #24385B;
}
.cookie-consent-banner button.reject:hover,
.cookie-consent-banner button.reject:focus {
  background: #419D78;
  color: #fff;
  border-color: #419D78;
}
.cookie-consent-banner button.settings {
  background: #F8F9F9;
  color: #24385B;
  border: 1px solid #419D78;
}
.cookie-consent-banner button.settings:hover,
.cookie-consent-banner button.settings:focus {
  background: #419D78;
  color: #fff;
}
@media (max-width: 768px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 0.97rem;
    padding: 16px 8px 16px 8px;
  }
  .cookie-consent-banner .cookie-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,56,91,0.12);
  z-index: 10010;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.22s cubic-bezier(.83,.13,.36,1);
}
.cookie-modal-overlay.hide {
  pointer-events: none;
  opacity: 0;
}
.cookie-modal {
  background: #fff;
  border-radius: 19px 19px 0 0;
  box-shadow: 0 0 50px 0 rgba(36,56,91,0.16);
  max-width: 440px;
  width: 92vw;
  margin: 0 auto 40px auto;
  padding: 32px 28px 24px 28px;
  color: #24385B;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.3s;
  font-size: 1.05rem;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #24385B;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #419D78;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-pref-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 12px 0 10px 0;
}
.cookie-pref-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.cookie-pref-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 500;
}
.cookie-pref-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #419D78;
  cursor: pointer;
}
.cookie-pref-category input[type="checkbox"][disabled] {
  accent-color: #bbb;
}
.cookie-category-essential [type="checkbox"]:disabled + label:after {
  content: ' (Siempre activo)';
  color: #419D78;
  font-size: 0.95em;
  margin-left: 4px;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 18px;
}
.cookie-modal-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 22px;
  padding: 9px 26px;
  box-shadow: 0 2px 6px rgba(36,56,91,.04);
  border: none;
  background: #24385B;
  color: #fff;
  transition: background 0.19s, color 0.18s;
}
.cookie-modal-actions button.decline {
  background: #fff;
  color: #24385B;
  border: 1.5px solid #24385B;
}
.cookie-modal-actions button.decline:hover,
.cookie-modal-actions button.decline:focus {
  background: #419D78;
  color: #fff;
  border-color: #419D78;
}
.cookie-modal-actions button.accept:hover,
.cookie-modal-actions button.accept:focus {
  background: #419D78;
  color: #fff;
}
@media (max-width: 540px) {
  .cookie-modal {
    max-width: 100vw;
    border-radius: 14px 14px 0 0;
    padding: 22px 6vw 14px 6vw;
  }
}
header {
    display: flex;
    justify-content: space-evenly;
}
/* ================== END ================== */
