/* ============================== */
/*    CSS RESET & NORMALIZATION    */
/* ============================== */
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, 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;
  background: linear-gradient(129deg,#20436A 0%,#FFF7EB 100%); /* Soft gradient background */
  color: #1C2833;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  scroll-behavior: smooth;
}
ol, ul {
  list-style: none;
}
strong { font-weight: 700; }

img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #20436A;
  text-decoration: none;
  transition: color .2s;
}
a:focus,
a:hover {
  color: #F4B942;
  outline: none;
  text-decoration: underline;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; }

/* ============================== */
/*   BRAND TYPOGRAPHY STYLES      */
/* ============================== */

h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #20436A;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 16px; }
h2 { font-size: 2rem; line-height: 1.15; margin-bottom: 18px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }

p, li, ul, ol {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #26334d;
  margin-bottom: 16px;
}
.text-section ul,
.text-section ol { padding-left: 18px; }
.text-section ul li,
.text-section ol li { margin-bottom: 10px; }

.text-section.legal h2,
.text-section.legal h3 {
  margin-top: 24px;
  color: #20436A;
}
.text-section.legal ul {
  margin-bottom: 16px;
}

/* ============================== */
/*  LAYOUT CONTAINERS & SPACING   */
/* ============================== */

.container {
  width: 100%;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

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

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.card-container { /* generic card flexbox wrapper */
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(32,67,106,.09), 0 1.5px 8px 0 rgba(32,67,106,.06);
  padding: 28px 24px;
  transition: box-shadow .25s, transform .2s;
}
.card:hover {
  box-shadow: 0 8px 24px 0 rgba(32,67,106,0.20), 0 3px 12px 0 rgba(32,67,106,0.11);
  transform: translateY(-3px) scale(1.015);
  z-index: 2;
}

.content-grid, .feature-grid, .course-overview-grid, .faq-list, .timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.content-grid {
  align-items: flex-start;
}

.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;
  background: #FFF7EB;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(32,67,106,0.06);
  margin-bottom: 24px;
  max-width: 440px;
  min-width: 270px;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #1b293e;
}
.testimonial-card strong {
  color: #20436A;
  font-size: 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(32,67,106,0.07);
  padding: 22px 18px;
  min-width: 220px;
  flex: 1 1 230px;
  transition: box-shadow .2s;
}
.feature-item:hover { box-shadow: 0 8px 22px 0 rgba(32,67,106,0.13); }

/* Timeline Steps (Metodología) */
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(32,67,106,0.07);
  padding: 22px 18px;
  min-width: 200px;
  flex: 1 1 210px;
  gap: 10px;
  margin-bottom: 16px;
}
.timeline-step img {
  width: 38px;
  height: 38px;
}

/* ============================== */
/*  NAVIGATION & HEADER           */
/* ============================== */
header {
  background: #fff;
  width: 100%;
  box-shadow: 0 2px 16px 0 rgba(32,67,106,0.04);
  position: sticky;
  top: 0;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 18px;
}
header img {
  height: 44px;
}
.main-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #20436A;
  font-size: 1rem;
  transition: color .2s;
  padding: 7px 12px;
  border-radius: 6px;
}
.main-nav a:hover, .main-nav a.active {
  background: #F4B942;
  color: #fff;
}

/* ============================== */
/*  BUTTONS & INTERACTIVES        */
/* ============================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  background: #20436A;
  color: #fff;
  margin-top: 8px;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px 0 rgba(32,67,106,0.08);
  transition: background .22s, color .19s, box-shadow .2s, transform .18s;
  border: none;
  cursor: pointer;
  position: relative;
}
.btn.primary {
  background: linear-gradient(90deg,#20436A 60%, #F4B942 100%);
  color: #fff;
}
.btn:hover, .btn:focus {
  background: #F4B942;
  color: #20436A;
  box-shadow: 0 6px 24px 0 rgba(244,185,66,0.11);
  transform: translateY(-2px) scale(1.02);
}
.btn.primary:hover, .btn.primary:focus { background: #20436A; color: #fff; }

/* ============================== */
/*  FOOTER                        */
/* ============================== */
footer {
  width: 100%;
  background: #20436A;
  color: #fff;
  padding: 36px 0 10px 0;
  margin-top: 30px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
.footer-nav, .contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #a6a6a6;
}
.footer-nav a {
  color: #F4B942;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0;
  transition: color .2s;
}
.footer-nav a:hover, .footer-nav a.active {
  color: #fff;
  text-decoration: underline;
}
.contact-info p,img {
  vertical-align: middle;
}
.contact-info img {
  width: 21px;
  margin-right: 0.56em;
  vertical-align: middle;
}

