:root {
  /* colores principales */
  --color-primary: #10533e;
  --color-primary-dark: #07291e;
  --color-primary-alt: #05533E;
  --color-accent: #E87722;

  /* estados y mensajes */
  --color-success-bg: #e6f4ea;
  --color-success: #1e7e34;
  --color-success-light-bg: #e8f5e9;
  --color-success-light: #2e7d32;

  --color-error-bg: #fdecea;
  --color-error: #b02a37;
  --color-error-strong: #c62828;

  --color-warning-bg: #fff4e5;
  --color-warning: #8a4b00;
  --color-warning-border: #ff9800;

  --color-info-bg: #e3f2fd;
  --color-info: #0d47a1;
  --color-info-border: #1976d2;

  /* grises / neutros */
  --color-bg-main: #f8f9fa;
  --color-bg-light: #f6f6f6;
  --color-bg-lighter: #fafafa;
  --color-border-light: #e5e5e5;
  --color-border-panel: #e5e7eb;
  --color-border-input: #d1d5db;
  --color-border-input-soft: #cbd5e1;
  --color-text-main: #212721;
  --color-text-dark: #1f2937;
  --color-text-muted: #555555;
  --color-text-muted-alt: #6b7280;
  --color-text-soft: #94a3b8;

  /* otros */
  --color-course-icon: #008060;
  --color-button-secondary-bg: #f3f4f6;
  --color-pagination-active: #2f5e45;

  /* tipografías */
  --font-main: "Instrument Sans", sans-serif;
  --font-alt: "Inter", sans-serif;
}

/* BASE */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

html * {
  font-family: var(--font-main);
}

a {
  color: var(--color-primary-alt);
}

a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.display-none{
    display: none !important;
}

h1{
  font-size: 2.4rem;
  font-weight: 600;
  margin-top: 20px;
  color: var(--color-primary);
  border-left: 10px solid var(--color-accent);
  padding-left: 3rem;
  margin-bottom: 2rem;
}
input[type="checkbox"] {
accent-color: var(--color-primary);
}
/* FLASH MESSAGES */

.flash {
  padding: 12px 16px;
  margin: 15px auto;
  max-width: 1100px;
  border-radius: 6px;
  font-size: 14px;
}

.flash-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-left: 4px solid var(--color-success);
}

.flash-error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border-left: 4px solid var(--color-error);
}

.flash-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border-left: 4px solid var(--color-warning-border);
}

.flash-info {
  background: var(--color-info-bg);
  color: var(--color-info);
  border-left: 4px solid var(--color-info-border);
}

.flash-info a {
  color: var(--color-info);
  font-weight: 600;
  text-decoration: underline;
}

/* INFO CABECERA */

.intro-info-text{
    margin-top: 20px;
    color: var(--color-primary);
    border-left: 10px solid var(--color-accent);
    padding-left: 3rem;
}

.intro-info-text h1{
   border-left: unset;
   padding-left: unset;
}
/* LOGIN / AUTH */

.auth-wrapper {
  min-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-alt);
}

.auth-card {
  background: #ffffff;
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  padding: 40px 50px 50px 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.auth-card h1 {
  margin-bottom: 32px;
  font-size: 26px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #475569;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border-input-soft);
  font-size: 15px;
  transition: all 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-cancel {
  width: 100%;
  padding: 13px;
  background: var(--color-text-muted);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.btn-cancel:hover {
  background: var(--color-text-muted-alt);
}

.auth-links {
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
}

.auth-links a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-links span {
  margin: 0 8px;
  color: var(--color-text-soft);
}

.alert {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
}

.alert.success {
  background: var(--color-success-light-bg);
  color: var(--color-success-light);
}

.alert.error {
  background: var(--color-error-bg);
  color: var(--color-error-strong);
}

/* BOTONES SEXPE */

.button-sexpe {
  display: flex;
  align-items: center;
  padding: 0.3rem 1rem;
  gap: 0.6rem;
  color: var(--color-text-main);
  border: 1px solid var(--color-primary-alt);
  border-radius: 1000px;
  background-color: #F2F2F2;
  transition: all 0.3s ease-in-out;
  max-width: fit-content;
}

.button-sexpe:hover {
  background-color: #FFF;
}

.row-margin-sexpe {
  margin: 10px 0 20px 0;
}

/* CATALOGO – WRAPPER / HERO */

.catalogo-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--color-bg-main);
  font-family: var(--font-alt);
}

.home-slider .slide {
  min-height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.1) 100%
  );
  display: flex;
  align-items: center;
}

