/* ==========================================================================
   ESTILOS OFICIALES - SISTEMA DE PREINSCRIPCIONES CFL N° 407
   Ecosistema Educativo Fundaluz XXI / FATLyF / CFL 407
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Paleta Institucional Fundaluz XXI / CFL 407 */
  --cfl-navy-dark: #070b14;
  --cfl-navy-deep: #071540;
  --cfl-navy-mid: #0b1f66;
  --cfl-blue-primary: #1e40af;
  --cfl-blue-bright: #1d4ed8;
  --cfl-blue-electric: #2563eb;
  --cfl-cyan: #0284c7;
  --cfl-cyan-light: #38bdf8;
  --cfl-gold: #F5C518;
  --cfl-gold-hover: #e5b60e;
  --cfl-amber: #d97706;
  --cfl-green: #059669;
  --cfl-green-light: #ecfdf5;

  /* Neutros */
  --cfl-white: #ffffff;
  --cfl-bg-light: #f8fafc;
  --cfl-bg-card: rgba(255, 255, 255, 0.96);
  --cfl-text-dark: #0f172a;
  --cfl-text-heading: #071540;
  --cfl-text-body: #334155;
  --cfl-text-muted: #64748b;
  --cfl-border-light: #e2e8f0;
  --cfl-border-blue: rgba(29, 78, 216, 0.15);

  /* Fuentes */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(7, 21, 64, 0.04);
  --shadow-md: 0 8px 24px rgba(7, 21, 64, 0.08);
  --shadow-lg: 0 16px 40px rgba(7, 21, 64, 0.12);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--cfl-text-body);
  background-color: #f8fafc;
  background-image: radial-gradient(ellipse 960px 420px at 50% -50px, rgba(29, 78, 216, 0.08) 0%, rgba(2, 132, 199, 0.04) 50%, transparent 80%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* ==========================================================================
   CANVAS 3D - RED DE ALTA TENSIÓN (MARCA DE AGUA SUTIL)
   ========================================================================== */
#canvasCfl407 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
}

/* Contenido sobre el canvas 3D */
.cfl-top-ribbon,
.cfl-hero,
.cfl-courses-container,
.cfl-form-page,
.cfl-footer {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   TOPBAR & HEADER INSTITUCIONAL
   ========================================================================== */
.cfl-top-ribbon {
  height: 4px;
  background: linear-gradient(90deg, #F5C518 0%, #1d4ed8 40%, #0284c7 75%, #38bdf8 100%);
  width: 100%;
}

.cfl-header {
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(7, 21, 64, 0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}

.cfl-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cfl-brand-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cfl-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
  display: block;
}

.cfl-logo-img:hover {
  transform: scale(1.05);
}

.cfl-logo-fundaluz {
  height: 38px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 25, 130, 0.12);
  object-fit: contain;
}

.cfl-logo-fatlyf {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.cfl-logo-ba {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   HERO / BANNER DE SECCIÓN
   ========================================================================== */
.cfl-hero {
  max-width: 1200px;
  margin: 40px auto 25px auto;
  padding: 0 20px;
  text-align: center;
}

.cfl-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 900;
  color: var(--cfl-navy-deep);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.cfl-hero-title span {
  background: linear-gradient(135deg, #0b1f66 0%, #1d4ed8 45%, #0284c7 80%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cfl-hero-divider {
  width: 65px;
  height: 4px;
  background: linear-gradient(90deg, #071540 0%, #0284c7 65%, #38bdf8 100%);
  border-radius: 4px;
  margin: 14px auto 16px auto;
}

.cfl-hero-desc {
  font-size: 1.1rem;
  color: var(--cfl-cyan);
  font-weight: 700;
  max-width: 740px;
  margin: 0 auto 26px auto;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   BARRA DE BÚSQUEDA Y FILTROS
   ========================================================================== */
.cfl-search-wrapper {
  max-width: 800px;
  margin: 0 auto 35px auto;
  padding: 0 20px;
}

.cfl-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(11, 31, 102, 0.06), 0 0 20px rgba(255, 255, 255, 0.6) inset;
  transition: var(--transition);
}

.cfl-search-box:focus-within {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--cfl-blue-electric);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16), 0 12px 32px rgba(11, 31, 102, 0.1);
}

.cfl-search-icon {
  position: absolute;
  left: 18px;
  color: var(--cfl-cyan);
  font-size: 1.1rem;
  pointer-events: none;
}

.cfl-search-input {
  width: 100%;
  padding: 16px 50px 16px 50px;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--cfl-text-dark);
  outline: none;
}

.cfl-search-input::placeholder {
  color: #94a3b8;
}

.cfl-search-clear {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.cfl-search-clear:hover {
  color: var(--cfl-navy-deep);
}

.cfl-results-count {
  font-size: 0.9rem;
  color: var(--cfl-text-muted);
  text-align: center;
  margin-top: 14px;
  font-weight: 500;
}


/* ==========================================================================
   GRID DE CURSOS (INDEX)
   ========================================================================== */
.cfl-courses-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px 20px;
}

.cfl-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

.curso {
  width: 360px;
  max-width: 100%;
  flex: 0 0 auto;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(175%);
  -webkit-backdrop-filter: blur(16px) saturate(175%);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 35px rgba(11, 31, 102, 0.06), 0 0 25px rgba(255, 255, 255, 0.65) inset;
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.curso::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1d4ed8, #0284c7);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.curso:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 45px rgba(11, 31, 102, 0.13), 0 0 18px rgba(56, 189, 248, 0.25);
}

.curso:hover::before {
  background: linear-gradient(90deg, #F5C518 0%, #1d4ed8 50%, #38bdf8 100%);
}

.curso h2 {
  font-family: var(--font-heading);
  color: var(--cfl-navy-deep);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(29, 78, 216, 0.1);
  box-shadow: 0 2px 8px rgba(11, 31, 102, 0.03);
}


/* Datos informativos del curso */
.cfl-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  flex-grow: 1;
}

.cfl-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--cfl-text-body);
  line-height: 1.45;
}

