/* ============================== */
/*        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, u, i, b, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, 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;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fafbfc;
  color: #33415c;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  position: relative;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
*:focus {
  outline: 2px solid #b9aaff;
  outline-offset: 2px;
}

/* ============================== */
/*           BRAND FONTS          */
/* ============================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,300,500,700&display=swap');

:root {
  --primary: #1A365D;
  --secondary: #228B22;
  --accent: #F8F8FF;

  --pastel-blue: #cee7ff;
  --pastel-green: #c7fbd6;
  --pastel-lilac: #ece6fe;
  --pastel-mint: #e5fff6;
  --pastel-yellow: #fff6cf;
  --pastel-pink: #ffe1ec;
  --shadow: 0 4px 16px 0 rgba(80, 100, 120, 0.10), 0 1.5px 4px 0 rgba(80, 100, 120, 0.10);
}

/* ============================== */
/*        GENERAL LAYOUT          */
/* ============================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

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

/* ============================== */
/*         TYPOGRAPHY             */
/* ============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.2;
}
h2 {
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 13px;
}
h3 {
  font-size: 1.35rem;
  font-weight: 500;
}
h4 {
  font-size: 1.15rem;
  font-weight: 500;
}
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  color: #33415c;
  font-size: 1rem;
  line-height: 1.7;
}
strong {
  font-weight: 600;
}
ul, ol {
  padding-left: 23px;
  margin-bottom: 6px;
}
li {
  margin-bottom: 8px;
  font-size: 1rem;
}

/* ============================== */
/*        HEADER + NAVBAR         */
/* ============================== */
header {
  background: var(--pastel-blue);
  box-shadow: 0 2px 12px rgba(177, 209, 255, 0.15);
  padding: 0;
}
header .container {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
}
header img {
  height: 42px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
}
.main-nav a {
  color: #33415c;
  padding: 7px 10px;
  border-radius: 8px;
  position: relative;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-lilac);
  color: var(--secondary);
}
.cta.primary {
  background: var(--secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  padding: 12px 30px;
  font-size: 1.06rem;
  border-radius: 24px;
  font-weight: 600;
  box-shadow: var(--shadow);
  margin-left: 18px;
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.22s, transform 0.15s;
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: #1dba70;
  box-shadow: 0 6px 18px 0 rgba(100,200,100,0.07);
  transform: translateY(-1px) scale(1.03);
}
.cta.secondary {
  background: var(--pastel-lilac);
  color: var(--primary);
  border: none;
  padding: 10px 26px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow);
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.14s, transform 0.17s;
  display: inline-block;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #e2d6f7;
  color: var(--secondary);
  transform: translateY(-1px) scale(1.03);
}

