/* CSS 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  min-height: 100vh;
  background: #FFF8F4;
  color: #205B8B;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  background-color: #FFF8F4;
}
img { max-width: 100%; height: auto; display: block; border-radius: 12px; }
strong, b { font-weight: 700; }
a { color: #207868; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #146244; text-decoration: underline; }
ul, ol { list-style: none; }

/* BRAND FONTS */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #205B8B;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 10px; }

p, li {
  font-size: 1rem;
  color: #205B8B;
}
p { margin-bottom: 16px; }


/* CONTAINER & SECTIONS */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(32,91,139,0.08);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF8F4;
  border-radius: 16px;
  box-shadow: 0 4px 20px 0 rgba(32,91,139,0.06);
  padding: 28px 24px;
  flex: 1 1 270px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 36px 0 rgba(32,91,139,0.14);
}

.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;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: #FFF8F4;
  border-left: 5px solid #207868;
  border-radius: 15px;
  box-shadow: 0 4px 24px 0 rgba(32,91,139,0.07);
  margin-bottom: 20px;
  color: #205B8B;
  max-width: 620px;
  margin-left: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.testimonial-card blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: #205B8B;
  margin-bottom: 4px;
  opacity: 0.95;
}
.testimonial-card p {
  color: #146244;
  margin-bottom: 0;
}
.testimonial-card div {
  color: #fabb56;
  font-size: 1.3rem;
  letter-spacing: 3px;
}

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

/* NAVIGATION */
header {
  width: 100%;
  background: #205B8B;
  color: #fff;
  box-shadow: 0 2px 14px 0 rgba(32,91,139,0.08);
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
  position: relative;
  z-index: 100;
  margin-bottom: 20px;
}
header nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
}
header nav a img {
  height: 34px;
  border-radius: 10px;
}
header nav ul {
  display: flex;
  flex-direction: row;
  gap: 16px;
  list-style: none;
  align-items: center;
}
header nav ul li a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #fff;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 10px;
  transition: background 0.18s;
}
header nav ul li a:hover, header nav ul li a.active {
  background: #146244;
  color: #FFF8F4;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: #207868;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 12px;
  padding: 4px 16px;
  position: absolute;
  right: 18px;
  top: 18px;
  cursor: pointer;
  z-index: 300;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #146244;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #205B8B;
  color: #fff;
  z-index: 9999;
  padding-top: 28px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.57,.06,.5,.95);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 10px 20px;
  position: absolute;
  right: 8px;
  top: 8px;
  cursor: pointer;
  z-index: 10001;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-top: 40px;
  padding-left: 36px;
}
.mobile-nav a {
  color: #FFF8F4;
  font-size: 1.15rem;
  padding: 12px 18px;
  border-radius: 8px;
  width: 100%;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: #146244;
  color: #fff;
}

@media (max-width: 1020px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  header nav ul { gap: 8px; }
}
@media (max-width: 768px) {
  header nav ul { display: none; }
  .mobile-menu-toggle { display: block; }
  header nav a img { height: 32px; }
  .container { padding: 0 8px; }

  .section { padding: 30px 8px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }

  .testimonial-card {
    padding: 14px 13px;
    max-width: 98vw;
  }
  .content-grid, .card-container {
    flex-direction: column;
  }
}

/* FOOTER */
footer {
  background: #E1E9F2;
  color: #205B8B;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 32px 12px 18px 12px;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  margin-top: 60px;
  box-shadow: 0 -3px 18px 0 rgba(32,91,139,0.06);
}
footer img {
  margin-bottom: 10px;
  height: 38px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-size: 0.99rem;
}
footer nav a {
  color: #205B8B;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.14s;
}
footer nav a:hover {
  background: #207868;
  color: #FFF8F4;
}
footer p {
  margin-top: 8px;
  font-size: 0.97rem;
}