.slide-content {
  max-width: 600px;
  padding: 2rem 3rem;
  color: #fff;
}

.slide-content,
.slide-content a {
  pointer-events: auto;
}

.slide-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.slide-dates {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.btn-slide {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn-slide:hover {
  opacity: 0.7;
}

.btn-slide:hover {
  color: #fff;
}
.swiper,
.swiper-slide {
  height: 100%;
}

.slide {
  background-size: cover;
  background-position: center;
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  pointer-events: none;
}

.swiper-pagination {
  bottom: 15px !important;
}

/* CATALOGO – LAYOUT / FILTROS */

.catalogo-layout {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 40px;
    padding: 40px 60px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.catalogo-layout > * {
  min-width: 0;
}

.filters-panel {
  width: 100%;
  max-width: 280px;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--color-border-panel);
  border-radius: 8px;
  padding: 16px;
  box-sizing: border-box;
}

.filters-panel h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 10px;
    color: var(--color-primary);
    border-left: 10px solid var(--color-accent);
    padding-left: 1rem;
    margin-bottom: 2rem;
    padding-top: 10px;
    padding-bottom: 10px;
}

.filters-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.filters-form label{
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 14px;
}

.filters-form input,
.filters-form select {
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--color-border-input);
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.double-field {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.double-field input {
  flex: 1;
  min-width: 0;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-apply,
.btn-clear {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 4px;
  text-decoration: none;
}

.btn-apply {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
}

.btn-clear {
  background: var(--color-button-secondary-bg);
  color: var(--color-text-dark);
  border: 1px solid var(--color-border-input);
}
.range-slider {
    position: relative;
    width: 100%;
    height: 28px;
    margin-top: 8px;
}

.range-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background: #dadae5;
    border-radius: 4px;
}

.range-slider input[type="range"] {
    position: absolute;
    border: 0px solid var(--color-border-input) !important;
    width: 100%;
    top: 5px;
    bottom: 0;
    margin: auto;
    background: none;
    pointer-events: none;
    appearance: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    pointer-events: auto;
    height: 14px;
    width: 14px;
    background: #fff;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -5px;
}

.range-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    height: 14px;
    width: 14px;
    background: #fff;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    margin-bottom: 4px;
}

.checkbox-filter{
    display: grid;
    grid-template-columns: auto 1fr; 
    align-items: center;
    column-gap: 8px;
}

.checkbox-filter input[type="checkbox"]{
    width: 16px;
    height: 16px;
    flex: none;
    margin: 0;
}

.checkbox-filter{
    overflow: hidden;
}

/* CATALOGO – RESULTADOS / CARDS */

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.course-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.course-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}
.course-card-link,
.course-card-link:hover,
.course-card-link:focus {
  text-decoration: none;
  color: inherit;
}

.course-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 6px 6px 0 0;
}

.course-body {
  padding: 18px;
}

.course-body h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  height: 68px;
  overflow: hidden;
}

.course-meta div {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.course-meta i {
  margin-right: 6px;
  color: var(--color-course-icon);
}

.course-card-link {
  text-decoration: none;
  color: inherit;
}

.course-image {
  position: relative;
  height: 200px;
}

.course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #0b4d3b;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-area {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-course-icon);
}

