/* ================== RESET Y VARIABLES ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores modo claro */
    --primary-green: #015349;
    --secondary-green: #008B7A;
    --accent-green: #81C784;
    --light-green: #E8F5E8;
    --blue-accent: #1976D2;
    --orange-accent: #FF9800;
    --purple-accent: #7B1FA2;
    --text-dark: #1A1A1A;
    --text-medium: #424242;
    --text-light: #757575;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-color: #E0E0E0;
}

[data-theme="dark"] {
    /* Colores modo oscuro */
    --primary-green: #015349;
    --secondary-green: #008B7A;
    --accent-green: #81C784;
    --light-green: #1B2E1B;
    --blue-accent: #42A5F5;
    --orange-accent: #FFB74D;
    --purple-accent: #BA68C8;
    --text-dark: #FFFFFF;
    --text-medium: #E0E0E0;
    --text-light: #BDBDBD;
    --bg-white: #121212;
    --bg-light: #1E1E1E;
    --border-color: #333333;
    --title-green: #00D4AA;
}

/* ================== BORDES DE CARDS EN MODO OSCURO ================== */
[data-theme="dark"] .course-card {
    border: 2px solid var(--border-color);
    background: var(--bg-light);
}

[data-theme="dark"] .feature-card {
    border: 2px solid var(--border-color);
    background: var(--bg-light);
}

[data-theme="dark"] .course-card:hover,
[data-theme="dark"] .feature-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* ================== TÍTULOS DE SECCIÓN EN MODO OSCURO ================== */
[data-theme="dark"] .section-title {
    color: var(--title-green);
}

[data-theme="dark"] .feature-card h3 {
    color: var(--title-green);
}

[data-theme="dark"] .course-title {
    color: var(--title-green);
}

[data-theme="dark"] .about-card-name {
    color: var(--title-green);
}

[data-theme="dark"] .about-philosophy-title {
    color: var(--title-green);
}

/* ================== TARJETA DE PERFIL EN MODO OSCURO ================== */
[data-theme="dark"] .about-card-item {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .about-card-item i {
    color: var(--title-green);
}

/* ================== TEXTO VERDE EN SECCIÓN ACERCA DE MÍ - MODO OSCURO ================== */
[data-theme="dark"] .about-quote-highlight {
    color: var(--title-green);
}

[data-theme="dark"] .about-strong {
    color: var(--title-green);
}

[data-theme="dark"] .about-link {
    color: var(--title-green);
}

[data-theme="dark"] .about-quote-icon {
    color: var(--title-green);
}

[data-theme="dark"] .hero-execute-text {
    color: var(--text-light);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================== HEADER ================== */
header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo::before {
    content: "";
    display: inline-block;
    width: 64px;
    height: 64px;
    background-image: url('assets/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}
.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--accent-green);
}
.nav-links a.active-link {
    color: var(--accent-green);
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    font-size: larger;
}
.theme-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.3);
}

/* === Botones principales del header === */
.header-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 1.7em;
  padding: 0.7em 2em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.btn-primary {
  background: var(--secondary-green);
  color: #fff;
  border: 2px solid var(--secondary-green);
}
.btn-primary:hover {
  background: #176c3a;
  border-color: #176c3a;
}

.btn-outline {
  background: #fff;
  color: var(--secondary-green);
  border: 2px solid var(--secondary-green);
}
.btn-outline:hover {
  background: #eafaf1;
  color: #176c3a;
  border-color: #176c3a;
}

/* === Redes sociales header === */
.header-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2.5rem 0 1.5rem 0;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 1.15rem;
  font-weight: 500;
  background: #fff;
  color: #176c3a;
  border: 1.5px solid #d6eadd;
  border-radius: 1.7em;
  padding: 0.6em 1.5em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px 0 rgba(34, 139, 84, 0.04);
}
.social-btn i {
  font-size: 1.3em;
}
.social-btn:hover {
  background: #eafaf1;
  color: var(--secondary-green);
  border-color: var(--secondary-green);
  box-shadow: 0 2px 8px 0 rgba(34, 139, 84, 0.10);
}

