/* ========= CSS 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F6F9F8;
  color: #343C46;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
}
a {
  color: #343C46;
  text-decoration: none;
  transition: color .2s;
}
a:focus {
  outline: 2px solid #EAB543;
  outline-offset: 2px;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1em;
}
img {
  max-width: 100%;
  height: auto;
}
button, .btn-primary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
}
/* Montserrat for headings, Roboto for body */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #343C46;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.5rem; margin-bottom: 30px; }
h2 { font-size: 2rem;  margin-bottom: 20px; }
h3 { font-size: 1.375rem; margin-bottom: 12px; }
h4 { font-size: 1.125rem; margin-bottom: 8px; }
p, li, dl, dd {
  font-size: 1rem;
  color: #343C46;
}
strong {
  font-weight: 700;
}
small {
  font-size: 0.875rem;
}

/* ===== BRAND COLORS ===== */
:root {
  --primary: #343C46;
  --secondary: #EAB543;
  --accent: #F6F9F8;
  --gray-light: #F1F3F6;
  --gray-medium: #95A1B1;
  --gray-dark: #4D5764;
  --white: #fff;
  --shadow: 0 4px 16px 0 rgba(44,48,54,.07);
}

/* ===== CONTAINERS & STRUCTURE ===== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 16px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 28px 22px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 320px;
}
.card:hover {
  box-shadow: 0 8px 24px 0 rgba(44,48,54,.13);
  transform: translateY(-4px) scale(1.01);
}

.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;
  margin-bottom: 24px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-left: 6px solid var(--secondary);
  box-shadow: 0 4px 20px rgba(44,48,54,0.06);
  border-radius: 10px;
  margin-bottom: 24px;
  flex-direction: column;
  min-width: 200px;
  max-width: 610px;
  color: var(--primary);
}
.testimonial-card p {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--gray-dark);
  font-style: italic;
}

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

/* ===== HEADER/NAVIGATION ===== */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(52,60,70,0.03);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 11;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 74px;
  padding: 0 24px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-bottom .15s;
}
header nav a:hover,
header nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
header > .container > a img {
  height: 48px; /* logo size */
  width: auto;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 13px 32px;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(52,60,70,0.06);
  transition: background .2s, box-shadow .18s, color .15s;
  margin-left: 22px;
  letter-spacing: 0.01em;
  display: inline-block;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(118, 90, 20, .13);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: transparent;
  border: none;
  margin-left: 18px;
  color: var(--primary);
  z-index: 1002;
  cursor: pointer;
  transition: color .18s;
}
.mobile-menu-toggle:focus { color: var(--secondary); }

/* ========== MOBILE MENU ========== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(52,60,70,.97);
  transform: translateX(-110vw);
  transition: transform .35s cubic-bezier(.63, .01, .1, 1);
  z-index: 1200;
  padding: 0 36px;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: var(--secondary);
  font-size: 2rem;
  border: none;
  margin: 28px 0 12px 0;
  cursor: pointer;
  transition: color .15s;
}
.mobile-menu-close:focus { color: var(--white); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding-top: 18px;
}
.mobile-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 0 10px 6px;
  border-radius: 6px;
  transition: background .14s, color .14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ========== MAIN / GENERAL SECTIONS ========== */
main {
  flex: 1 0 auto;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 16px;
}

.service-features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-features-grid > div {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 24px 18px;
  min-width: 220px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow .19s, transform .18s;
}
.service-features-grid > div:hover {
  box-shadow: 0 8px 30px 0 rgba(52,60,70,.11);
  transform: translateY(-5px) scale(1.012);
}
.service-features-grid img {
  width: 42px; height: 42px;
}
.price {
  font-size: 1.03rem; font-weight: 600;
  color: var(--secondary);
}