/* BUTTONS & CTA */
.cta-btn, button, input[type="submit"], .btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  background: #207868;
  color: #FFF8F4;
  border: none;
  border-radius: 14px;
  padding: 13px 30px;
  margin-top: 8px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(20,98,68,0.04);
  letter-spacing: 0.04em;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.17s;
  outline: none;
}
.cta-btn:hover, button:hover, .btn:hover,
.cta-btn:focus, button:focus, .btn:focus {
  background: #146244;
  color: #FFF8F4;
  box-shadow: 0 8px 26px 0 rgba(20,98,68,0.09);
  transform: translateY(-2px) scale(1.025);
}
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* INPUTS, FORMS, SELECTS */
input[type="search"],
input[type="text"],
input[type="email"],
select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #E1E9F2;
  padding: 9px 15px;
  margin-right: 7px;
  margin-bottom: 8px;
  background: #fff;
  color: #205B8B;
  outline: none;
  transition: border 0.15s, box-shadow 0.14s;
  box-shadow: 0 1px 6px 0 rgba(32,91,139,0.04);
}
input[type="search"]:focus, input[type="text"]:focus, select:focus {
  border: 1.5px solid #207868;
  box-shadow: 0 2px 14px 0 rgba(32,91,139,0.09);
}

/* PRODUCT LISTING CATALOGO */
.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.product-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #FFFFFF;
  padding: 23px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 14px 0 rgba(32,91,139,0.10);
  margin-bottom: 20px;
  font-size: 1.05rem;
  position: relative;
  min-width: 210px;
  flex: 1 1 270px;
  transition: box-shadow 0.16s;
}
.product-list li:hover {
  box-shadow: 0 8px 28px 0 rgba(32,91,139,0.16);
}
.product-list img {
  width: 38px;
  height: 38px;
  margin-right: 8px;
  border-radius: 10px;
  background: #E1E9F2;
}
.product-list button {
  background: #205B8B;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.96rem;
  margin-left: 12px;
}
.product-list button:hover {
  background: #146244;
}
.product-list span {
  font-weight: 600;
  color: #207868;
  font-size: 1.06rem;
}