/* Responsive ajustes para header */
@media (max-width: 700px) {
  .header-actions {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
  .header-socials {
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0 1rem 0;
  }
}

/* ================== HERO / INICIO ================== */
.hero {
  background: linear-gradient(135deg, var(--light-green), var(--bg-light));
  padding: 2rem 0;
  text-align: center;
}
.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--secondary-green);
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  text-align: center;
}
.hero-subtitle {
  font-size: 2rem;
  font-weight: 500;
  color: #5d9272;
  margin-bottom: 2rem;
  line-height: 1.3;
  text-align: center;
}
.hero-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
}
.hero-col {
  flex: 1 1 350px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.hero-main {
  justify-content: flex-start;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
}

.hero-main .hero-buttons,
.hero-main .hero-social-links {
  display: none;
}
.hero-sandbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  gap: 1rem;
}

.hero-sandbox .hero-buttons,
.hero-sandbox .hero-social-links {
  display: flex;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 0;
  width: 100%;
  max-width: 500px;
  margin-top: 0.5rem;
}

.hero-execute-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
  text-align: center;
}

.hero-execute-image {
  width: 20rem;
  height: auto;
  margin-bottom: 0.5rem;
}

.hero-execute-text {
  font-size: 1.5rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  max-width: 400px;
}
.hero-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  margin-top: 0.5rem;
}
.hero-social-links .social-btn {
  font-size: 0.95rem;
  padding: 0.4em 1em;
  border-radius: 7px !important;
  font-weight: 500;
  margin: 0.2em 0.3em;
  min-width: 0;
  box-shadow: none;
}
.hero-social-links .social-btn:hover {
  background: #eafaf1;
  color: #176c3a;
  border-color: #176c3a;
}
/* ================== HERO MEDIA QUERIES ================== */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-columns {
    gap: 1.5rem;
  }
}
@media (max-width: 900px) {
  .hero-columns {
    flex-direction: column;
    gap: 2rem;
  }
  .hero-main, .hero-sandbox {
    align-items: center;
    width: 100%;
  }
  .hero-sandbox {
    gap: 0.5rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  
  /* En pantallas pequeñas, mover botones y redes sociales al lado izquierdo */
  .hero-main .hero-buttons,
  .hero-main .hero-social-links {
    display: flex;
  }
  
  .hero-sandbox .hero-buttons,
  .hero-sandbox .hero-social-links {
    display: none;
  }
}
@media (max-width: 700px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .hero-execute-section {
    margin-bottom: 0;
  }
  .hero-execute-image {
    width: 120px;
    margin-bottom: 0.3rem;
  }
  .hero-execute-text {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0.5rem;
    max-width: 100%;
    margin-top: 0.3rem;
  }
  .hero-social-links {
    gap: 0.3rem 0.3rem;
    margin-top: 0.5rem;
  }
}
@media (max-width: 500px) {
  .hero-title {
    font-size: 1.3rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-execute-section {
    margin-bottom: 0;
  }
  .hero-execute-image {
    margin-bottom: 0.2rem;
  }
  .hero-execute-text {
    font-size: 0.98rem;
    font-weight: 700;
    max-width: 250px;
    margin-bottom: 0.3rem;
  }
  .hero-buttons {
    padding: 0 0.5rem;
    margin-top: 0.2rem;
  }
}

/* ==== ESTILOS PERSONALIZADOS PARA EL HOME ==== */
.hero-main h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--secondary-green);
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-main h2 {
    font-size: 2rem;
    font-weight: 500;
    color: #5d9272;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--secondary-green);
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-align: center;
}
.hero-subtitle {
    font-size: 2rem;
    font-weight: 500;
    color: #5d9272;
    margin-bottom: 2rem;
    line-height: 1.3;
    text-align: center;
}

.btn, .btn-primary, .btn-outline {
    border-radius: 10px !important;
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: none;
    border-width: 2px;
}

/* ================== BOTONES ================== */
.cta-button {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.4s both;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 125, 50, 0.3);
}
.card-action {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ================== FEATURES / POR QUÉ ELEGIR ================== */
.features {
    padding: 2rem 0;
    background: var(--bg-white);
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
}
.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-medium);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.feature-card:hover {
    /* transform: translateY(-5px); */
    border-color: var(--accent-green);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.feature-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}
