/* ==================================================  */
/*     1. CSS RESET & NORMALIZE (Modern Reset)         */
/* ==================================================  */
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;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #F6FAFC;
  color: #273972;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 1em;
}
li+li {
  margin-top: 8px;
}
a {
  color: #273972;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
a:hover, a:focus {
  color: #F2A03D;
  text-decoration: underline;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* Accessibility: Remove blue webkit highlight */
input:focus, textarea:focus, select:focus {
  outline: 2px solid #F2A03D;
  outline-offset: 2px;
}

/* ===============================  */
/*    2. BRAND COLORS/VARIABLES     */
/* ===============================  */
:root {
  --primary: #273972;
  --secondary: #F2A03D;
  --accent: #F6FAFC;
  --electric-blue: #2DD6FF;
  --hot-pink: #FF3E7B;
  --vivid-green: #33EC86;
  --shadow-main: 0 6px 32px rgba(34,57,114,0.14);
  --shadow-card: 0 3px 16px rgba(34,57,114,0.08);
  --radius: 18px;
}

/* ===============================  */
/*          3. TYPOGRAPHY           */
/* ===============================  */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  text-transform: none;
  line-height: 1.13;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  color: var(--hot-pink);
  margin-bottom: 18px;
}
h3 {
  font-size: 1.33rem;
  color: var(--primary);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.12rem;
  color: var(--primary);
}

p, li, ul, ol, table, th, td, label {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.text-section p {
  font-size: 1.1rem;
}

strong, b {
  font-weight: 700;
  color: var(--secondary);
}

.cta, .cta:visited {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: bold;
  padding: 17px 38px;
  font-size: 1.13rem;
  background: linear-gradient(90deg, var(--secondary) 70%, var(--hot-pink));
  color: #fff !important;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.25s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(242,160,61,0.16);
  letter-spacing: 1px;
  text-align: center;
  outline: none;
  display: inline-block;
  margin-top: 18px;
}
.cta:hover, .cta:focus {
  background: linear-gradient(90deg, var(--hot-pink) 60%, var(--secondary));
  color: #fff !important;
  box-shadow: 0 6px 36px 0 rgba(255,62,123,0.13);
  transform: translateY(-2px) scale(1.025);
  text-decoration: none;
}

/* ===============================  */
/*        4. LAYOUT + SPACING        */
/* ===============================  */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.content-wrapper.text-section {
  align-items: flex-start;
  max-width: 720px;
  margin: 0 auto;
}

.features-grid,
.benefits-grid,
.tips-grid,
.course-list,
.team-section,
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.features-grid > div,
.benefits-grid > div,
.tips-grid > div,
.course-list > div,
.team-section > div,
.blog-list > div {
  flex: 1 1 270px;
  min-width: 230px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  transition: box-shadow 0.21s, transform 0.18s;
}
.features-grid > div:hover,
.benefits-grid > div:hover,
.tips-grid > div:hover,
.course-list > div:hover,
.team-section > div:hover,
.blog-list > div:hover {
  box-shadow: 0 10px 32px 0 rgba(39,57,114,0.14);
  transform: translateY(-3px) scale(1.02);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 20px;
  transition: box-shadow 0.22s, transform 0.19s;
}
.card:hover {
  box-shadow: 0 8px 28px 0 rgba(39,57,114,0.13);
  transform: translateY(-2px) scale(1.01);
}

.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;
    gap: 22px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Spacing rules for section/card separation */
.section + .section {
  margin-top: 40px;
}

/* ===============================  */
/*         5. HEADER & NAV           */
/* ===============================  */
header {
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(39,57,114,0.04);
  padding-top: 0px;
  position: relative;
  z-index: 102;
}
header .container {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}
header img {
  max-height: 43px;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.2px;
  padding: 10px 11px;
  border-radius: 16px;
  transition: background 0.2s, color 0.15s;
}
header nav a:hover,
header nav a:focus {
  background: var(--secondary);
  color: #fff;
}
header nav .cta {
  background: var(--hot-pink);
  color: #fff !important;
  margin-left: 8px;
  box-shadow: 0 2px 8px 0 rgba(255,62,123,0.08);
  padding: 10px 26px;
  border-radius: 22px;
  transition: background 0.2s, color 0.19s, transform 0.15s;
}
header nav .cta:hover,
header nav .cta:focus {
  background: var(--electric-blue);
  color: var(--primary) !important;
  transform: scale(1.07);
}
.mobile-menu-toggle {
  display: none;
  background: var(--electric-blue);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 2rem;
  padding: 7px 14px;
  cursor: pointer;
  margin-left: 10px;
}
@media (max-width: 1024px) {
  header nav {
    gap: 12px;
  }
}
@media (max-width: 870px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(39, 57, 114, 0.96);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.84,.12,.37,.98);
  opacity: 1;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 30px; right: 30px;
  background: var(--hot-pink);
  color: #fff;
  font-size: 2.2rem;
  border: none;
  border-radius: 14px;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px 0 rgba(255, 62, 123, 0.11);
  transition: background 0.13s, transform 0.16s;
  cursor: pointer;
  z-index: 11;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: #fff;
  transform: rotate(90deg) scale(1.055);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 120px 32px 32px 32px;
  width: calc(100% - 64px);
  max-width: 460px;
}
.mobile-nav a {
  display: block;
  font-size: 1.25rem;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 18px 7px 10px 0;
  border-radius: 6px;
  transition: background 0.18s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--electric-blue);
  color: var(--primary);
}
@media (max-width: 480px) {
  .mobile-nav {
    margin: 100px 14px 14px 14px;
    width: calc(100% - 28px);
    max-width: 100vw;
  }
}

