@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Nunito+Sans:wght@300;400;600;700&display=swap');
/* MODERN-DARK-CSS WT.COM.AR
/* --- Global Reset & Dark Theme Basics --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #1a1f24; /* Dark background */
  color: #e0e0e0; /* Light text */
  font-family: 'Poppins', sans-serif;
  font-weight: 400; /* Default font weight for body */
  font-size: 16px;
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- Hero Section with same margin as .cont --- */
.hero {
  max-width: 1400px;  /* Mismo ancho máximo que .cont */
  margin: 0 auto;     /* Centrado */
  padding: 0 5px;     /* Mismo padding lateral que .cont */
  display: block;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  margin-bottom: 0.8em;
  line-height: 1.2;
  font-family: 'Poppins', sans-serif; /* Ahora usa Poppins */
  font-weight: 400; /* Peso más liviano (Regular) */
}


h1 { font-size: 2.7rem; /* Slightly larger h1 */ }
h2 { font-size: 2rem;   /* Slightly larger h2 */ }
h3 { font-size: 1.6rem; /* Slightly larger h3 */ }

a {
  color: #4db8ff; /* Light blue for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #80d4ff;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Contenedor principal acotado */
.cont {
  max-width: 1400px;
  margin: 10 auto;
  padding: 0 5px;
}

.round {
  border-radius: 8px;
}

/* Hide utility class */
.hide {
   /* Se utiliza para ocultar elementos visualmente (o para lectores de pantalla) */
   position: absolute !important;
   height: 1px; width: 1px;
   overflow: hidden;
   clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
   clip: rect(1px, 1px, 1px, 1px);
   white-space: nowrap;
}

/* --- Header (#top, includes/top.php) --- */
#top {
  background-color: #2c333a; /* Slightly lighter dark */
  padding: 12px 0; /* Slightly reduced padding */
  border-bottom: 1px solid #444;
}

#top .cont {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

#top .logo img {
  max-height: 180px; /* Adjust as needed, slightly smaller */
  width: auto;
}

#top .logo h2 {
  margin: 5px 0 0 10px;
  font-size: 1rem;
  line-height: 1.2;
  color: #ccc;
  display: inline-block; /* Align next to logo */
  vertical-align: middle;
  font-weight: 500; /* Lighter weight for logo text */
}
#top .logo h2 strong { color: #fff; font-size: 1.1rem; font-weight: 600; }
#top .logo h2 span { display: block; font-size: 0.9rem; color: #aaa; font-weight: 400; }
#top .logo h2 em { font-style: italic; font-size: 0.8rem; color: #888; font-weight: 400; }

#top h1.mobile { /* Asumiendo que este título es para móviles */
    display: none; /* Oculto en desktop, se usa el logo h2 */
    color: #fff;
    text-align: center;
    width: 100%;
    margin: 10px 0;
    font-size: 1.5rem;
}

/* --- Nav Dos (#nav-dos) --- */
#nav-dos {
  display: flex;
  align-items: center;
}

#nav-dos > div:first-child { /* Contenedor de información de contacto */
    margin-right: 20px;
    text-align: right;
}

#nav-dos p {
  margin-bottom: 3px; /* Reduced margin */
  font-size: 0.95rem; /* Slightly smaller contact info */
  font-weight: 400;
}

#nav-dos .contact a {
  color: #a0a0a0;
  font-weight: 500; /* Lighter weight for contact links */
}
#nav-dos .contact a:hover { color: #fff; }

#nav-dos .phone {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}

#nav-dos .botones {
    display: flex;
    gap: 8px; /* Reduced gap */
    margin-bottom: 8px; /* Reduced margin */
}

#nav-dos .boton a {
  display: block;
  padding: 8px 14px; /* Slightly reduced padding */
  background-color: #28a745; /* Green accent */
  color: #ffffff;
  text-align: center;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  font-size: 0.95rem; /* Slightly smaller button text */
}
#nav-dos .boton a:hover {
  background-color: #218838;
  text-decoration: none;
}
#nav-dos .boton span {
    display: block;
    font-size: 0.75em; /* Slightly smaller span text */
    font-weight: 300;
    opacity: 0.8;
}

