/* ========================= CSS RESET & BASE ========================= */
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, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #FAFAF7;
  color: #273045;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.01em;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
a {
  color: #4B936B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #273045;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.4em;
  margin-bottom: 16px;
}
strong, b {
  font-weight: bold;
}
small {
  font-size: 0.87em;
}

/* ===================== FONTS (Artistic/Display) ===================== */
h1, h2, h3, h4, h5, h6, .btn-primary, .btn-secondary, nav a, .mobile-nav a {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Georgia, 'Roboto', sans-serif;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.12;
  color: #273045;
  margin-bottom: 24px;
  text-shadow: 1px 3px 0 #EADCBF;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #4B936B;
  position: relative;
  line-height: 1.17;
}
h3 {
  font-size: 1.28rem;
  font-weight: 600;
  color: #273045;
  margin-bottom: 12px;
  line-height: 1.16;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #273045;
}
.text-section h2, .text-section h3 {
  margin-top: 28px;
}
.text-section {
  font-size: 1.07em;
}
/* Artistic font touch for key titles */
.hero h1, .cta h2, .brand-footer strong {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-family: 'Montserrat', cursive, 'Roboto', Arial, sans-serif;
}

/* ===================== BRAND COLOR VARIABLES ===================== */
:root {
  --brand-primary: #273045;
  --brand-secondary: #4B936B;
  --brand-accent: #EADCBF;
  --gray-light: #FAFAF7;
  --gray: #E5E8ED;
  --gray-dark: #bbc5d5;
  --dark: #12151b;
}

/* ===================== CONTAINER & LAYOUT ===================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 28px;
  box-shadow: 0 7px 32px -8px rgba(39,48,69,0.09), 0 2px 8px #EADCBF44;
  position: relative;
}
.cta {
  margin-bottom: 0 !important;
  padding: 50px 0 !important;
  background: var(--brand-accent);
  text-align: center;
}

/* =================== FLEXBOX SPACING PATTERNS =================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px #4B936B22, 0 1.5px 6px #27304518;
  overflow: hidden;
  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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFFDF8;
  border-left: 7px solid var(--brand-secondary);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2.5px 12px #27304511;
  transition: box-shadow 0.25s;
  color: #273045;
}
.testimonial-card:hover {
  box-shadow: 0 9px 28px -9px var(--brand-secondary), 0 3px 14px #EADCBF33;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #E6FFF3;
  border-radius: 15px;
  padding: 26px 24px;
  min-width: 220px;
  flex: 1 1 210px;
  box-shadow: 0 1.5px 6px #4B936B15;
  margin-bottom: 20px;
  border: 1.5px dashed var(--brand-secondary);
  transition: background 0.25s, border 0.2s;
}
.feature-item img {
  width: 40px;
  height: 40px;
}
.feature-item:hover {
  background: #f0fbf5;
  border-color: var(--brand-primary);
}
.features-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonials-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 24px;
  justify-content: flex-start;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 16px;
  background: #F6F6F2;
  border-radius: 18px;
  padding: 24px 20px;
}
.contact-details div {
  flex: 1 1 290px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  margin-bottom: 16px;
}
.footer-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-social-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}
.brand-footer {
  font-size: 1em;
  color: #4B936B;
  margin-bottom: 12px;
  text-align: center;
}
/* Artistic background element for creative touch */
.section:before, .cta:before {
  content: '';
  display: block;
  position: absolute;
  z-index: 1;
  top: -26px;
  left: 18px;
  width: 94px;
  height: 54px;
  background: #4B936B18;
  border-radius: 44% 76% 44% 70% / 51% 59% 91% 67%;
  pointer-events: none;
}
.cta:before {
  background: #27304522;
  left: 60%;
  top: -34px;
  width: 140px;
  height: 70px;
  border-radius: 44% 76% 44% 77% / 61% 59% 91% 67%;
}
.section, .cta {
  position: relative;
  z-index: 2;
}