.feature-card p {
    color: var(--text-medium);
}

/* ================== CURSOS GRATUITOS ================== */
.courses {
  padding: 2rem 0;
  background: var(--light-green);
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 700px) {
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.course-card {
  background: var(--bg-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid transparent;
}
.course-card:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.course-header {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}
.course-header img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 12px 12px 0 0;
}
.course-content {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  position: relative;
}
.course-title {
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.course-description {
  color: var(--text-medium);
  margin-bottom: 1rem;
}
.course-details {
  display: flex;
  justify-content: space-evenly
}
.course-badge {
  color: #fff;
  padding: 0.35em 1em;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(16,185,129,0.08);
  z-index: 2;
  letter-spacing: 0.5px;
  border: 2px solid #fff;
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.18);
  display: inline-block;
}
.badge-python {
  background: #10B981;
  color: #fff;
  border-radius: 1em;
  padding: 0.3em 1em;
  font-size: 1em;
  font-weight: 600;
  margin-right: 0.5em;
  display: inline-block;
}
.badge-js {
  background: #FFD600;
  color: #222;
  border-radius: 1em;
  padding: 0.3em 1em;
  font-size: 1em;
  font-weight: 600;
  margin-right: 0.5em;
  display: inline-block;
}
.badge-sql {
  background: #1976D2;
  color: #fff;
  border-radius: 1em;
  padding: 0.3em 1em;
  font-size: 1em;
  font-weight: 600;
  margin-right: 0.5em;
  display: inline-block;
}
.badge-java {
  background: #d4a715;
  color: #fff;
  border-radius: 1em;
  padding: 0.3em 1em;
  font-size: 1em;
  font-weight: 600;
  margin-right: 0.5em;
  display: inline-block;
}
.live-badge {
  background: #EF4444;
  color: #fff;
  padding: 0.35em 1em;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(239,68,68,0.08);
  letter-spacing: 0.5px;
  border: 2px solid #fff;
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.18);
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 5px;
}
.card-action {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
/* ================== CURSOS MEDIA QUERIES ================== */
@media (max-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}
@media (max-width: 900px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.2rem;
  }
}
@media (max-width: 700px) {
  .courses {
    padding: 1rem 0;
  }
  .course-title {
    font-size: 1.1rem;
  }
  .course-description {
    font-size: 0.98rem;
  }
  .course-details {
    gap: 0.7rem;
    font-size: 0.95rem;
  }
}
@media (max-width: 500px) {
  .course-content {
    padding: 0.7rem;
  }
  .course-title {
    font-size: 0.98rem;
  }
}

/* Eliminar estilos del slider y dots */
.courses-slider,
.courses-slider-track,
.slider-btn,
.slider-dots,
.slider-dot {
  display: none !important;
}