.course-body h4,
.course-area,
.footer__menu-link,
.filters-form label {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.course-area i {
  margin-right: 6px;
}

.course-card-link:hover .course-card {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.course-cta {
  margin-top: 16px;
  text-align: right;
  font-weight: 600;
  color: var(--color-course-icon);
}

.course-card-link:hover .course-cta i {
  transform: translateX(4px);
}

.course-cta i {
  transition: transform 0.2s ease;
}
/* CONTENEDOR ESTADO (lista y ficha) */
.course-status,
.listing-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: rgba(255, 255, 255, 0.92);
    padding: 4px 10px;
    border-radius: 14px;

    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 6px;
}

/* POSICIÓN SOLO EN LISTA */
.course-image {
    position: relative;
}

.course-status {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 10;
}

/* POSICIÓN EN SLIDER */
.home-slider .course-status {
    position: relative;
    bottom: auto;
    left: auto;
    display: block;
    width: fit-content;
    max-width: 100%;
}

/* PUNTO */
.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* COLORES */
.status-dot.open {
    background-color: #198754; /* verde */
}

.status-dot.soon {
    background-color: var(--color-primary, #0d6efd); /* azul */
}

.status-dot.closed {
    background-color: #adb5bd; /* gris */
}

/* TEXTO */
.status-text {
    color: #212529;
    white-space: nowrap;
}
/* PAGINACIÓN */

.view-switch {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 12px;
}

.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border-input);
  border-radius: 6px;
  color: var(--color-text-muted-alt);
  background: #ffffff;
  transition: all 0.2s ease;
  text-decoration: none;
}

.view-btn:hover {
  background: #f4f7f6;
  color: var(--color-primary);
}

.view-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.view-switch a.active {
  font-weight: bold;
}

.custom-pagination {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.custom-pagination ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.custom-pagination li {
  display: flex;
}

.custom-pagination a,
.custom-pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 600;
  color: #333333;
  background: #f0f0f0;
}

.custom-pagination li.active a {
  background: var(--color-pagination-active);
  color: #ffffff;
}

.custom-pagination li.disabled span,
.custom-pagination li.disabled a {
  opacity: 0.4;
  pointer-events: none;
}

.custom-pagination a:hover {
  background: var(--color-pagination-active);
  color: #ffffff;
}

/* CALENDARIO */

.calendar-wrapper {
  background: #ffffff;
  border: 1px solid var(--color-border-panel);
  border-radius: 10px;
  padding: 16px;
}

/* FICHA CURSO (GENÉRICA) */

#objetivos,
#indice,
#requisitos,
#horario {
  scroll-margin-top: 180px;
}

.node-listing-single {
  background: var(--color-bg-main);
  padding-top: 10px;
}

.listing-content-main {
  margin-bottom: 30px;
}

.contenedor-img-cabecera {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 400px;
  margin-bottom: 50px;
  border-radius: 0 0 20px 20px;
}

.post-title {
  font-size: 2.4rem;
  font-weight: 600;
  margin-top: 20px;
  color: var(--color-primary);
  border-left: 10px solid var(--color-accent);
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.listing-categories {
  display: inline-block;
  margin-top: 15px;
  font-weight: 500;
  color: var(--color-primary);
}

.listing-modalidad {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--color-primary);
  color: #ffffff;
  padding: 10px 20px;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 2px;
  border-radius: 6px;
}

.sticky-listing-nav {
  position: sticky;
  top: 90px;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 15px;
}

.sticky-listing-nav ul {
  display: flex;
  list-style: none;
  padding: 15px 0;
  margin: 0;
  gap: 25px;
}

.sticky-listing-nav ul li a {
  font-weight: 500;
  color: #333333;
  text-decoration: none;
}

.sticky-listing-nav ul li a:hover {
  color: var(--color-primary);
}

.listing-info-block {
  background: #ffffff;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid var(--color-primary);
}

.listing-info-block .title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.listing-info-block .title i {
  font-size: 1rem;
  color: #ffffff;
  margin-right: 10px;
  padding: 10px;
  background-color: var(--color-primary-alt);
  border-radius: 50% 50% 50% 0;
}

.block-content ul {
  padding-left: 20px;
}

.block-content li {
  margin-bottom: 10px;
}

.course-specs .row {
  display: flex;
  flex-wrap: wrap;
}

.specs-item {
  width: 50%;
  padding-bottom: 20px;
}

.specs-item .icon {
  width: 35px;
  float: left;
}

.specs-item .icon i {
  font-size: 2.5rem;
  color: var(--color-primary);
}

.specs-item .content {
  padding-left: 45px;
}

.course-specs-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #555555;
}

