/* =================================================
   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.6;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #f8f1e4;
  color: #232323;
  min-height: 100vh;
  font-size: 16px;
}
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
a {
  background: none;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
img {
  max-width: 100%;
  display: block;
}
button {
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* =================================================
   ROOT VINTAGE RETRO COLOR PALETTE
================================================= */
:root {
  --color-bg-main: #f8f1e4;
  --color-bg-card: #fff9ea;
  --color-primary: #232323;
  --color-secondary: #767676;
  --color-accent: #F5BD65;
  --color-accent-dark: #A6771B;
  --color-neutral: #F4E5C7;
  --color-shadow: rgba(73,51,37,0.10);
  --radius: 14px;
  --shadow-card: 0 6px 20px var(--color-shadow);
  --border-card: 1.5px solid #e0cf9b;
  --font-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* =================================================
   TYPOGRAPHY VINTAGE RETRO
================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.5px;
  color: var(--color-primary);
  font-weight: 700;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.13;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
h3 {
  font-size: 1.35rem;
  letter-spacing: 0.4px;
  color: var(--color-primary);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.05rem;
  color: var(--color-secondary);
}
p, ul li, ol li, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 14px;
}
blockquote {
  font-size: 1.17rem;
  font-style: italic;
  color: #2d2020;
  border-left: 4px solid var(--color-accent);
  padding-left: 16px;
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
  color: var(--color-accent-dark);
}

/* VINTAGE RETRO FONT EFFECTS */
h1, h2 {
  text-shadow: 1px 2px 0 #d9b06d, 2px 4px 0 #e9decf;
  letter-spacing: 2px;
}
h3, h4 {
  letter-spacing: 1.0px;
}

/* =================================================
   CONTAINER & CONTENT LAYOUTS
================================================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 850px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.section:last-child {
  margin-bottom: 0;
}

/* Card container flex patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-bg-card);
  border: var(--border-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  min-width: 260px;
  flex: 1 1 300px;
  transition: transform .15s cubic-bezier(.7,0,.3,1), box-shadow .15s cubic-bezier(.7,0,.3,1);
}
.card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 8px 32px rgba(73,51,37,0.16);
  z-index: 2;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffefa;
  border: 1.5px solid #eeddb2;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(73,51,37,0.11);
  margin-bottom: 24px;
  position: relative;
  min-width: 180px;
  transition: box-shadow 0.18s cubic-bezier(.55,0,.45,1), transform 0.18s cubic-bezier(.55,0,.45,1);
}
.testimonial-card:last-child {
  margin-bottom: 0;
}
.testimonial-card:hover {
  box-shadow: 0 9px 36px rgba(43,31,14,0.20);
  transform: scale(1.015);
}
.testimonial-author {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-accent-dark);
  margin-left: auto;
  padding-left: 12px;
}

/* Feature List & Item */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
.feature-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  border: var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 24px 16px;
  margin-bottom: 18px;
  min-width: 210px;
  flex: 1 1 210px;
  transition: box-shadow .15s cubic-bezier(.4,0,.2,1),
              transform .11s cubic-bezier(.4,0,.2,1);
}
.feature-grid > div:hover {
  box-shadow: 0 7px 26px rgba(71,59,36,0.10), 0 1.5px 0 #d5b877;
  transform: translateY(-2px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Service list on Oferta */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
}
.service-list > div {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  border: var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 24px 17px;
  flex: 1 1 220px;
  min-width: 180px;
  margin-bottom: 10px;
  transition: box-shadow .15s cubic-bezier(.4,0,.2,1),
              transform .11s cubic-bezier(.4,0,.2,1);
}
.service-list > div:hover {
  box-shadow: 0 6px 28px rgba(71,59,36,0.13);
  transform: scale(1.013);
}

/* Blog list styles */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.blog-list article {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  border: var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 22px 15px 18px 15px;
  min-width: 210px;
  flex: 1 1 230px;
  transition: box-shadow .15s cubic-bezier(.4,0,.2,1),
              transform .11s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.blog-list article:hover {
  box-shadow: 0 8px 32px rgba(73,51,37,0.13);
  transform: translateY(-3px);
}
.blog-category {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.98em;
  color: var(--color-accent-dark);
  background: #f5ead2;
  border-radius: 8px;
  padding: 3px 11px;
  margin-top: 4px;
  letter-spacing: 0.6px;
}

/* Responsive flex wrapping */
@media (max-width: 980px) {
  .content-grid, .feature-grid, .service-list, .blog-list {
    gap: 16px;
  }
}
@media (max-width: 700px) {
  .content-grid, .feature-grid, .service-list, .blog-list {
    flex-direction: column;
    gap: 12px;
  }
  .card, .feature-grid > div, .service-list > div, .blog-list article {
    min-width: unset;
    width: 100%;
  }
}

/* CTA BUTTONS & LINKS */
.cta-btn, .cta-btn-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--color-accent);
  color: #232323;
  border: 2.5px solid var(--color-accent-dark);
  border-radius: 28px;
  padding: 11px 36px;
  font-size: 1.15rem;
  letter-spacing: 0.8px;
  margin-top: 12px;
  box-shadow: 0 3px 12px rgba(165,119,27,0.10);
  text-shadow: none;
  text-decoration: none;
  transition: background .18s cubic-bezier(.4,0,.2,1), color 0.12s, transform .11s;
  cursor: pointer;
  outline: none;
  gap: 5px;
}
.cta-btn-link {
  background: transparent;
  color: var(--color-accent-dark);
  border: none;
  box-shadow: none;
  padding: 0px;
  font-size: 1.08rem;
  margin-left: 4px;
  margin-top: 16px;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-2.5px) scale(1.02);
  box-shadow: 0 5px 26px #EDD5A9;
}
.cta-btn-link:hover,
.cta-btn-link:focus {
  color: #CC930A;
  text-decoration: underline;
}