/* ================== ACERCA DE MÍ ================== */
.about {
  padding: 2rem 0;
  background: var(--bg-white);
} 
.about-content, .about-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: stretch;
}
.about-col {
  flex: 1 1 300px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: none;
}
.about-col-img {
  flex: 0 0 40%;
  max-width: 40%;
  min-width: 320px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  height: 100%;
  padding: 1.2rem 1.2rem;
  box-sizing: border-box;
}
.about-card {
  background: var(--light-green);
  border-radius: 28px;
  box-shadow: 0 4px 24px rgba(45, 125, 50, 0.10);
  padding: 2.2rem 1.5rem 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  margin: 0;
  box-sizing: border-box;
}
.about-profile-img {
  max-width: 220px;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  margin: 0 auto 0 auto;
  display: block;
  background: none;
}
.about-card-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  margin-bottom: 0.2rem;
  text-align: center;
}
.about-card-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-top: 0.5rem;
}
.about-card-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(45, 125, 50, 0.06);
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: box-shadow 0.2s;
}
.about-card-item i {
  font-size: 1.3em;
  color: var(--primary-green);
  min-width: 1.5em;
  text-align: center;
}
.about-card-item:hover {
  box-shadow: none;
}
.about-col-text {
  flex: 1 1 60%;
  max-width: 60%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.2rem 1.2rem;
  box-sizing: border-box;
}
.about-section-quote {
  margin: 0 1rem;
  text-align: left;
}
.about-quote {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  line-height: 1.2;
  text-align: left;
  display: block;
}
.about-quote-inline {
  display: inline-flex;
  align-items: flex-start;
}
.about-quote-icon {
  font-size: 1.7rem;
  color: var(--primary-green);
  opacity: 0.45;
  margin-right: 0.3em;
  font-family: serif;
  line-height: 1.2;
  vertical-align: top;
}
.about-quote-main {
  display: inline-block;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  vertical-align: middle;
}
.about-quote-highlight {
  color: var(--primary-green);
  font-weight: 800;
}
.about-paragraph {
  font-size: 1.15rem;
  color: var(--text-medium);
  margin-bottom: 1.1rem;
  line-height: 1.7;
}
.about-strong {
  font-weight: 700;
  color: var(--primary-green);
}
.about-link {
  color: var(--secondary-green);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.about-philosophy-card {
  position: relative;
  background: var(--light-green);
  border-radius: 24px;
  padding: 2.2rem 2.2rem 2.2rem 2.2rem;
  color: var(--text-dark);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(45, 125, 50, 0.10);
}
.about-philosophy-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--primary-green);
}
.about-philosophy-text {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-medium);
  margin-bottom: 0;
  line-height: 1.7;
}
.about-philosophy-icon {
  display: none;
}
.section-divider {
  width: 60px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
  border-radius: 4px;
  margin: 0.5rem auto 1.5rem auto;
  display: block;
}
/* ================== ACERCA DE MÍ MEDIA QUERIES ================== */
@media (max-width: 1200px) {
  .about-col-img, .about-col-text {
    min-width: 220px;
    padding: 0.7rem 0.7rem;
  }
  .about-content, .about-columns {
    gap: 1.2rem;
  }
}
@media (max-width: 900px) {
  .about-content, .about-columns {
    flex-direction: column;
    gap: 1.5rem;
  }
  .about-col-img, .about-col-text {
    max-width: 100%;
    min-width: 0;
    height: auto;
    padding: 0;
  }
  .about-card {
    height: auto;
    max-width: 100%;
    padding: 1.5rem 0.7rem 2rem 0.7rem;
  }
}
@media (max-width: 800px) {
  .about-profile-img {
    margin-bottom: 1rem;
  }
}
@media (max-width: 700px) {
  .about {
    padding: 1rem 0;
  }
  .about-card {
    padding: 1rem 0.5rem 1.5rem 0.5rem;
  }
  .about-philosophy-card {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
  }
  .about-card-name {
    font-size: 1.2rem;
  }
  .about-quote, .about-quote-main {
    font-size: 1.3rem;
  }
}
@media (max-width: 500px) {
  .about-profile-img {
    max-width: 120px;
  }
  .about-card {
    padding: 0.5rem 0.2rem 1rem 0.2rem;
  }
  .about-philosophy-card {
    padding: 0.7rem 0.2rem 0.7rem 0.2rem;
  }
}

/* ================== REDES SOCIALES ================== */
.feature-post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.7rem;
}
.post-time {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}
.post-youtube { background: #FF2D2D; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.post-linkedin { background: #0077B5; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.post-twitter { background: #1DA1F2; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.post-github { background: #24292F; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.post-threads { background: #8C5AFF; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.post-academia { background: #FFD700; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }

/* ================== RECURSOS ================== */
.features {
  padding: 2rem 0;
  background: var(--bg-white);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.feature-card {
  padding: 1.5rem 1rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.feature-card:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.feature-card p {
  color: var(--text-medium);
  margin-bottom: 1.2rem;
}
.features .card-action {
  display: flex;
  justify-content: center;
  margin-top: auto;
  width: 100%;
}
.features .card-action a.cta-button {
  background: #fff !important;
  color: var(--secondary-green) !important;
  border: 1.5px solid #d6eadd !important;
  border-radius: 7px !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  margin: 0.2em 0.3em !important;
  min-width: 0 !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  gap: 0.7em;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
}
.features .card-action a.cta-button:hover {
  background: #eafaf1 !important;
  color: #176c3a !important;
  border-color: #176c3a !important;
  box-shadow: 0 2px 8px 0 rgba(34, 139, 84, 0.10) !important;
}
/* ================== RECURSOS MEDIA QUERIES ================== */
@media (max-width: 1200px) {
  /* .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
  } */
}
@media (max-width: 900px) {
  .features {
    padding: 1.2rem 0;
  }
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));;
    gap: 1rem;
  }
  .feature-card {
    min-height: 180px;
    padding: 1rem 0.5rem;
  }
}
@media (max-width: 700px) {
  .feature-card {
    font-size: 0.98rem;
    padding: 0.7rem 0.2rem;
  }
  .feature-icon {
    font-size: 2.2rem;
  }
}
@media (max-width: 500px) {
  .feature-card {
    min-height: 120px;
    padding: 0.4rem 0.1rem;
  }
  .feature-icon {
    font-size: 1.5rem;
  }
}