.cfl-info-icon {
  color: var(--cfl-cyan);
  font-size: 0.95rem;
  margin-top: 3px;
  min-width: 16px;
  text-align: center;
}

.cfl-info-item strong {
  color: var(--cfl-navy-mid);
  font-weight: 600;
}

/* Horarios en tags / pills */
.cfl-schedule-pills {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.cfl-schedule-tag {
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #1e293b;
  display: inline-block;
}

/* Botón de inscripción */
.cfl-btn-inscribirse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #071540 0%, #0b1f66 45%, #1d4ed8 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 22px rgba(11, 31, 102, 0.32), 0 2px 8px rgba(29, 78, 216, 0.2);
  text-decoration: none;
  margin-top: auto;
}

.cfl-btn-inscribirse i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.cfl-btn-inscribirse:hover {
  background: linear-gradient(135deg, #0b1f66 0%, #1d4ed8 55%, #0284c7 100%);
  border-color: rgba(56, 189, 248, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.45), 0 0 16px rgba(56, 189, 248, 0.35);
  color: #ffffff;
}

.cfl-btn-inscribirse:hover i {
  transform: translateX(3px);
}

/* Empty state */
.cfl-empty-state {
  text-align: center;
  padding: 50px 20px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  border: 1.5px dashed rgba(148, 163, 184, 0.4);
  max-width: 600px;
  width: 100%;
  margin: 30px auto;
  grid-column: 1 / -1;
}

.cfl-empty-icon {
  font-size: 3rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.cfl-empty-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cfl-navy-deep);
  margin-bottom: 8px;
}

.cfl-empty-desc {
  color: var(--cfl-text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ==========================================================================
   FORMULARIO DE REGISTRO (REGISTRO.PHP)
   ========================================================================== */
.cfl-form-page {
  padding: 30px 15px 60px 15px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.cfl-form-card {
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 55px rgba(7, 21, 64, 0.09), 0 0 35px rgba(255, 255, 255, 0.8) inset;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  width: 100%;
  max-width: 760px;
  overflow: hidden;
  position: relative;
}

.cfl-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #071540 0%, #1d4ed8 45%, #0284c7 80%, #38bdf8 100%);
}

.cfl-form-header {
  padding: 34px 36px 22px 36px;
  border-bottom: 1px solid rgba(2, 132, 199, 0.12);
  text-align: center;
}

.cfl-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cfl-cyan);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.cfl-back-link:hover {
  color: var(--cfl-blue-bright);
}

.cfl-form-title {
  font-family: var(--font-heading);
  color: var(--cfl-navy-deep);
  font-size: clamp(1.75rem, 3.8vw, 2.25rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cfl-form-title span {
  background: linear-gradient(135deg, #0b1f66 0%, #1d4ed8 45%, #0284c7 80%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cfl-form-subtitle {
  color: var(--cfl-cyan);
  font-weight: 600;
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Curso seleccionado banner */
.cfl-selected-course {
  margin: 20px 36px 0 36px;
  background: rgba(237, 244, 255, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cfl-course-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #071540 0%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.cfl-course-info {
  flex-grow: 1;
}

.cfl-course-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cfl-cyan);
  font-weight: 700;
}

.cfl-course-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cfl-navy-deep);
  line-height: 1.3;
}

/* Acordeón de Requisitos */
.cfl-requisitos-wrapper {
  margin: 20px 36px 0 36px;
}

.cfl-accordion-btn {
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(2, 132, 199, 0.22);
  color: var(--cfl-navy-deep);
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.cfl-accordion-btn:hover {
  background: rgba(241, 245, 249, 0.95);
  border-color: var(--cfl-cyan);
}

.cfl-accordion-panel {
  display: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 18px 22px;
}

.cfl-panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cfl-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--cfl-text-body);
}

.cfl-check-icon {
  color: var(--cfl-green);
  font-size: 0.95rem;
  margin-top: 3px;
}

/* Campos de Formulario */
.cfl-form-body {
  padding: 28px 36px 36px 36px;
}

.cfl-form-section-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cfl-navy-deep);
  margin: 28px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(2, 132, 199, 0.16);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cfl-form-section-title i {
  color: var(--cfl-cyan);
  font-size: 1.05rem;
}