/* ============================== */
/*    PAGE-SPECIFIC GRIDS         */
/* ============================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.course-overview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.course-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 8px 0 rgba(32,67,106,.08);
  padding: 20px 18px 20px 18px;
  min-width: 250px;
  flex: 1 1 260px;
  transition: box-shadow .17s, transform .17s;
  margin-bottom: 20px;
  position: relative;
}
.course-card:hover {
  box-shadow: 0 6px 18px 0 rgba(244,185,66,0.13), 0 2px 10px 0 rgba(32,67,106,0.09);
  transform: scale(1.02);
}

.syllabus-summaries {
  background: #FFF7EB;
  border-radius: 10px;
  padding: 20px 18px;
  margin-top: 12px;
}
.syllabus-summaries h4 {
  color: #20436A;
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.syllabus-summaries ul { margin-top: 0; }

/* FAQ page */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.faq-item {
  flex: 1 1 320px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 8px 0 rgba(32,67,106,.08);
  padding: 18px 16px 12px 18px;
  margin-bottom: 20px;
  transition: box-shadow .19s;
}
.faq-item h3 { margin-bottom: 7px; }
.faq-item:hover { box-shadow: 0 6px 20px 0 rgba(32,67,106,0.18); }

.faq-contact {
  margin-top: 18px;
}
.faq-contact .btn {
  margin-top: 12px;
}

/* Quote wall for testimonials */
.quote-wall {
  background: #FFF7EB;
  border-radius: 12px;
  padding: 20px;
  margin-top: 26px;
  font-weight: 600;
  color: #20436A;
  font-size: 1.08rem;
  box-shadow: 0 1.5px 8px 0 rgba(32,67,106,.03);
  text-align: center;
}

.confirmation {
  text-align: center;
  align-items: center;
}
.confirmation ul {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================== */
/*         MOBILE MENU            */
/* ============================== */
.mobile-menu-toggle {
  display: none;
  background: #20436A;
  color: #fff;
  font-size: 2rem;
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(32,67,106,0.10);
  margin-left: 12px;
  transition: background .2s;
  z-index: 108;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F4B942;
  color: #20436A;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #20436A;
  transform: translateX(-100vw);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(.6,.01,0,1), opacity .18s, visibility 0s .35s;
  z-index: 1333;
  padding: 38px 20px 20px 22px;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.36s cubic-bezier(.3,1,.39,1), opacity .19s;
}
.mobile-menu-close {
  background: transparent;
  color: #F4B942;
  font-size: 2.25rem;
  align-self: flex-end;
  margin-bottom: 12px;
  transition: color .18s;
  cursor: pointer;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 0 9px 4px;
  display: block;
  border-radius: 7px;
  min-width: 44px;
  min-height: 44px;
  transition: background .18s, color .17s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #F4B942;
  color: #20436A;
}

/* ============================== */
/*     COOKIE CONSENT BANNER      */
/* ============================== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 18px 0 rgba(32,67,106,0.12);
  padding: 20px 10px 16px 18px;
  z-index: 3000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  font-size: 1rem;
  transition: transform .3s cubic-bezier(.6,.01,0,1), opacity .19s;
}
#cookie-banner.hide {
  opacity: 0;
  transform: translateY(80px);
  pointer-events: none;
  transition: transform .25s, opacity .2s;
}
#cookie-banner p {
  flex: 1 1 250px;
  color: #20436A;
  margin-bottom: 0;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background .2s, color .2s;
  background: #20436A;
  color: #fff;
  border: none;
  cursor: pointer;
}
.cookie-btn.accept {
  background: #F4B942;
  color: #20436A;
}
.cookie-btn.reject {
  background: #fff;
  color: #20436A;
  border: 1.5px solid #20436A;
}
.cookie-btn.settings {
  background: #FFF7EB;
  color: #20436A;
  border: 1px solid #F4B942;
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: #20436A;
  color: #fff;
  outline: 1.5px solid #F4B942;
}

/* Cookie Settings Modal */
#cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,67,106,0.23);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s;
}
#cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transition: opacity .26s;
}
#cookie-modal .modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 38px 0 rgba(32,67,106,0.22);
  max-width: 420px;
  width: 96vw;
  padding: 32px 26px 22px 26px;
  display: flex;
  flex-direction: column;
}
#cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
#cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 14px;
  gap: 12px;
}
#cookie-modal input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #F4B942;
  border-radius: 5px;
}
#cookie-modal .modal-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
}
#cookie-modal .close-modal {
  background: none;
  color: #20436A;
  font-size: 1.8rem;
  position: absolute;
  top: 24px;
  right: 32px;
  cursor: pointer;
}

/* ============================== */
/*        RESPONSIVE DESIGN       */
/* ============================== */
@media(max-width: 991px){
  .container { max-width: 97vw; }
  .main-nav { gap: 11px; }
}
@media (max-width: 768px) {
  section { margin-bottom: 36px; padding: 22px 8px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.29rem; }
  .container { padding: 0 8px; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .feature-grid, .course-overview-grid, .content-grid, .faq-list, .timeline {
    flex-direction: column;
    gap: 20px;
  }
  .footer-nav, .contact-info { gap: 9px; }
  footer .container { flex-direction: column; gap: 15px; }
  header .container { gap: 8px; }
  .testimonial-slider, .content-wrapper { gap: 16px; }
  .card-container { gap: 14px; }
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
}
@media (max-width: 480px) {
  .btn, .cookie-btn { font-size: 0.97rem; padding: 10px 14px; }
  .footer-nav a, .contact-info p, .card, .course-card { font-size: 0.98rem; }
  .testimonial-card { padding: 16px 9px; }
  header img { height: 36px; }
}