/* ============================== */
/*      MOBILE NAVIGATION MENU    */
/* ============================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.15rem;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 7px;
  margin-left: 18px;
  cursor: pointer;
  transition: background 0.17s;
  z-index: 102;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--pastel-lilac);
}
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: linear-gradient(135deg, #cee7ff 60%, #f6feff 100%);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 1002;
  padding-top: 0;
  animation: slideInRight 0.35s cubic-bezier(.69,0,.34,1);
  box-shadow: 0 8px 32px 0 rgba(177,209,255,0.10);
}
@keyframes slideInRight {
  from { transform: translateX(100vw); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--primary);
  margin: 30px 30px 0 0;
  cursor: pointer;
  border-radius: 7px;
  padding: 2px 12px 2px 12px;
  transition: background 0.12s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--pastel-mint);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  margin: 40px 28px;
}
.mobile-nav a {
  padding: 14px 12px;
  font-size: 1.18rem;
  color: var(--primary);
  border-radius: 10px;
  background: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.14s, color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--pastel-lilac);
  color: var(--secondary);
}

@media (max-width: 1024px) {
  header .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .main-nav {
    gap: 14px;
    font-size: 1rem;
  }
  .cta.primary {
    margin-left: 8px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
  header .container {
    gap: 7px;
    height: 76px;
  }
}
@media (max-width: 767px) {
  header .container {
    height: 58px;
    gap: 8px;
  }
  .main-nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: none;
  }
  .mobile-menu.active {
    display: flex;
  }
}

/* ============================== */
/*         HERO  + CTA BANNER     */
/* ============================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 20px;
  transition: background 0.18s;
}
section:first-of-type {
  background: linear-gradient(100deg, var(--pastel-blue) 80%, var(--pastel-mint) 100%);
  box-shadow: 0 0 0 0 rgba(0,0,0,0.05);
}
section:last-of-type .content-wrapper {
  align-items: center;
}

@media (max-width: 600px) {
  section {
    padding: 22px 6px;
    margin-bottom: 37px;
    border-radius: 13px;
  }
}

/* ============================== */
/*          FEATURES GRID         */
/* ============================== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 12px 0 5px 0;
  justify-content: flex-start;
}
.features-grid > div {
  background: var(--pastel-mint);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 25px 18px 22px 18px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.features-grid > div:hover {
  box-shadow: 0 8px 28px 0 rgba(129,183,232,0.13);
  transform: translateY(-3px) scale(1.02);
}
.features-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  background: var(--pastel-yellow);
  border-radius: 50%;
  padding: 7px;
  box-shadow: 0 1.5px 4px rgba(0,0,0,0.03);
}
.features-grid h3 {
  margin-top: 0;
  margin-bottom: 4px;
  color: var(--primary);
}
.features-grid p {
  color: #33415c;
  font-size: 1rem;
}

@media (max-width: 800px) {
  .features-grid {
    gap: 14px;
  }
  .features-grid > div {
    min-width: 160px;
    max-width: 100%;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .features-grid {
    flex-direction: column;
    gap: 17px;
  }
  .features-grid > div {
    width: 100%;
    max-width: 99%;
    min-width: 120px;
    padding: 18px 10px;
  }
}

/* ============================== */
/*          TESTIMONIALS          */
/* ============================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border-radius: 20px;
  background: var(--pastel-pink);
  color: #253150;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  font-size: 1.05rem;
  transition: box-shadow 0.15s, background 0.15s;
}
.testimonial-card p {
  font-size: 1.10rem;
  color: #253150;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 0;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-meta {
  font-size: 0.99rem;
  opacity: .95;
  color: var(--primary);
}
.testimonial-card span[aria-label="Valoración"] {
  color: #f1ac00;
  letter-spacing: 0.1rem;
  font-size: 1.14rem;
  text-shadow: 0 .7px 0 #fffbe2;
}
.testimonial-summary {
  background: var(--pastel-yellow);
  color: #1a365d;
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 1.04rem;
  margin-top: 12px;
  box-shadow: 0 2px 10px rgba(255,227,190,0.10);
}

/* ============================== */
/*            CARDS               */
/* ============================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--pastel-lilac);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.13s, background 0.16s;
}
.card:hover {
  box-shadow: 0 8px 24px 0 rgba(177,209,255,0.12);
  background: #f4eeff;
}

/* ============================== */
/*            CONTENT GRID        */
/* ============================== */
.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: 900px) {
  .text-image-section {
    gap: 15px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== BLOG SPECIAL ======== */
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  align-items: center;
}
.blog-toolbar input[type="text"] {
  font-size: 1rem;
  padding: 8px 16px;
  border: 1.3px solid #cbd1ea;
  border-radius: 14px;
  background: var(--pastel-mint);
  transition: border 0.14s, box-shadow 0.13s;
  font-family: 'Roboto', Arial, sans-serif;
}
.blog-toolbar input[type="text"]:focus {
  border: 1.5px solid var(--primary);
  box-shadow: 0 1px 5px #e4f1ff;
}
.blog-toolbar select {
  font-size: 1rem;
  padding: 7px 14px;
  border: 1.2px solid #dbd0e9;
  border-radius: 14px;
  background: var(--pastel-lilac);
  font-family: 'Roboto', Arial, sans-serif;
}
.blog-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: column;
}
.blog-preview-list article {
  background: var(--pastel-yellow);
  border-radius: 11px;
  padding: 20px 25px 15px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 15px;
}
.blog-preview-list h2 {
  font-size: 1.23rem;
  margin-bottom: 6px;
}
.blog-preview-list p {
  font-size: 1rem;
}
.blog-preview-list a {
  color: var(--secondary);
  padding: 2px 0;
  margin-top: 5px;
  font-weight: 600;
  display: inline-block;
  border-radius: 5px;
  transition: background 0.1s, color 0.14s;
}
.blog-preview-list a:hover {
  background: #d2f5e3;
  color: var(--primary);
}

/* ========== CONTACT DETAILS ======== */
.contact-details p {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
}
.contact-details img {
  height: 22px;
  width: 22px;
  background: var(--pastel-lilac);
  border-radius: 5px;
  padding: 2px;
  margin-right: 2px;
}
.hours-table {
  background: var(--pastel-mint);
  border-radius: 13px;
  box-shadow: var(--shadow);
  margin: 15px 0 15px 0;
  border-collapse: collapse;
  width: 100%;
  max-width: 400px;
  font-size: 1.07rem;
}
.hours-table th, .hours-table td {
  padding: 10px 14px;
  text-align: left;
}
.hours-table th {
  color: var(--secondary);
  font-weight: 700;
}
.hours-table tr:nth-child(even) {
  background: #e7fffa;
}

