/*
  LIMPIO SUPREME - RETRO VINTAGE CSS 2024
  =========================================================
  - NO CSS GRID. ONLY FLEXBOX FOR ALL LAYOUTS
  - Mobile-first responsive
  - Brand colors/fonts from brand guidelines
  - Retro/vintage colors, nostalgic details, classic patterns
  - All containers and cards spaced using flex, gap, and margins only
  - All interactive elements styled 
  - Hamburger and mobile menu
  - Cookie consent banner + modal
===========================================================
*/

/* RESET & NORMALIZE */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; border: 0; }
a { text-decoration: none; color: inherit; user-select: text; }
button, input, select, textarea { font: inherit; }

html { font-size: 16px; }
body {
  font-family: 'Lato', Arial, sans-serif;
  background: #F2F6FA; /* brand secondary */
  color: #15304D;        /* brand primary */
  font-size: 1rem;
  line-height: 1.65;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}

/* VINTAGE RETRO FONTS */
@import url('https://fonts.googleapis.com/css?family=Merriweather:900,700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:300,400,700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Merriweather', serif;
  color: #15304D;
  font-weight: 900;
  letter-spacing: -1px;
}
h1 { font-size: 2.4rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.28rem; margin-bottom: 10px; }
h4 { font-size: 1.06rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 1.5rem; }
}

p, ul li, ol li {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 16px;
}

strong, b { font-weight: 700; }
em { font-style: italic; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff8ec; /* Vintage paper/off-white */
  border-radius: 24px;
  box-shadow: 0 4px 24px 0 rgba(21,48,77,0.04), 0 0px 0 #000;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0;
}

.text-section {
  align-items: flex-start;
  gap: 16px;
}

main section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* FLEX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: #fffdf6; /* light vintage sepia */
  border-left: 8px solid #B9935A;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(185,147,90,0.04), 0 0 0 #000;
  color: #2a241a;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HEADER, NAV & LOGO */
header {
  background: #eae5d3; /* subtle retro beige */
  border-bottom: 2px solid #E8C89C;
  box-shadow: 0 2px 10px 0 rgba(21,48,77,0.06);
  position: sticky;
  top: 0; z-index: 1000;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px;
}
nav > a img {
  height: 42px;
  width: auto;
  filter: sepia(30%) contrast(1.10) brightness(1.08);
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
nav ul li {
  margin-bottom: 0;
}
nav ul li a {
  font-family: 'Merriweather', serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #4c3a1b;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .2s;
}
nav ul li a:hover, nav ul li a:focus {
  background: #F2F6FA;
  color: #B9935A;
}
nav .btn-primary {
  margin-left: 12px;
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  background: #B9935A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 1250;
  transition: background .2s;
  margin-left: auto;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  outline: 2px dashed #B9935A;
  background: #967849;
}

/* MOBILE NAV OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0; /* nav takes its own gap */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(31,28,11,0.92);
  z-index: 2000;
  transform: translateX(100%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.77,0,.18,1), opacity .35s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  margin: 32px 32px 0 0;
  transition: color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #B9935A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  margin-top: 28px;
  margin-right: 48px;
}
.mobile-nav a {
  padding: 12px 28px;
  font-family: 'Merriweather', serif;
  font-size: 1.42rem;
  font-weight: 900;
  color: #fff;
  background: none;
  border-radius: 12px;
  text-align: right;
  transition: color .2s, background .2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B9935A;
  background: rgba(242,246,250,0.08);
}

/* SHOW/HIDE MOBILE NAV ON SMALL SCREENS */
@media (max-width: 1000px) {
  nav ul, nav .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 1000px) {
  nav {
    gap: 12px;
  }
  nav > a img {
    height: 38px;
  }
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Merriweather', serif;
  font-weight: 900;
  color: #fff;
  background: #15304D;
  border: 2px solid #B9935A;
  border-radius: 12px;
  padding: 12px 26px;
  font-size: 1.14rem;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 8px 0 rgba(21,48,77,0.04);
  cursor: pointer;
  transition: background .14s, color .16s, border .15s;
  margin-top: 10px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #B9935A;
  color: #15304D;
  border-color: #15304D;
  outline: none;
}