/* ===============================  */
/*           6. MAIN HERO           */
/* ===============================  */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 600px) {
  section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
}
/* Hero text */
main > section:first-of-type {
  background: linear-gradient(90deg, var(--accent) 82%, var(--electric-blue) 126%);
  box-shadow: 0 9px 36px rgba(45, 214, 255, 0.06);
  border-radius: 0 0 48px 48px;
  overflow: hidden;
}
main > section:first-of-type h1 {
  color: var(--hot-pink);
  letter-spacing: -0.7px;
  line-height: 1.13;
  text-shadow: 0 2px 12px rgba(255,62,123,0.17);
}
main > section:first-of-type .cta {
  margin-top: 10px;
  font-size: 1.25rem;
}

/* ===============================  */
/*          7. CARDS / GRIDS        */
/* ===============================  */
.card, .testimonial-card, .blog-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.16s, transform 0.13s;
}
.card:hover, .testimonial-card:hover, .blog-card:hover {
  box-shadow: 0 12px 36px 0 rgba(39,57,114,0.13);
  transform: translateY(-2px) scale(1.01);
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 20px;
  background: #fff;
  border-left: 7px solid var(--secondary);
  box-shadow: 0 4px 20px 0 rgba(39,57,114,0.10);
  margin-bottom: 20px;
  font-size: 1rem;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.12rem;
  margin-bottom: 6px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.testimonial-card span {
  display: inline-block;
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--hot-pink);
}
.testimonial-card div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.testimonial-card:last-child {
  margin-bottom: 0 !important;
}
/* Testimonial stars - accent color */
.testimonial-card span:first-child {
  color: var(--secondary);
  font-size: 1.1rem;
}

/* Blog cards */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-card {
  flex: 1 1 310px;
  min-width: 220px;
  max-width: 368px;
  margin-bottom: 20px;
  border-left: 6px solid var(--electric-blue);
  padding: 26px 15px 24px 20px;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  transition: border 0.12s;
}
.blog-card:hover {
  border-left: 6px solid var(--hot-pink);
}
.blog-card h3 {
  color: var(--hot-pink); margin-bottom: 9px;
}
.blog-card a {
  color: var(--secondary);
  font-weight: 700;
  margin-top: auto;
}
.blog-card a:hover {
  color: var(--hot-pink);
  text-decoration: underline;
}

