/* 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,main,nav,output,ruby,section,summary,time,mark,audio,video{
  margin:0; padding:0; border:0; font-size:100%; vertical-align:baseline; box-sizing: border-box;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section {display: block;}
body {line-height: 1;}
ol,ul {list-style: none;}
a {text-decoration: none; color: inherit;}
img {max-width:100%; height:auto; display: block;}
table { border-collapse: collapse; border-spacing: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* VINTAGE RETRO BRAND COLORS & FONTS */
:root {
  --primary: #273A47;
  --primary-rgb: 39,58,71;
  --secondary: #E5C07B;
  --secondary-rgb: 229,192,123;
  --accent: #FFFFFF;
  --accent2: #F4ECE3; /* Off-white for softness */
  --retro-green: #649278;
  --retro-red: #B35D47;
  --retro-blue: #5c7fa3;
  --retro-orange: #D28B1C;
  --retro-shadow: rgba(44,39,56,0.08);

  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Open Sans', 'Arial', sans-serif;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat Bold'), local('Montserrat-Bold'),
       url('https://fonts.gstatic.com/s/montserrat/v25/JTUHjIg1_i6t8kCHKm459Wlhzg.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans Regular'),
       url('https://fonts.gstatic.com/s/opensans/v27/mem8YaGs126MiZpBA-UFUZ0Zdc1UAw.ttf') format('truetype');
}