#nav-dos .mail-but-b a {
    background-color: #f07150; /* Existing orange/red */
}
#nav-dos .mail-but-b a:hover {
    background-color: #d85a3a;
}

#nav-dos ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px; /* Reduced gap */
  clear: both; /* Si los botones tienen float */
  width: 100%;
  justify-content: flex-end; /* Alinear elementos a la derecha */
  margin-top: 8px; /* Reduced margin */
}

#nav-dos ul li a {
  color: #ccc;
  font-weight: 500; /* Lighter weight for nav links */
  font-size: 0.9rem;
  text-transform: uppercase;
}

#nav-dos ul li a:hover {
  color: #fff;
}

/* --- Main Navigation (#nav, includes/menu.php) --- */
#nav {
  background-color: #22282e; /* Slightly darker */
  padding: 8px 0; /* Reduced padding */
  border-bottom: 1px solid #444;
  /* Se asume que .dis_movile_none oculta el menú en móvil */
}

/* Ocultar el menú móvil en escritorio */
#menus.cc-si {
  display: none;
}

/* --- Main Navigation Desktop Menu --- */
#nav .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center; /* Centrar items del menú */
  gap: 20px; /* Reduced gap */
}

#nav .menu li a {
  color: #e0e0e0;
  font-weight: 500; /* Lighter weight for menu links */
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 8px 5px; /* Reduced padding */
  display: block;
  text-align: center; /* Centrar texto dentro del enlace */
  line-height: 1.3;
}

#nav .menu li a:hover {
  color: #fff;
  background-color: #333b43; /* Fondo sutil al pasar el mouse */
  border-radius: 4px;
  text-decoration: none;
}

/* User session display */
.user_descone {
    position: absolute; /* Posicionado relativo a #nav o su contenedor */
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
.user_descone .salir_sess a {
    color: #ff8a80; /* Color rojizo para logout */
    font-size: 0.9em;
    font-weight: bold;
}
.user_descone .salir_sess a:hover {
    color: #ff5252;
}

/* --- Banner & Slider (#banner, includes/slider.php) --- */
#banner {
  background-color: #111; /* Fondo muy oscuro para contraste */
  padding: 0; /* Eliminar padding si el slider es de ancho completo */
  margin-bottom: 25px; /* Reduced margin */
}

/* Slider container */
#page section { position: relative; } /* Necesario para posicionar flechas */
#slider-container {
    overflow: hidden;
    position: relative;
}
#slider-box {
    display: flex; /* Usar flexbox para layout horizontal */
    transition: transform 0.5s ease-in-out;
}
.slider-element {
    min-width: 100%; /* Cada slide ocupa todo el ancho */
    flex-shrink: 0; /* Evitar que se encojan */
}
.slider-element img {
    width: 100%;
    height: auto; /* Mantener el aspect ratio */
    max-height: 450px; /* Limitar la altura */
    object-fit: cover; /* Cubrir el área, puede recortar */
}

/* Radio button control (ocultar radios) */
#page input[type="radio"] {
    display: none;
}

/* Ejemplo para 3 slides: */
#element1:checked ~ #slider-container #slider-box { transform: translateX(0); }
#element2:checked ~ #slider-container #slider-box { transform: translateX(-100%); }
#element3:checked ~ #slider-container #slider-box { transform: translateX(-200%); }

/* Basic Arrow Styling (Ejemplo) */
#slider-arrows {
    /* Posicionar las flechas sobre el slider (requiere JS para manejo de clicks) */
}

/* --- Main Content Area (#main) --- */
#main {
  padding: 25px 0; /* Reduced padding */
}

#main > .cont { /* Direct child .cont */
  display: flex;
  flex-wrap: wrap; /* Permitir que el sidebar se ubique debajo en pantallas pequeñas */
  gap: 25px; /* Reduced gap */
}

.section-L {
  flex: 1; /* Toma el espacio restante */
  min-width: 0; /* Prevenir desbordamientos */
}

