/* ==== CSS RESET ==== */
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background: #F2EAD3;
  color: #26313B;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}
*::-webkit-scrollbar {
  width: 10px;
  background: #ececec;
}
*::-webkit-scrollbar-thumb {
  background: #7A9896;
  border-radius: 12px;
}

/* ==== GENERIC FLEX CONTAINERS ==== */
.container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ============================
   TYPOGRAPHY - DISPLAY FONTS
============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  margin-bottom: 8px;
  color: #26313B;
  letter-spacing: .02em;
}
h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 2px 3px 0 #7A9896, 0 6px 24px rgba(38,49,59,0.12);
}
h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: .015em;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 600;
}

/* artistic accent:
add wavy/textured underline to section titles */
h2 {
  position: relative;
  margin-bottom: 12px;
}
h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 7px;
  background: #7A9896;
  border-radius: 7px;
  margin-top: 6px;
  opacity: .7;
  background-image: repeating-linear-gradient(
    -45deg, #F2EAD3 0 5px, #7A9896 6px 12px
  );
}

p, ul, ol, li {
  font-size: 1rem;
  color: #353535;
}
p {
  margin-bottom: 12px;
}
ul, ol {
  margin-left: 18px;
  margin-bottom: 10px;
}

strong {
  color: #26313B;
  font-weight: 700;
}
a {
  color: #298782;
  text-decoration-skip-ink: auto;
  transition: color 0.2s linear;
  font-weight: 500;
  outline: none;
}
a:hover, a:focus {
  color: #26313B;
  text-decoration: underline wavy #7A9896 2px;
}

/* ==== BUTTONS & CTA ==== */
.cta, .button, button, .mobile-menu-toggle, .cookie-banner button, .cookie-modal button {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  padding: 13px 32px;
  background: #26313B;
  color: #F2EAD3;
  border: none;
  border-radius: 2em;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .05em;
  margin: 8px 0 0 0;
  cursor: pointer;
  box-shadow: 0 4px 18px 0 rgba(38,49,59,0.09), 0 2px 4px rgba(122,152,150,0.09);
  transition: background 0.2s, color .2s, transform .15s;
  outline: none;
  position: relative;
  z-index: 2;
}
.cta:hover, .button:hover, button:hover, .cookie-banner button:hover, .cookie-modal button:hover,
.cta:focus, .button:focus, button:focus, .cookie-banner button:focus, .cookie-modal button:focus {
  background: #7A9896;
  color: #26313B;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 22px 0 rgba(38,49,59,0.15), 0 3px 8px rgba(122,152,150,0.11);
}
.cta {
  margin-top: 12px;
  display: inline-block;
  min-width: 180px;
  text-align: center;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: #26313B;
  color: #F2EAD3;
  padding: 0;
  border-bottom-left-radius: 40px 16px;
  border-bottom-right-radius: 40px 16px;
  box-shadow: 0 8px 36px rgba(122,152,150,.1);
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 18px;
}
header img[alt="Rasgos de Chile Arquitectura"] {
  height: 58px;
  width: auto;
  flex-shrink: 0;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  color: #F2EAD3;
  padding: 7px 16px;
  border-radius: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: background .16s, color .16s;
  letter-spacing: .02em;
}
header nav a:hover, header nav a:focus {
  background: #F2EAD3;
  color: #26313B;
}
header nav a.cta {
  background: #7A9896;
  color: #26313B;
  margin-left: 14px;
  border-radius: 22px;
  font-weight: 900;
  box-shadow: 0 2px 10px 0 rgba(38,49,59,0.13);
}
header nav a.cta:hover, header nav a.cta:focus {
  background: #F2EAD3;
  color: #26313B;
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  background: #7A9896;
  color: #26313B;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 1px 10px rgba(38,49,59,0.14);
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  transition: background .2s;
  margin-left: 12px;
  position: relative;
  z-index: 10;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #26313B;
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 100vw; /* hidden off-canvas */
  width: 100vw;
  height: 100vh;
  background: #F2EAD3;
  box-shadow: -8px 0 32px rgba(38,49,59,0.18);
  z-index: 200;
  flex-direction: column;
  display: flex;
  align-items: flex-start;
  padding: 40px 28px 24px 28px;
  transition: left .34s cubic-bezier(.77,0,.175,1);
}
.mobile-menu.open {
  left: 0;
  transition: left .32s cubic-bezier(.77,0,.175,1);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #26313B;
  color: #F2EAD3;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  box-shadow: 0 1px 10px rgba(38,49,59,0.12);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  justify-content: flex-start;
}
.mobile-nav a {
  padding: 16px 12px;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #26313B;
  border-radius: 18px;
  background: transparent;
  text-decoration: none;
  font-weight: 700;
  transition: background .18s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #7A9896;
  color: #F2EAD3;
}
.header-blur {
  filter: blur(3px) brightness(.94) grayscale(.16);
  pointer-events: none;
  user-select: none;
}