body {
  font-family: var(--font-body);
  background: var(--accent2);
  color: #2E2517;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  letter-spacing: 1px;
  font-weight: 700;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h3 { font-size: 1.12rem; margin-bottom: 8px; }
h4, h5, h6 { font-size: 1rem; }

p {
  margin-bottom: 14px;
  color: #3b2e19;
}
strong { font-weight: 700; }
em { font-style: italic; }

/* VINTAGE PATTERNS */
body:before {
  content: '';
  display: block;
  position: fixed;
  z-index: 0;
  left: 0; right: 0; top: 0; bottom: 0;
  pointer-events: none;
  opacity: 0.09;
  background: url('data:image/svg+xml;utf8,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><rect fill="%23E5C07B" width="80" height="4"/><rect fill="%23B35D47" y="76" width="80" height="4"/><rect fill="%23649278" x="0" width="4" height="80"/><rect fill="%235c7fa3" x="76" width="4" height="80"/></svg>') repeat;
}

/* LAYOUT */
.container {
  width: 100%;
  max-width: 1100px;
  padding-left: 20px; padding-right: 20px;
  margin-left: auto; margin-right: auto;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  max-width: 730px;
  margin-left: auto;
  margin-right: auto;
}

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

/* FEATURE GRID & FLEX ARRANGEMENTS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 200px;
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 1px 2px 16px var(--retro-shadow);
  padding: 28px 20px 22px 20px;
  border: 2px solid #f4ddb7;
  min-width: 220px;
  transition: transform .14s, box-shadow .14s;
  margin-bottom: 20px;
  position: relative;
}
.feature-item:hover {
  transform: translateY(-7px) scale(1.026);
  box-shadow: 0 6px 38px -4px rgba(40,33,18,0.12);
  border-color: var(--secondary);
}

/* CARD FLEX ARRANGEMENTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px; position: relative;
  background: var(--accent2);
  box-shadow: 1px 1px 16px 0 rgba(47,47,34,0.07);
  border-radius: 10px;
  padding: 26px 22px 18px 22px;
}

.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;
}

/* BUTTONS & LINKS */
.btn-primary {
  background: var(--secondary);
  color: var(--primary);
  border: 0;
  border-radius: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.13rem;
  padding: 13px 36px;
  box-shadow: 0 2px 18px 0 rgba(39,58,71,0.08);
  margin-top: 6px;
  transition: background .16s, color .16s, box-shadow .18s, transform .15s;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.3px;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 5px 16px 0 rgba(39,58,71,0.18);
  transform: translateY(-2px) scale(1.026);
}

.btn-link {
  color: var(--retro-blue);
  font-weight: 700;
  display: inline-block;
  padding: 2px 5px;
  border-bottom: 2px dotted var(--retro-orange);
  margin-top:8px;
  transition: color .15s,border .20s;
}
.btn-link:hover, .btn-link:focus { color: var(--retro-red); border-bottom: 2px solid var(--retro-red); }

/* NAVIGATION */
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 2;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: .3px;
  padding: 8px 10px 6px 10px;
  border-radius: 7px;
  transition: background .16s, color .12s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.logo-link img {height: 48px; width: auto;}

/* MOBILE HAMBURGER MENU */
.mobile-menu-toggle {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  display: none;
  cursor: pointer;
  z-index: 1002;
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
.mobile-menu {
  position: fixed;
  left:0; top:0; width: 100vw; height: 100vh;
  background: var(--accent);
  box-shadow: 0 6px 38px -4px rgba(39,58,71,0.13);
  transform: translateX(-100vw);
  transition: transform 0.39s cubic-bezier(.66,1.66,.42,.86);
  z-index: 2000;
  padding: 36px 22px 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.6rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 20px;
  z-index: 2010;
  transition: color 0.15s;
}
.mobile-menu-close:hover {
  color: var(--retro-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 9px 7px;
  border-radius: 8px;
  margin-right: 0;
  transition: background .15s, color .13s;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width:768px) {
  .mobile-menu {
    padding-top: 32px;
    padding-bottom: 18px;
    font-size: 1.13rem;
  }
}

/* HERO & SECTIONS */
.hero-section {
  background: var(--secondary);
  padding: 54px 0 43px 0;
  border-bottom: 5px solid #cdb16c;
  position: relative;
  margin-bottom: 60px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero-section h1 {
  color: var(--primary);
  text-shadow: 1px 2px 1px #fff5e0, 0 0 2px #ceb46a33;
}
.hero-section p {
  max-width: 420px;
  font-size: 1.05rem;
}

.features-section, .services-section, .cta-section, .testimonials-section {
  background: var(--accent2);
  border-radius: 18px;
  box-shadow: 0 6px 38px -8px rgba(39,58,71,0.10);
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}

.cta-section {
  border: 4px dashed #E5C07B;
  background: #fffbe3;
  text-align: center;
  box-shadow: 0 5px 20px 0 rgba(160,130,30,0.06);
}
.cta-section h2, .cta-section p {text-align: center;}

/* SERVICES BLOCKS */
.service-block {
  background: var(--accent);
  padding: 25px 22px 19px 22px;
  border: 2px solid #e1e1e1;
  border-radius: 13px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px var(--retro-shadow);
  transition: border .17s, box-shadow .14s;
}
.service-block:hover {
  border-color: var(--secondary);
  box-shadow: 0 3px 23px 0 rgba(60,52,30,0.12);
}

.services-list {
  margin-top: 0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 26px;
}
.services-list li::before {
  content: '\25B8';
  color: var(--retro-orange);
  font-size: 1.1em;
  margin-right: 8px;
}

/* TESTIMONIALS */
.testimonials-section {
  background: #fff9ed;
  border-radius: 18px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fffffb;
  border-radius: 13px;
  box-shadow: 0 3px 24px 0 rgba(122, 79, 44, 0.10);
  border-left: 6px solid var(--retro-orange);
  margin-bottom: 24px;
  font-size: 1.1rem;
  color: #1d1915;
  position: relative;
}
.testimonial-card p {
  color: #31280e;
  font-size: 1.09rem;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #204155;
  font-family: var(--font-display);
}
.testimonial-card .star-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 6px;
}

/* BLOG LIST */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.blog-list li {
  background: var(--accent);
  border: 2px solid #e8dbaf;
  border-radius: 12px;
  box-shadow: 0 2px 14px var(--retro-shadow);
  padding: 25px 20px;
  margin-bottom: 18px;
  transition: box-shadow .14s, border .16s;
}
.blog-list li:hover {
  box-shadow: 0 6px 23px rgba(163,113,44,0.13);
  border-color: var(--secondary);
}
.blog-list h2 a {
  color: var(--primary);
  text-decoration: underline dotted var(--retro-blue) 1.5px;
  font-size: 1.2rem;
  transition: color .19s, text-decoration .15s;
}
.blog-list h2 a:hover { color: var(--retro-red); text-decoration: underline solid var(--retro-red) 1.5px; }

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 32px 0 14px 0;
  font-size: 1.05rem;
  letter-spacing: .22px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--secondary);
}
.footer-brand img { width:38px; height:auto;}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-right: 16px;
  margin-bottom: 8px;
}
.footer-menu a {
  color: var(--secondary);
  opacity: 0.91;
  transition: color .16s, text-decoration .11s;
  font-weight: 400;
}
.footer-menu a:hover, .footer-menu a:focus { color: #fae3b9; text-decoration: underline;}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.99rem;
}
.footer-contact img {
  width: 18px; height: 18px;
  opacity: 0.89;
}
.footer-contact a {color: var(--secondary);}  /* make links visible */