/* --- Index Page Specifics --- */
.home table[width="868"] { /* Targeting table de bandera/título */
  width: 100% !important; /* Forzar ancho */
  border: none;
  margin-bottom: 15px; /* Reduced margin */
}
.home table[width="868"] td {
  padding: 8px; /* Reduced padding */
  vertical-align: middle;
  text-align: center;
}
.home table[width="868"] img { /* Bandera Argentina */
    max-width: 130px; /* Slightly smaller flag */
    height: auto;
    margin: 0 auto;
}
.home table[width="868"] h1 {
    /* Inherits h1 styles (font-family: Montserrat, font-weight: 600) */
    margin: 0;
    color: #eee;
    font-size: 2.2rem; /* Slightly larger title */
    font-style: italic;
}

/* INSCRIBITE Button */
.button-container {
  text-align: center;
  margin: 25px 0; /* Reduced margin */
}

.button-container a {
  display: inline-block;
  padding: 14px 32px; /* Slightly reduced padding */
  background-color: #28a745;
  color: white;
  font-size: 1.15rem; /* Slightly smaller button text */
  font-weight: bold; /* Keep bold for primary action */
  text-decoration: none;
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-transform: uppercase;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-family: 'Montserrat', sans-serif; /* Ensure button font matches headings */
}

