/* st-standalone.css */

/* === RESET UNIVERSAL === */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  /* Comportamiento de scroll suave para toda la web */
  scroll-behavior: smooth; 
}

/* --- 1. CONFIGURACIÓN GLOBAL Y VARIABLES --- */
:root {
  /* --- PALETA MODO CLARO (DEFAULT) --- */
  --font-primary: 'Open Sans', sans-serif;
  --font-secondary: 'Outfit', sans-serif;

  --color-primary: #007bff;
  --color-secondary: #005a9e;
  --color-accent: #D9532A;
  --color-success: #28a745;
  --color-vet: #8a2be2;

  --color-verde-brand: #006400;
  --color-verde-hover: #004d00;

  --color-text: #333333;
  --color-text-claro: #555555;
  --color-text-inverted: #ffffff;

  --color-background: #f8f9fa;
  --color-surface: #ffffff;
  --color-surface-secondary: #fdfdfd;

  --color-border: #eeeeee;
  --color-border-input: #dddddd;

  --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 20px rgba(0,0,0,.08);

  --overlay-hero: rgba(255, 255, 255, 0.9);
  --overlay-border: rgba(255,255,255,0.5);

  --border-radius: 8px;
}

/* --- PALETA MODO OSCURO --- */
[data-theme="dark"] {
  --color-primary: #3395ff;
  --color-secondary: #6ec6ff;
  --color-verde-brand: #4caf50;
  --color-verde-hover: #80e27e;
  --color-vet: #bd82f2;
  --color-text: #e0e0e0;
  --color-text-claro: #b0b0b0;
  --color-text-inverted: #121212;
  --color-background: #121212;
  --color-surface: #1e1e1e;
  --color-surface-secondary: #252525;
  --color-border: #333333;
  --color-border-input: #444444;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 6px 20px rgba(0,0,0,.7);
  --overlay-hero: rgba(30, 30, 30, 0.9);
  --overlay-border: rgba(255,255,255,0.1);
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- SOLUCIÓN DE CONTENEDORES --- */
.container, .cont {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto !important;
  padding: 0 1rem;
  display: block;
}

/* --- 2. LAYOUT PRINCIPAL --- */
.main-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }

/* HERO SECTION */
.hero-section {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--color-text);
  text-align: left;
  /* Altura mínima base para móviles/tablets donde la imagen cambia */
  min-height: 500px; 
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
}

.hero-background {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover !important;
  /* --- top center asegura que las cabezas estén protegidas si sobra espacio --- */
  background-position: top center !important; 
  z-index: 1;
  background-image: url('/images/egresados2025_banner.webp');
}

/* OPTIMIZACIÓN RENDIMIENTO: Blur solo en desktop */
.hero-title-strip {
  position: relative; z-index: 2; width: 100%;
  background-color: var(--overlay-hero);
  padding: 20px 0; text-align: center;
  border-top: 1px solid var(--overlay-border);
  transition: background-color 0.3s ease;
}

/* --- FIX WIDESCREEN Y EFECTOS DESKTOP --- */
@media (min-width: 992px) {
  .hero-title-strip {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  /* --- CORRECCIÓN MATEMÁTICA EXACTA (1000x540) --- */
  .hero-section {
    min-height: unset !important;
    /* Esto crea una caja con la misma proporción que tu imagen.
       Resultado: La imagen encaja perfecto sin recortarse. */
    aspect-ratio: 1000 / 540; 
  }
}

.hero-title-strip h2 {
  font-family: var(--font-secondary); font-size: 2rem; font-weight: 500;
  margin: 0; line-height: 1.2; color: var(--color-verde-brand);
}

/* INTRO SECTION */
.intro-section {
  background-color: var(--color-surface);
  padding: 40px 20px; text-align: center;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem; transition: background-color 0.3s ease;
}
.intro-section p {
  font-size: 1.2rem; max-width: 800px; margin: 0 auto 25px auto;
  color: var(--color-text-claro); font-weight: 300;
}
.hero-cta-button {
  display: inline-block; background-color: var(--color-accent);
  color: #fff; padding: 15px 40px; font-size: 1.1rem;
  font-family: var(--font-secondary);
  font-weight: 600; text-transform: uppercase; text-decoration: none;
  border-radius: 50px; transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2); letter-spacing: 1px;
}
.hero-cta-button:hover { background-color: #bf4a25; transform: translateY(-2px); }

/* --- 3. CURSOS --- */
.cursos-columns-wrapper { display: flex; flex-direction: column; gap: 2rem; margin-top: 0; }
[class^="cursos-area-"] {
  background-color: var(--color-surface); padding: 1.5rem;
  border-radius: var(--border-radius); box-shadow: var(--shadow);
  width: 100%; box-sizing: border-box;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
[class^="cursos-area-"] h2 {
  font-family: var(--font-secondary); font-size: 1.8rem; font-weight: 500;
  padding-bottom: .75rem; border-bottom: 3px solid; margin: 0 0 1.5rem 0;
  display: flex; align-items: center; gap: 0.5rem;
}
.cursos-area-verde h2 { border-color: var(--color-verde-brand); color: var(--color-verde-brand); }
.cursos-area-violeta h2 { border-color: var(--color-vet); color: var(--color-vet); }

.cursos-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.curso-card {
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: all 0.3s ease; overflow: hidden;
}
.curso-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--color-verde-brand); }
.curso-card a { display: flex; align-items: center; padding: 1rem; text-decoration: none; color: inherit; }
.curso-card img { border-radius: 50%; border: 3px solid var(--color-border); }
.curso-card .curso-info { margin-left: 1rem; }
.curso-card h3 {
  font-family: var(--font-secondary);
  font-size: 1.1rem; font-weight: 500;
  margin: 0 0 .25rem 0; color: var(--color-text);
}
.curso-card span { color: var(--color-verde-brand); font-weight: 600; font-size: .9rem; display: block; margin-top: 5px; }