/* ================== CONTACTO Y SANDBOX ================== */
.contact {
  padding: 2rem 0;
  background: var(--bg-white);
}
.contact-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
}
.contact-col {
  flex: 1 1 350px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.contact-sandbox {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.contact-form-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.contact-content {
  text-align: center;
}
.contact-description {
  margin-bottom: 2rem;
  color: var(--text-medium);
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}
.form-group {
  display: flex;
  margin-bottom: 0.5rem;
  width: 100%;
}
.form-group label {
  color: var(--text-dark);
  font-weight: 500;
  min-width: 120px;
  max-width: 180px;
  margin-bottom: 0;
  text-align: right;
  padding: 0rem 1rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  flex: 1 1 0%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-white);
  color: var(--text-dark);
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-green);
}
.contact-social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.sandbox-card {
  background: #232946;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  min-width: 320px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  color: #eaeaea;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.sandbox-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: #232946;
  border-radius: 18px 18px 0 0;
  padding: 1.2rem 1.2rem 0.2rem 1.2rem;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}
.sandbox-tabs {
  display: flex;
  gap: 0.5rem;
}
.sandbox-tab {
  background: #16161a;
  color: #eaeaea;
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 0.4rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.7;
  transition: background 0.2s, opacity 0.2s, box-shadow 0.2s;
  margin-right: 0;
  position: relative;
  z-index: 1;
}
.sandbox-tab.active {
  background: #3b47a0;
  color: #fff;
  opacity: 1;
  box-shadow: 0 4px 16px rgba(59,71,160,0.15);
  border-bottom: 3px solid var(--secondary-green);
}
.sandbox-tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.sandbox-run-in {
  background: var(--secondary-green);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 4px 16px rgba(30,199,115,0.15);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
  max-width: 140px;
  min-width: 80px;
}
.sandbox-run-in:active {
  background: #18a65c;
  transform: scale(0.97);
}
.sandbox-spinner {
  border: 3px solid #fff;
  border-top: 3px solid var(--secondary-green);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  display: inline-block;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.sandbox-content {
  background: #16161a;
  border-radius: 0 0 18px 18px;
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
/* ========== SANDBOX BLOQUES Y VISIBILIDAD ========== */
.sandbox-block {
  text-align: left;
  display: none;
}
.sandbox-block.active {
  display: block;
}
.sandbox-block.hidden {
  display: none !important;
}
.sandbox-spinner {
  display: none;
}
.sandbox-spinner.active {
  display: inline-block;
}
#contact-sandbox-result, #sandbox-result {
  min-height: 220px;
}
@media (max-width: 500px) {
  #contact-sandbox-result, #sandbox-result {
    min-height: 120px;
  }
}
.sandbox-block {
  text-align: left;
  color: #eaeaea;
  font-family: 'Fira Mono', 'Consolas', monospace;
  font-size: 1rem;
  padding: 1rem 1rem 0.7rem 1rem;
  margin: 0;
  border: none;
  border-radius: 0 0 18px 18px;
  min-height: 120px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  overflow-x: auto;
  overflow-y: auto;
  background: transparent;
}
#contact-map {
  width: 100%;
  height: 220px;
  min-height: 220px;
  border-radius: 12px;
}
/* ================== MODAL DE ÉXITO CONTACTO ================== */
#contact-success-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}
#contact-success-modal .modal-content {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  max-width: 90vw;
  width: 350px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  position: relative;
}
#close-success-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
}
#close-success-modal:hover {
  color: #38d39f;
}
@media (max-width: 700px) {
  #contact-success-modal .modal-content {
    width: 95vw;
    padding: 1.2rem 0.5rem;
  }
}
@media (max-width: 400px) {
  #contact-success-modal .modal-content {
    width: 99vw;
    padding: 0.7rem 0.2rem;
    font-size: 0.98rem;
  }
}