/* SERVICES LIST (servicios.html) */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.services-list li {
  background: #FFFFFF;
  border-radius: 15px;
  box-shadow: 0 2px 10px 0 rgba(32,91,139,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 23px 20px;
  flex: 1 1 210px;
  min-width: 210px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s;
}
.services-list li img {
  width: 40px;
  height: 40px;
  margin-bottom: 7px;
}
.services-list li h3 {
  font-size: 1.1rem;
  color: #146244;
  margin: 0 0 7px 0;
}
.services-list li span {
  color: #205B8B;
  font-weight: 600;
}
.services-list li:hover {
  box-shadow: 0 8px 32px 0 rgba(32,91,139,0.13);
}

/* ACCENT & UI DECORATIONS */
.section, .card, .testimonial-card, .services-list li, .product-list li {
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(32,91,139,0.05);
}

ul li img {
  margin-right: 7px;
  vertical-align: middle;
  width: 20px;
  height: 20px;
}
ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

/* FAQ PAGE */
.text-section h3 {
  font-size: 1.06rem;
  color: #146244;
  margin-top: 18px;
  margin-bottom: 2px;
}
.text-section h3:first-child { margin-top: 0; }
.text-section p a {
  font-weight: 600;
  color: #207868;
  text-decoration: underline;
}
.text-section p a:hover {
  color: #146244;
}

/* --- INTERACTIVE --- */
::-webkit-input-placeholder { color: #BBBBBB; }
::-moz-placeholder { color: #BBBBBB; }
:-ms-input-placeholder { color: #BBBBBB; }
::placeholder { color: #BBBBBB; opacity: 1; }

/* Focus Styles */
a:focus, button:focus, input:focus, select:focus {
  outline: 2px dashed #207868;
  outline-offset: 2px;
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20000;
  background: #205B8B;
  color: #FFF8F4;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 26px;
  box-shadow: 0 -4px 24px 0 rgba(32,91,139,0.11);
  font-size: 1rem;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  animation: cookieSlideUp 0.37s cubic-bezier(.6,.09,.3,1.12);
}
@keyframes cookieSlideUp {
  from { transform: translateY(200px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: #fff;
  margin: 0 10px 0 0;
  flex: 1 1 320px;
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.cookie-consent-banner button {
  border-radius: 8px;
  border: none;
  padding: 8px 22px;
  background: #207868;
  color: #fff;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(20,98,68,0.07);
  transition: background 0.15s, color 0.12s;
}
.cookie-consent-banner button.accept { background: #207868; }
.cookie-consent-banner button.accept:hover { background: #146244; }
.cookie-consent-banner button.reject { background: #E1E9F2; color: #205B8B; }
.cookie-consent-banner button.reject:hover { background: #c8d6e7; }
.cookie-consent-banner button.settings { background: #205B8B; color: #fff; border: 1px solid #E1E9F2; }
.cookie-consent-banner button.settings:hover { background: #207868; }
@media (max-width: 650px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 8px;
    font-size: 0.98rem;
  }
  .cookie-consent-banner p {
    flex: initial;
    margin: 0 0 8px 0;
  }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,91,139,0.32);
  z-index: 21000;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
  animation: modalFadeIn 0.2s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #FFF8F4;
  color: #205B8B;
  border-radius: 18px;
  padding: 38px 32px 28px 32px;
  box-shadow: 0 10px 44px 0 rgba(32,91,139,0.15);
  min-width: 320px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-modal-content h2 {
  font-size: 1.3rem;
  color: #207868;
  margin-bottom: 10px;
}
.cookie-modal-content .modal-close {
  border: none;
  background: transparent;
  color: #205B8B;
  font-size: 1.6rem;
  position: absolute;
  right: 16px;
  top: 14px;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 9px;
  transition: background 0.12s;
}
.cookie-modal-content .modal-close:hover {
  background: #E1E9F2;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-size: 1.01rem;
}
.cookie-category label {
  flex: 1;
  color: #205B8B;
  font-weight: 600;
}
.cookie-category input[type="checkbox"] {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  accent-color: #207868;
}
.cookie-category input[disabled] { opacity: 0.65; cursor: not-allowed; }
.cookie-category .always-on {
  color: #207868;
  background: #E1E9F2;
  font-size: 0.99rem;
  border-radius: 6px;
  padding: 1px 8px;
  margin-left: 12px;
}
.cookie-modal-content .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}
.cookie-modal-content button {
  border-radius: 8px;
  border: none;
  padding: 9px 24px;
  font-size: 1rem;
  background: #207868;
  color: #fff;
  font-weight: 600;
  transition: background 0.15s;
}
.cookie-modal-content button.save {
  background: #207868;
}
.cookie-modal-content button.save:hover { background: #146244; }
.cookie-modal-content button.cancel {
  background: #E1E9F2;
  color: #205B8B;
}
.cookie-modal-content button.cancel:hover { background: #c8d6e7; }

@media (max-width: 520px) {
  .cookie-modal-content {
    min-width: unset;
    padding: 20px 4vw 18px 5vw;
    font-size: 0.99rem;
  }
}

/* ANIMATIONS AND MICRO-INTERACTIONS */
.card, .testimonial-card, .services-list li, .product-list li { transition: box-shadow 0.19s; }
.cta-btn, button, .btn { transition: background 0.17s, color 0.17s, box-shadow 0.17s, transform 0.17s; }
.mobile-menu { will-change: transform; }

/* COLOR ACCESSIBILITY CONTRAST (Testimonios/Reviews) */
.testimonial-card {
  background: #FFF8F4;
  color: #205B8B;
  border-left: 5px solid #207868;
}
.testimonial-card blockquote, .testimonial-card p {
  color: #205B8B;
}

/* VISUAL HIERARCHY SPACING */
.section, .card, .testimonial-card, .services-list li, .product-list li, .content-wrapper, .text-section, .feature-item {
  margin-bottom: 20px;
}
.card:not(:last-child), .testimonial-card:not(:last-child), .services-list li:not(:last-child), .product-list li:not(:last-child) {
  margin-bottom: 20px;
}

/* RESPONSIVE LAYOUTS & FLEXBOX ONLY */
@media (max-width: 1024px) {
  .content-grid,
  .card-container,
  .services-list,
  .product-list,
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 640px) {
  .section {
    margin-bottom: 28px;
    padding: 18px 2vw;
  }
  h1 { font-size: 1.35rem; }
}

/* ENSURE MINIMUM 20PX SPACING BETWEEN CARDS/SECTIONS */
.section + .section, .card + .card, .testimonial-card + .testimonial-card, .services-list li + .services-list li {
  margin-top: 20px;
}

/* UTILITY CLASSES */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.pt-16 { padding-top: 16px; }

/* Prevent overlapping on small screens */
@media (max-width: 390px) {
  .section, .card, .testimonial-card, .services-list li, .product-list li {
    padding-left: 0;
    padding-right: 0;
    min-width: 0;
  }
}