.course-specs-val {
  font-weight: 600;
  font-size: 1rem;
}

.course-specs .title span {
  color: var(--color-primary-alt);
  font-size: 1.4rem;
  font-weight: 600;
}

.listing-info-block .block-content {
  font-size: 1rem;
}

/* FICHA CURSO (AF – DETALLE) */

/* CONFIRMAR SOLICITUD EVENTO */

.page-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.confirm-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.confirm-title {
  margin-bottom: 1.5rem;
}

.confirm-section {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.summary-list li {
  margin-bottom: 0.25rem;
}

.confirm-form {
  margin-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
  padding-top: 1.5rem;
}

.check-line {
  display: block;
  margin-bottom: 0.75rem;
}

.form-actions {
  margin-top: 1.5rem;
  text-align: right;
}

.form-actions .btn-primary {
  padding: 0.6rem 1.5rem;
}

/* HEADER PÚBLICO */

.public-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border-panel);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left img {
  height: 46px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-dark);
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.user-menu {
  position: relative;
}

.user-toggle {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 14px;
  color: var(--color-text-dark);
}

.user-caret {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.user-toggle.open .user-caret {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--color-border-panel);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 2000;
}

.user-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-dropdown a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--color-text-dark);
  text-decoration: none;
}

.user-dropdown a:hover {
  background: #f3f4f6;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3000;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-dark);
  border-radius: 2px;
}

/* FOOTER */

.footer {
  font-family: var(--font-main);
  font-size: 1.8rem;
  line-height: 150%;
  font-weight: 400;
  font-style: normal;
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  box-sizing: border-box;
  padding: 7.4rem 0 2.8rem;
  background-color: var(--color-primary-alt);
}

.container__custom {
  font-family: var(--font-main);
  font-size: 1.8rem;
  line-height: 150%;
  font-weight: 400;
  font-style: normal;
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  box-sizing: border-box;
  width: 100%;
  padding: 0 1rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1220px;
}

.footer__menu {
  font-family: var(--font-main);
  font-size: 1.8rem;
  line-height: 150%;
  font-weight: 400;
  font-style: normal;
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  position: relative;
  gap: 2rem;
}

.footer__menu-item {
  font-family: var(--font-main);
  font-size: 1.8rem;
  line-height: 150%;
  font-weight: 400;
  font-style: normal;
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  margin-bottom: 2.3rem;
}

.footer__menu-title {
  font-family: var(--font-main);
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 120%;
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 2.4rem;
}

.footer__menu-link {
  font-family: var(--font-main);
  line-height: 150%;
  font-weight: 400;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
  transition: color 0.3s ease-in-out;
}
.footer__menu-link:hover{
    color: #fff;
}
.footer .container__custom .footer__menu .footer__menu-item .footer__menu-link .icon {
  width: 40px;
  text-align: center;
}

.footer__legal {
  font-family: var(--font-main);
  font-size: 1.8rem;
  line-height: 150%;
  font-weight: 400;
  font-style: normal;
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2.3rem;
}

.footer__legal-link {
  font-family: var(--font-main);
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 1.4rem;
  line-height: 150%;
  font-weight: 400;
  color: #ffffff;
  text-decoration: underline;
  transition: all 0.3s ease-in-out;
}
.footer-logos-container{
    display: inline-flex;
    justify-content: space-evenly;
    gap: 12px;
}

@media (max-width: 576px) {
  .footer-logos-container{
    flex-direction: column;
  }
}

.footer-logos-container img{
  padding:20px 20px 20px 0;
  max-width: 100%;
  height: auto;
}

