/* --- RESET AND 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,
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: #F9F7F7;
  color: #203864;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
a {
  color: #38A3A5;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #203864;
}

/* --- VARIABLES --- */
:root {
  --color-primary: #203864;
  --color-secondary: #38A3A5;
  --color-accent: #F9F7F7;
  --color-electric-blue: #3783e8;
  --color-electric-pink: #ff3282;
  --color-electric-yellow: #ffe600;
  --color-electric-lime: #50f262;
  --color-dark: #1a2540;
  --color-medium: #607d8b;
  --color-white: #fff;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --shadow-card: 0 4px 22px 0 rgba(56,163,165,0.12), 0 1.5px 5px 0 rgba(32,56,100,0.04);
  --shadow-pop: 0 8px 48px 0 rgba(56, 163, 165, 0.13);
  --radius: 16px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 900;
  letter-spacing: -1px;
}
h1 {
  font-size: 2.8rem;
  line-height: 1.12;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 7px;
}
p, ul, ol, li, dl, dt, dd {
  font-size: 1.05rem;
  color: #203864;
}
strong {
  color: var(--color-electric-blue);
  font-weight: bold;
}
blockquote {
  color: var(--color-dark);
  font-family: var(--font-display);
  font-size: 1.18rem;
  border-left: 4px solid var(--color-electric-pink);
  padding-left: 18px;
  margin-bottom: 16px;
  background: #fff6fb;
  border-radius: 12px;
}

/* --- BUTTONS --- */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 28px;
  border: none;
  border-radius: 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(32,56,100,0.09);
  transition: background 0.22s, color 0.22s, transform 0.07s;
}
.btn-primary {
  background: linear-gradient(90deg, var(--color-electric-blue), var(--color-electric-pink));
  color: #fff;
  box-shadow: 0 2px 14px 0 rgba(56, 163, 165, 0.17);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--color-electric-pink), var(--color-electric-blue));
  color: #ffe600;
  transform: translateY(-2px) scale(1.05);
}
.btn-secondary {
  background: linear-gradient(90deg, var(--color-electric-yellow), var(--color-electric-lime));
  color: var(--color-primary);
  border: 2px solid var(--color-electric-lime);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: linear-gradient(90deg, var(--color-electric-lime), var(--color-electric-yellow));
  color: var(--color-electric-blue);
  border-color: var(--color-electric-yellow);
  transform: translateY(-2px) scale(1.05);
}
button:focus {
  outline: 2px solid var(--color-electric-blue);
  outline-offset: 2px;
}

/* --- LAYOUT COMPONENTS --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.section,
main section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-section {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  min-width: 0;
  margin-bottom: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card, .post-preview, .course-card, .instructor-profile {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 18px;
  transition: box-shadow 0.22s, transform 0.13s;
}
.card:hover, .post-preview:hover, .course-card:hover, .instructor-profile:hover {
  box-shadow: 0 8px 36px 0 rgba(56,163,165,0.16), 0 2.5px 8px 0 rgba(32,56,100,0.06);
  transform: translateY(-3px) scale(1.014);
}
.course-card {
  margin-bottom: 24px;
  border-left: 6px solid var(--color-secondary);
}
.instructor-profile {
  border-left: 6px solid var(--color-electric-pink);
  margin-bottom: 18px;
}

.trust-badges {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 18px 0 20px 0;
  flex-wrap: wrap;
  font-weight: 700;
  color: var(--color-secondary);
}

.badge {
  display: inline-block;
  margin-left: 10px;
  background: var(--color-electric-lime);
  font-size: 0.81rem;
  color: var(--color-primary);
  border-radius: 8px;
  padding: 2px 9px 2px 9px;
  font-weight: bold;
  vertical-align: middle;
}

.values-list ul {
  list-style: disc inside;
  margin: 8px 0 0 10px;
  color: var(--color-electric-blue);
  font-weight: 600;
}

/* --- HERO/SECTION COLORS --- */
main > section:nth-of-type(odd) {
  background: linear-gradient(90deg, #FFFDE4 60%, #f9f7f7 100%);
}
main > section:nth-of-type(even) {
  background: #f9f7f7;
}

/* --- LISTS & DETAILS --- */
ul, ol {
  margin: 14px 0 14px 30px;
}
ul li, ol li, dl dt, dl dd {
  margin-bottom: 10px;
  padding-left: 0;
  line-height: 1.65;
}
dt {
  font-weight: bold;
  color: var(--color-electric-blue);
  margin-top: 16px;
}
dd {
  margin-left: 18px;
  color: var(--color-dark);
}

/* --- HEADER/NAV --- */
header {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 16px 0 rgba(32,56,100,0.14);
  position: sticky;
  top: 0;
  z-index: 101;
  min-height: 70px;
}
header > a img {
  height: 42px;
  margin: 16px 10px 16px 0px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: 16px;
}
header nav a {
  color: #FFFDE4;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  position: relative;
  padding: 5px 7px;
  Border-radius: 6px;
  transition: background 0.17s, color 0.14s, box-shadow 0.16s;
}
header nav a:not(.btn-primary):hover, header nav a:not(.btn-primary):focus {
  background: var(--color-electric-pink);
  color: #fff;
  box-shadow: 0 2px 10px 0 rgba(255,50,130,0.07);
}
header .btn-primary {
  margin-left: 18px;
  min-width: 148px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: relative;
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  width: 100%;
  margin-top: 70px;
  padding: 44px 0 34px 0;
}
footer .container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #fff0ac;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.92;
  margin-bottom: 6px;
}
footer nav a:hover {
  color: #ffe600;
}
footer .contact-summary {
  max-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.96rem;
  color: #e0deff;
}
footer img {
  height: 38px;
  margin-bottom: 17px;
}

