/* =========================================
   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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F0F4FA;
  color: #1A3556;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #59B58C;
  outline-offset: 2px;
}

/* =========================================
   Custom Properties for Colors/Fonts
========================================= */
:root {
  --color-primary: #1A3556;
  --color-secondary: #59B58C;
  --color-accent: #F0F4FA;
  --color-text: #24334D;
  --color-bg: #F8FBFF;
  --color-footer-bg: #E9EEF6;
  --color-error: #D13A3A;
  --color-success: #3AB47D;
  --color-muted: #90A3BF;
  --color-white: #fff;
  --shadow-card: 0 2px 10px rgba(26,53,86,0.06);
  --shadow-hover: 0 4px 16px rgba(26,53,86,0.10);
  --radius-card: 16px;
  --radius-btn: 24px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* =========================================
   Typography Hierarchy
========================================= */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-primary);
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-primary);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--color-primary);
}
h4, .h4 {
  font-size: 1.125rem;
  font-family: var(--font-body);
  font-weight: bold;
  color: var(--color-primary);
}
p, li, td, th, input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}
strong {
  font-weight: 700;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.375rem; }
  h3, .h3 { font-size: 1.1rem; }
}

/* =========================================
   Layout Containers & Flexbox Patterns
========================================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 32px;
  }
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.012);
  transition: box-shadow 0.2s, transform 0.2s;
}

.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: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  flex: 1 1 300px;
  flex-direction: column;
  text-align: left;
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.08rem;
  margin-bottom: 8px;
  font-style: italic;
}
.testimonial-card span {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--color-secondary);
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===================
  Spacing Utility Classes
=================== */
.mb-24 { margin-bottom: 24px !important; }
.mt-24 { margin-top: 24px !important; }
.my-32 { margin: 32px 0 !important; }

/* =========================================
   Header / Navbar
========================================= */
header {
  background: var(--color-white);
  box-shadow: 0 1px 8px rgba(26,53,86,0.08);
  padding: 0;
  position: relative;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
header img {
  height: 42px;
  width: auto;
  margin-right: 18px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  padding: 7px 10px;
  font-size: 1rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-secondary);
  background: rgba(89,181,140,0.08);
}
.cta-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  margin-left: 28px;
  box-shadow: 0 2px 12px rgba(89,181,140,0.09);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #419073;
  color: var(--color-accent);
  box-shadow: 0 4px 18px rgba(89,181,140,0.14);
  transform: translateY(-1px) scale(1.02);
}

/* =========================================
   Mobile Navigation
========================================= */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  margin-left: 18px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 10px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: rgba(26,53,86,0.07);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: 0 0 24px rgba(26,53,86,0.15);
  z-index: 1111;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(.65,.05,.36,1), opacity 0.3s;
  display: flex;
  flex-direction: column;
  padding-top: 32px;
  padding-bottom: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-secondary);
  cursor: pointer;
  z-index: 2;
  padding: 0px 8px;
  border-radius: 50%;
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(89,181,140,0.13);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
  margin-top: 60px;
  margin-left: 36px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.18rem;
  font-family: var(--font-display);
  padding: 12px 0 12px 0;
  border-radius: 0px 24px 24px 0px;
  min-width: 180px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}

@media (max-width: 1100px) {
  header nav {
    gap: 8px;
  }
  .cta-btn {
    margin-left: 12px;
    padding: 11px 22px;
  }
}

@media (max-width: 850px) {
  header nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 500px) {
  header .container { padding: 8px 8px; }
  .mobile-menu { padding-top: 15px; }
  .mobile-nav { margin-left: 17px; gap: 15px; }
}


/* =========================================
   Hero Section & Call to Action
========================================= */
.hero {
  background: linear-gradient(120deg, #F0F4FA 60%, #fff 100%);
  border-radius: 0 0 36px 36px;
  box-shadow: 0 2px 12px rgba(89,181,140,0.12);
  margin-bottom: 50px;
}
.hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  padding: 60px 0 48px 0;
  gap: 16px;
}
.hero h1 {
  color: var(--color-primary);
  margin-bottom: 12px;
}
.hero p {
  color: var(--color-text);
  font-size: 1.19rem;
  max-width: 680px;
}
.hero .cta-btn {
  margin-top: 22px;
}

@media (max-width: 900px) {
  .hero .content-wrapper { padding: 30px 0 24px 0; }
}
@media (max-width: 600px) {
  .hero { margin-bottom: 28px; border-radius: 0 0 20px 20px; }
  .hero .content-wrapper { padding: 18px 0 16px 0; }
}

/* =========================================
   Content Lists & Icons
========================================= */
.content-wrapper ul,
.content-wrapper ol {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 0;
}
.content-wrapper ul li,
.content-wrapper ol li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: none;
  font-size: 1rem;
  font-family: var(--font-body);
}
.content-wrapper ul li img,
.content-wrapper ol li img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: none;
}

@media (max-width: 650px) {
  .content-wrapper ul li, .content-wrapper ol li {
    font-size: 0.97rem;
    gap: 8px;
  }
}


/* =========================================
   Service & Pricing Cards (oferta.html)
========================================= */
.service-item {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px 22px 22px 22px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 230px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.16s;
}
.service-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.014);
}
.pricing-table {
  background: var(--color-accent);
  border-radius: var(--radius-card);
  overflow-x: auto;
  margin-top: 32px;
  box-shadow: var(--shadow-card);
}
.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 360px;
}
.pricing-table th,
.pricing-table td {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid #E2EAF4;
}
.pricing-table th {
  background: #E9EEF6;
  font-weight: 700;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 750px) {
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .service-item { min-width: unset; }
  .pricing-table { margin-top: 20px; overflow-x: auto; font-size: 0.97rem; }
}

