/* ===========================
   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: 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: #FAEDF4;
  color: #245A83;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* ===========================
   BRAND COLORS & FONTS
   ===========================*/
:root {
  --primary: #245A83; /* blue - Brand guideline "primary" */
  --secondary: #FAEDF4;   /* Pinkish light - Brand guideline "secondary" */
  --accent: #F6B300;     /* Yellow gold - Brand guideline "accent" */
  --deep: #194366;
  --background: #FFFFFF;
}
@font-face {
  font-family: 'Montserrat'; /* Display */
  src: local('Montserrat'),
    url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800;700;500&display=swap');
}
@font-face {
  font-family: 'Roboto';  /* Body font */
  src: local('Roboto'),
    url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
}
body, html {
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--secondary);
  color: var(--primary);
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--deep);
  margin-bottom: 16px;
}
h1 {
  font-size: 2.6rem;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.1rem;
}
p, ul, ol {
  font-size: 1rem;
}
strong {
  font-weight: 700;
  color: var(--accent);
}

/* Playful font for headings */
h1, h2, h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  letter-spacing: -1px;
}

/* ===========================
   CONTAINER PATTERNS
   ===========================*/
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 10px 32px rgba(246, 179, 0, 0.07), 0 1.5px 6px rgba(36, 90, 131, 0.07);
  transition: box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 768px) {
  .section {
    padding: 32px 6px;
    margin-bottom: 40px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(246,179,0,0.09), 0 1px 3px rgba(36,90,131,0.10);
  padding: 28px 20px;
  transition: transform 0.22s, box-shadow 0.22s;
  min-width: 200px;
  min-height: 120px;
  flex: 1 1 260px;
}
.card:hover {
  transform: translateY(-8px) scale(1.04) rotate(-1deg);
  box-shadow: 0 12px 40px rgba(246,179,0,0.22), 0 2px 10px rgba(36,90,131,0.12);
}

.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: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 24px;
  border-radius: 14px;
  background: #ffeecd;
  box-shadow: 0 2px 16px rgba(36,90,131,0.08);
  margin-bottom: 24px;
  color: #1d2734;
  transition: box-shadow 0.22s, transform 0.20s;
  position: relative;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1.1em;
}
.testimonial-card:hover {
  transform: scale(1.025) rotate(1deg);
  box-shadow: 0 6px 20px rgba(246,179,0,0.18), 0 2px 8px rgba(36,90,131,0.12);
  background: #fffadd;
}

/* Feature item (for future scope) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

/* ===========================
   GLOBAL LAYOUT & SPACING
   ===========================*/
main {
  margin-top: 140px;
  min-height: 60vh;
}
@media (max-width: 992px) {
  main {
    margin-top: 100px;
  }
}
@media (max-width: 600px) {
  main {
    margin-top: 74px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 12px;
}
.text-section {
  align-items: flex-start;
  gap: 16px;
}

/* Limit section padding for .text-section */
.text-section h1, .text-section h2, .text-section h3 {
  margin-bottom: 12px;
}

/* ===========================
   HEADER & NAVIGATION
   ===========================*/
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 3px 16px rgba(36,90,131,0.06);
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  padding: 0 0;
  height: 80px;
}
header > a img {
  height: 44px;
  margin: 20px 24px 20px 22px;
}
header .main-nav {
  display: flex;
  gap: 28px;
  margin-left: 10px;
  align-items: center;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
header .main-nav a {
  font-weight: 600;
  font-size: 1.02rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
header .main-nav a:hover, header .main-nav a:focus {
  background: var(--accent);
  color: #fff;
}
.cta.primary {
  margin-left: 32px;
  padding: 10px 28px;
  background: var(--accent);
  color: var(--deep);
  border-radius: 50px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(246,179,0,0.16);
  transition: background 0.18s, color 0.16s, box-shadow 0.18s, transform 0.22s;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--primary);
  color: #fff;
  transform: scale(1.07) rotate(-1deg);
  box-shadow: 0 10px 28px rgba(36,90,131,0.11);
}

.cta {
  background: var(--accent);
  color: var(--primary);
  border-radius: 50px;
  padding: 9px 22px;
  font-weight: 600;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(246,179,0,0.13);
  transition: background 0.16s, color 0.16s, transform 0.15s;
}
.cta:hover, .cta:focus {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  margin-left: 24px;
  align-items: center;
  justify-content: center;
  border: none;
  color: var(--primary);
  transition: background 0.16s, color 0.16s, transform 0.14s;
  z-index: 104;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--secondary);
  box-shadow: 0 0 0 999px rgba(36,90,131,0.18);
  z-index: 1100;
  transition: transform 0.35s cubic-bezier(0.58,0.13,0.36,1.05);
  transform: translateX(-110vw);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  padding-top: 10px;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
  animation: menu-slide-in 0.38s cubic-bezier(.36,1.36,.63,1) 1;
}
@keyframes menu-slide-in {
  from {transform: translateX(-80vw); opacity: 0.4;}
  to {transform: translateX(0); opacity: 1;}
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--primary);
  align-self: flex-end;
  margin: 5px 30px 0 0;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 6px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 32px 32px 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 2.1rem;
  padding: 12px 0 10px 0;
  border-radius: 8px;
  width: 100%;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 1180px) {
  header .container {
    padding: 0 10px;
  }
}
@media (max-width: 1024px) {
  header .main-nav {
    gap: 18px;
  }
  .cta.primary {
    margin-left: 12px;
  }
}
@media (max-width: 850px) {
  header .main-nav {
    gap: 12px;
    font-size: 1rem;
  }
  .cta.primary {
    margin-left: 7px;
    padding: 9px 14px;
    font-size: 0.97rem;
  }
}
@media (max-width: 768px) {
  header {
    height: 62px;
    padding: 0 0;
  }
  header > a img {
    height: 32px;
    margin: 16px 13px 16px 10px;
  }
  header .main-nav, .cta.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-right: 16px;
    margin-left: auto;
  }
}