.btn-secondary {
  background: #F2F6FA;
  color: #15304D;
  border: 2px solid #15304D;
  border-radius: 12px;
  font-family: 'Merriweather', serif;
  padding: 10px 18px;
  font-size: 1.04rem;
  cursor: pointer;
  transition: background .14s, color .16s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #B9935A;
  color: #fff;
}

/* HERO AREA (HOME PAGE) */
.content-wrapper.text-section {
  background: rgba(242,246,250,0.87);
  border-radius: 24px;
  box-shadow: 0 6px 48px 0 rgba(21,48,77,0.06);
  padding: 48px 32px;
  align-items: flex-start;
  margin-bottom: 18px;
}

/* FEATURES (WHY CHOOSE US) & GRID */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 -8px;
}
.feature {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #f6e8c3;
  border: 2px solid #dbbb77;
  border-radius: 20px;
  padding: 26px 22px 22px 22px;
  box-shadow: 0 2px 14px 0 rgba(185,147,90,0.07);
  margin-bottom: 20px;
  transition: transform .19s, box-shadow .18s;
}
.feature:hover, .feature:focus-within {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 5px 22px 0 rgba(21,48,77,0.10);
}
.feature img {
  height: 56px;
  width: 56px;
  margin-bottom: 17px;
}

/* SERVICE CARDS (servicios.html) */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.service-card {
  flex: 1 1 260px;
  max-width: 340px;
  background: #f6e7d1;
  border: 2px solid #B9935A;
  border-radius: 20px;
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 4px 20px 0 rgba(185,147,90,0.07);
  margin-bottom: 20px;
  transition: box-shadow .13s, transform .12s;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(21,48,77,0.13);
  transform: translateY(-4px) scale(1.01);
}
.service-card img {
  height: 48px;
  width: 48px;
  margin-bottom: 12px;
  filter: sepia(32%);
}
.service-card .price {
  font-family: 'Merriweather', serif;
  font-size: 1.04rem;
  color: #967849;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ECO BADGE (servicios.html) */
.eco-badge {
  background: #e7f2ae;
  color: #476013;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 9px;
  font-family: 'Merriweather', serif;
  font-size: 1.01rem;
  margin-top: 14px;
  margin-bottom: 8px;
}
.eco-badge img {
  height: 26px;
  width: 26px;
  filter: hue-rotate(-33deg);
}

/* FAQ ACCORDION */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  border-radius: 15px;
  border: 2px solid #E8C89C;
  background: #fff8ec;
  padding: 12px 22px 10px 22px;
  margin-bottom: 12px;
}
.faq-item h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.16rem;
  position: relative;
  margin-bottom: 7px;
  cursor: pointer;
  color: #4C3A1B;
}
.faq-answer {
  font-size: 1rem;
  color: #212524;
  margin-left: 0;
  margin-bottom: 5px;
}

/* TESTIMONIALS */
.testimonial-card {
  /* already themed above */
  font-size: 1.09rem;
  background: #fffdf6;
  color: #26200c;
  border-left: 8px solid #B9935A;
  font-family: 'Lato', Arial, sans-serif;
  margin-bottom: 28px;
  max-width: 590px;
}
.testimonial-card strong {
  color: #15304D;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  letter-spacing: .01em;
}
.testimonial-card .rating {
  font-family: 'Merriweather', serif;
  color: #B9935A;
  font-size: 1.2rem;
  letter-spacing: .1em;
  margin-top: 3px;
}
.star-rating {
  color: #B9935A;
  font-weight: bold;
  font-family: 'Merriweather', serif;
}