/* ================== CONTACTO MEDIA QUERIES ================== */
@media (max-width: 1200px) {
  .contact-columns {
    gap: 1.2rem;
  }
}
@media (max-width: 900px) {
  .contact-columns {
    flex-direction: column;
    gap: 1.5rem;
  }
  .contact-col {
    max-width: 100%;
    min-width: 0;
    height: auto;
    padding: 0;
  }
  .sandbox-card {
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 700px) {
  .contact {
    padding: 1rem 0;
  }
  .sandbox-card {
    padding: 0.5rem 0.2rem 0.5rem 0.2rem;
  }
  .contact-content {
    padding: 0 0.5rem;
  }
}
@media (max-width: 500px) {
  .sandbox-card {
    padding: 0.2rem 0.1rem 0.2rem 0.1rem;
  }
  #contact-map {
    height: 120px;
    min-height: 80px;
  }
}

/* ================== NAVBAR HAMBURGUESA RESPONSIVE ================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 200;
  margin-left: 1rem;
}
.hamburger .bar {
  width: 26px;
  height: 3.5px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
  display: block;
}
.hamburger .close-icon {
  display: none;
  color: #fff;
}
.hamburger.active .close-icon {
  display: inline-block !important;
}
.hamburger.active .bar {
  display: none;
}
@media (max-width: 1000px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    background: var(--primary-green);
    flex-direction: column;
    gap: 0;
    width: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 1.2rem 0.5rem;
    display: none;
    z-index: 150;
    animation: fadeInUp 0.3s;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    text-align: left;
    margin: 0.2em 0;
  }
  .nav-links a {
    color: #fff;
    padding: 0.8em 1.2em;
    border-radius: 8px;
    display: block;
    width: 100%;
    font-size: 1.1rem;
  }
  .nav-links a:hover, .nav-links a.active-link {
    background: rgba(255,255,255,0.08);
    color: var(--accent-green);
  }
  .hamburger {
    display: flex;
  }
  nav {
    position: relative;
  }
}
@media (max-width: 700px) {
  .nav-links {
    right: 10px;
    width: 90vw;
    min-width: 160px;
    max-width: 350px;
  }
  
  .logo {
    font-size: 1.2rem;
  }
}

@media (max-width: 500px) {
  .logo {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .logo {
    font-size: 0.9rem;
  }
  
  .logo::before {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 500px) {
  .logo::before {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 700px) {
  .logo::before {
    width: 52px;
    height: 52px;
  }
}
/* Animación para el menú hamburguesa (cruz) */
.hamburger.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
} 

/* ================== AJUSTE COLUMNAS ACERCA DE MÍ ================== */
.about-content, .about-columns {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  align-items: stretch;
  justify-content: center;
}
.about-col-img, .about-col-text {
  flex: 1 1 0;
  max-width: 50%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}
@media (max-width: 1200px) {
  .about-content, .about-columns {
    gap: 1.2rem;
  }
  .about-col-img, .about-col-text {
    min-width: 220px;
    max-width: 100%;
    padding: 0.7rem 0.7rem;
  }
}
@media (max-width: 900px) {
  .about-content, .about-columns {
    flex-direction: column;
    gap: 1.5rem;
  }
  .about-col-img, .about-col-text {
    max-width: 100%;
    min-width: 0;
    height: auto;
    padding: 0;
  }
} 

/* Animación de hover para cards de cursos, clases en vivo y recursos */
@keyframes cardLift {
  0% {
    transform: scale(1) translateY(0);
  }
  60% {
    transform: scale(1.035) translateY(-7px);
  }
  80% {
    transform: scale(1.025) translateY(-4px);
  }
  100% {
    transform: scale(1.03) translateY(-5px);
  }
}