/* --- 4. SIDEBAR --- */
.sidebar .widget {
  background-color: var(--color-surface); padding: 1.5rem;
  border-radius: var(--border-radius); box-shadow: var(--shadow); margin-bottom: 2rem;
  transition: background-color 0.3s ease;
}
.sidebar .widget h5 {
  font-family: var(--font-secondary); font-size: 1.5rem; font-weight: 500;
  margin: 0 0 1.5rem 0; color: var(--color-verde-brand);
  border-bottom: 2px solid var(--color-border); padding-bottom: .75rem;
}
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .75rem;
  border: 1px solid var(--color-border-input);
  background-color: var(--color-surface-secondary); color: var(--color-text);
  border-radius: 5px; font-size: 1rem; font-family: inherit; box-sizing: border-box;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-verde-brand); }
.contact-form button {
  width: 100%; padding: .8rem; background-color: var(--color-accent);
  color: #fff; border: none; border-radius: 5px;
  font-size: 1.1rem; font-family: var(--font-secondary); font-weight: 600; cursor: pointer;
  text-transform: uppercase; transition: background-color 0.3s;
  letter-spacing: 1px;
}
.contact-form button:hover { background-color: #bf4a25; }
.widget-job-board ul { list-style: none; padding-left: 0; margin: 0; }
.widget-job-board li { margin-bottom: .5rem; }
.widget-job-board a { text-decoration: none; color: var(--color-verde-brand); font-weight: 600; }
.widget-job-board a:hover { color: var(--color-verde-hover); text-decoration: underline; }

.widget.como-llegar button { width: 100%; padding: 15px; background: var(--color-accent); color: #fff; border: none; border-radius: 5px; margin-top: 10px; cursor: pointer; font-weight: 600; letter-spacing: 0.5px; }
.map-responsive iframe { width: 100%; height: 250px; border:0; border-radius: 8px; filter: grayscale(20%); }

/* --- 5. FOOTER & UTILIDADES --- */
.site-footer { background-color: #1a252f; color: #ecf0f1; padding: 2rem 0; margin-top: 2rem; }
.footer-bottom { text-align: center; }
.footer-bottom p { margin: 0; font-size: .9rem; opacity: 0.7; font-weight: 300; }

/* OPTIMIZACIÓN RENDIMIENTO: Aceleración de Hardware para animación */
.sticky-whatsapp-button {
  position: fixed; bottom: 20px; right: 20px; z-index: 1000;
  width: 60px; height: 60px; background-color: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
  animation: pulse-whatsapp 2s infinite;
  will-change: transform;
  transform: translateZ(0);
}
.sticky-whatsapp-button svg { width: 30px; height: 30px; fill: white; }
@keyframes pulse-whatsapp {
  0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); }
}

/* --- 6. DARK MODE TOGGLE --- */
.theme-toggle-btn {
  background: none; border: 1px solid var(--color-border);
  color: var(--color-text); cursor: pointer;
  padding: 5px 10px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.theme-toggle-btn:hover { background-color: var(--color-border); }

/* --- 7. ESTILOS HEADER INTEGRADO --- */
.integrated-header { background-color: var(--color-surface); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

#top {
  border-bottom: 1px solid var(--color-border);
  padding: 15px 0;
  background: var(--color-surface);
  color: var(--color-text);
  transition: background-color 0.3s;
}

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

#top .logo { display: flex; align-items: center; gap: 20px; }
#top .logo a img { display: block; height: auto; width: 96px; }

#top h2 {
  font-family: var(--font-secondary);
  margin: 0; font-size: 1rem; line-height: 1.4;
  color: var(--color-text-claro);
  font-weight: 400;
}
#top h2 strong { color: var(--color-verde-brand); font-size: 1.2rem; font-weight: 600; }
#top h2 span { color: var(--color-accent); font-weight: 400; }
#top h2 em { font-style: italic; font-size: 0.9rem; display: block; margin-top: 4px; color: var(--color-text-claro); font-weight: 300; }

#nav-dos { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
#nav-dos .contact-info-block p { margin: 0; line-height: 1.4; font-family: var(--font-secondary); }
#nav-dos .phone { font-size: 1.2rem; color: var(--color-text); font-weight: 300; }
#nav-dos .phone strong { color: var(--color-verde-brand); font-weight: 600; }
#nav-dos .phone span { font-size: 0.8rem; display: block; color: var(--color-text-claro); }
#nav-dos .contact a { color: var(--color-accent); font-weight: 500; text-decoration: none; font-size: 0.95rem; letter-spacing: 0.5px; }

ul.top-nav-ul {
  list-style: none; padding: 0; margin: 15px 0 0 0;
  display: flex; gap: 25px; align-items: center;
}
ul.top-nav-ul li a {
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
}
ul.top-nav-ul li a:hover { color: var(--color-verde-brand); }
ul.top-nav-ul li.bolsa a { color: var(--color-accent); font-weight: 500; }

#nav.desktop-nav { background-color: var(--color-verde-brand); padding: 0; }
#nav.desktop-nav ul.menu-main {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: space-between;
}
#nav.desktop-nav ul.menu-main li a {
  display: block; padding: 15px 10px;
  color: #fff; text-decoration: none;
  font-family: var(--font-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center; font-size: 0.85rem; line-height: 1.3;
  transition: background-color 0.3s;
}
#nav.desktop-nav ul.menu-main li a:hover { background-color: var(--color-verde-hover); }

