/* ===== CSS RESET & BASE ===== */
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;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  background: #FAFAFA;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #26323A;
  background: #FAFAFA;
  min-height: 100vh;
  line-height: 1.6;
}
a {
  color: #27516B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #CFB87C;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #27516B;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.375rem; /* 38px  */ }
h2 { font-size: 1.75rem;  /* 28px  */ }
h3 { font-size: 1.25rem;  /* 20px  */ }
h4 { font-size: 1rem;     /* 16px  */ }
p, li, span, a, th, td {
  font-size: 1rem;
  color: #26323A;
}
strong { font-weight: bold; }
small { font-size: 0.88rem; color: #758495; }

/* ===== LAYOUT CONTAINERS & SECTION SPACING ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: inherit;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(39,81,107,0.06);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 18px rgba(39,81,107,0.13);
  z-index: 1;
}
.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;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #fff;
  border-bottom: 1px solid #E3E8EF;
  box-shadow: 0 1px 4px rgba(39,81,107,0.042);
  position: sticky;
  top: 0;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 20px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #27516B;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 6px 2px;
  border-radius: 2px;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #CFB87C;
  background: #F0F4F8;
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 30px;
  margin-left: 16px;
  border-radius: 8px;
  background: #CFB87C;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.25s, box-shadow .2s, color .18s;
  box-shadow: 0 1px 6px rgba(39,81,107,0.06);
  text-align: center;
  display: inline-block;
}
.cta-btn.primary {
  background: #27516B;
  color: #fff;
}
.cta-btn:hover, .cta-btn:focus {
  background: #CFB87C;
  color: #27516B;
  box-shadow: 0 4px 12px rgba(39,81,107,0.13);
  text-decoration: none;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
  display: none;
  background: #CFB87C;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 99;
  transition: background .2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #bca756;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 24px rgba(39,81,107,0.18);
  transform: translateX(-120%);
  transition: transform 0.35s cubic-bezier(.6,.2,.68,1);
  z-index: 1999;
  padding: 36px 24px 24px 24px;
  gap: 26px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #E3E8EF;
  color: #27516B;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  margin-bottom: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #CFB87C;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #27516B;
  font-size: 1.125rem;
  padding: 12px 0 12px 6px;
  border-radius: 4px;
  transition: background 0.13s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F0F4F8;
  color: #CFB87C;
}
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 992px) {
  .mobile-menu {
    width: 84vw;
    max-width: 325px;
  }
}
@media (min-width: 993px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===== HERO/SECTION LAYOUTS ===== */
.hero,
.hero-services,
.projects-intro,
.testimonials-hero,
.blog-hero,
.contact-hero,
.thank-you-section {
  background: #F0F4F8;
  padding: 60px 0 56px 0;
  margin-bottom: 0;
}
.hero .container, .hero-services .container, .projects-intro .container, .testimonials-hero .container, .blog-hero .container, .thank-you-section .container, .contact-hero .container {
  min-height: 0;
}
.hero h1,.hero-services h1,.projects-intro h1,.testimonials-hero h1,.blog-hero h1,
.contact-hero h1, .thank-you-section h1 {
  font-size: 2.2rem;
  color: #27516B;
}
.hero p,
.hero-services p,
.projects-intro p,
.testimonials-hero p,
.blog-hero p,
.contact-hero p,
.thank-you-section p {
  font-size: 1.125rem;
  color: #4f6072;
}
.features, .services-list-section, .projects-list-section, .testimonials-section, .blog-list-section, .contact-section, .details-section  {
  background: #fff;
}
.features, .section:not(.hero):not(.cta-section) {
  border-radius: 12px;
  box-shadow: 0 3px 16px rgba(39,81,107,0.08);
}
/* LISTS, GRIDS, FLEXBOX */
.features .feature-list,
.services-list,
.values-list,
.team-list,
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0 0;
}
.features .feature-list li,
.services-list li,
.values-list li,
.team-list li,
.faq-list li {
  background: #F0F4F8;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(39,81,107,0.05);
  padding: 22px 18px 20px 18px;
  flex: 1 1 240px;
  min-width: 230px;
  transition: box-shadow .18s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.features .feature-list li:hover,
.services-list li:hover,
.values-list li:hover,
.team-list li:hover,
.faq-list li:hover {
  box-shadow: 0 4px 16px rgba(39,81,107,0.10);
}
.features .feature-list img,
.values-list img,
.services-list img,
.process-steps img {
  height: 40px;
  margin-bottom: 10px;
}
.services-list-section .services-list {
  padding-top: 6px;
}
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0 0;
}
.process-steps li {
  background: #F0F4F8;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(39,81,107,0.05);
  padding: 20px 14px 18px 14px;
  min-width: 230px;
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
/* PROJECTS CARDS */
.projects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.project-card {
  background: #F8FAFC;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(39,81,107,0.06);
  padding: 26px 18px 24px 18px;
  min-width: 250px;
  flex: 1 1 330px;
  margin-bottom: 20px;
  transition: box-shadow .17s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-card:hover {
  box-shadow: 0 5px 14px rgba(39,81,107,0.13);
}

/* TESTIMONIALS */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.testimonial-card {
  background: #FAFAFA;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(39,81,107,0.08);
  padding: 22px 20px 16px 20px;
  flex: 1 1 330px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  color: #26323A;
}
.testimonial-card p,
.testimonial-card q {
  font-size: 1.125rem;
  color: #26323A;
  margin-bottom: 10px;
  quotes: "\201C" "\201D" "\2018" "\2019";
}
.testimonial-card q::before { content: '"'; color: #CFB87C; font-size: 1.25em; }
.testimonial-card q::after { content: '"'; color: #CFB87C; font-size: 1.25em; }
.testimonial-meta {
  font-size: 0.95rem;
  color: #757575;
  margin-top: 2px;
}
.testimonial-meta strong {
  color: #27516B;
  font-weight: 700;
}

/* BLOG PREVIEW */
.blog-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}
.blog-preview {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(39,81,107,0.06);
  flex: 1 1 300px;
  min-width: 220px;
  padding: 20px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .13s;
}
.blog-preview:hover {
  box-shadow: 0 6px 18px rgba(39,81,107,0.13);
}
.blog-preview a {
  font-weight: bold;
  color: #27516B;
  margin-top: auto;
  padding-top: 10px;
  transition: color 0.18s;
}
.blog-preview a:hover, .blog-preview a:focus {
  color: #CFB87C;
  text-decoration: underline;
}

/* FAQ */
.faq-list {
  margin-top: 24px;
  gap: 16px;
  display: flex;
  flex-wrap: wrap;
}
.faq-list li {
  flex: 1 1 330px;
  min-width: 230px;
}

/* DETAILS/CONTACT SECTIONS */
.contact-section .contact-information, .details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-map {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #758495;
}
.details-list {
  margin-top: 10px;
}
.details-list li {
  padding: 8px 0;
  border-bottom: 1px solid #EDF0F5;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #26323A;
}

/* TIMELINE (Quienes Somos) */
.timeline ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding-left: 10px;
}
.timeline li {
  color: #5582A0;
  font-size: 1rem;
  padding-left: 0;
}
.timeline strong {
  color: #27516B;
}

/* CTA SECTION */
.cta-section {
  background: #27516B;
  color: #fff;
  padding: 32px 0 32px 0;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 3px 14px rgba(39,81,107,0.08);
}
.cta-section h2 {
  color: #fff;
  margin-bottom: 12px;
}
.cta-section p {
  color: #d5e7f5;
  margin-bottom: 18px;
}
.cta-section .cta-btn {
  margin-top: 10px;
}

/* LEGAL SECTIONS */
.legal-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(39,81,107,0.06);
  padding: 40px 20px;
  margin-bottom: 60px;
}
.legal-section ul, .privacy-points {
  margin: 22px 0 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: disc inside;
  color: #566176;
  font-size: 1rem;
}
.privacy-points li {
  color: #566176;
}

/* FOOTER ==================== */
footer {
  background: #192734;
  color: #F2F3F5;
  padding: 0 0 0 0;
  border-top: 1px solid #27445610;
}
footer .container {
  padding-top: 36px;
  padding-bottom: 18px;
}
.footer-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
}
.footer-logo img {
  height: 36px;
  filter: brightness(1.05) invert(0.01) sepia(.82) saturate(.4) hue-rotate(-8deg);
  margin-bottom: 10px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .98rem;
}
.footer-contact p {
  color: #F9FBFD;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.96rem;
}
.footer-contact img {
  height: 17px;
  width: 17px;
  opacity: 0.77;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 1px;
}
.footer-links a {
  color: #CFB87C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.97rem;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #fff88f;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}
.footer-legal {
  margin-top: 18px;
  color: #adc1d2;
  font-size: 0.9rem;
  text-align: left;
}
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #27516B;
  color: #fff;
  padding: 20px 12px 12px 12px;
  z-index: 3000;
  box-shadow: 0 -4px 18px rgba(39,81,107,0.17);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  font-size: 1rem;
  animation: cookieBannerIn 0.7s;
}
@keyframes cookieBannerIn {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.cookie-banner button, .cookie-banner .cookie-banner__btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  padding: 8px 22px;
  border: none;
  margin: 0;
  cursor: pointer;
  transition: background 0.23s, color .15s;
  background: #fff;
  color: #27516B;
}
.cookie-banner button.primary, .cookie-banner .cookie-banner__btn.primary {
  background: #CFB87C;
  color: #fff;
}
.cookie-banner button.primary:hover, .cookie-banner .cookie-banner__btn.primary:hover {
  background: #bca756;
}
.cookie-banner button.secondary, .cookie-banner .cookie-banner__btn.secondary {
  background: #E3E8EF;
  color: #27516B;
}
.cookie-banner button.secondary:hover, .cookie-banner .cookie-banner__btn.secondary:hover {
  background: #c8d2dc;
}
.cookie-banner__link {
  color: #CFB87C;
  text-decoration: underline;
  margin-left: 8px;
  font-size: .97rem;
}

/* ===== COOKIE SETTINGS MODAL ===== */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(21,37,57,0.45);
  z-index: 4000;
  align-items: center;
  justify-content: center;
  animation: fadeInModal .26s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal__content {
  background: #fff;
  color: #26323A;
  min-width: 330px;
  max-width: 96vw;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(39,81,107,0.17);
  padding: 36px 26px 30px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalIn .37s cubic-bezier(.51,.24,.32,1.1);
}
@keyframes modalIn {
  from { transform: translateY(32px) scale(.98); opacity:0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #E3E8EF;
  color: #27516B;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: background .17s;
}
.cookie-modal__close:focus, .cookie-modal__close:hover {
  background: #CFB87C;
  color: #fff;
}
.cookie-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-settings__option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #F0F4F8;
  padding: 10px 14px;
  border-radius: 7px;
  margin-bottom: 8px;
}
.cookie-settings__label {
  color: #27516B;
  font-weight: 600;
  font-size: 1rem;
}
.cookie-settings__desc {
  font-size: 0.94rem;
  color: #4f6072;
  margin-left: 10px;
  max-width: 68%;
}
.cookie-switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 22px;
  align-items: center;
}
.cookie-switch input {
  opacity: 0;
  width: 44px;
  height: 22px;
  margin: 0;
  position: absolute;
  left:0; top:0;
}
.cookie-slider {
  display: inline-block;
  width: 44px;
  height: 22px;
  background: #adc1d2;
  border-radius: 24px;
  transition: background .18s;
  position: relative;
}
.cookie-switch input:checked + .cookie-slider {
  background: #CFB87C;
}
.cookie-slider:before {
  content: '';
  display: block;
  position: absolute;
  top: 3px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(39,81,107,0.04);
  transition: transform .18s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}
.essential-badge {
  font-size: 0.85rem;
  color: #fff;
  background: #27516B;
  border-radius: 8px;
  padding: 2px 9px;
  margin-left: 11px;
  font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
}
@media (max-width: 992px) {
 .container { max-width: 92vw; }
 .main-nav { gap: 18px; }
 .footer-content { gap: 20px; }
 .footer-logo img { height: 32px; }
}
@media (max-width: 850px) {
  .card-container, .content-grid,
  .feature-list, .services-list,
  .values-list, .process-steps,
  .blog-articles, .projects-list,
  .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.06rem; }
  .section, .legal-section { padding: 30px 8px; }
  .hero, .hero-services, .projects-intro, .testimonials-hero, .blog-hero, .thank-you-section, .contact-hero { padding: 40px 0 32px 0; }
  .footer-content { flex-direction: column; gap: 10px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .cta-section { padding: 18px 0; }
  .card, .project-card, .testimonial-card, .blog-preview {
    padding: 16px 9px;
  }
  .feature-list li, .services-list li,
  .values-list li, .team-list li,
  .faq-list li, .process-steps li {
    padding: 14px 7px 12px 12px;
    min-width: 0;
  }
  .projects-list { gap: 18px; }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
