/* ===========================================================
   CSS RESET & BASELINE NORMALIZATION
   =========================================================== */
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,
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;
}
body, html {
  height: 100%;
  font-size: 16px;
  background: #F4F2F1;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  color: #204969;
  background-color: #F4F2F1;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 10px;
}
a {
  color: #204969;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B05A00;
  text-decoration: underline;
}
strong { font-weight: 600; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #204969;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
h4 { font-size: 1.25rem; }
.section { margin-bottom: 60px; padding: 40px 20px; }
.container {
  max-width: 1110px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.text-section {
  max-width: 800px;
}
.tagline { color: #B05A00; font-size: 1.125rem; font-weight: 500; margin-bottom: 12px; }
.section > .container { width: 100%; }

/* ===========================================================
   HEADER & NAVIGATION
   =========================================================== */
header {
  background: #204969;
  color: #ffffff;
  width: 100%;
  box-shadow: 0 2px 6px 0 rgba(32,73,105,0.08);
  position: sticky;
  top: 0; z-index: 999;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
  min-height: 72px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  color: #ffffff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 4px 8px;
  border-radius: 4px;
}
header nav a:hover, header nav a:focus {
  color: #F4F2F1;
  background: rgba(32,73,105,0.15);
}
.cta-button {
  background: #B05A00;
  color: #fff !important;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border:none;
  border-radius: 30px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(32,73,105,0.08);
  cursor: pointer;
  margin-left: 10px;
  display: inline-block;
  text-align: center;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: #D98324;
  color: #fff !important;
  box-shadow: 0 4px 16px 0 rgba(32,73,105,0.13);
  text-decoration: none;
}
header img {
  height: 44px;
}

/* BURGER BUTTON & MOBILE NAV */
.mobile-menu-toggle {
  background: #B05A00;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: auto;
  z-index: 1201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #D98324;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,73,105,0.98);
  box-shadow: -2px 0 18px 0 rgba(32,73,105,0.22);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.81,-0.05,.29,1.59);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  margin: 20px 26px 0 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #B05A00;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 60px 0 0 0;
  align-items: center;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
  width: 80%;
  text-align: center;
  margin-bottom: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #204969;
  color: #B05A00;
}

/* Hide nav on mobile, show burger btn */
@media (max-width: 991px) {
  header nav {
    display: none !important;
  }
  .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ===========================================================
   MAIN - SECTIONS & FLEX LAYOUTS
   =========================================================== */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  width: 100%;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  box-shadow: 0 2px 8px rgba(32,73,105,0.08);
  border-radius: 16px;
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 250px;
  flex: 1 1 280px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(32,73,105,0.12);
  transform: translateY(-3px) scale(1.02);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(32,73,105,0.10);
  margin-bottom: 24px;
  flex-direction: column;
  max-width: 600px;
  color: #204969;
}
.testimonial-card blockquote {
  font-style: italic;
  color: #204969;
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.55;
}
.testimonial-card p {
  font-size: 1rem;
  color: #204969;
}
.testimonial-card span,
ul span {
  color: #B05A00;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Features Section: Icon + Text */
section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  margin: 0 0 20px 0;
}
section ul li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 7px rgba(32,73,105,0.08);
  padding: 28px 20px 18px 20px;
  min-width: 235px;
  max-width: 380px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.16s;
}
section ul li img { height: 36px; width: 36px; margin-bottom: 4px; }
section ul li strong { color: #204969; font-size: 1.12rem; }
section ul li p { color: #353535; font-size: 1rem; }
section ul li:hover { box-shadow: 0 6px 24px rgba(32,73,105,0.16); }

/* Ordered Lists (for pasos) */
ol {
  padding-left: 32px;
  margin-bottom: 16px;
}
ol li {
  margin-bottom: 12px;
}

/* ===========================================================
   BUTTONS & INTERACTIVE ELEMENTS
   =========================================================== */
button, .cta-button {
  cursor: pointer;
  outline: none;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
}
button:active, .cta-button:active { transform: translateY(2px) scale(0.97); }

/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  background: #204969;
  color: #F4F2F1;
  padding: 48px 0 30px 0;
  margin-top: 50px;
  width: 100%;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer img {
  height: 38px;
  margin-right: 8px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}
.footer-nav a {
  color: #F4F2F1;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 3px 8px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #B05A00;
  background: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
  color: #F4F2F1;
}
.footer-contact img {
  height: 20px;
  width: 20px;
  vertical-align: middle;
  margin-right: 7px;
}
.brand-tagline {
  color: #B05A00;
  font-size: 0.98rem;
  margin-top: 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  display: block;
  width: 100%;
  opacity: 0.9;
}

/* ===========================================================
   COOKIE CONSENT BANNER & COOKIE MODAL
   =========================================================== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1600;
  background: #fff;
  border-top: 3px solid #B05A00;
  width: 100%;
  box-shadow: 0 -2px 22px 0 rgba(32,73,105,0.07);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: center;
  padding: 22px 20px 22px 20px;
  font-size: 1rem;
  color: #204969;
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  transition: transform 0.3s;
}
#cookie-banner.hide { transform: translateY(120%); }
#cookie-banner .cookie-message {
  flex: 2;
  max-width: 470px;
}
#cookie-banner .cookie-actions {
  flex: 1;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}
.button-cookie {
  padding: 8px 20px;
  border-radius: 6px;
  background: #204969;
  color: #fff !important;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(32,73,105,0.09);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.18s, border 0.18s;
  margin-left: 0;
  outline: none;
}
.button-cookie.button-settings {
  background: #fff;
  color: #204969 !important;
  border: 1px solid #204969;
}
.button-cookie:hover, .button-cookie:focus {
  background: #B05A00;
  color: #fff !important;
  border-color: #B05A00;
}
.button-cookie.button-settings:hover, .button-cookie.button-settings:focus {
  background: #F4F2F1;
  color: #B05A00 !important;
  border-color: #B05A00;
}

#cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,73,105,0.56);
  align-items: center;
  justify-content: center;
  z-index: 1800;
}
#cookie-modal.active {
  display: flex;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from {opacity: 0;} to {opacity: 1;}
}
#cookie-modal .modal-box {
  background: #fff;
  border-radius: 18px;
  padding: 36px 24px 26px 24px;
  box-shadow: 0 4px 48px 4px rgba(32,73,105,0.15);
  max-width: 430px;
  width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  color: #204969;
}
#cookie-modal .modal-header {
  display: flex; align-items: center; justify-content: space-between;
}
#cookie-modal .modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #204969;
}
#cookie-modal .modal-close {
  background: none;
  border: none;
  color: #204969;
  font-size: 1.7rem;
  cursor: pointer;
  position: absolute;
  top: 12px; right: 18px;
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}
#cookie-modal .cookie-category label {
  font-weight: 500;
  font-size: 1rem;
}
#cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: #204969;
  width: 18px;
  height: 18px;
}
#cookie-modal .cookie-category input[disabled] { opacity: 0.5; }
#cookie-modal .modal-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 17px;
}

/* ===========================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =========================================================== */
@media (max-width: 991px) {
  .container {
    padding-left: 9px; padding-right: 9px;
  }
  main > section, .section {
    padding: 35px 6px;
    margin-bottom: 40px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  .brand-tagline { font-size: 0.90rem; }
}
@media (max-width: 768px) {
  .content-grid { flex-direction: column; gap: 14px; }
  .card-container { flex-direction: column; gap: 16px; }
  .footer-nav, .footer-contact, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 14px;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
  section ul, .card-container, .content-grid {
    flex-direction: column;
    gap: 12px !important;
  }
}
@media (max-width: 525px) {
  header .container, footer .container {
    padding-left: 5px; padding-right: 5px;
  }
  .card { padding: 18px 10px; }
  #cookie-banner { flex-direction: column; gap: 13px; padding: 17px 8px; }
  #cookie-banner .cookie-actions { justify-content: center; gap: 10px; }
  #cookie-modal .modal-box { padding: 20px 7px 18px 7px; }
}

/* ===========================================================
   MICRO-INTERACTIONS & TRANSITIONS
   =========================================================== */
.card, .testimonial-card, section ul li {
  transition: box-shadow 0.18s, transform 0.2s;
}
.card:hover, section ul li:hover {
  box-shadow: 0 8px 32px 0 rgba(32,73,105,0.13), 0 0.5px 2px rgba(32,73,105,0.05);
  transform: translateY(-3px) scale(1.01);
}
.cta-button, .button-cookie {
  transition: background 0.2s, color 0.2s, box-shadow 0.24s, transform 0.16s;
}
.cta-button:active, .button-cookie:active {
  box-shadow: 0 2px 10px rgba(32,73,105,0.18);
  transform: scale(0.98);
}
input[type='checkbox'], input[type='radio'] {
  accent-color: #204969;
}

/* ===========================================================
   TYPOGRAPHY SCALE & UTILITIES
   =========================================================== */
.fs-14 { font-size: 0.875rem; }
.fs-16 { font-size: 1rem; }
.fs-18 { font-size: 1.125rem; }
.fs-24 { font-size: 1.5rem; }
.fs-32 { font-size: 2rem; }
.fs-48 { font-size: 3rem; }

.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-20 { gap: 20px; }

/* ===========================================================
   MISC
   =========================================================== */
::-webkit-scrollbar {
  width: 8px;
  background: #F4F2F1;
}
::-webkit-scrollbar-thumb {
  background-color: #204969;
  border-radius: 999px;
}

/* Accessibility improvements */
:focus {
  outline: 2px solid #B05A00;
  outline-offset: 1px;
}

/* ===========================================================
   END OF STYLE.CSS - Hogar Renovado
   =========================================================== */