/* =========================================
   Text Section
========================================= */
.text-section {
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =========================================
   FAQ Accordion
========================================= */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-accordion details {
  background: var(--color-white);
  border-radius: var(--radius-card);
  margin-bottom: 4px;
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  transition: box-shadow 0.18s;
}
.faq-accordion details[open] {
  box-shadow: var(--shadow-hover);
}
.faq-accordion summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.10rem;
  color: var(--color-primary);
  font-weight: 600;
  outline: none;
}
.faq-accordion p {
  margin-top: 8px;
  color: var(--color-text);
}

/* =========================================
   Contact Section
========================================= */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 24px;
}
.contact-details .text-section {
  flex: 1 1 260px;
}
.map {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: start;
}
.contact-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 1rem;
  color: var(--color-text);
}
.contact-info img {
  width: 22px;
  margin: 0 6px -5px 0;
}

@media (max-width: 850px) {
  .contact-details { flex-direction: column; gap: 14px; }
  .contact-details .text-section { min-width: unset; }
  .map { margin-top: 10px; }
}

/* =========================================
   Footer
========================================= */
footer {
  background: var(--color-footer-bg);
  color: var(--color-text);
  padding: 0;
  font-size: 0.99rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 20px 12px 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
footer img {
  height: 32px;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
footer nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 500;
  opacity: 0.96;
  transition: color 0.16s, opacity 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
footer .business-hours {
  font-size: 0.97rem;
  margin-top: 18px;
  color: var(--color-muted);
}

@media (max-width: 800px) {
  footer .content-wrapper { flex-direction: column; gap: 14px; }
  footer .container { padding: 28px 10px 10px 10px; }
}

/* =========================================
   Miscellaneous & Utilities
========================================= */
::-webkit-input-placeholder { color: #90A3BF; }
::-moz-placeholder { color: #90A3BF; }
:-ms-input-placeholder { color: #90A3BF; }
::placeholder { color: #90A3BF; }

hr {
  border-top: 1px solid #E9EEF6;
  margin: 28px 0;
}

/* =========================================
   Responsive Layout Adjustments
========================================= */
@media (max-width: 768px) {
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .section { padding: 28px 6px; margin-bottom: 32px; }
  .testimonial-card,
  .card,
  .service-item {
    min-width: unset;
    padding: 16px 9px;
  }
  .pricing-table th, .pricing-table td { padding: 8px 7px; }
  .text-image-section { flex-direction: column; gap: 14px; }
}
@media (max-width: 450px) {
  h1, .h1 { font-size: 1.35rem; }
  h2, .h2 { font-size: 1.04rem; }
}

/* =========================================
   Cookie Consent Banner
========================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid #E2EAF4;
  box-shadow: 0 -2px 18px rgba(26,53,86,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 16px 16px;
  z-index: 2222;
  font-size: 1rem;
  gap: 20px;
  opacity: 1;
  transition: opacity 0.33s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  max-width: 650px;
  color: var(--color-primary);
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 5px;
}
.cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 22px;
  border: none;
  margin: 0 2px;
  box-shadow: 0 1px 8px rgba(89,181,140,0.06);
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.19s, color 0.19s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #419073;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #e7f2ed;
  color: #1A3556;
  border-color: #419073;
}
.cookie-btn.settings {
  background: #F0F4FA;
  color: var(--color-primary);
  border: 1px solid #E2EAF4;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #E9EEF6;
  color: var(--color-secondary);
}

@media (max-width:550px) {
  .cookie-banner {
    flex-direction: column;
    padding: 14px 5px 12px 5px;
    font-size: 0.97rem;
    gap: 11px;
  }
  .cookie-btns { gap: 9px; }
}

/* =========================================
   Cookie Preferences Modal
========================================= */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3333;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(26,53,86,0.11);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.32s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 28px rgba(26,53,86,0.20);
  min-width: 320px;
  max-width: 95vw;
  padding: 38px 38px 24px 38px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.7em;
  color: var(--color-muted);
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-secondary);
}
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 9px 2px;
  border-radius: 10px;
}
.cookie-cat label {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--color-primary);
}
.cookie-cat input[type='checkbox'] {
  width: 22px; height: 22px;
  accent-color: var(--color-secondary);
  outline: 1px solid #E2EAF4;
  border-radius: 4px;
}
.cookie-cat.essential label {
  color: var(--color-muted);
  opacity: 0.75;
}
.cookie-cat.essential input[type='checkbox'] {
  accent-color: var(--color-muted);
}
.cookie-modal-foot {
  padding-top: 7px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .cookie-modal {
    min-width: 0;
    padding: 18px 8px 16px 8px;
  }
}

/* =========================================
   Micro-interactions & Animation
========================================= */
.cta-btn, .cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, transform 0.14s;
}
.card, .service-item, .testimonial-card, .faq-accordion details {
  transition: box-shadow 0.15s, transform 0.12s, background 0.15s;
}
.card:active, .service-item:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* =========================================
   Accessibility
========================================= */
*:focus-visible {
  outline: 2px dashed var(--color-secondary);
  outline-offset: 1px;
}

/* =========================================
   Visual SCANDINAVIAN-CLEAN Details
========================================= */
.card, .testimonial-card, .service-item, .text-section {
  /* Suggest natural material by emphasizing pristine white and soft shadows */
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  border: 1px solid #E9EEF6;
}

/* ==================
  Print Utility
================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  .container { padding: 0 !important; }
}