/* ===================== BUTTONS & LINKS ===================== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 36px;
  font-weight: 700;
  padding: 12px 32px;
  font-size: 1.17rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  min-width: 160px;
  border: none;
  box-shadow: 0 2px 8px #4b936b22;
  letter-spacing: 0.01em;
  outline: none;
}
.btn-primary {
  background: var(--brand-secondary);
  color: #fff;
  border: 2px solid var(--brand-secondary);
}
.btn-primary:hover, .btn-primary:focus {
  background: #347e4e;
  color: #fff;
  box-shadow: 0 7px 28px -5px #4B936B55;
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
}
.btn-secondary {
  background: transparent;
  color: var(--brand-secondary);
  border: 2.5px dashed var(--brand-secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #e3fcee;
  color: var(--brand-primary);
  box-shadow: 0 5px 23px -4px #EADCBF77;
  border-style: solid;
}

/* ===================== NAVIGATION & HEADER ===================== */
header {
  background: #fff;
  border-bottom: 1.5px solid #EADCBF;
  box-shadow: 0 3px 16px #2730450A;
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 900;
}
nav {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 18px 0;
  position: relative;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
}
nav li {
  list-style: none;
}
nav a {
  font-weight: 600;
  color: var(--brand-primary);
  padding: 6px 15px;
  border-radius: 27px;
  position: relative;
  transition: background 0.22s, color 0.22s;
}
nav a:hover, nav a.active {
  background: #EADCBF;
  color: var(--brand-secondary);
  text-decoration: none;
}
nav .btn-primary {
  margin-left: 18px;
}