.button-container a:hover {
  background-color: #218838;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Slick Slider (Logos/Imágenes) */
.slider_slick {
  margin: 35px 0; /* Reduced margin */
  background: #2a3036;
  padding: 18px 0; /* Reduced padding */
  border-radius: 8px;
}

.slider_slick .card {
    background: none;
    border: none;
    text-align: center;
}
.slider_slick .card img {
    max-height: 70px; /* Slightly smaller logo height */
    width: auto;
    margin: 0 auto;
    padding: 0 !important;
    filter: grayscale(50%) brightness(1.2);
    transition: filter 0.3s ease;
}
.slider_slick .card:hover img {
    filter: grayscale(0%) brightness(1);
}
.slider_slick .slick-slide {
    padding: 0 8px; /* Reduced padding */
}

/* Whatsapp Link Table */
.home table[width="241"] {
    width: auto !important;
    margin: 25px auto !important; /* Reduced margin */
    border: none;
}
.home table[width="241"] td {
    padding: 4px 8px; /* Reduced padding */
    vertical-align: middle;
}
.home table[width="241"] img {
    width: 40px; /* Slightly smaller WhatsApp icon */
    height: 40px; /* Slightly smaller WhatsApp icon */
}
.home table[width="241"] p {
    margin: 0;
    font-weight: 600; /* Semibold emphasis */
    color: #b0b0b0;
    font-size: 0.95rem; /* Slightly smaller text */
    font-family: 'Nunito Sans', sans-serif; /* Ensure body font */
}
.home table[width="241"] a:hover {
    text-decoration: none;
}

/* Horizontal Rule Table */
.home table[width="736"] {
    width: 90% !important;
    margin: 18px auto; /* Reduced margin */
    border: none;
}
.home table[width="736"] td {
    border-top: 1px solid #444;
    height: auto !important;
    padding: 0;
}
.home table[width="736"] br {
    display: none;
}

/* --- Course Listing --- */
.col-verde, .col-violeta {
  background-color: #22282e;
  padding: 22px; /* Reduced padding */
  margin-bottom: 25px; /* Reduced margin */
  border-radius: 8px;
  border: 1px solid #333b43;
}

.col-verde h2, .col-violeta h2 {
  /* Inherits h2 styles (font-family: Montserrat, font-weight: 600) */
  margin-bottom: 20px; /* Reduced margin */
  padding-bottom: 8px; /* Reduced padding */
  border-bottom: 2px solid;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.5rem; /* Slightly smaller section heading */
  letter-spacing: 0.8px; /* Reduced letter spacing */
}

.col-verde h2 { border-color: #28a745; color: #63d780; }
.col-violeta h2 { border-color: #9b59b6; color: #c389d6; }

/* Course Card (.curs) */
.curs {
  background-color: #2c333a;
  margin-bottom: 18px; /* Reduced margin */
  padding: 13px; /* Reduced padding */
  border: 1px solid #444;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px; /* Reduced gap */
}

.curs:hover {
  transform: translateY(-3px); /* Reduced hover effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); /* Reduced shadow */
  border-color: #555;
}

.curs .foto {
  flex-shrink: 0;
}

.curs .foto img {
  width: 70px; /* Slightly smaller course image */
  height: 70px; /* Slightly smaller course image */
  border-radius: 50%;
  border: 2px solid #555;
  object-fit: cover;
}

.curs h3 {
  /* Inherits h3 styles (font-family: Montserrat, font-weight: 600) */
  margin: 0;
  font-size: 1.1rem;
  flex-grow: 1;
}

.curs h3 a {
  color: #ffffff;
}
.curs h3 a:hover {
  color: #4db8ff;
}

.curs p.info {
  margin: 0;
  flex-shrink: 0;
  font-family: 'Nunito Sans', sans-serif; /* Ensure body font */
}

.curs p.info a {
  display: inline-block;
  padding: 4px 10px; /* Reduced padding */
  background-color: #444b52;
  color: #ccc;
  border-radius: 15px;
  font-size: 0.85rem; /* Slightly smaller info link text */
  font-weight: 600; /* Semibold emphasis */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.curs p.info a:hover {
  background-color: #28a745;
  color: #ffffff;
  text-decoration: none;
}

/* --- Right Sidebar (includes/col-der.php, bottom-cc.php) --- */
.asideSI, .aside-cc {
  width: 100%;
  max-width: 320px;
  flex-shrink: 0;
}

.widget {
  background-color: #22282e;
  padding: 18px; /* Reduced padding */
  margin-bottom: 20px; /* Reduced margin */
  border-radius: 8px;
  border: 1px solid #333b43;
}

.widget h5 {
  /* Inherits h5 styles (font-family: Montserrat, font-weight: 600) */
  background-color: #333b43;
  color: #ffffff;
  padding: 9px 14px; /* Reduced padding */
  margin: -18px -18px 18px -18px; /* Adjusted margin */
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  font-size: 1rem; /* Slightly smaller widget heading */
  text-transform: uppercase;
  letter-spacing: 0.4px; /* Reduced letter spacing */
}

/* Contact Form Widget */
.widget.contact .form1 input[type="text"],
.widget.contact .form1 input[type="email"],
.widget.contact .form1 textarea {
  width: 100%;
  padding: 10px; /* Reduced padding */
  margin-bottom: 12px; /* Reduced margin */
  background-color: #2c333a;
  border: 1px solid #444;
  border-radius: 4px;
  color: #e0e0e0;
  font-family: 'Nunito Sans', sans-serif; /* Inherit body font */
  font-size: 1rem;
}

.widget.contact .form1 input[type="text"]::placeholder,
.widget.contact .form1 input[type="email"]::placeholder,
.widget.contact .form1 textarea::placeholder {
    color: #888;
    opacity: 1;
}

.widget.contact .form1 textarea {
  min-height: 90px; /* Reduced height */
  resize: vertical;
}

.widget.contact .form1 input:focus,
.widget.contact .form1 textarea:focus {
  outline: none;
  border-color: #4db8ff;
  box-shadow: 0 0 5px rgba(77, 184, 255, 0.3);
}

.widget.contact .form1 button,
.widget.contact .form1 input[type="submit"] {
  width: 100%;
  padding: 10px 18px; /* Reduced padding */
  background-color: #f07150;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600; /* Semibold button */
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Montserrat', sans-serif; /* Ensure button font matches headings */
}

.widget.contact .form1 button:hover,
.widget.contact .form1 input[type="submit"]:hover {
  background-color: #d85a3a;
}

/* Input Error State */
.widget.contact .form1 input.error,
.widget.contact .form1 textarea.error {
    border-color: #ff5252 !important;
    background-color: #4d3131;
}

/* Social Widget */
.widget.social p {
    margin-bottom: 8px; /* Reduced margin */
    font-weight: 500; /* Medium weight */
    color: #bbb;
    font-size: 0.95rem; /* Slightly smaller text */
    font-family: 'Nunito Sans', sans-serif; /* Ensure body font */
}
.widget.social .a2a_kit {
    margin-bottom: 12px; /* Reduced margin */
    display: flex;
    gap: 8px; /* Reduced gap */
}
.widget.social img {
    width: 30px; /* Slightly smaller social icons */
    height: 30px; /* Slightly smaller social icons */
    display: inline-block;
    margin-right: 6px; /* Reduced margin */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.widget.social a:hover img {
    opacity: 1;
}

/* Facebook Page Plugin */
.fb-page, .fb-like {
    background-color: #fff;
    padding: 4px; /* Reduced padding */
    border-radius: 4px;
    margin-top: 12px; /* Reduced margin */
    display: inline-block;
}

/* Bolsa de Trabajo Widget */
.widget.bolsa ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget.bolsa ul li {
  margin-bottom: 10px; /* Reduced margin */
  border-bottom: 1px dashed #444;
  padding-bottom: 10px; /* Reduced padding */
}
.widget.bolsa ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.widget.bolsa ul li a {
  font-weight: 500; /* Medium weight */
  color: #a7c7e7;
  font-size: 0.95rem; /* Slightly smaller text */
  font-family: 'Nunito Sans', sans-serif; /* Ensure body font */
}
.widget.bolsa ul li a:hover {
  color: #d1e3f8;
}
.widget.bolsa ul li br {
    display: none;
}
.widget.bolsa ul li br + a {
    /* Example: font-size: 0.9em; color: #aaa; */
    /* Ensure body font if specific styles applied */
    /* font-family: 'Nunito Sans', sans-serif; */
}

/* Amigo Widget */
.widget.amigo form {
    display: flex;
    gap: 8px; /* Reduced gap */
}
.widget.amigo input[type="text"] {
    flex-grow: 1;
    padding: 9px; /* Reduced padding */
    background-color: #2c333a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: 'Nunito Sans', sans-serif; /* Inherit body font */
}
.widget.amigo input[type="submit"] {
    padding: 9px 14px; /* Reduced padding */
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600; /* Semibold button */
    font-size: 0.95rem; /* Slightly smaller text */
    font-family: 'Montserrat', sans-serif; /* Ensure button font matches headings */
}
.widget.amigo input[type="submit"]:hover {
    background-color: #5a6268;
}

/* Icon Widget */
.widget.icon p {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced gap */
    margin-bottom: 12px; /* Reduced margin */
    padding: 9px; /* Reduced padding */
    background-color: #2c333a;
    border-radius: 4px;
    font-family: 'Nunito Sans', sans-serif; /* Ensure body font */
}
.widget.icon img {
    width: 22px; /* Slightly smaller icon */
    height: 22px; /* Slightly smaller icon */
    flex-shrink: 0;
}
.widget.icon p a {
    font-weight: 500; /* Medium weight */
    color: #e0e0e0;
    font-size: 0.95rem; /* Slightly smaller text */
}
.widget.icon p a:hover {
    color: #fff;
}

/* Suscripcion Widget */
.widget.suscr form {
    display: flex;
    gap: 8px; /* Reduced gap */
}
.widget.suscr input[type="text"] {
    flex-grow: 1;
    padding: 9px; /* Reduced padding */
    background-color: #2c333a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: 'Nunito Sans', sans-serif; /* Inherit body font */
}
.widget.suscr input[type="submit"] {
    padding: 9px 14px; /* Reduced padding */
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600; /* Semibold button */
    font-size: 0.95rem; /* Slightly smaller text */
    font-family: 'Montserrat', sans-serif; /* Ensure button font matches headings */
}
.widget.suscr input[type="submit"]:hover {
    background-color: #5a6268;
}

/* --- Footer (includes/bottom.php, includes/footer.php) --- */
#footer {
    background-color: #22282e;
    color: #aaa;
    padding: 25px 0; /* Reduced padding */
    margin-top: 35px; /* Reduced margin */
    border-top: 1px solid #444;
    font-size: 0.85rem; /* Slightly smaller footer text */
    font-weight: 400; /* Lighter weight */
    font-family: 'Nunito Sans', sans-serif; /* Ensure body font */
}
#footer .cont {
    text-align: center;
}
#footer a {
    color: #ccc;
}
#footer a:hover {
    color: #fff;
}

/* --- jQuery UI Autocomplete --- */
.ui-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  float: left;
  display: none;
  min-width: 160px;
  padding: 4px 0; /* Reduced padding */
  margin: 2px 0 0;
  list-style: none;
  font-size: 1rem;
  text-align: left;
  background-color: #2c333a;
  border: 1px solid #444;
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  background-clip: padding-box;
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: 'Nunito Sans', sans-serif; /* Ensure body font */
}