/* Servicios.html (cards) */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 26px 24px 22px 24px;
  min-width: 240px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .17s, transform .17s;
}
.service-card:hover {
  box-shadow: 0 10px 30px 0 rgba(52,60,70,.10);
  transform: translateY(-5px) scale(1.01);
}
.service-card .price {
  margin-top: 4px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-list dt {
  font-weight: 700;
  font-size: 1.13rem;
  margin-bottom: 4px;
  color: var(--primary);
}
.faq-list dd {
  margin-left: 0;
  margin-bottom: 8px;
  color: var(--gray-dark);
  padding-left: 8px;
}

.project-summary {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px 26px 26px 30px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 250px;
  max-width: 100%;
  position: relative;
}
.project-summary:last-child {
  margin-bottom: 0;
}
.project-summary .testimonial-card {
  margin-top: 10px;
}

.text-section {
  margin-bottom: 26px;
}

/* ========== FOOTER =========== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 36px 0 18px 0;
  width: 100%;
  margin-top: 64px;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
footer nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color .15s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--white);
}
.footer-logo img {
  height: 48px; width: auto;
}
footer small {
  color: var(--gray-light);
  font-size: 0.92rem;
  margin-left: 20px;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: 1400;
  background: var(--white);
  box-shadow: 0 -2px 22px rgba(44,48,54, 0.09);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  padding: 20px 36px;
  font-size: 1rem;
  color: var(--primary);
  animation: cookie-slide-up .5s cubic-bezier(.51,.18,.41,.98);
  border-top: 5px solid var(--secondary);
}
@keyframes cookie-slide-up {
  from { transform: translateY(110%);} to { transform: translateY(0); }
}
.cookie-banner button {
  margin-left: 8px;
  padding: 10px 22px;
  border-radius: 5px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: var(--secondary);
  color: var(--primary);
  font-size: 1rem;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.cookie-banner button.reject {
  background: var(--primary);
  color: var(--white);
}
.cookie-banner button.settings {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--gray-medium);
}
.cookie-banner button:focus {
  outline: 2px solid var(--secondary);
}
.cookie-banner button:hover {
  filter: brightness(1.09);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1402;
  background: rgba(44,48,54,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fade .32s cubic-bezier(.49,.2,.51,.8);
}
@keyframes cookie-modal-fade {
  from { opacity: 0;} to { opacity: 1;}
}
.cookie-modal {
  background: var(--white);
  padding: 40px 28px 30px 28px;
  border-radius: 16px;
  box-shadow: 0 6px 44px rgba(44,48,54,0.18);
  max-width: 400px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  color: var(--primary);
}
.cookie-modal h3 {
  font-size: 1.33rem;
  margin-bottom: 8px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  margin-bottom: 16px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 19px; height: 19px;
}
.cookie-modal-footer {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal button {
  background: var(--primary);
  color: var(--white);
  border-radius: 6px;
  padding: 10px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background .13s;
}
.cookie-modal button.secondary {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal button:focus { outline: 2px solid var(--secondary); }
.cookie-modal .cookie-close-modal {
  position: absolute;
  top: 12px; right: 16px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary);
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal .cookie-close-modal:focus { color: var(--primary); }

/* ========== ANIMATIONS / MICRO-INTERACTIONS ============= */
a, .btn-primary, button {
  transition: color .17s, background .17s, box-shadow .18s, transform .12s;
}
.card, .service-card, .service-features-grid > div {
  transition: box-shadow .19s, transform .19s;
}

/* ========== FORMATTING & UTILITIES ========== */
ul {
  margin-bottom: 12px;
}
ol {
  margin-bottom: 12px;
}
li {
  margin-bottom: 8px;
  font-size: 1.02rem;
}
/* Section call-to-action padding fix */
section .btn-primary {
  margin-top: 6px;
  margin-bottom: 8px;
}

/* ========== RESPONSIVE DESIGN MOBILE-FIRST ========== */
@media (max-width: 1180px) {
  .container { max-width: 98%; }
}
@media (max-width: 900px) {
  .footer-logo img,
  header > .container > a img { height: 34px; }
  .container { padding: 0 8px; }
}
@media (max-width: 900px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  header nav, footer nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  header nav, .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding: 0 4vw;
  }
  section, .section {
    padding: 26px 4vw;
    margin-bottom: 40px;
    border-radius: 10px;
  }
  .content-wrapper {
    gap: 20px;
  }
  .service-features-grid, .service-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .service-features-grid > div, .service-card, .card {
    min-width: 0;
    width: 100%;
    padding: 20px 15px;
  }
  .testimonial-card {
    padding: 16px 10px;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-logo img,
  header > .container > a img {
    height: 32px;
  }
}
@media (max-width:520px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.07rem; }
}

/* ========== SPACING ENFORCEMENT ========== */
section, .section, .service-features-grid > div, .card, .testimonial-card, .service-card, .project-summary {
  margin-bottom: 20px;
}
.card-container, .service-list, .service-features-grid, .content-grid {
  gap: 20px;
}

/* Ensuring no overlap anywhere */
.card-container, .service-list, .service-features-grid, .content-grid, .text-image-section {
  flex-wrap: wrap;
}

/* ========== ACCESSIBILITY ENHANCEMENTS ========== */
:focus {
  outline: 2px solid var(--secondary);
}
::-webkit-input-placeholder { color: #8A8F99; }
::-moz-placeholder { color: #8A8F99; }
:-ms-input-placeholder { color: #8A8F99; }
::placeholder { color: #8A8F99; }

/* ======= UTILITY CLASSES ======= */
.d-block { display: block !important; }
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.flex-center { justify-content: center; align-items: center; }
.text-center { text-align: center; }

/* ========== HIDE/SHOW CLASSES (for JS) ========== */
.hide { display: none !important; }
.show { display: block !important; }

/* ========== END OF FILE ========== */