@media (max-width: 992px) {
  .footer__menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .footer__legal {
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .footer__menu {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer__menu-link {
    gap: 0.8rem;
  }
}



.hero-banner {
  height: 260px;
  background: url('../images/hero-formacion.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: white;
  padding-left: 60px;
}

.hero-banner .hero-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 5px;
}

.hero-banner p {
  font-size: 16px;
  opacity: 0.9;
}


.swiper-pagination-bullet {
  width: 16px !important;
  height: 16px !important;
  background: var(--color-primary);
  opacity: 0.4;
  transition: all 0.25s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--color-primary) !important;
}

/* Responsive */

@media (max-width: 576px) {
  .contenedor-img-cabecera {
    height: 260px;
  }
  .sticky-listing-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .home-slider {
    height: 280px;
  }
  .slide-overlay h2 {
    font-size: 1.2rem;
  }
  .catalogo-layout {
    padding: 16px 12px;
  }
}

@media (max-width: 992px) {
  .filters-panel {
    max-width: 100%;
  }
  .catalogo-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px;
  }
  .filters-panel {
    max-width: 100%;
    padding: 16px;
    border-radius: 12px;
  }
  .filters-form {
    gap: 14px;
  }
  .filters-form label {
    font-size: 14px;
    font-weight: 500;
  }
  .filters-form input,
  .filters-form select {
    font-size: 15px;
    padding: 10px 12px;
  }
  .double-field {
    flex-direction: column;
  }
  .filter-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .btn-apply,
  .btn-clear {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }
  .results-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .course-card {
    border-radius: 14px;
  }
  .course-image {
    height: 180px;
  }
  .course-body h4 {
    font-size: 17px;
    height: auto;
  }
  .course-meta div {
    font-size: 14px;
  }
  .view-switch {
    justify-content: center;
    margin-bottom: 16px;
  }
  .specs-item {
    width: 100%;
  }
  .post-title {
    font-size: 2rem;
  }
  .menu-toggle {
    display: flex;
  }
  .header-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border-panel);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1500;
  }
  .header-nav.open {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    gap: 16px;
  }
  .nav-links a {
    font-size: 16px;
  }
  .user-avatar {
    display: none;
  }
  .user-toggle {
    width: 100%;
    justify-content: space-between;
    padding-top: 8px;
  }
  .user-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 8px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: none;
  }
  .user-dropdown.open {
    opacity: 1;
    max-height: 300px;
  }
}

@media (min-width: 992px) {
  .user-menu {
    position: relative;
  }
  .user-menu::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
  }
  .user-menu:hover .user-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .user-menu:hover .user-caret {
    transform: rotate(180deg);
  }
}



/* Unused in templates (commented out) */
/*


@media (max-width: 992px) {
.course-footer {
    text-align: left;
  }
}

.event-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.course-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--color-border-light);
  background: var(--color-bg-lighter);
  text-align: right;
}

.btn-view {
  background: var(--color-course-icon);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
}

.pagination-wrapper {
  margin-top: 30px;
  text-align: center;
}

.fc-toolbar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-dark);
}

.fc-button {
  background: var(--color-button-secondary-bg) !important;
  border: 1px solid var(--color-border-input) !important;
  color: var(--color-text-dark) !important;
  font-weight: 500;
}

.fc-button:hover {
  background: #e5e7eb !important;
}

.fc-button-primary:not(:disabled).fc-button-active {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
}

.fc-col-header-cell {
  background: #f9fafb;
  font-weight: 600;
  font-size: 13px;
}

.fc-day-today {
  background: #eff6ff !important;
}

.fc-event {
  background: #198754;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  padding: 2px 4px;
}

.fc-h-event {
  background: #198754;
  border-color: #198754;
}

.af-ficha {
  max-width: 1200px;
  margin: 40px auto;
  font-family: var(--font-alt);
}

.af-header {
  border-bottom: 4px solid #6a1b9a;
  padding-bottom: 15px;
}

.af-header h1 {
  font-size: 32px;
  margin: 0;
}

.af-estado {
  display: inline-block;
  margin-top: 10px;
  background: #ede7f6;
  color: #4a148c;
  padding: 5px 12px;
  font-weight: 600;
}

.af-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  margin-top: 30px;
}

.af-datos {
  background: var(--color-bg-light);
  padding: 25px;
}

.af-datos h3 {
  margin-top: 0;
  font-size: 20px;
}

.af-datos ul {
  list-style: none;
  padding: 0;
}

.af-datos li {
  margin-bottom: 10px;
}

.af-contenido h2 {
  margin-top: 0;
  font-size: 24px;
}

.af-img {
  width: 100%;
  margin-bottom: 20px;
}

.af-descripcion {
  line-height: 1.7;
}

*/
