:root {
  --ink: #25283d;
  --muted: #70778c;
  --line: #e6e8f0;
  --purple: #542bc7;
  --purple2: #7444e4;
  --bg: #f7f8fc;
  --panel: #fff
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif
}

a {
  color: inherit;
  text-decoration: none
}

button,
input {
  font: inherit
}

button,
a {
  transition: filter .15s, transform .15s
}

button:hover,
a:hover {
  filter: brightness(.97)
}

.container {
  max-width: 1180px;
  margin: auto;
  padding: 0 24px
}

.site-header {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20
}

.header-inside {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 850;
  font-size: 22px;
  color: #253b73
}

.brand small {
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase
}

.header-link {
  font-size: 14px;
  color: var(--muted)
}

.hero {
  background: linear-gradient(105deg, #1d2555, #5532bd 70%, #7c58df);
  color: #fff
}

.hero-inside {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 340px
}

.hero-copy {
  max-width: 640px
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 1.4px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--purple)
}

.hero .eyebrow {
  color: #d8ccff
}

.hero h1 {
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -1.8px;
  line-height: 1.1;
  margin: 14px 0
}

.hero p {
  font-size: 17px;
  line-height: 1.65;
  color: #ebe5ff
}

.hero-decoration {
  font-size: clamp(110px, 15vw, 180px);
  opacity: .6
}

.section {
  padding-top: 55px;
  padding-bottom: 72px
}

.section h2 {
  font-size: 29px;
  letter-spacing: -.8px;
  margin: 0 0 8px
}

.section-intro {
  color: var(--muted);
  margin: 0 0 30px
}

.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px
}

.course-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px #25283d0a;
  display: block
}

.course-card:hover {
  transform: translateY(-3px)
}

.course-art {
  min-height: 200px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 110px
}

.course-art.violet {
  background: radial-gradient(circle at 75% 25%, #baa2ff, transparent 38%), linear-gradient(120deg, #3f2b9a, #7c50e9)
}

.course-art.blue {
  background: radial-gradient(circle at 75% 25%, #89f5ff, transparent 38%), linear-gradient(120deg, #164c83, #2d9ec8)
}

.course-card-body {
  padding: 25px
}

.course-card h3 {
  font-size: 22px;
  line-height: 1.27;
  min-height: 55px;
  margin: 10px 0
}

.course-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  min-height: 67px
}

.see-course {
  display: inline-block;
  color: var(--purple);
  font-weight: 800;
  margin-top: 10px
}

.detail-hero {
  background: #171722;
  color: #f3f0ff;
  padding: 48px 0 62px
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: center
}

.detail-hero .eyebrow {
  color: #c7b5ff
}

.detail-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.13;
  margin: 14px 0
}

.detail-hero p {
  line-height: 1.7;
  color: #d0cddb;
  font-size: 17px
}

.detail-art {
  height: 235px;
  border-radius: 16px;
  font-size: 110px
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 35px;
  padding-top: 44px;
  padding-bottom: 76px
}

.content-panel,
.aside-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px
}

.content-panel h2,
.aside-panel h2 {
  margin: 0 0 18px;
  font-size: 22px
}

.detail-description {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px
}

.chapter-list {
  border-top: 1px solid var(--line)
}

.chapter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 5px;
  border-bottom: 1px solid var(--line);
  gap: 15px
}

.chapter-item.clickable,
.chapter-item.locked {
  cursor: pointer
}

.chapter-item:hover {
  background: #faf9ff
}

.chapter-label {
  display: flex;
  align-items: center;
  gap: 15px
}

.chapter-num {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800
}

.chapter-name {
  font-size: 14px;
  font-weight: 650
}

.chapter-end {
  font-size: 12px;
  color: var(--purple);
  white-space: nowrap
}

.locked .chapter-end {
  color: var(--muted)
}

.btn {
  background: var(--purple);
  border: 0;
  border-radius: 8px;
  padding: 14px 20px;
  color: #fff;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
  display: inline-block
}

.btn.outline {
  color: var(--purple);
  background: #fff;
  border: 1px solid var(--purple)
}

.full {
  display: block;
  width: 100%;
  margin-top: 12px
}

.aside-panel p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted)
}

.aside-panel .hint {
  font-size: 12px;
  margin-top: 18px
}

.footer {
  text-align: center;
  padding: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted)
}

dialog {
  border: 0;
  border-radius: 15px;
  padding: 28px;
  box-shadow: 0 25px 70px #10101f44;
  max-width: 700px;
  width: calc(100% - 32px)
}

