/* Reset & base styles */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F5F5;
  color: #23232b;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}
a {
  color: #003366;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F7B801;
}
ul, ol {
  padding-left: 24px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Font-face for luxury style (if available) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
  --color-primary: #003366;
  --color-secondary: #F5F5F5;
  --color-accent: #F7B801;
  --color-dark: #23232b;
  --color-light: #fff;
  --color-muted: #e7e7ed;
  --card-radius: 16px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --shadow: 0 4px 24px 0 rgba(0,0,0,0.07);
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--color-secondary);
  color: var(--color-dark);
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.8rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 10px; }
h4 { font-size: 1.1rem; font-weight: 500; margin-bottom: 7px; }

p, li, span {
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.7;
  letter-spacing: 0.005em;
}

strong, b {
  font-weight: 600;
  color: var(--color-primary);
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

section.hero-section {
  background: var(--color-primary);
  color: var(--color-light);
  border-radius: var(--card-radius);
  box-shadow: 0 6px 24px 0 rgba(0,51,102,0.10);
  position: relative;
  overflow: hidden;
}
section.hero-section h1,
section.hero-section h2, 
section.hero-section p {
  color: var(--color-light);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* NAVBAR */
header {
  background: var(--color-light);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  padding: 0;
  margin-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 109;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  opacity: 0.9;
  position: relative;
  padding: 6px 2px;
  border-radius: 3px;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
header nav a:after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: transparent;
  transition: background var(--transition);
  z-index: 1;
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
  background: rgba(247,184,1,0.10);
}
header nav a:hover:after, header nav a:focus:after {
  background: var(--color-accent);
}

.cta-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-light);
  background: var(--color-accent);
  border-radius: 8px;
  box-shadow: 0 2px 10px 0 rgba(247,184,1,0.13);
  padding: 13px 38px;
  margin-left: 18px;
  transition: background var(--transition), box-shadow var(--transition), color 0.18s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: #d6a20a;
  color: var(--color-dark);
  box-shadow: 0 4px 22px 0 rgba(247,184,1,0.29);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 22px; top: 20px;
  padding: 10px 14px;
  font-size: 2.2rem;
  color: var(--color-primary);
  background: var(--color-light);
  border-radius: 8px;
  z-index: 120;
  border: 2px solid var(--color-accent);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(0,0,0,0.09);
}
.mobile-menu-toggle:focus {
  background: #f2cd6b;
  color: var(--color-dark);
}
.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: var(--color-primary);
  z-index: 122;
  transform: translateX(-100%);
  transition: transform var(--transition);
  box-shadow: 0 0 0 100vw rgba(0,0,0,0.25);
  padding: 38px 24px 0 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--color-accent);
  background: none;
  border: none;
  margin-bottom: 44px;
  align-self: flex-end;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #fff1cd;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 94vw;
}
.mobile-nav a {
  color: var(--color-light);
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 0 6px 0;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(247,184,1,0.08);
}

/* GENERAL SECTION/LAYOUT */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-light);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  min-width: 275px;
  flex: 1 1 270px;
  transition: box-shadow var(--transition), transform 0.19s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 32px 0 rgba(0,51,102,0.16);
  transform: translateY(-2px) 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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 32px 20px 24px;
  margin-bottom: 20px;
  background: #fffbe7;
  border: 1px solid #f7e6af;
  border-left: 6px solid var(--color-accent);
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(247,184,1,0.07);
  font-size: 1.05rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card p {
  color: #1b1a15;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-left: 8px;
}
.testimonial-card:hover {
  box-shadow: 0 4px 20px 0 rgba(247,184,1,0.15), var(--shadow);
  border-left-color: #d6a20a;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature grids for services/about/team/metodologia */
.feature-grid, .service-list, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.feature-grid > div, .service-list > div, .blog-list > .post-card {
  background: #fcfcfc;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 19px 20px 22px;
  flex: 1 1 268px;
  min-width: 250px;
  max-width: 320px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), border-color var(--transition);
  border: 1px solid #ebe6d9;
}
.feature-grid > div:hover, .service-list > div:hover, .blog-list > .post-card:hover {
  box-shadow: 0 8px 32px 0 rgba(0,51,102,0.09), 0 1.5px 8px 0 rgba(247,184,1,0.04);
  border-color: var(--color-accent);
}
.feature-grid img, .service-list img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(247,184,1,0.18));
}

.price {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 10px;
  letter-spacing: 0.01em;
}

.blog-list {
  gap: 24px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fcfcfc;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 19px 20px 22px;
  min-width: 250px;
  max-width: 340px;
  transition: box-shadow var(--transition);
  border: 1px solid #ebe6d9;
  margin-bottom: 20px;
}
.post-card h3 {
  color: var(--color-primary);
  font-size: 1.16rem;
  margin-bottom: 6px;
}
.post-card p {
  color: var(--color-dark);
  font-size: 1rem;
}