.course-card,
.feature-card {
  /* Asegura que la animación y transform no afecten layout inesperado */
  will-change: transform, box-shadow;
}

.course-card:hover,
.feature-card:hover {
  animation: cardLift 0.45s cubic-bezier(.22,1.15,.47,1.01) both;
  /* Mantener el shadow existente */
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  z-index: 2;
  border-color: var(--accent-green);
}

/* Evita que la animación se repita mientras el mouse está encima */
.course-card,
.feature-card {
  /* Reinicia la animación al salir del hover */
  animation: none;
}

/* ========== UNIFICAR BOTONES DE CARDS (CURSOS, CLASES EN VIVO, RECURSOS) ========== */
.courses .card-action a.cta-button,
.courses .card-action a,
.course-card .card-action a,
.features .card-action a.cta-button,
.feature-card .card-action a {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.95rem;
  font-weight: 500;
  background: #fff;
  color: var(--secondary-green) !important;
  border: 1.5px solid #d6eadd;
  border-radius: 7px !important;
  padding: 0.4em 1em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s !important; /* sin transform */
  box-shadow: none;
  min-width: 0;
  margin: 0.2em 0.3em;
  justify-content: center;
}
.courses .card-action a.cta-button i,
.courses .card-action a i,
.course-card .card-action a i,
.features .card-action a.cta-button i,
.feature-card .card-action a i {
  font-size: 1.3em;
}
.courses .card-action a.cta-button:hover,
.courses .card-action a:hover,
.course-card .card-action a:hover,
.features .card-action a.cta-button:hover,
.feature-card .card-action a:hover {
  background: #eafaf1 !important;
  color: #176c3a !important;
  border-color: #176c3a !important;
  box-shadow: 0 2px 8px 0 rgba(34, 139, 84, 0.10) !important;
  transform: none !important;
}

/* ========== UNIFICAR BOTONES DE REDES SOCIALES EN TODAS LAS SECCIONES ========== */
.hero-social-links .social-btn,
.contact-social-links .social-btn,
.footer-social-links .social-btn {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.95rem;
  font-weight: 500;
  background: #fff;
  color: #176c3a;
  border: 1.5px solid #d6eadd;
  border-radius: 7px !important;
  padding: 0.4em 1em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
  box-shadow: none;
  min-width: 0;
  margin: 0.2em 0.3em;
}
.hero-social-links .social-btn i,
.contact-social-links .social-btn i,
.footer-social-links .social-btn i {
  font-size: 1.3em;
}
.hero-social-links .social-btn:hover,
.contact-social-links .social-btn:hover,
.footer-social-links .social-btn:hover {
  background: #eafaf1;
  color: var(--secondary-green);
  border-color: var(--secondary-green);
  box-shadow: 0 2px 8px 0 rgba(34, 139, 84, 0.10);
}

/* ================== FOOTER ================== */
footer {
  background: var(--primary-green);
  color: white;
  padding: 1rem 0 1rem;
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  border-top: none;
}
footer p {
  margin: 0.2em 0;
  font-weight: 400;
}
@media (max-width: 900px) {
  footer {
    font-size: 0.98rem;
    padding: 0.7rem 0 0.7rem;
  }
}
@media (max-width: 500px) {
  footer {
    font-size: 0.92rem;
    padding: 0.5rem 0 0.5rem;
  }
}

/* ================== FONDOS ALTERNADOS ================== */
.bg-green {
  background: var(--light-green) !important;
}
.bg-white {
  background: var(--bg-white) !important;
}

/* Ajuste para que cada sección use el fondo alternado correctamente */
.hero {
  background: linear-gradient(135deg, var(--light-green), var(--bg-light));
}
.courses.bg-white {
  background: var(--bg-white) !important;
}
.courses.bg-green {
  background: var(--light-green) !important;
}
.about.bg-white {
  background: var(--bg-white) !important;
}
.features.bg-green {
  background: var(--light-green) !important;
}
.contact.bg-white {
  background: var(--bg-white) !important;
} 