/* Hide mobile menu by default, show toggle on mobile */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-secondary);
  color: #fff;
  border: none;
  font-size: 2.1rem;
  border-radius: 16px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, box-shadow 0.2s, color 0.17s;
  z-index: 1001;
  position: absolute;
  right: 30px;
  top: 14px;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--brand-primary);
  color: var(--brand-accent);
  box-shadow: 0 2px 10px #27304522;
  outline: none;
}
/* Mobile navigation menu panel */
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 85vw;
  max-width: 390px;
  z-index: 2000;
  box-shadow: 4px 0 32px #27304530;
  transform: translateX(-100%);
  transition: transform 0.37s cubic-bezier(.57,.04,.18,.97);
  padding: 36px 18px 34px 33px;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--brand-accent);
  color: var(--brand-primary);
  border: none;
  border-radius: 12px;
  font-size: 2.1rem;
  margin-bottom: 18px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  cursor: pointer;
  transition: background 0.2s;
}
.mobile-menu-close:hover {
  background: var(--brand-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  padding: 12px 7px;
  color: var(--brand-primary);
  border-radius: 9px;
  /* Artistic underline accent on hover */
  position: relative;
  font-weight: 600;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  background: #EADCBF;
  color: var(--brand-secondary);
}

/* ===================== HERO SECTION ===================== */
.hero {
  padding: 40px 0 30px 0;
  background: var(--brand-accent);
  position: relative;
  overflow:hidden;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 10px;
}
.hero h1 {
  color: var(--brand-primary);
  text-shadow: 2px 2px #EADCBF44;
}
.hero p {
  font-size: 1.17rem;
  color: #273045;
  opacity: 0.93;
}
.hero .btn-primary {
  margin-top: 20px;
  min-width: 190px;
}
.hero:before {
  content: '';
  position: absolute;
  right: -50px;
  top: -40px;
  width: 200px;
  height: 150px;
  border-radius: 70% 60% 60% 87% / 70% 47% 80% 95%;
  background: #4B936B35;
  z-index: 1;
}

/* ===================== CTA BLOCKS ===================== */
.cta .container {
  text-align: center;
}
.cta h2 {
  color: var(--brand-primary);
  font-size: 2.3rem;
}
.cta .btn-primary {
  margin-top: 22px;
}

/* =================== MAIN CONTENT ADORNMENTS =================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.section:last-of-type,
section:last-of-type {
  margin-bottom: 0;
}
.text-section {
  margin-bottom: 24px;
}
.text-section ul, .text-section ol {
  margin-bottom: 13px;
}

/* ======================= TESTIMONIALS ======================= */
.testimonials-preview {
  width: 100%;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.08em;
  margin-bottom: 6px;
  color: #273045;
  opacity: 0.97;
}
.testimonial-card strong {
  font-size: 1em;
  color: var(--brand-secondary);
}

/* Testimonials page specific */
main > section .testimonial-card {
  margin-bottom: 28px;
  background: #FFFDF8;
  border-left: 7px solid var(--brand-secondary);
  border-radius: 18px;
  transition: box-shadow 0.22s;
  box-shadow: 0 2.5px 12px #27304511;
}
main > section .testimonial-card:hover {
  box-shadow: 0 9px 28px -8px #4B936B44, 0 3px 14px #EADCBF33;
}

/* ================= SERVICES LISTS (Servicios.html, etc) ================= */
ul li, ol li {
  margin-bottom: 12px;
}
main ul li strong {
  color: var(--brand-secondary);
}

/* ===================== LINK/FOOTER STYLES ===================== */
footer {
  background: var(--brand-primary);
  color: #EEE;
  padding: 44px 0 10px 0;
  box-shadow: 0 -2px 12px #27304533;
}
.footer-links nav a {
  color: #EADCBF;
  font-size: 1rem;
  transition: color 0.17s;
  padding: 7px 13px;
}
.footer-links nav a:hover {
  color: #fff;
  background: #4B936B33;
  border-radius: 9px;
}
.footer-social-icons img {
  width: 33px;
  height: 33px;
  transition: transform 0.18s;
}
.footer-social-icons img:hover {
  transform: scale(1.12) rotate(-7deg);
}
.brand-footer {
  font-size: 1.04rem;
  color: #EADCBF;
  margin-top: 22px;
  line-height: 1.5;
}
.brand-footer strong {
  color: var(--brand-accent);
  letter-spacing: 0.06em;
  font-family: 'Montserrat', cursive, 'Roboto', Arial, sans-serif;
}
.brand-footer span {
  color: #4B936B;
  font-size: 0.96em;
}
.brand-footer small {
  color: #FFF;
  font-weight: 400;
  font-size: 0.95em;
  opacity: 0.66;
}

/* ================== COOKIE CONSENT BANNER ================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FFFDF8;
  color: var(--brand-primary);
  box-shadow: 0px -2px 24px #27304522;
  z-index: 2222;
  padding: 24px 22px 20px 22px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 26px;
  justify-content: center;
  animation: cookieFadeIn 0.62s ease;
}
@keyframes cookieFadeIn {
  from { opacity:0; transform: translateY(35px); }
  to { opacity:1; transform: translateY(0); }
}
.cookie-banner p {
  flex: 1 1 220px;
  margin: 0 16px 0 0;
  font-size: 1.05em;
}
.cookie-banner .cookie-btns {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-btn {
  padding: 9px 21px;
  border-radius: 18px;
  border: none;
  margin-left: 0;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  box-shadow: 0 1.5px 8px #27304518;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cookie-accept {
  background: var(--brand-secondary);
  color: #fff;
  border: 2px solid var(--brand-secondary);
}
.cookie-accept:hover { background: #347e4e; }
.cookie-reject {
  background: #fff;
  border: 2.2px dashed #EADCBF;
  color: #273045;
}
.cookie-reject:hover {
  background: #EADCBF;
  color: var(--brand-primary);
}
.cookie-settings {
  background: #EADCBF;
  color: var(--brand-primary);
  border: 2px solid #EADCBF;
}
.cookie-settings:hover {
  background: #f3ebe0;
}
/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: 3232;
  background: #27304544;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieFadeIn 0.3s;
}
.cookie-modal {
  background: #fff;
  color: var(--brand-primary);
  border-radius: 28px;
  padding: 32px 26px;
  min-width: 290px;
  max-width: 98vw;
  box-shadow: 0 4px 32px #27304544;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieFadeIn 0.5s;
}
.cookie-modal h2 {
  font-size: 1.45rem;
  color: var(--brand-secondary);
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FAFAF7;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 1.09em;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--brand-secondary);
  width: 21px;
  height: 21px;
}
.cookie-toggle-label {
  font-weight: 600;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 15px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--brand-secondary);
  font-size: 2rem;
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
  padding: 0;
  font-family: 'Montserrat','Arial',sans-serif;
}
.cookie-modal-close:hover {
  color: var(--brand-primary);
}
/* =================== RESPONSIVE DESIGN (mobile-first) =================== */
@media (max-width: 1220px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .footer-links nav {
    gap: 11px;
  }
  .footer-social-icons img {
    width: 28px;
    height: 28px;
  }
  .testimonials-preview {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  nav ul, nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero .content-wrapper {
    align-items: flex-start;
    padding-top: 3px;
  }
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }
  .contact-details {
    flex-direction: column;
    padding: 18px 10px;
    gap: 10px;
  }
  section, .section {
    padding: 32px 7px;
  }
  .cta {
    padding: 38px 2vw;
    min-width: 0;
  }
  .features-grid, .testimonials-preview, .card-container, .content-grid, .footer-links nav {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    justify-content: flex-start;
  }
  .feature-item {
    width: 98%;
    min-width: 0;
    padding: 20px 12px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .mobile-menu {
    max-width: 97vw;
    padding-right: 10px;
    padding-left: 10px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 17px 7px 13px 7px;
    text-align: left;
  }
  .cookie-btn {
    width: 100%;
    min-width: 0;
    font-size: 1em;
  }
}
@media (max-width: 480px) {
  h1 {font-size: 1.55rem;}
  h2 {font-size: 1.25rem;}
  .brand-footer span {font-size: 0.85em;}
  nav {
    padding-right: 10px;
    padding-left: 0px;
  }
}

/* ======================= ANIMATIONS & MICRO-INTERACTIONS ======================= */
.btn-primary, .btn-secondary {
  will-change: transform, box-shadow;
  transition: transform 0.18s, box-shadow 0.25s, background 0.2s, color 0.2s;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.95);
}
nav a:after {
  content: '';
  display: block;
  width: 0%;
  height: 2.5px;
  background: var(--brand-secondary);
  transition: width 0.19s;
  border-radius: 4px;
  margin-top: 2.5px;
}
nav a:hover:after, nav a.active:after {
  width: 33%;
}

@media (hover: none) {
  nav a:after {display: none;}
}

input[type=text], input[type=email], textarea {
  font-family: inherit;
  border-radius: 9px;
  padding: 8px 13px;
  border: 1.5px solid #EADCBF;
  margin-bottom: 13px;
  width: 100%;
  font-size: 1em;
  box-shadow: none;
  outline: none;
  transition: border 0.18s;
}
input[type=text]:focus, input[type=email]:focus, textarea:focus {
  border-color: var(--brand-secondary);
}

/* Artistic deco border line on major section titles */
h2 {
  position: relative;
  padding-left: 0.7em;
}
h2:after {
  content: '';
  position: absolute;
  left: 0;
  top: 55%;
  width: 5px;
  height: 34px;
  border-radius: 6px;
  background: #4B936B;
  transform: translateY(-50%) rotate(-10deg);
  z-index: -1;
  opacity: 0.25;
}

/* Decorations for artistic look */
.feature-item, .testimonial-card {
  border-radius: 14px 30px 16px 14px/50% 32% 26% 44%;
}

hr {
  border: none;
  border-top: 2.5px dashed #EADCBF;
  margin: 2em 0;
}

/* ======================= UTILITY CLASSES ======================= */
.text-center {text-align: center;}
.mt-1 {margin-top:8px;}
.mt-2 {margin-top:16px;}
.mt-3 {margin-top:24px;}
.mt-4 {margin-top:32px;}
.mb-1 {margin-bottom:8px;}
.mb-2 {margin-bottom:16px;}
.mb-3 {margin-bottom:24px;}
.mb-4 {margin-bottom:32px;}

/* Accessibility - high contrast for testimonial texts */
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  color: #253048 !important;
}

/* ======================= END OF CSS ======================= */