.blog-categories {
  margin-top: 26px;
  background: #f8f7f3;
  border-radius: 12px;
  border-left: 5px solid var(--color-accent);
  padding: 18px 21px 16px 18px;
  box-shadow: 0 2px 10px 0 rgba(247,184,1,0.06);
  font-family: 'Montserrat', Arial, sans-serif;
}
.blog-categories h3 {
  font-size: 1.14rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

/* Footer styles */
footer {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 32px 0 22px 0;
  box-shadow: 0 -3px 16px 0 rgba(0,51,102,0.06);
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 0;
}
footer nav a {
  color: var(--color-accent);
  font-size: 1rem;
  opacity: 0.9;
  transition: color var(--transition), text-decoration 0.18s;
  text-decoration: underline rgba(247,184,1,0.08);
}
footer nav a:hover, footer nav a:focus {
  color: #fffbed;
  text-decoration: underline var(--color-light);
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  font-size: 0.99rem;
  color: #e7dca9;
}
.footer-info span {
  color: #e7dca9;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fffbe7;
  color: #2b270e;
  border-top: 4px solid var(--color-accent);
  box-shadow: 0 -4px 22px 0 rgba(0,0,0,0.10);
  padding: 18px 16px 18px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 9999;
  animation: banner-slide-in 0.4s ease-out;
}
@keyframes banner-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  max-width: 620px;
  color: #231d08;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 22px;
  border-radius: 7px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), color 0.18s;
  outline: none;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: var(--color-dark);
  box-shadow: 0 2px 6px 0 rgba(247,184,1,0.11);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #d6a20a;
  color: var(--color-light);
}
.cookie-btn.reject {
  background: #fff3d1;
  color: var(--color-primary);
  border: 1px solid #f7b801;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus { 
  background: #fde09d; 
  color: var(--color-dark); 
}
.cookie-btn.settings {
  background: rgba(0,51,102,0.06);
  color: var(--color-primary);
  border: 1px solid #00336622;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #003366;
  color: var(--color-accent);
}

/* Cookie Preferences Modal */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(0,0,0,0.28);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cookie-modal.open {
  display: flex;
  animation: cookie-modal-fade-in 0.23s ease;
}
@keyframes cookie-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal__content {
  background: #fffdf7;
  border-radius: 14px;
  max-width: 420px;
  width: 92vw;
  padding: 36px 28px 30px 28px;
  box-shadow: 0 8px 32px 0 rgba(0,51,102,0.17), 0 3px 16px 0 rgba(247,184,1,0.09);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-modal__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.cookie-modal__head h3 {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal__close {
  background: none; border: none; font-size: 1.8rem; color: var(--color-accent);
  cursor: pointer; transition: color .18s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: #003366;
}
.cookie-categories {
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex; flex-direction: row; align-items: center; gap: 22px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-dark);
}
.cookie-toggle {
  position: relative;
  width: 42px; height: 23px;
  display: inline-block;
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ece3bc;
  border-radius: 12px;
  transition: background var(--transition);
}
.cookie-toggle input:checked + .slider {
  background: var(--color-accent);
}
.cookie-toggle .slider:before {
  position: absolute;
  content: '';
  height: 17px; width: 17px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.cookie-toggle input:checked + .slider:before {
  transform: translateX(19px);
}
/* Cookie modal save button */
.cookie-modal__actions {
  display: flex; gap: 16px; justify-content: flex-end; align-items: center;
  margin-top: 15px;
}

/* RESPONSIVE !! MOBILE FIRST */
@media (max-width: 1200px) {
  .container { max-width: 960px; }
}
@media (max-width: 900px) {
  .container { max-width: 720px; }
  .feature-grid > div, .service-list > div, .blog-list > .post-card {
    min-width: 200px;
    max-width: 100%;
    flex: 1 1 220px;
  }
}
@media (max-width: 768px) {
  header .container {
    padding-top: 10px;
    padding-bottom: 10px;
    flex-direction: row;
  }
  header nav, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    max-width: 98vw;
    padding-left: 5vw;
    padding-right: 5vw;
  }
  section {
    padding: 26px 8px;
    margin-bottom: 38px;
    border-radius: 10px;
  }
  .content-wrapper, .feature-grid, .blog-list, .service-list {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-grid { flex-direction: column; gap: 10px; }
  .testimonial-card { padding: 17px 9px 18px 13px; gap: 9px; font-size: 1rem; }
  .blog-categories { padding: 13px 8px 11px 9px; border-left-width: 4px; font-size: 0.97rem; }
  .feature-grid > div, .service-list > div, .blog-list > .post-card {
    min-width: 80vw; max-width: 100vw; flex: 1 1 90vw; padding: 14px 10px 14px 13px; margin-bottom: 14px;
  }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1.07rem; }
  h4 { font-size: 1.02rem; }
  .footer-info {
    font-size: 0.93rem;
  }
  /* cookie banner responsive */
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 5vw 13px 5vw;
  }
}
@media (max-width: 576px) {
  header .container {
    gap: 10px; min-height: 48px;
  }
  .mobile-menu {
    padding: 34px 10px 0 9px;
  }
  .mobile-nav {
    gap: 18px;
    width: 97vw;
  }
  .feature-grid > div, .service-list > div, .blog-list > .post-card {
    min-width: 98vw; max-width: 100vw; flex: 1 1 98vw; padding: 10px 5px 10px 7px; border-radius: 9px;
  }
  section {
    padding: 14px 3px;
    margin-bottom: 22px;
    border-radius: 6px;
  }
  .cookie-modal__content {
    padding: 16px 10px 13px 10px;
    min-width: unset;
  }
}

/* UTILITIES & MICRO-INTERACTIONS */
[tabindex="0"]:focus, a:focus, button:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  z-index: 2;
}
.card, .feature-grid > div, .service-list > div, .post-card {
  cursor: default;
}

/* Decorative gold underline for luxury effect (for h1, h2) */
h1, h2{
  position:relative;
}
h1:after, h2:after {
  content:'';
  display:block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-top: 10px;
}
@media (max-width: 768px){
  h1:after, h2:after{width:36px;margin-top:7px;height:2px;}
}

/* Spacing between all cards and sections - minimum 20px always */
section:not(:last-child) {
  margin-bottom: 60px;
}
.feature-grid, .service-list, .blog-list,.card-container { gap: 24px; }
.feature-grid > div, .service-list > div, .post-card, .card {
  margin-bottom: 20px !important;
}

/* Visually hidden (for cookie modal accessibility etc) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