/* -------- HEADER & NAVIGATION --------- */
header {
  width: 100%;
  background: var(--color-primary);
  padding: 0;
  border-bottom: 4px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 151;
}
.header-flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px 0;
  gap: 24px;
}
.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--font-display);
}
.main-nav a {
  padding: 6px 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: border-color 0.10s, color 0.15s;
  text-shadow: 1px 1.5px 0 var(--color-accent-dark);
  margin-left: 2px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

@media (max-width: 870px) {
  .main-nav {
    gap: 13px;
    font-size: 0.97rem;
  }
}
@media (max-width: 700px) {
  .main-nav {
    display: none;
  }
  .header-flex {
    padding-right: 48px;
    padding-left: 7px;
  }
}

/* ---------- MOBILE BURGER MENU ------------- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 18px;
  z-index: 210;
  background: #F8E8C6;
  color: var(--color-primary);
  font-size: 2.1rem;
  border-radius: 9px;
  padding: 7px 18px;
  border: 2px solid #E2C383;
  box-shadow: 0 3px 10px rgba(171,116,25,0.15);
  transition: background .14s, color .11s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-accent-dark);
  color: #fff;
}
@media (max-width: 700px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 222;
  background: #fffdfa;
  box-shadow: 0 20px 120px rgba(55,46,0,0.18);
  transform: translateX(-105vw);
  transition: transform .36s cubic-bezier(.76,0,.24,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
  transition: transform .36s cubic-bezier(.27,.99,.38,1.09);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.4rem;
  margin: 32px 20px 15px auto;
  background: #fae0ac;
  color: var(--color-primary);
  border-radius: 12px;
  padding: 6px 18px 2px 18px;
  border: 2px solid #E2C383;
  transition: background .14s, color .11s;
  box-shadow: 0 3px 10px rgba(171,116,25,0.14);
}
.mobile-menu-close:active, .mobile-menu-close:focus {
  background: var(--color-accent-dark);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 36px;
  margin-top: 12px;
  width: 90%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.37rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 1.2px;
  padding: 10px 4px;
  border-radius: 10px;
  background: none;
  transition: color 0.16s, background 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ----- SECTION SPACING ----- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  background: transparent;
}
@media (max-width: 700px) {
  section {
    margin-bottom: 36px;
    padding: 28px 6px;
  }
}

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

.service-shortlist li, ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 10px;
}

/* ========== FOOTER ========== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 24px 0 8px 0;
  width: 100%;
  border-top: 5px solid var(--color-accent);
  margin-top: 64px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
}
.footer-logo {
  flex: 0 0 90px;
  margin-right: 24px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-right: 48px;
}
.footer-nav a {
  font-family: var(--font-display);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.02rem;
  font-weight: 600;
  transition: color 0.11s, text-decoration 0.12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 1.01em;
  color: #f7e6bc;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 9px;
}
@media (max-width: 940px) {
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 3500;
  background: #fae0ac;
  color: #232323;
  padding: 26px 20px 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-shadow: 0px -4px 24px rgba(43,31,14,0.10);
  transition: transform 0.33s cubic-bezier(.60,0,.4,1),
    opacity 0.14s cubic-bezier(.45,0,.6,1);
  opacity: 0.98;
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-message {
  flex: 1 1 auto;
  max-width: 580px;
  font-size: 1.07rem;
  color: #232323;
  margin-right: 28px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}
.cookie-banner .cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 22px;
  padding: 7px 27px;
  font-size: 1.01rem;
  margin-left: 0;
  border: 2px solid var(--color-accent-dark);
  color: #232323;
  background: #fdf5e3;
  letter-spacing: 1px;
  transition: background 0.17s, color 0.13s, border 0.11s;
}
.cookie-banner .cookie-btn.accept-all {
  background: var(--color-accent);
  color: #232323;
  border-color: var(--color-accent-dark);
}
.cookie-banner .cookie-btn.reject-all {
  background: #fff;
  color: #2d2d2d;
  border-color: #c7b484;
}
.cookie-banner .cookie-btn.settings {
  background: #f6eecc;
  border-color: #c7b484;
  color: #7e6e4f;
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: var(--color-accent-dark);
  color: #fff;
  border-color: var(--color-accent-dark);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 10px;
  }
  .cookie-banner .cookie-message {
    margin-bottom: 18px;
    margin-right: 0;
  }
  .cookie-banner .cookie-actions {
    justify-content: flex-end;
    gap: 10px;
  }
}

/* Cookie consent modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; bottom: 0; right: 0;
  background: rgba(40,32,20,0.52);
  z-index: 3600;
  opacity: 1;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s cubic-bezier(.25,.8,.4,1);
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fffefa;
  box-shadow: 0 8px 40px rgba(85,63,16,0.22);
  border-radius: 18px;
  padding: 34px 30px 26px 30px;
  width: 96vw;
  max-width: 410px;
  position: relative;
  z-index: 3611;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 2.2px solid #ecd6a5;
  animation: cookieModalPop .29s cubic-bezier(.37,1.18,.54,1.17);
}
@keyframes cookieModalPop {
  0% { opacity: 0; transform: scale(0.98) translateY(120px); }
  90% { opacity: 1; transform: scale(1.02) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0px); }
}
.cookie-modal h2 {
  font-size: 1.24rem;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  text-shadow: none;
}
.cookie-switch-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1.02em;
}
.cookie-switch-label {
  color: #2a2319;
  font-weight: 600;
  padding-right: 17px;
}
.cookie-switch {
  width: 36px;
  height: 20px;
  position: relative;
  display: inline-block;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e6d1ac;
  border-radius: 12px;
  transition: background 0.18s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--color-accent);
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 2px; bottom: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1.5px 4px rgba(112,90,32,0.13);
  transition: transform 0.18s, background 0.11s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
  background: #ffefd1;
}
.cookie-modal .cookie-btn-row {
  margin-top: 7px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}
.cookie-modal .cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 1.01rem;
  border: 2px solid var(--color-accent-dark);
  color: #232323;
  background: #fdf5e3;
  letter-spacing: 1px;
  transition: background 0.17s, color 0.13s, border 0.11s;
}
.cookie-modal .cookie-btn.confirm {
  background: var(--color-accent);
}
.cookie-modal .cookie-btn.cancel {
  background: #fff;
}
.cookie-modal .cookie-btn:hover,
.cookie-modal .cookie-btn:focus {
  background: var(--color-accent-dark);
  color: #fff;
  border-color: var(--color-accent-dark);
}
.cookie-modal .cookie-info {
  font-size: 0.98em;
  color: #6E563E;
  margin-bottom: 3px;
}

/* ========== UTILS & MISC RETRO ELEMENTS ========== */
::-webkit-scrollbar {
  width: 10px;
  background: #e3ddce;
}
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #f5bd65;
  border: 2px solid #fff6e2;
}
::-webkit-input-placeholder { color: #ad960d; }
::-moz-placeholder { color: #ad960d; }
:-ms-input-placeholder { color: #ad960d; }
::placeholder { color: #ad960d; opacity: 1; }

hr {
  border: none;
  border-bottom: 2px dashed #e0cf9b;
  margin: 35px 0 18px 0;
}

/* ========== RETRO PATTERNS & NOSTALGIC EFFECTS ========== */
.card, .feature-grid > div, .service-list > div, .blog-list article {
  background-image: repeating-linear-gradient(-45deg, #f5bd65 0 1px, transparent 3px 22px);
  background-blend-mode: lighten;
}
.card {
  background-image: repeating-linear-gradient(-40deg, #eeddb2 0 1.5px, transparent 3.5px 25px);
}

/* Retro dot background for CTA bottom */
.section:last-child {
  background-image: radial-gradient(circle, #f5bd65 0.8px, transparent 1.6px), radial-gradient(circle, #e3d3b1 1.8px, transparent 2.8px);
  background-size: 34px 34px, 65px 65px;
  background-position: left top, right bottom;
}

/* =================== RESPONSIVENESS ===================== */
@media (max-width: 950px) {
  .container { max-width: 98vw; }
  .content-wrapper { max-width: 98vw; }
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.28rem; }
  h3 { font-size: 1.08rem; }
  body, p, li { font-size: 0.99rem; }
}
@media (max-width: 480px) {
  .container, .content-wrapper { padding: 0 4px; }
  .footer-logo { margin-right: 8px; }
}

/* =================== UTILITIES ===================== */
.hide { display: none !important; }
.text-center { text-align: center !important; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px !important; }
.gap-2 { gap: 16px !important; }

/* =================== PRINT ===================== */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal {
    display: none!important;
  }
}