/* ADDRESS MAP / CONTACT INFO */
.contact-info {
  background: #f6e8c3;
  border-radius: 15px;
  padding: 22px 18px;
  margin-bottom: 21px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.address-map {
  background: #eae5d3;
  border-radius: 15px;
  padding: 17px 13px;
  color: #4C3A1B;
  margin-bottom: 13px;
}
.address-map h3 {
  font-size: 1.13rem;
  margin-bottom: 5px;
}

/* GENERIC CARDS / LISTS */
ul {
  padding-left: 1.15em;
  margin-bottom: 18px;
  list-style: disc inside;
}
ol {
  margin-bottom: 18px;
}
li {
  margin-bottom: 10px;
}

/* FOOTER */
footer {
  background: #f3e7c0;
  color: #4c3a1b;
  font-size: 1rem;
  padding: 28px 0 22px 0;
  border-top: 2px solid #E8C89C;
  box-shadow: 0px -2px 10px 0 rgba(21,48,77,0.06);
  margin-top: 30px;
  text-align: center;
}
footer nav {
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px 7px;
  padding: 0;
}
footer nav a {
  color: #784e09;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0px 5px;
  transition: color .2s;
}
footer nav a:hover, footer nav a:focus {
  color: #B9935A;
}
footer p {
  font-family: 'Lato', Arial, sans-serif;
  opacity: 0.9;
  margin-top: 5px;
  font-size: 1rem;
}

/* VINTAGE RETRO MOTIFS & DECORATIVE DETAILS */
.section, .feature-card, .testimonial-card, .service-card, .eco-badge, .faq-item, .contact-info, .address-map {
  /* Retro edge effect: subtle pattern border */
  box-shadow: 0 2px 10px 0 rgba(185,147,90,0.08), 0 1.5px 0 #f3d6aa inset;
}

/* MICRO-INTERACTIONS & HOVER */
a, .btn-primary, .btn-secondary, .feature, .service-card, .mobile-nav a, nav ul li a {
  transition: color .14s, background .14s, box-shadow .15s, transform .13s;
}

/* RETRO SCROLLBAR */
::-webkit-scrollbar { width: 8px; background: #E8C89C; }
::-webkit-scrollbar-thumb { background: #B9935A; border-radius: 7px; }

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 1200px) {
  .container { max-width: 920px; }
  .service-list, .feature-grid, .content-grid, .card-container { gap: 16px; }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .service-list, .feature-grid, .content-grid, .card-container { gap: 10px; }
  .testimonial-card { max-width: 100%; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
  .section {
    margin-bottom: 36px;
    padding: 24px 9px;
    border-radius: 14px;
  }
  .container { padding: 0 4px; }
  .content-wrapper.text-section { padding: 24px 7px; border-radius: 14px; }
  .feature-grid, .service-list, .content-grid, .card-container {
    flex-direction: column;
    gap: 12px;
  }
  .feature, .service-card {
    min-width: 0; max-width: 100%; border-radius: 14px; padding: 18px 9px 14px 9px;
  }
  .testimonial-card {
    padding: 13px 10px; border-radius: 10px;
  }
  .text-image-section { flex-direction: column; gap: 12px; }
  nav > a img { height: 33px; }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff8ec;
  border-top: 3px solid #B9935A;
  color: #3e3320;
  z-index: 8000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 20px 10px 20px 18px;
  gap: 24px;
  box-shadow: 0 -4px 24px 0 rgba(185,147,90,0.08);
  animation: fadeInUp .6s cubic-bezier(.55,0,.7,1) 1;
}
.cookie-banner p {
  margin-bottom: 0; font-size: 1rem;
}
.cookie-banner .cookie-btn {
  margin: 0 7px;
  padding: 9px 21px;
  border-radius: 10px;
  border: 2px solid #B9935A;
  color: #fff;
  background: #15304D;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  transition: background .15s, color .15s, border .13s;
  cursor: pointer;
}
.cookie-banner .cookie-btn.cookie-accept {
  background: #B9935A;
  color: #15304D;
}
.cookie-banner .cookie-btn.cookie-accept:hover, .cookie-banner .cookie-btn.cookie-accept:focus {
  background: #967849;
  color: #fff;
}
.cookie-banner .cookie-btn.cookie-settings {
  background: #fffdf6;
  color: #4C3A1B;
  border: 2px solid #15304D;
}
.cookie-banner .cookie-btn.cookie-settings:hover, .cookie-banner .cookie-btn.cookie-settings:focus {
  background: #15304D;
  color: #fff;
  border: 2px solid #B9935A;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(44px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 5px 16px 7px;
    gap: 13px;
  }
  .cookie-banner .cookie-btn { width: 100%; margin: 5px 0; }
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(0,0,0,0.60);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal .5s;
}
.cookie-modal-overlay.active { display: flex; }
@keyframes fadeInCookieModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff8ec;
  border: 3px solid #B9935A;
  border-radius: 17px;
  box-shadow: 0 5px 30px 0 rgba(21,48,77,0.13);
  padding: 34px 30px 20px 32px;
  max-width: 388px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: #15304D;
  animation: popCookieModal .44s cubic-bezier(.42,1.45,.79,1.01) 1;
}
@keyframes popCookieModal {
  0% { transform: scale(0.75); opacity: 0; }
  100% { transform: scale(1); opacity:1; }
}
.cookie-modal h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.28rem;
  color: #B9935A;
  margin-bottom: 8px;
  text-align: center;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f6e7d1;
  border-radius: 10px;
  padding: 8px 17px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
}
.cookie-category .toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #B9935A;
  width: 22px; height: 22px;
  margin-left: 2px;
}
.cookie-category .locked {
  color: #967849; font-size: 1.2em; margin-left: 7px;
}
.cookie-modal .cookie-save-btn {
  background: #B9935A;
  color: #fff;
  padding: 12px 0;
  border: none;
  border-radius: 12px;
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  margin: 10px 0 0 0;
  transition: background .15s, color .15s;
}
.cookie-modal .cookie-save-btn:hover, .cookie-modal .cookie-save-btn:focus {
  background: #967849;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  color: #15304D;
  font-size: 2rem;
  cursor: pointer;
  transition: color .17s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #B9935A;
}
@media (max-width: 480px) {
  .cookie-modal { padding: 16px 5px 15px 8px; border-radius: 9px; }
}