/* ===========================
   FOOTER
   ===========================*/
footer {
  width: 100%;
  background: #fffbe5;
  border-top: 3px solid var(--accent);
  margin-top: 60px;
  padding: 36px 0 22px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
}
.footer-menu {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 1rem;
}
.footer-menu a {
  background: none;
  color: var(--primary);
  border-radius: 8px;
  font-weight: 600;
  padding: 2px 14px;
  transition: background 0.14s, color 0.14s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--accent);
  color: #fff;
}
.footer-info {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  font-size: 1rem;
  margin-bottom: 4px;
}
.footer-info img {
  height: 28px;
}
@media (max-width: 600px) {
  .footer-menu {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .footer-info {
    flex-direction: column;
    gap: 4px;
  }
}

/* ===========================
   SERVICE LIST, CARDS, BLOG
   ===========================*/
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-list > div {
  flex: 1 1 250px;
  background: #fffbe5;
  border-radius: 14px;
  padding: 20px 16px 18px 16px;
  box-shadow: 0 2px 10px rgba(246,179,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  min-width: 200px;
  min-height: 140px;
  transition: transform 0.17s, box-shadow 0.17s;
}
.service-list > div:hover {
  transform: translateY(-6px) scale(1.04) rotate(1deg);
  box-shadow: 0 6px 29px rgba(246,179,0,0.13);
}
.service-list strong {
  color: var(--primary);
  font-size: 1.07em;
}
.service-list span {
  margin-top: 5px;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.03em;
  letter-spacing: 0.01em;
}
.blog-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.blog-card-list article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1.5px 7px rgba(36,90,131,0.09);
  flex: 1 1 270px;
  min-width: 200px;
  padding: 18px 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.14s, box-shadow 0.16s;
  position: relative;
}
.blog-card-list article:hover {
  box-shadow: 0 6px 24px rgba(36,90,131,0.13);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
  z-index: 1;
}
.blog-card-list h3 {
  font-size: 1.13rem;
  margin-bottom: 2px;
}
.blog-card-list .blog-category {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95em;
}
.categories-filter {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.categories-filter a {
  color: var(--accent);
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 7px;
  transition: background 0.15s;
}
.categories-filter a:hover, .categories-filter a:focus {
  background: var(--accent);
  color: #fff;
}

/* ===========================
   TABLES
   ===========================*/
table {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(36,90,131,0.06);
  margin-bottom: 22px;
  width: 100%;
}
thead {
  background: var(--primary);
  color: #fff;
}
table th, table td {
  padding: 12px 12px;
  text-align: left;
  font-size: 1rem;
}
table th {
  font-weight: 700;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
tbody tr {
  border-bottom: 1px solid #ececec;
  transition: background 0.15s;
}
tbody tr:hover {
  background: #eef7fb;
}

/* ===========================
   FAQ ACCORDION (for recursos.html)
   ===========================*/
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-group {
  background: #FFE9F2;
  border-radius: 9px;
  padding: 18px 18px 13px 18px;
  color: var(--primary);
  font-size: 1rem;
  position: relative;
  box-shadow: 0 2px 16px rgba(246,179,0,0.07);
  transition: box-shadow 0.13s, transform 0.12s;
}
.faq-group strong {
  color: var(--deep);
  display: block;
  font-size: 1.05em;
}
.faq-group p {
  margin-top: 7px;
  color: #2c3a4e;
}
.faq-group:hover {
  transform: scale(1.01) rotate(-0.5deg);
  box-shadow: 0 8px 14px rgba(246,179,0,0.09);
}

/* ===========================
   ANIMATIONS & MICRO-INTERACTIONS
   ===========================*/
.section, .card, .service-list > div, .testimonial-card, .blog-card-list article {
  transition: box-shadow 0.20s, transform 0.18s, background 0.16s;
}
.cta, .cta.primary, .footer-menu a, .mobile-nav a {
  transition: background 0.17s, color 0.13s, transform 0.15s;
}

/* Playful bouncy animation for important buttons */
.cta.primary:active, .cta:active {
  animation: bounce 0.24s linear;
}
@keyframes bounce {
  0% {transform: scale(0.98);}
  33% {transform: scale(1.03);}
  66% {transform: scale(0.96);}
  100% {transform: scale(1);}
}

/* ===========================
   RESPONSIVE ADJUSTMENTS
   ===========================*/
@media (max-width: 960px) {
  .container {
    max-width: 96vw;
  }
  .service-list, .blog-card-list, .card-container {
    gap: 16px;
  }
}
@media (max-width: 800px) {
  .service-list, .blog-card-list, .card-container {
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  h3 {
    font-size: 1.03rem;
  }
  .container {
    padding: 0 3vw;
    max-width: 99vw;
  }
  .section {
    padding: 16px 3vw;
    margin-bottom: 22px;
  }
}

/* ===========================
   UTILITY CLASSES
   ===========================*/
.hide {
  display: none !important;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

/* ===========================
   COOKIE CONSENT BANNER
   ===========================*/
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1900;
  background: #fffbe5;
  color: var(--primary);
  box-shadow: 0 -2px 22px rgba(36,90,131,0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 26px 16px 17px 26px;
  min-height: 56px;
  font-size: 1rem;
}
.cookie-consent-banner p {
  flex: 1 1 0%;
  margin-right: 18px;
  font-size: 1rem;
}
.cookie-consent-banner .cookie-btn {
  margin-left: 8px;
  padding: 8px 18px;
  border-radius: 30px;
  border: none;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  background: var(--accent);
  color: var(--primary);
  font-size: 1rem;
  transition: background 0.17s, color 0.15s, transform 0.12s;
}
.cookie-consent-banner .cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--accent);
}
.cookie-consent-banner .cookie-btn.settings {
  background: var(--primary);
  color: #fff;
}
.cookie-consent-banner .cookie-btn:hover, .cookie-consent-banner .cookie-btn:focus {
  transform: scale(1.08);
  background: var(--primary);
  color: #fff;
}

@media (max-width: 560px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 6px 10px 6px;
    font-size: 0.98rem;
  }
  .cookie-consent-banner p {
    margin-right: 0;
    padding-bottom: 7px;
  }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.95);
  z-index: 2100;
  width: 95vw;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(36,90,131,0.14);
  padding: 32px 30px 26px 30px;
  animation: modal-bounce-in 0.19s cubic-bezier(.36,1.36,.63,1);
  display: flex;
  flex-direction: column;
  gap: 19px;
}
@keyframes modal-bounce-in {
  from { opacity: 0; transform: translate(-50%,-52%) scale(0.91); }
  to { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: var(--primary);
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  color: var(--primary);
  font-size: 1.7rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}
.cookie-modal .modal-close:hover,.cookie-modal .modal-close:focus {
  background: var(--accent);
  color: #fff;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 0;
  border-radius: 6px;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
}
.cookie-category.essential label {
  font-weight: 700;
  color: var(--primary);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 15px;
}
.cookie-modal .modal-actions button {
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  padding: 9px 20px;
  transition: background 0.14s, color 0.14s, transform 0.10s;
}
.cookie-modal .modal-actions button:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.06);
}