.ui-autocomplete .ui-menu-item {
  margin: 0;
  padding: 0;
}

.ui-autocomplete .ui-menu-item > div,
.ui-autocomplete .ui-menu-item > a {
  display: block;
  padding: 7px 15px; /* Reduced padding */
  clear: both;
  font-weight: normal; /* Regular weight for items */
  line-height: 1.6;
  color: #e0e0e0;
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.95rem; /* Slightly smaller autocomplete text */
}

.ui-autocomplete .ui-menu-item.ui-state-focus > div,
.ui-autocomplete .ui-menu-item.ui-state-focus > a {
  color: #ffffff;
  text-decoration: none;
  background-color: #4db8ff;
  cursor: pointer;
}

/* --- Responsive Adjustments --- */

/* Tablets y pantallas de escritorio medianas */
@media (max-width: 992px) {
  h1 { font-size: 2.3rem; } /* Slightly smaller h1 on tablet */
  h2 { font-size: 1.7rem; } /* Slightly smaller h2 on tablet */
  h3 { font-size: 1.4rem; } /* Slightly smaller h3 on tablet */

  .cont { padding: 0 15px; } /* Reduced padding on tablet */

  #top .cont { flex-direction: column; align-items: center; text-align: center; }
  #top .logo { margin-bottom: 12px; } /* Reduced margin on tablet */
  #nav-dos { flex-direction: column; align-items: center; }
  #nav-dos > div:first-child { margin-right: 0; margin-bottom: 8px; text-align: center; } /* Reduced margin on tablet */
  #nav-dos ul { justify-content: center; flex-wrap: wrap; }

  #nav .menu { gap: 12px; flex-wrap: wrap; justify-content: center; } /* Reduced gap on tablet */
  #nav .menu li a { font-size: 0.85rem; padding: 7px 5px; } /* Slightly smaller menu text on tablet */

  #main > .cont { flex-direction: column; }
  .asideSI, .aside-cc { max-width: none; width: 100%; }

  .curs { flex-direction: column; text-align: center; }
  .curs .foto { margin-bottom: 8px; } /* Reduced margin on tablet */
  .curs h3 { margin-bottom: 8px; } /* Reduced margin on tablet */

  /* Ensure table maintains readability */
  .home table[width="868"] { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .home table[width="868"] h1 { font-size: 1.9rem; } /* Adjust title size within table */

}

/* Mobile phones */
@media (max-width: 767px) {
  h1 { font-size: 1.9rem; } /* Slightly smaller h1 on mobile */
  h2 { font-size: 1.5rem; } /* Slightly smaller h2 on mobile */
  h3 { font-size: 1.3rem; } /* Slightly smaller h3 on mobile */

  body { font-size: 15px; } /* Slightly smaller base font on mobile */

  .cont { padding: 0 12px; } /* Reduced padding on mobile */

  #top .logo img { max-height: 100px; } /* Smaller logo on mobile */
  #top .logo h2 { font-size: 0.8rem; } /* Smaller logo text on mobile */
  #top h1.mobile { display: block; font-size: 1.3rem; } /* Adjust mobile title */
  #top .logo h2.cc-no { display: none; }

  #nav-dos .botones { flex-direction: column; width: 80%; margin: 8px auto; } /* Reduced margin on mobile */
  #nav-dos ul { gap: 8px; } /* Reduced gap on mobile */
  #nav-dos ul li a { font-size: 0.75rem; } /* Smaller nav links on mobile */

  /* Ocultar el menú de escritorio y mostrar el móvil */
  #nav { display: none; }

  /* Estilos para el menú móvil */
  #menus.cc-si {
      display: block;
      background-color: #22282e;
      padding: 8px 0; /* Reduced padding on mobile */
      border-bottom: 1px solid #444;
  }
  #menus.cc-si .cont { padding: 0 12px; } /* Reduced padding on mobile */
  #menus.cc-si label.show-menu {
      color: #fff;
      padding: 8px; /* Reduced padding on mobile */
      cursor: pointer;
      display: block;
      font-weight: bold;
      font-family: 'Montserrat', sans-serif; /* Use heading font for toggle */
      text-align: center;
      background-color: #333b43;
      border-radius: 4px;
      margin-bottom: 8px;
  }
  #menus.cc-si input[type=checkbox] { display: none; }
  #menus.cc-si ul#menu {
      display: none;
      list-style: none;
      padding: 0; /* Remove padding */
      margin: 0; /* Remove margin */
      /* border-top: 1px solid #444; Removed top border */
  }
  #menus.cc-si input[type=checkbox]:checked ~ ul#menu {
      display: block;
  }
  #menus.cc-si ul#menu li a {
      display: block;
      padding: 9px 15px; /* Reduced padding on mobile */
      color: #eee;
      text-align: center;
      border-bottom: 1px solid #333b43;
      font-size: 0.9rem; /* Slightly smaller mobile menu text */
      font-family: 'Montserrat', sans-serif; /* Use heading font for consistency */
      font-weight: 500; /* Medium weight for menu items */
  }
  #menus.cc-si ul#menu li:last-child a { border-bottom: none; }
  #menus.cc-si ul#menu li a:hover { background-color: #444b52; color: #fff; }

  .button-container a { font-size: 0.9rem; padding: 10px 20px; } /* Smaller button on mobile */

  .slider_slick .card img { max-height: 50px; } /* Smaller slider logos on mobile */
  .home table[width="241"] p { font-size: 0.85rem; } /* Smaller WhatsApp text on mobile */

  .col-verde, .col-violeta { padding: 12px; } /* Reduced padding on mobile */
  .col-verde h2, .col-violeta h2 { font-size: 1.2rem; } /* Smaller section heading on mobile */

  .curs { padding: 8px; } /* Reduced padding on mobile */
  .curs h3 { font-size: 1rem; } /* Smaller course title on mobile */
  .curs p.info a { font-size: 0.75rem; padding: 3px 8px; } /* Smaller info link on mobile */

  .widget { padding: 12px; } /* Reduced widget padding on mobile */
  .widget h5 { padding: 7px 12px; font-size: 0.9rem; margin: -12px -12px 12px -12px; } /* Smaller widget heading on mobile */
}