/* FORM ELEMENTS (for future-proofing contact forms) */
input, textarea, select {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.07rem;
  padding: 11px 14px;
  border: 2px solid #B9935A;
  background: #f5ecde;
  border-radius: 11px;
  margin-bottom: 14px;
  width: 100%;
  transition: border .15s, box-shadow .13s;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid #15304D;
  outline: none;
  box-shadow: 0 0 6px 1.5px rgba(185,147,90,0.09);
}
label {
  display: inline-block;
  margin-bottom: 5px;
  font-family: 'Merriweather', serif;
  color: #4C3A1B;
  font-size: 1.06rem;
}

/* INTERACTIONS/ANIMATIONS for cards and buttons */
.card, .testimonial-card, .service-card, .feature {
  transition: box-shadow .18s, transform .16s;
}
.card:hover, .service-card:hover, .feature:hover {
  box-shadow: 0 10px 38px 0 rgba(21,48,77,0.12);
  transform: translateY(-5px) scale(1.015);
}
.btn-primary:focus:not(:hover), .btn-secondary:focus:not(:hover) {
  outline: 2px solid #B9935A;
}

/* Anchor link effects */
a:hover, a:focus {
  color: #B9935A;
  text-decoration: underline wavy #B9935A 1.5px;
}

/* Z-INDEX PRECAUTION */
header { z-index: 1000; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 8000; }
.cookie-modal-overlay { z-index: 9999; }

/* PREVENT ABSOLUTE ON CARDS/TEXTS - only allow on close buttons/modal buttons */

/* Ensure all cards/sections at least 20px margin-bottom; all flex containers have gap */
/* (Redundant as included in selectors above) */

/* Accessibility tweaks */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* Custom retro patterns (subtle background for section if wanted) */
.section {
  background-image: repeating-linear-gradient(135deg, #f6e8c3 0px, #f6e8c3 9px, #fdf5e4 9px, #fdf5e4 20px);
  /* A soft vintage pattern */
  background-blend-mode: lighten;
}

/* Print style for retro logo if needed */
@media print {
  nav, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  main, .container, .content-wrapper { width: 100% !important; }
}

/* END VINTAGE RETRO CSS */