dialog::backdrop {
  background: #0b0b18a8
}

dialog video {
  width: 100%;
  max-height: 380px;
  background: #151521
}

.video-placeholder {
  background: #151521;
  color: #eee;
  min-height: 290px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  border-radius: 8px
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.dialog-close {
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer
}

.classroom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 345px;
  min-height: calc(100vh - 72px)
}

.class-main {
  padding: 35px max(24px, calc((100vw - 1180px)/2)) 50px 32px;
  min-width: 0
}

.class-main h1 {
  font-size: 24px;
  margin: 0 0 8px
}

.class-main .eyebrow {
  margin-bottom: 10px
}

.class-player {
  aspect-ratio: 16/9;
  background: #151521;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 24px
}

.class-player video {
  width: 100%;
  height: 100%;
  background: #151521
}

.empty-player {
  height: 100%;
  display: grid;
  place-items: center;
  color: #dcd9eb;
  text-align: center;
  padding: 30px
}

.class-main h2 {
  font-size: 21px;
  margin: 24px 0 10px
}

.class-main p {
  color: var(--muted);
  line-height: 1.65
}

.class-sidebar {
  background: #fff;
  border-left: 1px solid var(--line)
}

.sidebar-title {
  padding: 24px;
  border-bottom: 1px solid var(--line)
}

.sidebar-title h2 {
  font-size: 18px;
  margin: 0 0 5px
}

.sidebar-title span {
  color: var(--muted);
  font-size: 13px
}

.lesson-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 20px 17px;
  text-align: left;
  background: #fff;
  cursor: pointer;
  color: var(--ink)
}

.lesson-btn.active {
  background: #f0ebff;
  box-shadow: inset 4px 0 var(--purple)
}

.lesson-index {
  font-size: 12px;
  color: var(--purple);
  font-weight: 800
}

.lesson-text {
  flex: 1;
  font-size: 13px;
  font-weight: 700
}

.lesson-time {
  font-size: 11px;
  color: var(--muted)
}

.resources {
  display: grid;
  gap: 10px
}

.resource-link {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px;
  font-size: 14px;
  color: var(--purple);
  font-weight: 650
}

.gated {
  overflow: hidden
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #1a1940;
  display: grid;
  place-items: center;
  padding: 20px
}

.gate-card {
  max-width: 430px;
  width: 100%;
  background: white;
  padding: 35px;
  border-radius: 17px;
  box-shadow: 0 20px 70px #05042055;
  text-align: center
}

.gate-card h1 {
  font-size: 26px;
  line-height: 1.2
}

.gate-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6
}

.gate-card input {
  width: 100%;
  padding: 15px;
  border: 1px solid #bec2d0;
  border-radius: 8px;
  margin: 10px 0 0;
  text-align: center;
  letter-spacing: 2px;
  font-size: 18px
}

.gate-card small {
  font-size: 12px;
  color: var(--muted)
}

.error {
  color: #b42318 !important;
  min-height: 18px
}

.gate-card .brand {
  align-items: center
}

.back-link {
  color: var(--purple);
  font-weight: 700;
  font-size: 13px
}

@media(max-width:850px) {
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .detail-grid,
  .detail-main {
    grid-template-columns: 1fr
  }

  .detail-art {
    display: none
  }

  .classroom {
    grid-template-columns: 1fr
  }

  .class-main {
    padding: 25px 20px
  }

  .class-sidebar {
    border-left: 0;
    border-top: 1px solid var(--line)
  }
}

@media(max-width:590px) {
  .catalog {
    grid-template-columns: 1fr
  }

  .hero-decoration {
    display: none
  }

  .hero-inside {
    min-height: 320px
  }

  .section {
    padding-top: 40px
  }

  .chapter-end {
    font-size: 11px
  }

  .header-link {
    font-size: 12px
  }

  .content-panel {
    padding: 18px
  }
}