/* =============================
   HERO SECTION
============================= */
.hero {
  background: #7A9896;
  color: #26313B;
  border-bottom-left-radius: 60px 18px;
  border-bottom-right-radius: 60px 18px;
  margin-bottom: 48px;
  padding: 64px 0 54px 0;
  box-shadow: 0 32px 70px -30px #26313B22;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero h1 {
  color: #252627;
  font-size: 2.4rem;
  letter-spacing: .008em;
  text-shadow: 0 6px 20px #F2EAD330;
}
.hero p {
  color: #26313B;
  font-weight: 600;
  font-size: 1.125rem;
  text-shadow: 0 1px 6px #F2EAD39a;
}

/* ==========================
   SECTIONS & SPACING RULES
=========================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
section:last-child {
  margin-bottom: 0;
}

/* feature grid (displayed as cards) */
.feature-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.feature-grid > div, .card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 26px 0 rgba(122,152,150,0.09);
  padding: 32px 26px;
  margin-bottom: 20px;
  flex: 1 1 250px;
  min-width: 260px;
  max-width: 360px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .18s, transform .18s;
}
.feature-grid > div:hover, .card:hover {
  box-shadow: 0 8px 38px 0 rgba(38,49,59,0.14),0 3px 16px #7A98962d;
  transform: translateY(-5px) scale(1.019);
  z-index: 1;
}
.feature-grid img, .card img {
  max-width: 64px;
  max-height: 64px;
  margin-bottom: 18px;
  display: block;
  border-radius: 13px;
}
.feature-grid h3, .card h3 {
  margin-bottom: 8px;
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  color: #26313B;
  font-size: 1.14rem;
  font-weight: 800;
}
.feature-grid p, .card p {
  color: #353535;
  font-size: 1rem;
  line-height: 1.6;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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: 18px;
  box-shadow: 0 3px 24px 0 rgba(122,152,150,0.18);
  margin-bottom: 20px;
  font-size: 1.08rem;
  position: relative;
  transition: box-shadow 0.17s, transform .17s;
}
.testimonial-card p {
  color: #26313B;
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: .98rem;
  color: #7A9896;
  font-style: italic;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-left: 16px;
}
.testimonial-card:hover {
  box-shadow: 0 12px 36px rgba(38,49,59,0.17);
  transform: translateY(-3px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-container {
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.text-section {
  padding: 19px 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 12px rgba(122,152,150,0.08);
  margin-bottom: 20px;
}
.text-section ul, .text-section ol {
  margin-bottom: 0;
}

/* ================
   LISTS & OL/UL
=================*/
ol, ul {
  padding-left: 1.4em;
}
ol li, ul li {
  margin-bottom: 6px;
}
ol li strong, ul li strong {
  color: #26313B;
}

/* =============
   FOOTER
============== */
footer {
  background: #26313B;
  color: #F2EAD3;
  border-top-left-radius: 38px 9px;
  border-top-right-radius: 38px 9px;
  padding: 44px 0 30px 0;
  box-shadow: 0 -3px 32px #7A989611;
  position: relative;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 44px;
  justify-content: space-between;
  align-items: flex-start;
}
footer p, footer strong {
  color: #F2EAD3;
  font-size: .99rem;
  line-height: 1.5;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
footer nav a {
  color: #F2EAD3;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .98rem;
  font-weight: 500;
  transition: color .17s;
}
footer nav a:hover, footer nav a:focus {
  color: #7A9896;
  text-decoration: underline wavy #7A9896 2px;
}

/* ==============
   COOKIE BANNER
================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #26313B;
  color: #F2EAD3;
  width: 100%;
  z-index: 5000;
  box-shadow: 0 -3px 18px #26313B28;
  padding: 22px 24px 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: transform 0.35s;
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(170%);
  transition: transform .3s;
}
.cookie-banner .cookie-text {
  color: #F2EAD3;
  font-size: 1rem;
  flex: 2 1 200px;
}
.cookie-banner .button-group {
  display: flex;
  gap: 12px;
}
.cookie-banner button {
  padding: 10px 18px;
  border-radius: 1.7em;
  border: none;
  font-size: .98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  min-width: 110px;
  color: #26313B;
  background: #F2EAD3;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.cookie-banner button.accept {
  background: #7A9896;
  color: #26313B;
}
.cookie-banner button.reject {
  background: #F2EAD3;
  color: #26313B;
}
.cookie-banner button.settings {
  background: transparent;
  color: #F2EAD3;
  border: 2px solid #7A9896;
  font-weight: 700;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #298782;
  color: #F2EAD3;
}

/* ===============
  COOKIE MODAL
================ */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.98);
  background: #fff;
  color: #26313B;
  border-radius: 22px;
  box-shadow: 0 9px 48px rgba(38,49,59,0.24);
  padding: 34px 30px 28px 30px;
  z-index: 5100;
  min-width: 300px;
  max-width: 94vw;
  width: 400px;
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: modalIn .4s cubic-bezier(0.6,0,.68,1) 1;
}
.cookie-modal.open {
  display: flex;
}
@keyframes modalIn {
  0% {opacity: 0; transform: translate(-50%,-42%) scale(.93);}
  100% {opacity: 1; transform: translate(-50%,-50%) scale(1);}
}
.cookie-modal h3 {
  margin-bottom: 13px;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #7A9896;
  margin-right: 10px;
  width: 20px; height: 20px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal button {
  min-width: 110px;
  padding: 9px 17px;
  border-radius: 1.7em;
  font-size: .98rem;
  background: #7A9896;
  color: #26313B;
  font-weight: 700;
}
.cookie-modal button.close {
  background: #F2EAD3;
  color: #26313B;
  border: 2px solid #7A9896;
}
.cookie-modal button:focus, .cookie-modal button:hover {
  background: #26313B;
  color: #F2EAD3;
}

/* ================
 ACCESSIBILITY
================ */
:focus {
  outline: 2.5px solid #7A9896;
  outline-offset: 2px;
}
[tabindex]:focus-visible {
  outline: 2.5px solid #298782;
}

/* =============
   RESPONSIVE
============== */
@media (max-width: 1200px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 1000px) {
  .feature-grid > div, .card {
    min-width: 220px;
    padding: 24px 14px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 880px) {
  .feature-grid, .card-container {
    gap: 14px;
  }
  .feature-grid > div, .card {
    max-width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
  section {
    padding: 32px 8px;
    margin-bottom: 40px;
  }
  .hero {
    padding: 36px 0 24px 0;
    margin-bottom: 28px;
  }
}
@media (max-width: 800px) {
  .container {
    max-width: 100vw;
    padding-left: 9px;
    padding-right: 9px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .content-wrapper {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  header nav {
    display: none;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-wrapper {
    gap: 14px;
  }
  .hero .container {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0; padding-bottom: 0;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  section {
    padding: 18px 4px;
    margin-bottom: 28px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 13px;
  }
  .card-container {
    flex-direction: column;
    gap: 13px;
  }
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .text-section {
    padding: 12px 6px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.23rem;
  }
  h2 {
    font-size: 1rem;
  }
  .feature-grid > div, .card {
    padding: 12px 7px;
  }
  .cta, .button, button, .cookie-banner button, .cookie-modal button {
    padding: 9px 12px;
    font-size: 1rem;
  }
  .mobile-menu {
    padding: 24px 7px 14px 7px;
  }
}

/* == Creative extra micro-interactions for creative/artistic == */
.cta::after {
  content: '';
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  width: 17px;
  height: 17px;
  border-radius: 22px;
  background: #F2EAD3;
  border: 2px solid #7A9896;
  box-shadow: 0 1px 8px 0 #7A989632;
  transition: background .18s;
  position: relative;
}
.cta:hover::after, .cta:focus::after {
  background: #7A9896;
  border-color: #26313B;
}

/* Artistic wavy divider for content separation */
.section-divider {
  display: flex;
  width: 100%;
  height: 16px;
  background: none;
  background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="16" viewBox="0 0 200 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 10 Q 40 2 70 9 Q 120 25 200 9" stroke="%237A9896" stroke-width="3" fill="none"/></svg>');
  background-repeat: repeat-x;
  background-position: center;
  margin: 24px 0 32px 0;
}

/* Artistic highlight (for text) */
.artistic-highlight {
  background: #F2EAD3;
  color: #26313B;
  box-shadow: 0 1px 12px #7A989629;
  padding: 2px 6px;
  border-radius: 7px;
  font-weight: 800;
  font-size: 1.07em;
}

/* ============
   PRINT
============= */
@media print {
  nav, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body, .container, section, .hero { box-shadow: none !important; background: #fff !important; color: #26313B; }
}