/* ============================== */
/*          FOOTER                */
/* ============================== */
footer {
  background: linear-gradient(105deg, var(--pastel-blue) 85%, var(--pastel-mint) 100%);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 14px rgba(177,209,255,0.11);
  padding: 40px 0 27px 0;
  margin-top: 50px;
  font-size: 0.99rem;
}
footer .container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer-logo img {
  height: 53px;
  width: auto;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  margin-bottom: 14px;
}
.footer-nav a {
  color: var(--primary);
  opacity: .98;
  font-size: 1.01rem;
  padding: 3px;
  border-radius: 6px;
  transition: background 0.13s, color 0.13s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #e8edfc;
  color: var(--secondary);
}
.footer-contact p {
  color: #40637c;
  font-size: 0.98rem;
  margin: 0 0 7px 0;
  letter-spacing: .01em;
}
@media (max-width: 900px) {
  footer .container {
    gap: 23px;
    flex-direction: column;
    align-items: flex-start;
  }
  footer {
    padding: 27px 0 14px 0;
    font-size: 0.96rem;
  }
}
@media (max-width: 600px) {
  footer {
    border-radius: 13px 13px 0 0;
    padding: 23px 0 7px 0;
  }
  .footer-logo img {
    height: 33px;
  }
}

/* ============================== */
/*         COOKIE BANNER          */
/* ============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10001;
  background: linear-gradient(90deg, var(--pastel-yellow) 80%, var(--pastel-mint) 100%);
  box-shadow: 0 -4px 24px rgba(255, 217, 109, 0.10);
  padding: 22px 17px 14px 17px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.02rem;
  border-radius: 21px 21px 0 0;
  animation: cookieBannerIn .5s cubic-bezier(.66,0,.34,1);
  box-sizing: border-box;
}
@keyframes cookieBannerIn {
  from { opacity: 0; transform: translateY(60px) }
  to   { opacity: 1; transform: translateY(0) }
}
.cookie-banner-text {
  color: #453A1B;
  font-size: 1rem;
  flex: 2 1 220px;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  border: none;
  padding: 8px 26px;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.14s, color 0.15s, box-shadow 0.16s;
  margin-right: 8px;
}
.cookie-btn.accept {
  color: #fff;
  background: var(--secondary);
  box-shadow: 0 1.5px 8px #d3fbe6;
}
.cookie-btn.accept:hover {
  background: #1db965;
}
.cookie-btn.reject {
  color: var(--secondary);
  background: var(--pastel-mint);
  box-shadow: 0 1px 6px #e2ffef;
}
.cookie-btn.reject:hover {
  color: #d3491b;
  background: #fff7f7;
}
.cookie-settings-btn {
  color: var(--primary);
  background: var(--pastel-lilac);
  box-shadow: 0 1px 6px #e6e0fc;
}
.cookie-settings-btn:hover {
  background: #f3eaff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(34, 37, 73, 0.23);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.4s cubic-bezier(.66,0,.34,1);
}
@keyframes cookieModalIn{
  from{ opacity: 0; } to{ opacity: 1; }
}
.cookie-modal {
  background: #fffbe2;
  padding: 32px 28px 22px 28px;
  border-radius: 17px;
  box-shadow: 0 2px 14px #f2e9fe;
  min-width: 310px;
  max-width: 94vw;
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 17px; right: 21px;
  background: none;
  border: none;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  border-radius: 7px;
  padding: 2px 9px;
  transition: background 0.12s;
}
.cookie-modal-close:hover {
  background: var(--pastel-lilac);
}
.cookie-modal h3 {
  color: var(--secondary);
  font-size: 1.27rem;
}
.cookie-category-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.cookie-category-toggle label {
  font-size: 1rem;
  color: var(--primary);
}
/* Toggle switch styles */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.switch input {
  display: none;
}
.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0; left: 0;
  width: 36px;
  height: 20px;
  transition: background 0.2s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3.2px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px #eedfff;
}
.switch input:checked + .slider {
  background-color: var(--secondary);
}
.switch input:checked + .slider:before {
  transform: translateX(15px);
}
.cookie-category-desc {
  color: #625e5e;
  font-size: 0.97rem;
  margin-left: 29px;
  margin-bottom: 7px;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  align-items: center;
}

/* ============================== */
/*         RESPONSIVENESS         */
/* ============================== */
@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }
  section, .section {
    margin-bottom: 37px;
    padding: 22px 7px;
    border-radius: 17px;
  }
  .container {
    padding: 0 6px;
    max-width: 98vw;
  }
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 19px;
  }
  .testimonial-card {
    padding: 13px 9px;
    border-radius: 13px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .cta.primary, .cta.secondary {
    font-size: 0.99rem;
    padding: 9px 14px;
    border-radius: 15px;
  }
  .cookie-banner, .cookie-modal {
    font-size: 0.97rem;
    padding: 13px 5vw 11px 5vw;
  }
}

/* ============================== */
/*         MICRO INTERACTIONS     */
/* ============================== */
button, .cta.primary, .cta.secondary, .cookie-btn, .cookie-settings-btn {
  transition: background 0.14s, color 0.14s, box-shadow 0.11s, transform 0.13s;
}
a, button, .cta.primary, .cta.secondary {
  cursor: pointer;
}

/* ============================== */
/*         UTILITY CLASSES        */
/* ============================== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem !important; }
.mb-2 { margin-bottom: 2rem !important; }

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