/* ===== Identidad Grant: turquesa, cian y azul ===== */
:root {
  --grant-turquoise: #12dcc8;
  --grant-cyan: #12b8d8;
  --grant-blue: #159bd4;
  --grant-deep-blue: #1055a7;
  --grant-gradient: linear-gradient(115deg, #12dcc8 0%, #12b8d8 35%, #159bd4 67%, #1055a7 100%);
  --purple: #1055a7;
  --purple2: #159bd4;
}

.site-header {
  background: var(--grant-gradient);
  border-bottom: 0;
}

.site-header .brand,
.site-header .brand small,
.site-header .header-link {
  color: white;
}

.hero {
  background: linear-gradient(110deg, #083a77, #1055a7 45%, #12b8d8 100%);
  min-height: 600px;
  align-content: center;
}

.hero .eyebrow {
  color: #aafcf0;
}

.hero p {
  color: #e9fbff;
}

.course-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.course-art.violet {
  background: linear-gradient(135deg, #12dcc8, #159bd4 58%, #1055a7);
}

.course-art.blue {
  background: linear-gradient(135deg, #12b8d8, #1677c5, #1055a7);
}

.course-art.green {
  background: linear-gradient(135deg, #12dcc8, #12b8d8, #1677c5);
}

.course-art::before,
.course-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.course-art::before {
  width: 200px;
  height: 200px;
  border: 28px solid #ffffff24;
  top: -110px;
  right: -70px;
}

.course-art::after {
  width: 140px;
  height: 140px;
  border: 20px solid #ffffff1c;
  bottom: -80px;
  left: -40px;
}

.course-art .art-symbol {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 70px;
}

.course-card {
  transition: transform .2s, box-shadow .2s;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #1055a722;
}

.see-course,
.chapter-end,
.back-link {
  color: var(--grant-deep-blue);
}

.detail-hero {
  background: linear-gradient(115deg, #083a77, #1055a7 70%, #1677c5);
}

.detail-hero .eyebrow {
  color: #aafcf0;
}

.btn {
  background: var(--grant-deep-blue);
}

.btn.outline {
  color: var(--grant-deep-blue);
  border-color: var(--grant-deep-blue);
}

.chapter-item:hover {
  background: #effbff;
}

.lesson-btn.active {
  background: #e6f8fb;
  box-shadow: inset 4px 0 var(--grant-cyan);
}

.lesson-index {
  color: var(--grant-deep-blue);
}

.resource-link {
  color: var(--grant-deep-blue);
}

.gate {
  background: linear-gradient(135deg, #083a77, #1055a7 55%, #12b8d8);
}

.gate-card .brand small {
  color: var(--grant-deep-blue);
}

.gate-card input:focus-visible {
  outline: 2px solid var(--grant-cyan);
  outline-offset: 2px;
}


/* ========================================
   GRANT - INFORMACIÓN INSTITUCIONAL
======================================== */

.grant-info-section {
  background: #fff;
  padding: 85px 50px 95px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}

/* BLOQUE INFORMATIVO */

.grant-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

.grant-info-text h2,
.grant-services-heading h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--ink);
  margin: 12px 0 24px;
}

.grant-info-text p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 18px;
}

.grant-info-text .btn {
  margin-top: 20px;
}

/* TARJETAS DE BENEFICIOS */

.grant-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.grant-benefit-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  min-height: 225px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  transition: transform .2s ease,
    box-shadow .2s ease;
}

.grant-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px #25283d12;
}

.grant-benefit-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ebe5ff;
  color: var(--purple);
  font-size: 29px;
  margin-bottom: 20px;
}

.grant-benefit-card h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--ink);
}

.grant-benefit-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* PRECIO DEL CURSO */

.course-price-box {
    padding: 20px 0;
    margin: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.course-price-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.course-price {
    font-size: 34px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -1px;
    line-height: 1.2;
}

.course-price-note {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    color: var(--muted);
}

/* ========================================
   LÍNEAS DE FORMACIÓN
======================================== */

.grant-services {
  margin-top: 110px;
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

.grant-services-heading {
  max-width: 650px;
  margin-bottom: 35px;
}

.grant-services-heading h2 {
  margin-bottom: 14px;
}

.grant-services-heading p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

/* TARJETAS DE SERVICIOS */

.grant-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grant-service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;

  box-shadow: 0 8px 22px #25283d0a;

  display: flex;
  flex-direction: column;

  transition: transform .2s ease,
    box-shadow .2s ease;
}

.grant-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 32px #25283d15;
}

/* ÁREA VISUAL */

.grant-service-art {
  height: 185px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden;
}

.grant-service-art span {
  font-size: 85px;
  color: #fff;
  position: relative;
  z-index: 2;
  text-shadow: 0 8px 25px #00000015;
}

.grant-service-art::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: #ffffff20;
  top: -110px;
  right: -55px;
}

.grant-service-art::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #ffffff15;
  bottom: -75px;
  left: -35px;
}