/* --- HERO/BIG CTA --- */
.text-section h1, .text-section h2 {
  color: var(--color-electric-pink);
  font-weight: 900;
  letter-spacing: -2px;
}
.text-section h1 {
  color: var(--color-electric-blue);
  font-size: 2.8rem;
  margin-bottom: 10px;
}
.text-section p{
  color: var(--color-primary);
  font-size: 1.13rem;
}
.text-section .btn-primary {
  margin-top: 16px;
}

/* --- COURSE CARD DETAILS --- */
.course-card ul {
  margin: 14px 0 14px 0px;
  padding: 0;
}
.course-card ul li {
  margin-left: 12px;
  padding-left: 0.7em;
  position: relative;
  color: var(--color-primary);
  font-weight: 500;
}
.course-card ul li:before {
  content: "•";
  color: var(--color-electric-lime);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* --- POST PREVIEW --- */
.post-preview {
  margin-bottom: 24px;
  border-left: 5px solid var(--color-electric-blue);
  background: #ffe60010;
}
.post-preview h3 {
  color: var(--color-electric-blue);
  margin-bottom: 4px;
}
.post-preview a {
  display: inline-block;
  margin-top: 7px;
  color: var(--color-electric-pink);
  font-weight: 700;
}
.post-preview a:hover {
  color: var(--color-electric-blue);
}

.categories {
  font-size: 1rem;
  margin: 13px 0 0 0;
}
.categories span {
  font-weight: bold;
  color: var(--color-electric-pink);
  margin-right: 7px;
}

/* --- TESTIMONIAL CARD --- */
.testimonial-card {
  background: #fff;
  color: #1a2540;
  box-shadow: var(--shadow-card);
  border-radius: 24px;
  margin-bottom: 28px;
  border-left: 6px solid var(--color-electric-pink);
}
.testimonial-card blockquote {
  background: #fff6fb;
  border-radius: 15px;
  font-style: italic;
  border-left: none;
  padding-left: 0;
}
.testimonial-card p {
  font-size: 1rem;
  color: var(--color-primary);
  margin-left: 12px;
}
.testimonial-card strong {
  color: var(--color-electric-blue);
  font-size: 1.06em;
}

/* --- INTERACTIVE MAP (Contacto) --- */
.interactive-map {
  display: flex;
  align-items: center;
  background: #f0faff;
  border-radius: 14px;
  padding: 16px;
  gap: 18px;
  margin-top: 18px;
  box-shadow: 0 1.5px 6.5px 0 rgba(56,163,165,0.11);
}
.interactive-map img {
  width: 44px;
  height: 44px;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #ffe600;
  margin-left: 22px;
  cursor: pointer;
  transition: color 0.14s, transform 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #ff3282;
  transform: scale(1.1);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #203864ed;
  z-index: 9999;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-110vw);
  transition: transform 0.36s cubic-bezier(.77,0,.175,1);
  box-shadow: 0 3px 32px 0 rgba(32,56,100,0.39);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #ffe600;
  margin: 20px 0 18px 20px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.19s, transform 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #38A3A5;
  transform: scale(1.12);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 90vw;
  margin: 0 0 0 28px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 13px 7px 13px 0px;
  text-transform: uppercase;
  border-radius: 7px;
  transition: background 0.17s, color 0.17s, transform 0.10s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-electric-pink);
  color: #fffde4;
  box-shadow: 0 2px 18px 0 rgba(255,50,130,0.09);
  transform: translateX(2px) scale(1.04);
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 6000;
  background: linear-gradient(90deg, #ffe600 74%, #ff3282 100%);
  color: var(--color-dark);
  padding: 30px 25px;
  box-shadow: 0 -3px 32px 0 rgba(0,0,0,0.11);
  border-radius: 24px 24px 0 0;
  font-size: 1.1rem;
  animation: bannerIn 0.44s cubic-bezier(.89,.01,.49,1.26);
}
@keyframes bannerIn {
  0% { transform: translateY(70px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 16px;
  border: none;
  margin-right: 8px;
  margin-top: 2px;
  cursor: pointer;
  transition: background 0.18s, color 0.13s;
  box-shadow: 0 1.5px 8px 0 rgba(32,56,100,0.10);
}
.cookie-banner .accept-btn {
  background: var(--color-electric-lime);
  color: var(--color-primary);
}
.cookie-banner .accept-btn:hover {
  background: #44e655;
  color: var(--color-dark);
}
.cookie-banner .reject-btn {
  background: #ff3282;
  color: #fff;
}
.cookie-banner .reject-btn:hover {
  background: #b41e54;
}
.cookie-banner .settings-btn {
  background: var(--color-electric-blue);
  color: #fff;
}
.cookie-banner .settings-btn:hover {
  background: #114c80;
  color: #ffe600;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,56,100,0.60);
  z-index: 10011;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.36s;
}
.cookie-modal-backdrop.open {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  border-radius: 20px;
  box-shadow: 0 4px 26px 0 rgba(56,163,165,0.17);
  padding: 36px 32px 27px 32px;
  min-width: 320px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: popIn 0.33s cubic-bezier(.76,.00,.21,1.03);
  position: relative;
}
@keyframes popIn {
  0% { transform: scale(0.82) translateY(40px); opacity: 0; } 
  100% { transform: scale(1.00) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.2rem;
  color: var(--color-electric-blue);
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 1.06rem;
  font-weight: 600;
}
.cookie-modal .cookie-toggle {
  display: inline-block;
  width: 36px;
  height: 22px;
  background: #eee;
  border-radius: 12px;
  position: relative;
  margin-left: 10px;
  cursor: pointer;
}
.cookie-modal .cookie-toggle input {
  display: none;
}
.cookie-modal .slider {
  position: absolute;
  top: 2px; left: 2px;
  background: var(--color-electric-blue);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transition: left 0.17s;
}
.cookie-modal .cookie-toggle input:checked + .slider {
  left: 16px;
  background: var(--color-electric-pink);
}
.cookie-modal .mandatory {
  color: var(--color-secondary);
  font-size: 1rem;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px; right: 24px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-electric-pink);
  cursor: pointer;
  z-index: 10003;
}
.cookie-modal .close-modal:hover {
  color: var(--color-electric-blue);
}
.cookie-modal .modal-actions {
  margin-top: 22px;
  display: flex;
  gap: 13px;
}
.cookie-modal .modal-actions button {
  font-size: 1rem;
  padding: 7px 19px;
  border-radius: 9px;
}

/* --- RESPONSIVE RULES --- */
@media (max-width: 1270px) {
  .container {
    max-width: 98vw;
    padding: 0 5vw;
  }
}
@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .footer .content-wrapper, footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .instructor-profile {
    min-width: 0;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .section, main section {
    padding: 32px 8px;
    margin-bottom: 42px;
  }
  .content-wrapper, .content-grid, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 7px;
    padding: 14px 10px;
  }
  .post-preview, .course-card, .instructor-profile {
    padding: 18px 8px;
  }
  header {
    padding: 0 10px;
  }
  footer {
    padding: 38px 0 22px 0;
  }
  .cookie-modal {
    max-width: 89vw;
    min-width: 0;
    padding: 20px 7vw 16px 7vw;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 1.25rem;
  }
  h2 {
    font-size: 1.13rem;
  }
  .cookie-banner {
    font-size: 0.96rem;
    padding: 19px 9px;
  }
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 18px; }

/* --- ACCESSIBILITY --- */
:focus-visible {
  outline: 2px dotted var(--color-electric-blue);
  outline-offset: 2px;
}

/* --- ELECTRIC VIBRANT ANIMATIONS --- */
.btn-primary, .btn-secondary, a, button {
  transition: background 0.17s, color 0.14s, box-shadow 0.14s, transform 0.12s;
}

/* --- BRAND PERSONALITY DECORATIVE (HEADERS) --- */
header {
  border-bottom: 4px solid var(--color-electric-pink);
}

/* --- GENERAL CARD SHADOW HOVER --- */
.card:hover, .course-card:hover, .testimonial-card:hover, .post-preview:hover, .instructor-profile:hover {
  box-shadow: 0px 8px 40px 0 rgba(56,163,165,0.22), 0 3.5px 13px 0 rgba(32,56,100,0.08);
}

/* --- SPECIAL FORMS / INPUTS (if present) --- */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 9px;
  border: 2px solid var(--color-electric-blue);
  padding: 8px 12px;
  margin-bottom: 12px;
  background: #fff;
  transition: border 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-electric-pink);
}

/* --- DIALOG MODALS OVERLAY (for cookie) --- */
@media (max-width: 480px) {
  .cookie-modal {
    max-width: 97vw;
    padding: 11vw 3vw 7vw 3vw;
  }
}