/* Overlay for modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,90,131,0.16);
  z-index: 2000;
  animation: fade-in 0.12s;
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}

/* ===========================
   PLAYFUL/DECORATIVE ELEMENTS
   ===========================*/
.section {
  position: relative;
  overflow: hidden;
}
.section::before {
  content: '';
  display: block;
  position: absolute;
  top: -16px;
  left: -16px;
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 52% 44% 68% 30%/52% 56% 41% 36%;
  opacity: 0.31;
  z-index: 0;
  animation: section-bubble 3.8s linear infinite alternate;
}
.section::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 30px;
  height: 30px;
  background: var(--primary);
  opacity: 0.10;
  border-radius: 60%;
  z-index: 0;
  animation: section-bubble2 4.8s linear infinite alternate;
}
@keyframes section-bubble {
  from { transform: scale(1.1) rotate(2deg); } to { transform: scale(1.3) rotate(-7deg); }
}
@keyframes section-bubble2 {
  from { transform: scale(1) rotate(3deg); } to { transform: scale(1.24) rotate(-6deg); }
}

.card::before, .service-list > div::before, .testimonial-card::before {
  content: '';
  display: block;
  position: absolute;
  left: -12px;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 60%;
  background: var(--accent);
  opacity: 0.14;
  z-index: 1;
}
.card::after, .service-list > div::after, .testimonial-card::after{
  content: '';
  display: block;
  position: absolute;
  right: -10px;
  bottom: -12px;
  width: 16px;
  height: 16px;
  border-radius: 60%;
  background: var(--primary);
  opacity: 0.10;
  z-index: 1;
}

/* ===========================
   ACCESSIBILITY
   ===========================*/
:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* ===========================
   END
   ===========================*/