/* COLORES DE CADA LÍNEA */

.grant-service-card.academic .grant-service-art {
  background: linear-gradient(135deg, #253b73, #537fd1);
}

.grant-service-card.business .grant-service-art {
  background: linear-gradient(135deg, #3f2b9a, #8058e9);
}

.grant-service-card.digital .grant-service-art {
  background: linear-gradient(135deg, #164c83, #2d9ec8);
}

/* CONTENIDO */

.grant-service-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.grant-service-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--purple);
}

.grant-service-content h3 {
  font-size: 21px;
  line-height: 1.3;
  margin: 12px 0;
  color: var(--ink);
}

.grant-service-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 25px;
}

.grant-service-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 800;
  color: var(--purple);
}



/* ========================================
   GRANT - TRAYECTORIA E INDICADORES
======================================== */

.grant-stats-section {
    padding: 95px 0;
    background: #f7f8fc;
    border-top: 1px solid var(--line);
}

.grant-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 75px;
    align-items: center;
}

/* IMAGEN */

.grant-stats-image {
    position: relative;
    width: 100%;
    height: 570px;
    border-radius: 18px;
    overflow: hidden;
    background: #e9edf6;
}

.grant-stats-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.grant-stats-image:hover img {
    transform: scale(1.035);
}

/* ETIQUETA SOBRE LA IMAGEN */

.grant-stats-image-label {
    position: absolute;
    left: 22px;
    bottom: 22px;
    padding: 16px 22px;
    border-radius: 12px;
    background: #ffffffed;
    box-shadow: 0 8px 28px #00000015;

    display: flex;
    flex-direction: column;
    gap: 5px;
}

.grant-stats-image-label span {
    color: var(--purple);
    font-size: 12px;
    font-weight: 700;
}

.grant-stats-image-label strong {
    color: var(--ink);
    font-size: 17px;
}

/* CONTENIDO */

.grant-stats-content h2 {
    color: var(--ink);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 12px 0 18px;
}

.grant-stats-intro {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 38px;
}

/* INDICADORES */

.grant-stats-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.grant-stat-item {
    display: grid;
    grid-template-columns: 115px 1fr;
    align-items: start;
    gap: 20px;

    padding: 24px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;

    transition: transform .2s ease,
                box-shadow .2s ease;
}

.grant-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px #25283d0d;
}

.grant-stat-number {
    color: #2875c5;
    font-size: clamp(34px, 4vw, 47px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
}

.grant-stat-text h3 {
    font-size: 19px;
    font-weight: 750;
    color: var(--ink);
    margin: 0 0 10px;
}

.grant-stat-text p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* RESPONSIVE */

@media (max-width: 950px) {

    .grant-stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .grant-stats-image {
        height: 400px;
    }

}

@media (max-width: 600px) {

    .grant-stats-section {
        padding: 55px 0;
    }

    .grant-stats-image {
        height: 320px;
    }

    .grant-stats-content h2 {
        font-size: 28px;
    }

    .grant-stat-item {
        grid-template-columns: 85px 1fr;
        gap: 14px;
        padding: 18px;
    }

    .grant-stat-number {
        font-size: 34px;
    }

    .grant-stat-text h3 {
        font-size: 16px;
    }

    .grant-stat-text p {
        font-size: 13px;
    }

    .grant-stats-image-label {
        left: 15px;
        bottom: 15px;
        padding: 12px 16px;
    }

}



/* ========================================
   BLOG Y CONTACTO - GRANT EMPRESARIAL
======================================== */

/* ENCABEZADOS COMPARTIDOS */

.grant-section-heading {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 45px;
}

.grant-section-heading h2 {
    color: var(--ink);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 12px 0 16px;
}

.grant-section-heading p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

/* ========================================
   BLOG
======================================== */

.grant-blog-section {
    background: #fff;
    padding: 95px 0;
    border-top: 1px solid var(--line);
}

.grant-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.grant-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;

    box-shadow: 0 6px 24px #25283d0a;

    transition: transform .25s ease,
                box-shadow .25s ease;
}

.grant-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px #25283d18;
}

.grant-blog-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #eef0f7;
    overflow: hidden;
}

.grant-blog-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.grant-blog-card:hover img {
    transform: scale(1.055);
}

.grant-blog-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.grant-blog-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 800;
    color: var(--purple);
}

.grant-blog-content h3 {
    font-size: 18px;
    line-height: 1.45;
    color: var(--ink);
    margin: 12px 0 25px;
}