.cc-si, .mobile-titles, .mobile-h1 { display: none !important; }
.cc-no, .desktop-titles { display: block; }

/* ESTILOS BOTONES HEADER MÓVIL (Genérico) */
.phone-but-b, .mail-but-b {
  border-radius: 50px; 
  overflow: hidden;
}
.phone-but-b { background-color: var(--color-success); }
.mail-but-b { background-color: var(--color-accent); }

.boton a {
  display: block; padding: 10px 15px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; text-align: center;
  font-family: var(--font-secondary); letter-spacing: 0.5px;
}

/* --- 8. ESTILOS BARRA MÓVIL (FIXED TOP) --- */
.mobile-cta-bar { display: none; } /* Oculto en escritorio */

/* --- 9. ESTILOS MENÚ LATERAL MÓVIL (SIDE MENU) --- */
.side-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); z-index: 20000;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.side-menu-overlay.open { opacity: 1; visibility: visible; }
.side-menu-content {
    position: absolute; top: 0; left: 0; width: 85%; max-width: 320px; height: 100%;
    background-color: #1a252f; /* Fondo oscuro elegante */
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    transform: translateX(-100%); transition: transform 0.3s ease;
    overflow-y: auto; padding: 20px 0;
}
.side-menu-overlay.open .side-menu-content { transform: translateX(0); }

.close-menu-btn {
    position: absolute; top: 10px; right: 15px;
    background: none; border: none; color: #fff; font-size: 2rem;
    cursor: pointer; line-height: 1;
}

.mobile-main-links {
    list-style: none; padding: 40px 0 20px 0; margin: 0;
}
.mobile-main-links li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-main-links li a {
    display: block; padding: 15px 20px;
    color: #ecf0f1; text-decoration: none;
    font-family: var(--font-secondary); font-weight: 500;
    text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px;
    transition: background-color 0.2s, color 0.2s;
}
.mobile-main-links li a:hover {
    background-color: rgba(255,255,255,0.05); color: var(--color-accent);
}

@media (min-width: 768px) {
  .cursos-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (min-width: 992px) {
  .main-layout { grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); }
  .cursos-columns-wrapper { flex-direction: row; align-items: flex-start; }
  .cursos-columns-wrapper > section { flex: 1; }
}

/* ======================================================= 
   MEDIA QUERY PRINCIPAL PARA MÓVILES (Max-Width: 900px)
   ======================================================= */
