/* 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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #f7f8fa;
  color: #224153;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: #224153;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, li, address {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #224153;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.content-wrapper {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(34,65,83,0.05);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  margin-bottom: 60px;
}
/* --- HEADER --- */
header {
  background: #fff;
  border-bottom: 1.5px solid #C8D7AA;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 82px;
}
header img {
  height: 48px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 18px;
  color: #224153;
  border-radius: 10px;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a.active {
  background: #F4D459;
  color: #224153;
  font-weight: 600;
}
.main-nav .cta-primary {
  background: #224153;
  color: #fff;
  font-weight: 700;
  border-radius: 16px;
  padding: 10px 30px;
  margin-left: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 4px 4px 0 0 #F4D459;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #C8D7AA;
  color: #224153;
  box-shadow: 6px 6px 0 0 #224153;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #224153;
  cursor: pointer;
  padding: 6px 16px;
  line-height: 1;
  z-index: 202;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #C8D7AA;
  border-radius: 14px;
}
/* --- MOBILE NAV --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: #224153;
  z-index: 400;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.73,0,.38,1);
  will-change: transform;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
  box-shadow: -6px 0 40px rgba(32,59,84,0.12);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  align-self: flex-end;
  margin: 22px 32px 0 0;
  cursor: pointer;
  z-index: 401;
  transition: color 0.16s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #F4D459;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 54px 0 0 0;
  padding: 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.32rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.04em;
  font-weight: 500;
  border-radius: 12px;
  padding: 12px 0 12px 12px;
  transition: background 0.15s, color 0.15s;
  line-height: 1.3;
  outline: none;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #F4D459;
  color: #224153;
}
@media (max-width: 992px) {
  header .container {
    height: auto;
    min-height: 75px;
    padding-top: 12px;
    padding-bottom: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- HERO & SECTIONS --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}
.hero-principal, .hero-moderna, .hero-construccion, .hero-patrimonio, .hero-eco, .hero-contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #C8D7AA;
  border-radius: 24px 24px 48px 48px / 28px 28px 44px 44px;
  box-shadow: 0 6px 24px -4px rgba(34,65,83,0.08);
  padding: 48px 16px 60px 16px;
  margin-bottom: 40px;
}
.hero-principal h1, .hero-moderna h1, .hero-construccion h1, .hero-patrimonio h1, .hero-eco h1, .hero-contacto h1 {
  color: #224153;
  font-size: 2.8rem;
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
}
.hero-principal h2, .hero-moderna h2, .hero-construccion h2, .hero-patrimonio h2, .hero-eco h2, .hero-contacto h2 {
  margin-top: 8px;
  color: #224153;
  font-size: 1.5rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 28px;
}
.hero-principal .cta-primary,
.hero-moderna .cta-primary,
.hero-construccion .cta-primary,
.hero-patrimonio .cta-primary,
.hero-eco .cta-primary {
  margin-top: 18px;
}
/* --- FEATURE GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 14px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(34,65,83,0.07);
  flex: 1 1 270px;
  min-width: 240px;
  max-width: 350px;
  padding: 32px 18px 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 22px 0 rgba(244,212,89,0.13), 0 1.5px 7px rgba(34,65,83,0.08);
  transform: translateY(-4px) scale(1.013);
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.feature-grid h3 {
  color: #224153;
  font-size: 1.25rem;
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  margin-bottom: 5px;
}
.feature-grid p {
  font-size: 1rem;
  color: #466178;
  line-height: 1.5;
}
/* --- ABOUT / TEXT SECTION --- */
.text-section {
  margin-top: 8px;
  margin-bottom: 8px;
}
.text-section p {
  font-size: 1.05rem;
  color: #466178;
  margin-bottom: 10px;
  line-height: 1.7;
}
.about .text-section p {
  margin-bottom: 16px;
}

/* --- SERVICES --- */
.services .feature-grid {
  margin-top: 20px;
}
.services .feature-grid > div {
  background: #F1F8EB;
  border: 1.5px solid #C8D7AA;
  box-shadow: none;
  transition: border 0.12s, box-shadow 0.12s;
}
.services .feature-grid > div:hover {
  border: 1.7px solid #224153;
  box-shadow: 0 4px 18px rgba(200,215,170,0.15);
}

/* --- TESTIMONIALS --- */
.testimonials {
  background: #FFFDEE;
  border: 2px solid #F4D459;
  border-radius: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px 0 rgba(34,65,83,0.05);
  margin-bottom: 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  min-height: 80px;
  border-left: 8px solid #F4D459;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card:last-child {
  margin-bottom: 0;
}
.testimonial-card p {
  color: #224153;
  font-size: 1.1rem;
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 1rem;
  font-weight: 600;
  color: #466178;
  margin-left: 8px;
  opacity: .95;
}

/* --- CONTACT --- */
.contacto ul,
.info-contacto ul {
  margin: 18px 0 20px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contacto ul li,
.info-contacto ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.contacto ul img,
.info-contacto ul img {
  width: 26px;
  height: 26px;
}
.contacto a.cta-primary {
  margin-top: 16px;
}

/* --- ADDRESS & MAP SECTION --- */
.map-section {
  gap: 20px;
  margin-bottom: 0;
}
.map-section address {
  font-style: normal;
  color: #224153;
  font-weight: bold;
}

/* --- BUTTONS --- */
.cta-primary {
  background: #224153;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.10rem;
  font-weight: 700;
  padding: 12px 34px;
  border: none;
  border-radius: 28px;
  box-shadow: 4px 4px 0 0 #F4D459;
  cursor: pointer;
  outline: none;
  display: inline-block;
  letter-spacing: 0.08em;
  margin-top: 5px;
  margin-bottom: 8px;
  transition: background 0.22s, color 0.2s, box-shadow 0.22s, transform 0.13s;
  text-shadow: none;
  position: relative;
  z-index: 1;
}
.cta-primary:hover, .cta-primary:focus {
  background: #C8D7AA;
  color: #224153;
  box-shadow: 6px 6px 0 0 #224153;
  transform: translateY(-2px) scale(1.014);
}

/* --- CARDS & CONTENT FLEX LAYOUTS --- */
.card-container, .card-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(34,65,83,.06);
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  min-width: 260px;
  max-width: 345px;
  flex: 1 1 280px;
  transition: box-shadow 0.19s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 8px 22px 0 rgba(34,65,83,0.11), 0 3px 10px #F4D45933;
  transform: translateY(-6px) scale(1.03);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- COMPARISON TABLE --- */
.comparison-chart {
  overflow-x: auto;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(34,65,83,0.04);
}
.comparison-chart table {
  border-collapse: collapse;
  min-width: 350px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.comparison-chart th, .comparison-chart td {
  border: 1.5px solid #C8D7AA;
  padding: 10px 22px;
  text-align: left;
  color: #224153;
}
.comparison-chart th {
  background: #C8D7AA;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.12rem;
}
.comparison-chart tbody tr:nth-child(even) {
  background: #F7F8FA;
}

/* --- FOOTER --- */
footer {
  background: #224153;
  color: #fff;
  padding: 32px 0 0 0;
  border-top: 4px solid #F4D459;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}
.footer-links {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-links a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 8px;
  padding: 6px 10px;
  transition: background 0.17s, color 0.16s;
}
.footer-links a:hover, .footer-links a:focus {
  background: #F4D459;
  color: #224153;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.footer-social img {
  width: 33px;
  height: 33px;
  border-radius: 6px;
  transition: filter 0.18s, box-shadow 0.17s;
  box-shadow: 0 2px 8px rgba(200,215,170,0.08);
}
.footer-social img:hover {
  box-shadow: 0 8px 24px #F4D45944;
  filter: brightness(1.14);
}
.footer-copy {
  margin: 0;
  font-size: .97rem;
  color: #C8D7AA;
  letter-spacing: 0.013em;
  border-top: 1.5px solid #C8D7AA;
  padding: 18px 0 14px 0;
  text-align: right;
  opacity: .86;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #224153;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -3px 24px #22415333;
  padding: 22px 12px 20px 12px;
  font-size: 1.03rem;
  animation: cookie-slide-in 0.65s cubic-bezier(.85,0,.4,1);
  gap: 18px;
}
@keyframes cookie-slide-in {
  0% { transform: translateY(120%); opacity: .1; }
  90% { transform: translateY(-6px); opacity: .96; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner strong {
  color: #F4D459;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 20px;
  border: none;
  margin: 0 2px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
}
.cookie-accept {
  background: #F4D459;
  color: #224153;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #C8D7AA;
}
.cookie-reject {
  background: #fff;
  color: #224153;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #F4D459;
}
.cookie-settings {
  background: #C8D7AA;
  color: #224153;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #F4D459;
  color: #224153;
}
/* -- COOKIE MODAL -- */
.cookie-modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed; inset: 0;
  z-index: 10000;
  background: rgba(34,65,83,0.75);
  animation: modal-fade-in 0.41s;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #224153;
  border-radius: 18px;
  max-width: 400px;
  width: 90vw;
  box-shadow: 0 12px 44px 0 #22415322, 0 1.5px 5px #F4D45925;
  padding: 34px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h2 {
  color: #224153;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 0;
}
.cookie-modal .cookie-toggle {
  width: 40px;
  height: 22px;
  background: #C8D7AA;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 14px;
  margin-right: 7px;
}
.cookie-modal .cookie-toggle.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-modal .cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  position: absolute;
}
.cookie-modal .cookie-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  height: 18px;
  width: 18px;
  background: #224153;
  border-radius: 50%;
  transition: left 0.21s cubic-bezier(.6,0,.53,1);
}
.cookie-modal .cookie-toggle input:checked ~ .cookie-slider {
  left: 20px;
  background: #F4D459;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  padding: 8px 22px;
  border-radius: 18px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  background: #224153;
  color: #fff;
  margin-left: 4px;
  transition: background .2s, color .2s;
}
.cookie-modal .cookie-modal-actions button:hover,
.cookie-modal .cookie-modal-actions button:focus {
  background: #C8D7AA;
  color: #224153;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.45rem;
  border: none;
  background: none;
  color: #224153;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal .close-modal:hover {
  color: #F4D459;
}

/* --- MISC ELEMENTS (LISTS, OL) --- */
ul, ol {
  margin-bottom: 16px;
  margin-top: 0;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 1rem;
  word-break: break-word;
}
ol {
  list-style-type: decimal;
  padding-left: 22px;
}
ul {
  list-style-type: disc;
  padding-left: 18px;
}

/* --- RESPONSIVE (MOBILE-FIRST) --- */
@media (max-width: 992px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .main-nav {
    display: none;
  }
  section {
    margin-bottom: 42px;
    padding: 24px 6px;
  }
  .content-wrapper {
    padding: 26px 8px;
    margin-bottom: 41px;
    border-radius: 12px;
  }
  .feature-grid {
    gap: 14px;
    justify-content: center;
  }
  .feature-grid > div {
    padding: 21px 8px 16px 8px;
    max-width: 97vw;
  }
  .testimonial-card {
    padding: 14px 10px;
    border-left-width: 4px;
  }
  .footer-copy {
    text-align: center;
    font-size: .93rem;
  }
  .footer-links {
    gap: 13px;
    justify-content: center;
  }
  .footer-social {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.00rem; }
  h2 { font-size: 1.35rem; }
  .hero-principal, .hero-moderna, .hero-construccion, .hero-patrimonio, .hero-eco, .hero-contacto {
    font-size: 1rem;
    padding: 27px 7px 38px 7px;
    border-radius: 14px 14px 24px 24px / 14px 14px 28px 28px;
  }
  .feature-grid, .content-grid, .card-container, .card-grid {
    flex-direction: column;
    gap: 17px;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .cookie-modal {
    padding: 23px 7px 12px 7px;
  }
}
@media (max-width: 500px) {
  header img {
    height: 32px;
  }
  h1, .hero-principal h1, .hero-moderna h1, .hero-patrimonio h1, .hero-eco h1, .hero-contacto h1 {
    font-size: 1.25rem;
  }
  .cookie-banner {
    font-size: 0.94rem;
    flex-direction: column;
    gap: 8px;
    padding: 14px 5px 12px 5px;
  }
}

/* --- GEOMETRIC: SHAPES AND ANGULAR DETAILS --- */
section, .content-wrapper, .card, .feature-grid > div {
  position: relative;
  /* Decorative corners */
  /* Simulate geometric style, tile corners */
}
section::before,
.content-wrapper::before {
  content: '';
  display: block;
  position: absolute;
  top: -14px; left: -14px;
  width: 28px; height: 28px;
  border-top: 5px solid #224153CC;
  border-left: 5px solid #C8D7AA;
  border-top-left-radius: 9px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}
section::after,
.content-wrapper::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -14px; right: -14px;
  width: 26px; height: 26px;
  border-bottom: 5px solid #F4D459;
  border-right: 5px solid #224153DD;
  border-bottom-right-radius: 14px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.42;
}
.hero-principal::before, .hero-principal::after,
.hero-moderna::before, .hero-moderna::after,
.hero-construccion::before, .hero-construccion::after,
.hero-patrimonio::before, .hero-patrimonio::after,
.hero-eco::before, .hero-eco::after,
.hero-contacto::before, .hero-contacto::after {
  display: none;
}

/* MEDIA FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Montserrat:wght@400;600;700&display=swap');