/* Category filters */
.category-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 1.03rem;
}
.category-filters span { color: var(--primary); font-weight: 700;}
.category-filters a {
  color: var(--hot-pink); font-weight: 700; font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.category-filters a:hover { color: var(--electric-blue);}

/* Contact/Details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0 4px 0;
}
.contact-details img {
  vertical-align: middle;
  width: 21px; height: 21px;
  margin-right: 7px;
}
.contact-details p {
  font-size: 1.04rem;
  display: flex;
  align-items: center;
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 25px 0;
  box-shadow: 0 2px 10px 0 rgba(39,57,114,0.05);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  font-size: 1rem;
}
thead tr {
  background: var(--primary);
  color: #fff;
}
td, th {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid #e8eaee;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr {
  background: #f6f9fd;
}
tbody tr:nth-child(even) {
  background: #fff;
}
@media (max-width: 540px) {
  table, thead, tbody, tr, th, td {
    display: block;
    width: 100%;
  }
  th, td {
    box-sizing: border-box;
    width: 100%;
    padding: 13px 9px;
    border-bottom: 1px solid #dfdfdf;
  }
  thead {
    display: none;
  }
}

/* ===============================  */
/*              8. FOOTER           */
/* ===============================  */
footer {
  background: var(--primary);
  color: #fff;
  padding: 42px 0 0 0;
  border-radius: 44px 44px 0 0;
  margin-top: 0px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 16px;
}
.footer-brand img {
  height: 41px;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 7px 18px;
  border-radius: 11px;
  transition: background 0.17s, color 0.13s;
  letter-spacing: 0.16px;
  background: transparent;
}
footer nav a:hover, footer nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.contact-summary p {
  color: #fff;
  font-size: 1.08rem;
  text-align: center;
  opacity: 0.97;
}

/* ===============================  */
/*            9. RESPONSIVE         */
/* ===============================  */
@media (max-width: 1024px) {
  .container { max-width: 96vw; }
}
@media (max-width: 820px) {
  .team-section, .features-grid, .benefits-grid, .course-list, .blog-list, .tips-grid {
    gap: 16px;
  }
}
@media (max-width: 650px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
  .card, .testimonial-card, .blog-card, .features-grid > div, .tips-grid > div, .benefits-grid > div, .course-list > div, .team-section > div {
    padding: 18px 10px;
    font-size: 0.96rem;
    min-height: 120px;
  }
  .container {
    padding: 0 9px;
  }
  footer { padding: 28px 0 0 0; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.33rem; }
  h2 { font-size: 1.09rem; }
  .footer-brand img { height: 32px; }
  .testimonial-card, .blog-card, .features-grid > div, .tips-grid > div, .benefits-grid > div, .course-list > div, .team-section > div { padding: 13px 6px; font-size: .91rem;}
  .contact-summary p { font-size: .96rem; }
}

/* ===============================  */
/* 10. MICRO-INTERACTIONS/EFFECTS   */
/* ===============================  */
button, a.cta {
  transition: background 0.19s, color 0.13s, box-shadow 0.16s, transform 0.13s;
}
a, button {
  -webkit-tap-highlight-color: #F2A03D44;
}

/* ===============================  */
/*      11. COOKIE CONSENT BANNER    */
/* ===============================  */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -5px 24px rgba(39,57,114,0.09);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 20px 18px;
  z-index: 99998;
  gap: 24px;
  font-size: 1rem;
  border-radius: 24px 24px 0px 0px;
  animation: cookie-slide-up 0.6s cubic-bezier(.45,1.58,.73,.94);
}
.cookie-banner.hide {
  display: none;
}
.cookie-banner-text {
  flex: 1 1 auto;
  max-width: 630px;
  font-size: 1.07rem;
}
.cookie-banner-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: bold;
  border-radius: 13px;
  padding: 12px 24px;
  border: none;
  font-size: 1rem;
  margin: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.13s, transform 0.13s;
  box-shadow: 0 2px 9px 0 rgba(242,160,61,0.10);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--hot-pink);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--electric-blue);
  color: var(--primary);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--secondary);
  padding: 11px 18px;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--accent);
  color: var(--secondary);
  border-color: var(--hot-pink);
}
@keyframes cookie-slide-up {
  0% { opacity:0; transform: translateY(100%); }
  100% { opacity:1; transform: translateY(0); }
}
/* Responsive cookie banner */
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 15px 3vw;
  }
  .cookie-banner-text { font-size: 1rem; }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 100000;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(39,57,114,0.94);
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s;
}
.cookie-modal.open {
  display: flex;
  opacity: 1;
  animation: fade-in-modal 0.4s ease;
}
@keyframes fade-in-modal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 32px;
  max-width: 480px;
  width: 94vw;
  padding: 38px 30px 18px 30px;
  box-shadow: 0 10px 46px 0 rgba(242,160,61,0.18);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 17px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 20px; right: 22px;
  background: var(--hot-pink);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  cursor: pointer;
  transition: background 0.13s, transform 0.1s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--secondary);
  transform: scale(1.11);
}
.cookie-modal-content h2 {
  font-size: 1.19rem;
  color: var(--primary);
  margin-bottom: 7px;
  margin-top: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #e4e6ee;
}
.cookie-category:last-child { border-bottom: none;}
.cookie-category label {
  font-size: 1.06rem;
  color: var(--primary);
  font-weight: 600;
}
.cookie-toggle {
  appearance: none;
  width: 34px; height: 18px;
  background: #e5e8fa;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.13s;
  border: none;
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.13s;
}
.cookie-toggle:checked::before {
  left: 19px;
}
.cookie-category.essential label::after {
  content: ' (Siempre activo)';
  color: var(--secondary);
  font-size: 0.95em;
  margin-left: 6px;
  font-style: italic;
  font-weight: 600;
}
.cookie-modal-actions {
  margin-top: 17px;
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}

/* ===============================  */
/*          12. MISC + UTILS        */
/* ===============================  */
::-webkit-scrollbar { width: 9px; background: #F6FAFC; }
::-webkit-scrollbar-thumb { background: #e5e8fa; border-radius: 11px; }
::-webkit-scrollbar-thumb:hover { background: #d6d4ec; }

[tabindex]:focus { outline: 2px solid var(--hot-pink); outline-offset: 2px; }

/* Highlight effects for form / CTA focus */
.cta:focus-visible, .cookie-btn:focus-visible, .mobile-menu-close:focus-visible {
  outline: 3px solid var(--electric-blue);
  outline-offset: 3px;
}

/* ===============================  */
/*          13. PRINT FRIENDLY      */
/* ===============================  */
@media print {
  * { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, .container { padding: 0 !important; margin: 0 !important; }
}