.grant-blog-meta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--line);

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    font-size: 12px;
    color: var(--muted);
}

.grant-blog-meta span:last-child {
    color: var(--purple);
    font-weight: 700;
}

.grant-blog-action {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

/* ========================================
   CONTACTO
======================================== */

.grant-contact-section {
    background: #f7f8fc;
    padding: 90px 0 100px;
    border-top: 1px solid var(--line);
}

.grant-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.grant-contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    padding: 35px 25px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;

    text-decoration: none;
    color: inherit;

    transition: transform .2s ease,
                box-shadow .2s ease,
                border-color .2s ease;
}

.grant-contact-card:hover {
    transform: translateY(-4px);
    border-color: #d5c7fa;
    box-shadow: 0 12px 30px #25283d12;
}

.grant-contact-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;

    background: #eee8ff;
    color: var(--purple);

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;
}

.grant-contact-icon svg {
    width: 29px;
    height: 29px;
}

.grant-contact-card h3 {
    font-size: 19px;
    color: var(--ink);
    margin: 0 0 12px;
}

.grant-contact-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 22px;
}

.grant-contact-card > span {
    margin-top: auto;
    font-size: 13px;
    font-weight: 800;
    color: var(--purple);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1000px) {

    .grant-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .grant-blog-section,
    .grant-contact-section {
        padding: 60px 0;
    }

    .grant-section-heading {
        margin-bottom: 30px;
    }

    .grant-section-heading h2 {
        font-size: 28px;
    }

    .grant-contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .grant-contact-card {
        padding: 28px 20px;
    }

}

@media (max-width: 480px) {

    .grant-blog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .grant-blog-image {
        aspect-ratio: 16 / 9;
    }

    .grant-blog-content {
        padding: 20px;
    }

}



/* ========================================
   REDES SOCIALES Y TÉRMINOS
======================================== */

.grant-social-section {
    background: #ffffff;
    padding: 55px 0 35px;
    border-top: 1px solid var(--line);
}

.grant-social-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.grant-social-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 24px;
}

/* REDES SOCIALES */

.grant-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.grant-social-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #f0ebff;
    color: var(--purple);

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background .2s ease,
                color .2s ease,
                transform .2s ease;
}

.grant-social-icon svg {
    width: 21px;
    height: 21px;
}

.grant-social-icon:hover {
    background: var(--purple);
    color: #fff;
    transform: translateY(-3px);
}

/* SEPARADOR */

.grant-social-divider {
    width: 100%;
    max-width: 420px;
    height: 1px;
    background: var(--line);
    margin: 32px 0 22px;
}

/* TÉRMINOS */

.grant-terms-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s ease;
}

.grant-terms-link:hover {
    color: var(--purple);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .grant-social-section {
        padding: 45px 0 30px;
    }

    .grant-social-content h3 {
        font-size: 17px;
    }

    .grant-social-icon {
        width: 43px;
        height: 43px;
    }
}



/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 900px) {

  .grant-info-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .grant-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 600px) {

  .grant-info-section {
    padding: 55px 0 65px;
  }

  .grant-info-text h2,
  .grant-services-heading h2 {
    font-size: 28px;
  }

  .grant-benefits {
    gap: 12px;
  }

  .grant-benefit-card {
    min-height: 190px;
    padding: 20px 12px;
  }

  .grant-benefit-icon {
    width: 55px;
    height: 55px;
    font-size: 25px;
  }

  .grant-benefit-card h3 {
    font-size: 15px;
  }

  .grant-benefit-card p {
    font-size: 12px;
  }

  .grant-services {
    margin-top: 65px;
    padding-top: 50px;
  }

  .grant-services-grid {
    grid-template-columns: 1fr;
  }

  .grant-service-art {
    height: 170px;
  }

}



/* Filtros de cursos */
.course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 32px;
}

.filter-btn {
  padding: 12px 20px;
  border: 1px solid #dce1eb;
  border-radius: 8px;
  background: #fff;
  color: #28344a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.filter-btn:hover {
  border-color: var(--grant-cyan);
  color: var(--grant-deep-blue);
  background: #f0fcff;
}

.filter-btn.active {
  background: var(--grant-gradient);
  border-color: transparent;
  color: #fff;
}

@media(max-width:600px) {
  .course-filters {
    gap: 8px
  }

  .filter-btn {
    padding: 10px 14px;
    font-size: 13px
  }
}