.cfl-form-section-title:first-child {
  margin-top: 0;
}

.cfl-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.cfl-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cfl-text-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cfl-label-hint {
  font-size: 0.76rem;
  color: var(--cfl-text-muted);
  font-weight: 400;
}

.cfl-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: #ffffff;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--cfl-text-dark);
  outline: none;
  transition: var(--transition);
}

.cfl-input:focus {
  border-color: var(--cfl-blue-electric);
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15);
}

/* Desplegables Select Estilizados Oficiales */
.cfl-select {
  width: 100%;
  padding: 13px 40px 13px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230284c7' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--cfl-text-dark);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.cfl-select:hover {
  border-color: #94a3b8;
}

.cfl-select:focus {
  border-color: var(--cfl-blue-electric);
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15);
}

.cfl-select option {
  color: var(--cfl-text-dark);
  padding: 8px 12px;
  background: #ffffff;
}

/* Fecha de nacimiento dividida proporcional */
.cfl-date-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1.15fr;
  gap: 10px;
}

.cfl-select-date {
  padding-left: 12px;
  padding-right: 28px;
  background-position: right 10px center;
  background-size: 13px 13px;
  font-size: 0.92rem;
}

/* Botón submit */
.cfl-submit-btn {
  width: 100%;
  padding: 16px 26px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #071540 0%, #0b1f66 45%, #1d4ed8 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 22px rgba(11, 31, 102, 0.32), 0 2px 8px rgba(29, 78, 216, 0.2);
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cfl-submit-btn:hover {
  background: linear-gradient(135deg, #0b1f66 0%, #1d4ed8 55%, #0284c7 100%);
  border-color: rgba(56, 189, 248, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.45), 0 0 16px rgba(56, 189, 248, 0.35);
}

.cfl-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   FEEDBACK & RESPUESTAS (GUARDAR_INSCRIPCION.PHP)
   ========================================================================== */
.cfl-feedback-card {
  max-width: 560px;
  margin: 60px auto;
  padding: 40px 34px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 24px 60px rgba(7, 21, 64, 0.1), 0 0 35px rgba(255, 255, 255, 0.8) inset;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}

.cfl-feedback-card.success {
  border-top: 5px solid var(--cfl-green);
}

.cfl-feedback-card.waitlist {
  border-top: 5px solid var(--cfl-gold);
}

.cfl-feedback-card.warning {
  border-top: 5px solid var(--cfl-amber);
}

.cfl-feedback-card.error {
  border-top: 5px solid #ef4444;
}

.cfl-feedback-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.cfl-feedback-icon.success {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
  border: 2px solid rgba(5, 150, 105, 0.3);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.2);
}

.cfl-feedback-icon.waitlist {
  background: rgba(245, 197, 24, 0.15);
  color: #d97706;
  border: 2px solid rgba(217, 119, 6, 0.3);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.2);
}

.cfl-feedback-icon.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 2px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.cfl-feedback-icon.error {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 2px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

.cfl-feedback-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.2vw, 1.8rem);
  font-weight: 800;
  color: var(--cfl-navy-deep);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.cfl-feedback-text {
  font-size: 1.02rem;
  color: var(--cfl-text-body);
  line-height: 1.65;
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.cfl-redirect-msg {
  font-size: 0.85rem;
  color: var(--cfl-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

/* Footer general */
.cfl-footer {
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 30px 20px;
  text-align: center;
  margin-top: auto;
}

.cfl-footer-text {
  font-size: 0.86rem;
  color: var(--cfl-text-muted);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .cfl-header-container {
    padding: 10px 14px;
  }
  .cfl-brand-logos {
    gap: 16px;
  }
  .cfl-logo-img {
    height: 38px;
  }
  .cfl-logo-fundaluz {
    height: 30px;
  }
  .cfl-logo-fatlyf {
    height: 32px;
  }
  .cfl-logo-ba {
    height: 28px;
  }
  .cfl-hero-title {
    font-size: 1.8rem;
  }
  .cfl-form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cfl-form-header,
  .cfl-form-body,
  .cfl-selected-course,
  .cfl-requisitos-wrapper {
    padding-left: 20px;
    padding-right: 20px;
    margin-left: 15px;
    margin-right: 15px;
  }
  .cfl-date-row {
    grid-template-columns: 75px 1fr 90px;
  }
  .cfl-courses-container {
    padding: 0 16px 40px 16px;
  }
  .cfl-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .curso {
    width: 100%;
    max-width: 100%;
    flex: none;
    height: auto;
    padding: 22px 18px;
  }
}