@media (max-width: 900px) {
  
  /* --- SOLUCIÓN AL PROBLEMA DE LA BARRA NAVEGACIÓN FIJA --- */
  
  /* 1. Evita que el contenido inicial (logo) quede oculto bajo la barra */
  body { 
    padding-bottom: 0; 
    padding-top: 60px !important; /* Altura exacta de la barra mobile-cta-bar */
  } 

  /* 2. SOLUCIÓN PARA LOS ANCLAS (CLICS EN BOTONES DE NAVEGACIÓN) */
  section, div[id], a[name] {
    scroll-margin-top: 70px;
  }

  /* --- FIN SOLUCIÓN --- */

  .cc-no, .desktop-nav, .desktop-titles { display: none !important; }
  .cc-si, .mobile-titles { display: block !important; }

  #top { text-align: center; padding: 10px 0; }
  #top .cont {
    flex-direction: column;
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
  }
  #top .logo { flex-direction: column; margin-bottom: 10px; gap: 10px; }

  .mobile-h1 {
    display: block !important;
    font-size: 1.2rem; color: var(--color-verde-brand);
    margin: 5px 0 10px 0; text-align: center; font-weight: 500;
    font-family: var(--font-secondary);
  }

  /* CLASE NUEVA PARA EL SLOGAN EN VERDE */
  .mobile-text-green {
    color: var(--color-verde-brand) !important;
    font-weight: 500;
  }

  /* 
     ========================================================
     CORRECCIÓN ESPECÍFICA DE BOTONES (SOLUCIÓN DEFINITIVA)
     ========================================================
  */
  .botones { 
    display: flex !important; /* Forzar Flexbox */
    flex-direction: row; /* Ponerlos en fila (uno al lado del otro) */
    flex-wrap: wrap; /* Si la pantalla es diminuta, que bajen */
    gap: 20px !important; /* Espacio OBLIGATORIO de 20px */
    margin-top: 15px; 
    justify-content: center; /* Centrados horizontalmente */
    width: 100%;
  }
  
  /* Asegurar que el botón individual no tenga márgenes que molesten */
  .boton {
      margin: 0 !important;
  }
  
  /* ======================================================== */

  .hero-background { background-image: url('/images/egresados2025_celu.webp'); }
  .hero-section { min-height: 450px !important; }

  .hero-cta-button {
    padding: 12px 25px;
    font-size: 0.9rem;
    width: auto;
    max-width: 90%;
    display: inline-block;
  }

  /* BARRA MÓVIL CTA - FIXED TOP (5 ITEMS AHORA) */
  .mobile-cta-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed; /* FIJA */
    top: 0;
    left: 0; width: 100%; height: 60px;
    background-color: var(--color-verde-brand);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    padding-bottom: 0;
    transition: background-color 0.3s ease;
  }

  [data-theme="dark"] .mobile-cta-bar {
    background-color: var(--color-surface-secondary);
    border-bottom: 1px solid var(--color-border);
  }

  /* Selector para el botón y los links dentro de la barra */
  .mobile-cta-bar > * {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.8rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    font-family: var(--font-secondary);
    letter-spacing: 0.5px;
    line-height: 1.2;
    padding: 0 2px; /* Espacio mínimo lateral para evitar que se peguen */
  }

  .mobile-cta-bar > *:last-child { border-right: none; }

  .mobile-cta-bar .top-text {
    font-size: 0.60rem; /* Ligeramente más pequeño para 5 items */
    font-weight: 400;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 2px;
    line-height: 1;
    text-align: center;
  }
  .mobile-cta-bar .bot-text {
    font-size: 0.70rem; /* Ajustado para que quepan 5 items */
    font-weight: 700;
    line-height: 1;
    text-align: center;
  }

  .mobile-cta-bar .with-icon svg, 
  .mobile-cta-bar .no-icon svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    margin-bottom: 2px;
    display: block;
  }
}

/* =========================================
   FIX MÓVIL: TARJETAS DE CURSOS (CARDS)
   ========================================= */