@media (max-width: 576px) {
    #top .logo { text-align: center; }
    #top .logo img { display: inline-block; margin-bottom: 4px; } /* Reduced margin on smaller mobile */
    #top .logo h2 { display: block; text-align: center; margin-left: 0; }

    .home table[width="868"] h1 { font-size: 1.4rem; } /* Smaller main title on smaller mobile */
    .button-container a { font-size: 0.85rem; padding: 9px 18px; } /* Smaller button on smaller mobile */
}
/* footer.css */

#site-footer {
  clear: both;              /* fuerza que el footer quede debajo de cualquier float */
  padding: 2rem 0;
  background: #1a1f24;
  color: #e0e0e0;
}

#site-footer .cont {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

#site-footer .footer-links a {
  display: inline-block;
  margin: 0 8px;
  color: inherit;
  text-decoration: none;
}

#site-footer .footer-branding {
  margin-top: 1.5rem;
}

.footer-logo {
  display: block;
  margin: 0 auto 1rem;
  width: 80px;   /* ajuste para móviles y tablets */
  height: auto;
}

@media (min-width: 1024px) {
  .footer-logo {
    width: 120px;  /* más grande en escritorio */
  }
}

#site-footer h5 {
  margin: 0.5rem 0;
  font-weight: 400;
  line-height: 1.4;
}

#site-footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}