.footer-social {
  display: flex;
  gap: 13px;
  align-items: center;
}
.footer-social a {
  transition: filter 0.12s, transform .14s;
  display: inline-block;
  border-radius: 50%;
  padding: 4px;
}
.footer-social a:hover {
  filter: brightness(1.13) drop-shadow(0 0 7px #e5c07b55);
  transform: scale(1.07);
  background: #fff3c6;
}

/* CONTACT PAGE SPECIAL */
.contact-form-info ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 10px 0 14px 0;
}
.contact-form-info li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.05rem;
}
.map-embed {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff8ed;
  padding: 12px 18px;
  border-radius: 11px;
  border: 2px dashed #C08743;
  color: #46381d;
}

/* "THANK YOU" PAGE */
.text-section a.btn-primary {
  margin-top: 22px;
}

/* MISC */
ul {margin-bottom:18px;}
li {margin-bottom:3px;}
strong {font-weight: bold;}
img {border:0;}

/* SPACING AND CARD GAPS */
.section, .features-section, .services-section, .testimonials-section, .cta-section {
  margin-bottom:60px;
  padding:40px 20px;
}
.card-container {
  gap:24px;
}
.card {
  margin-bottom:20px;
}
.content-grid {
  gap:20px;
}
.text-image-section {
  gap:30px;
}
.testimonial-card {
  gap:20px;
  padding:20px;
}
.feature-item {
  gap:15px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .feature-grid,
  .content-grid {
    flex-direction: column;
    gap: 22px;
  }
  .features-section .feature-item {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .header-flex { gap: 12px; min-height:56px; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .section, .features-section, .services-section, .testimonials-section, .cta-section { padding: 32px 7px; margin-bottom:38px; }
  .content-wrapper { gap: 17px; }
  .feature-item, .service-block, .card { padding: 18px 9px 15px 13px; }
  .footer-brand { font-size: 1.09rem; }
  .footer-menu { margin-right:6px; font-size:0.98rem; }
  footer .content-wrapper { gap:18px; }
  .blog-list li { padding:14px 7px; }
  .testimonial-card { padding:12px 7px; }
  .testimonials-section { border-radius: 10px; }
  .cta-section { padding: 24px 6px; border-width:2.8px; }
}
@media (max-width: 540px) {
  html { font-size: 14px; }
  .container { padding-left:10px; padding-right:10px; }
  .footer-contact, .footer-social { flex-direction: column; gap:4px;}
  .footer-social { gap: 9px; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items:stretch;
    gap: 17px;
  }
  .header-flex { flex-wrap: wrap; }
  .content-wrapper { gap: 13px; }
}

/* MICRO-INTERACTIONS */
.card, .service-block, .feature-item, .testimonial-card {
  transition: box-shadow .14s, border .11s, transform .14s;
}
.card:active, .service-block:active, .feature-item:active, .testimonial-card:active {
  transform: scale(0.985);
}

/* VISUAL HIERARCHY (HEADINGS) */
.text-section h1, .text-section h2 {
  border-left: 7px solid var(--secondary);
  padding-left:13px;
  background: linear-gradient(90deg, #ffe9bb 40%, transparent 100%);
  border-radius: 4px 16px 16px 4px;
  margin-bottom: 8px;
  box-shadow: 0 1px 8px 0 #f6dfb420;
}

/* VINTAGE BADGE */
.cta-section:before {
  content:'¡Vintage!';
  display: inline-block;
  background: var(--retro-orange);
  color: #fffbe9;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing:2px;
  border-radius: 7px;
  padding: 3px 15px 2px 11px;
  position: absolute;
  top: -18px; left: 32px;
  box-shadow: 0 2px 8px -2px #cfb06e80;
  z-index:2;
  opacity: 0.77;
}

/* ------------------ COOKIE CONSENT BANNER ------------------ */
.cookie-consent-banner {
  position: fixed;
  left:0; right:0; bottom:0;
  z-index:3000;
  background: #fffbe3;
  border-top: 4px solid var(--secondary);
  box-shadow: 0 -1px 11px #E5C07B22;
  padding: 24px 16px 18px 16px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  justify-content: center;
  font-size: 1.04rem;
  color: #312612;
  animation: fadeInBottom .90s;
}
@keyframes fadeInBottom {
  0% {transform: translateY(120px); opacity:0;}
  100% {transform: translateY(0); opacity:1;}
}
.cookie-consent-banner .cookie-text {
  max-width: 440px;
  line-height: 1.7;
  margin-right: 21px;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn {
  background: var(--primary);
  color: var(--secondary);
  font-weight: 700;
  border: none;
  border-radius: 22px;
  padding: 9px 23px;
  font-size: 1rem;
  font-family: var(--font-display);
  cursor: pointer;
  box-shadow: 0 2px 12px #d2b26a22;
  transition: background .14s, color .13s, box-shadow .16s;
}
.cookie-btn.accept {
  background: var(--retro-green);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--retro-red);
  color: #fff8ee;
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn:hover {
  filter: brightness(1.08) contrast(1.08);
  box-shadow: 0 3px 15px #b3934433;
}
@media (max-width:700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap:16px;
    padding:18px 6px 14px 6px;
    font-size: 0.99rem;
  }
  .cookie-consent-banner .cookie-text {margin-right: 0;}
  .cookie-buttons {flex-direction: column; gap: 11px;}
}

/* COOKIE SETTINGS MODAL */
.cookie-consent-modal {
  display: none;
  position: fixed;
  left:0; top:0; width:100vw; height:100vh;
  background: rgba(39,58,71,0.23);
  z-index:4000;
  justify-content: center;
  align-items: center;
}
.cookie-consent-modal.open {
  display: flex;
  animation: fadeInModalBg .45s;
}
@keyframes fadeInModalBg {
  0% {opacity:0;} 100% {opacity:1;}
}
.cookie-modal-box {
  background: #fffbe3;
  box-shadow: 0 12px 56px 0 #d6b16c80;
  border-radius: 17px;
  padding: 34px 28px 22px 28px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  border: 3px solid var(--secondary);
  animation: modalPopIn .35s cubic-bezier(.82,1.81,.24,.97);
}
@keyframes modalPopIn {0% {transform: scale(0.67); opacity:0;} 90% {transform:scale(1.05);} 100% {transform:scale(1); opacity:1;}}

.cookie-modal-header {
  font-family: var(--font-display);
  font-size: 1.23rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary);
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f4d898;
  font-size: 1.05rem;
}
.cookie-modal-category:last-child {border-bottom:none;}
.cookie-modal-category label {
  font-weight: 600;
  color: var(--primary);
}
.cookie-modal-category .switch {
  position: relative;
  width: 47px;
  height: 24px;
  display: inline-block;
}
.switch input[type="checkbox"] {
  opacity: 0; width: 0; height: 0; position: absolute; left: -999px;
}
.switch .slider {
  position: absolute; cursor:pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #c3b099;
  border-radius: 24px;
  transition: .2s;
}
.switch input:checked + .slider {
  background: var(--retro-orange);
}
.switch .slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 2px; bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 1px 3px #c5bb7e66;
}
.switch input:checked + .slider:before {
  transform: translateX(23px);
}
.cookie-modal-close {
  position: absolute;
  right: 15px;
  top: 13px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor:pointer;
  z-index: 1;
  transition: color .15s;
}
.cookie-modal-close:hover {color: var(--retro-red);}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 19px;
  justify-content: flex-end;
  margin-top: 16px;
}
@media (max-width:540px) {
  .cookie-modal-box {
    padding: 20px 7px 14px 7px;
    min-width: 0;
    max-width: 99vw;
    font-size: 0.98rem;
  }
}

/* ------------- END COOKIE ------------- */

/* UTILITIES */
.hide {display: none!important;}

/* Z-INDEX LAYERS */
header { z-index: 900; position: relative; }
.mobile-menu { z-index: 2000; }
.cookie-consent-banner { z-index: 3000; }
.cookie-consent-modal { z-index: 4000; }

/* PRINT FRIENDLY */
@media print {
  *, *:before, *:after { background: none !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  .main-nav, .mobile-menu, .header-flex .btn-primary, footer, .cookie-consent-banner, .cookie-consent-modal { display:none !important;}
}