@media (max-width: 768px) {
  .curso-card {
    background-color: var(--color-surface-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
  }

  .curso-card a {
    flex-direction: column;
    padding: 0;
    width: 100%;
  }

  .curso-card img {
    width: 50%;
    margin: 15px auto 0 auto;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
    border: none;
    object-fit: cover;
    display: block;
  }

  .curso-card .curso-info {
    margin-left: 0;
    padding: 15px 20px;
    text-align: center;
    width: 100%;
  }

  .curso-card h3 {
    font-size: 1.15rem;
    white-space: normal;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .curso-card span {
    display: inline-block;
    background-color: var(--color-success);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5;
    margin-top: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
}

/* =========================================================================
   === ESTILOS FICHA DE CURSO (LANDING PAGE) - AGREGADO MODERNIZACIÓN ===
   ========================================================================= */

/* 1. Layout Específico del Curso */
.page {
  padding-bottom: 3rem;
  background-color: var(--color-background);
}

.section-L.curso {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
}

/* 2. Encabezados de Curso */
.section-L.curso h1 {
  font-family: var(--font-secondary);
  color: var(--color-verde-brand);
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.section-L.curso h2 {
  font-family: var(--font-secondary);
  color: var(--color-text);
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.h3-verde {
  color: var(--color-verde-brand) !important;
  font-family: var(--font-secondary);
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.h3-verde img {
  vertical-align: middle;
}

/* 3. Imagen Principal del Curso */
.foto {
  margin: 0 auto 2rem auto;
  text-align: center;
}
.foto img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

/* 4. Botones de Acción (Intro - .cc-bot) */
/* Transformamos los enlaces con imágenes en tarjetas clickeables modernas */
.intro.cc-si {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 2rem;
}

.cc-bot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  height: 100%;
  min-height: 110px;
}

.cc-bot:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-verde-brand);
  background-color: #fff;
}

.cc-bot img {
  margin-bottom: 8px;
  width: 32px;
  height: auto;
}

/* Botones destacados específicos */
.cc-llamar {
  background-color: var(--color-success);
  color: #fff !important;
  border: none;
}
.cc-llamar:hover { background-color: var(--color-verde-hover); }

/* 5. Bloques de Horarios (.horario) */
.horario {
  background-color: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.horario:hover {
  border-color: var(--color-verde-brand);
  box-shadow: var(--shadow-hover);
}

/* Estilos de texto dentro de horario */
.horario p.hora {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  background: #fff;
  padding: 10px;
  border-left: 4px solid var(--color-verde-brand);
  margin: 10px 0;
  border-radius: 0 4px 4px 0;
}
[data-theme="dark"] .horario p.hora {
    background: var(--color-surface);
}

/* 6. Notas y Alertas (.curso-nota) */
.curso-nota {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-primary);
  background-color: var(--color-surface); /* Antes f9f9f9 */
  border-radius: 5px;
  color: var(--color-text);
}

.curso-nota h3 {
  margin-top: 0;
  color: var(--color-primary);
  font-family: var(--font-secondary);
}

/* 7. Selector de Modalidad y Formularios internos */
#modalidad {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid var(--color-verde-brand);
  border-radius: var(--border-radius);
  background-color: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-secondary);
  font-size: 1rem;
}

/* 8. Botones de Acción Grandes (Preinscripción, etc) */
.paper, .send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-verde-brand);
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-secondary);
  margin: 5px;
  transition: background 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.paper:hover, .send:hover {
  background: var(--color-verde-hover);
  transform: translateY(-2px);
  color: #fff;
}

.send {
  background: var(--color-primary);
}
.send:hover {
  background: var(--color-secondary);
}

/* 9. Promo Banner (Estilo Modernizado) */
.promo-banner {
  background: linear-gradient(145deg, var(--color-verde-brand), var(--color-verde-hover));
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0;
  text-align: center;
  color: #fff !important;
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow);
}
.promo-banner h2 {
  color: #fff !important;
  border-bottom: none !important;
  font-size: 1.4rem !important;
  margin-bottom: 5px !important;
}
.promo-banner p {
  color: rgba(255,255,255,0.9);
}

/* 10. Cursos Relacionados (Adaptación a Grid) */
.cursos-relacionados-listado {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.curso-relacionado-item {
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.curso-relacionado-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.curso-relacionado-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.curso-relacionado-item h3 {
  font-size: 0.9rem;
  padding: 10px;
  margin: 0;
  text-align: center;
  color: var(--color-text);
}

/* 11. Ajustes Responsive Específicos para Landing */
@media (max-width: 768px) {
  .section-L.curso {
    padding: 1.5rem 1rem;
  }
  .foto img {
    width: 100%;
    height: auto;
  }
  .intro.cc-si {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil */
  }
  .paper, .send {
    width: 100%;
    margin: 5px 0;
  }
}

/* 12. Adaptaciones de colores legados (verde/viol) a variables */
.verde { color: var(--color-verde-brand) !important; }
.viol { color: var(--color-vet) !important; }

/* Agregalo aquí abajo */
a[href^="tel:"] * {
    pointer-events: none;
}