/* Ajuste general para que las cards nunca se salgan */
.courses-grid,
.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.course-card,
.feature-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive para móviles */
@media (max-width: 700px) {
  .courses-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  .course-card,
  .feature-card {
    min-width: 0;
    width: 100%;
    padding: 0.5rem 0.2rem;
  }
  .container {
    padding: 0 4px;
  }
}
@media (max-width: 500px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card {
    min-height: 120px;
    padding: 0.4rem 0.1rem;
  }
  .feature-icon {
    font-size: 1.5rem;
  }
}

/* Extra: para pantallas muy pequeñas */
@media (max-width: 400px) {
  .course-card,
  .feature-card {
    padding: 0.2rem 0.05rem;
  }
} 

/* ========== AJUSTES RESPONSIVOS PARA FORMULARIO DE CONTACTO ========== */
.contact-form {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 0 8px;
}

.form-group {
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.form-group label {
  min-width: 90px;
  max-width: 120px;
  padding: 0 0.5rem;
  font-size: 1rem;
  text-align: left;
  box-sizing: border-box;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 1rem;
  padding: 0.7rem;
}

.contact-form button[type="submit"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-left: 0;
  box-sizing: border-box;
  font-size: 1rem;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
}

@media (max-width: 400px) {
  .form-group label {
    min-width: 60px;
    max-width: 90px;
    padding: 0 0.2rem;
    font-size: 0.92rem;
  }
  .contact-form button[type="submit"] {
    font-size: 0.95rem;
    padding: 0.6rem 0.5rem;
  }
} 

/* Ajuste: grid de cursos a 3 columnas fijas en pantallas grandes */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
} 

/* Responsive grid de cursos: 3 columnas grandes, 2 medianas, 1 móvil */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
} 

@media (max-width: 700px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .course-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 100px;
    height: auto;
    max-width: 100vw;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  .course-header {
    width: 50%;
    min-width: 0;
    height: auto;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 15px 0 0 15px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .course-header img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 15px 0 0 15px;
    display: block;
    min-height: 80px;
    max-height: 160px;
    margin-bottom: 0;
  }
  .course-badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.15em;
    margin: 0 0 0.15em 0;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
  }
  .course-content {
    width: 62%;
    min-width: 0;
    padding: 0.1rem 0.1rem 0rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%;
    box-sizing: border-box;
  }
  .course-content > .course-badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.15em;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
  }
  .course-header .course-badges {
    display: none !important;
  }
  .course-title {
    margin-bottom: 0.15rem;
    font-weight: 700;
  }
  .course-description {
    margin-bottom: 0.15rem;
    font-size: 0.97rem;
    line-height: 1.3;
  }
  .course-description {
    display: none !important;
  }
  .course-details {
    display: flex;
    flex-direction: row;
    font-size: 0.95rem;
    color: var(--text-medium);
    align-items: center;
  }
  .card-action {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
  }
} 

/* =============== BANNER INDEPENDIENTE =============== */
.main-banner {
  width: 100%;
  background: var(--bg-white);
  padding: 0;
  margin: 0;
  display: block;
  position: relative;
  aspect-ratio: 1235 / 338;
  overflow: hidden;
}

.main-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* =============== HERO SEPARADO =============== */
.hero {
  background: linear-gradient(135deg, var(--light-green), var(--bg-light));
  padding: 3rem 0;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.hero > .container {
  position: relative;
  z-index: 3;
}

/* Ajuste para el banner en modo oscuro */
[data-theme="dark"] .main-banner {
  background: var(--bg-white);
} 

@media (max-width: 600px) {
  .sandbox-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding: 1.2rem 0.7rem 0.2rem 0.7rem;
  }
  .sandbox-tabs {
    justify-content: flex-start;
    width: 100%;
  }
  .sandbox-run-in {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    justify-content: center;
  }
} 

#contact-map,
#contact-map .leaflet-pane,
#contact-map .leaflet-map-pane,
#contact-map .leaflet-tile-pane,
#contact-map .leaflet-overlay-pane,
#contact-map .leaflet-shadow-pane,
#contact-map .leaflet-marker-pane,
#contact-map .leaflet-popup-pane {
  position: relative !important;
  z-index: 1 !important;
} 