/* ================================
   MODERN FORM REDESIGN - UNAC EPG
   ================================ */

/* Variables de color para consistencia */
:root {
  --primary-blue: #0a2e52;
  --secondary-blue: #1a3a5f;
  --accent-gold: #ffd54f;
  --accent-gold-dark: #ffc107;
  --accent-gold-darker: #e6a800;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --text-light-on-dark: rgba(255, 255, 255, 0.85);
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --accent-brown: #8b4513;
  --warning-bg: #fff8e1;
  --danger-text: #d32f2f;
  --border-light: #e9ecef;
  --primary-light-bg: #e3f0ff;
  --primary-dark-text: #01579b;
  --border-accent: #d0e2ff;
  --focus-ring: #b3d4fc;
  --button-text: #2c2c2c;
  --active-brown: #5c3317;
  --active-border: #d4a373;
  --section-padding: 5rem 0;
  /* Consistent shadows/borders */
  --shadow-1: 0 2px 6px rgba(0, 0, 0, 0.1);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-2b: 0 4px 12px rgba(0, 0, 0, 0.18);
  --shadow-3: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-blue-15: 0 4px 12px rgba(10, 46, 82, 0.15);
  --shadow-hover-chip: 0 8px 25px rgba(10, 46, 82, 0.3);
  --border-muted: 1px solid rgba(0, 0, 0, 0.05);
  --border-blue-10: 1px solid rgba(10, 46, 82, 0.1);
  --glow-gold: 0 0 0 3px rgba(255, 213, 79, 0.2);
}

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

body {
  font-family: "Roboto", "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f5f7fa;
}

.main-content {
  padding-top: 67px;
}

/* ================================
   HERO SECTION
   ================================ */
.hero-proceso-admision {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 46, 82, 0.85) 0%,
    rgba(26, 58, 95, 0.75) 50%,
    rgba(255, 193, 7, 0.1) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero-welcome {
  margin-bottom: 2rem;
}

.welcome-text {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

.divider-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-gold),
    transparent
  );
}

.divider-icon {
  margin: 0 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 193, 7, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.divider-icon i {
  color: var(--accent-gold);
  font-size: 1.2rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.7;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle strong {
  color: var(--accent-gold);
  font-weight: 600;
}

.hero-cta {
  margin-top: 2rem;
}

.btn-scroll-down {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0;
  border: none;
  background: none;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn-scroll-down::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.btn-scroll-down:hover::after {
  width: 100%;
}

.btn-scroll-down:hover {
  color: var(--accent-gold);
  transform: translateY(-1px);
}

.btn-scroll-down i {
  font-size: 0.9rem;
  animation: bounce 2s infinite;
  margin-left: 0.25rem;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-2px);
  }
}

/* ================================
   MODERN FORM CONTAINER
   ================================ */
.form-container-modern {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   FORM SECTIONS
   ================================ */
.form-section {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  animation: slideIn 0.5s ease-out backwards;
}

.form-section:nth-child(1) {
  animation-delay: 0.1s;
}
.form-section:nth-child(2) {
  animation-delay: 0.2s;
}
.form-section:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-section:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--light-bg);
}

.section-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(10, 46, 82, 0.2);
  transition: all 0.3s ease;
}

.form-section:hover .section-icon {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 6px 16px rgba(10, 46, 82, 0.3);
}

.section-title-wrapper {
  flex: 1;
}

.section-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

.section-content {
  padding-top: 1rem;
}

/* ================================
   MODERN FORM INPUTS
   ================================ */
.form-floating-custom {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-group-modern {
  position: relative;
  display: flex;
  align-items: center;
}

.form-control-modern {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 1rem;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  background-color: var(--white);
  transition: all 0.3s ease;
  font-family: "Roboto", sans-serif;
  color: var(--text-dark);
}

.form-control-modern:focus {
  outline: none;
  border-color: var(--accent-gold-dark);
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.1);
  background-color: var(--white);
}

.form-control-modern:focus + label {
  color: var(--accent-gold-dark);
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-light);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.form-control-modern:focus ~ .input-icon {
  color: var(--accent-gold-dark);
  transform: scale(1.1);
}

.input-icon-right {
  position: absolute;
  right: 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-control-modern:focus ~ .input-icon-right {
  color: var(--accent-gold-dark);
}

.input-group-modern label {
  position: absolute;
  left: 3rem;
  top: -0.75rem;
  background: var(--white);
  padding: 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-label-modern {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

/* ================================
   RADIO BUTTONS MODERN
   ================================ */
.radio-group-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-card {
  position: relative;
}

.radio-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  gap: 0.5rem;
}

.radio-label i {
  font-size: 2rem;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.radio-label span {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.radio-label:hover {
  border-color: var(--accent-gold-dark);
  background: var(--light-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.radio-label:hover i {
  color: var(--accent-gold-dark);
  transform: scale(1.1);
}

.radio-input:checked + .radio-label {
  border-color: var(--accent-gold-dark);
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.1) 0%,
    rgba(255, 213, 79, 0.05) 100%
  );
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2);
}

.radio-input:checked + .radio-label i {
  color: var(--accent-gold-dark);
  transform: scale(1.15);
}

.radio-input:checked + .radio-label span {
  color: var(--primary-blue);
  font-weight: 600;
}

/* ================================
   KNOWLEDGE SOURCE CARDS
   ================================ */
.knowledge-source-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.knowledge-card {
  position: relative;
}

.knowledge-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.knowledge-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  gap: 0.5rem;
  min-height: 100px;
}

.knowledge-label i {
  font-size: 1.75rem;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.knowledge-label span {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.knowledge-label:hover {
  border-color: var(--primary-blue);
  background: var(--primary-light-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 46, 82, 0.1);
}

.knowledge-label:hover i {
  color: var(--primary-blue);
  transform: scale(1.1);
}

.knowledge-input:checked + .knowledge-label {
  border-color: var(--primary-blue);
  background: linear-gradient(
    135deg,
    rgba(10, 46, 82, 0.08) 0%,
    rgba(26, 58, 95, 0.05) 100%
  );
  box-shadow: 0 4px 16px rgba(10, 46, 82, 0.15);
}

.knowledge-input:checked + .knowledge-label i {
  color: var(--primary-blue);
  transform: scale(1.15);
}

.knowledge-input:checked + .knowledge-label span {
  color: var(--primary-blue);
  font-weight: 600;
}

/* Invalid state for knowledge source container */
.knowledge-source-container.is-invalid {
    border: 2px solid var(--danger-text);
    border-radius: 12px;
    padding: 1rem;
    animation: shake 0.4s ease;
}

/* ================================
   SEARCHABLE LIST (Unidad)
   ================================ */
.searchable-list-container {
  margin-top: 0.5rem;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  transition: all 0.3s ease;
}

.searchable-list-container:focus-within {
  border-color: var(--accent-gold-dark);
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.1);
}

.search-bar {
  position: relative;
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--light-bg);
}

.search-icon {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-gold-dark);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.scrollable-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem;
}

.scrollable-list::-webkit-scrollbar {
  width: 8px;
}

.scrollable-list::-webkit-scrollbar-track {
  background: var(--light-bg);
  border-radius: 4px;
}

.scrollable-list::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
}

.scrollable-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

.list-item {
  padding: 1rem;
  margin: 0.25rem 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--text-dark);
}

.list-item:hover {
  background: var(--primary-light-bg);
  color: var(--primary-blue);
  transform: translateX(5px);
}

.list-item.selected {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: var(--white);
  box-shadow: 0 4px 12px rgba(10, 46, 82, 0.2);
}

/* ================================
   SELECTION CONTAINER (Programa)
   ================================ */
.selection-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 1rem;
  background-color: var(--light-bg);
  border-radius: 12px;
  border: 2px solid var(--border-light);
  transition: border-color 0.3s ease;
}

.selection-container.is-invalid {
  border-color: var(--danger-text);
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.25);
}

.selection-container .form-check {
  margin: 0;
  padding: 0;
}

.selection-container .form-check-label {
  display: block;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--white);
  width: 100%;
  font-weight: 500;
  text-align: center;
  color: var(--text-dark);
}

.selection-container .form-check-label:hover {
  border-color: var(--primary-blue);
  background-color: var(--primary-light-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 46, 82, 0.1);
}

.selection-container .form-check-input {
  display: none;
}

.selection-container .form-check-input:checked + .form-check-label {
  color: var(--white);
  font-weight: 600;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  border-color: var(--primary-blue);
  box-shadow: 0 4px 16px rgba(10, 46, 82, 0.2);
  transform: translateY(-2px);
}

/* ================================
   DETALLE PROGRAMA CONTAINER (Card Style)
   ================================ */
.detalle-programa-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 12px;
    border: 2px solid var(--border-light);
    max-height: 500px;
    overflow-y: auto;
}

.detalle-programa-container::-webkit-scrollbar {
    width: 8px;
}

.detalle-programa-container::-webkit-scrollbar-track {
    background: var(--white);
    border-radius: 4px;
}

.detalle-programa-container::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}

.detalle-programa-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

.detalle-programa-container.is-invalid {
    border-color: var(--danger-text);
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.25);
    animation: shake 0.4s ease;
}

.detalle-programa-container .form-check {
    margin: 0;
    padding: 0;
}

.detalle-programa-container .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.detalle-programa-container .form-check-label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    font-weight: 500;
    color: var(--text-dark);
    min-height: 80px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.detalle-programa-container .form-check-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 46, 82, 0.05) 0%, rgba(26, 58, 95, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detalle-programa-container .form-check-label:hover {
    border-color: var(--primary-blue);
    background: var(--primary-light-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(10, 46, 82, 0.12);
}

.detalle-programa-container .form-check-label:hover::before {
    opacity: 1;
}

.detalle-programa-container .form-check-input:checked + .form-check-label {
    color: var(--white);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-color: var(--primary-blue);
    box-shadow: 0 6px 20px rgba(10, 46, 82, 0.25);
    transform: translateY(-3px) scale(1.02);
}

.detalle-programa-container .form-check-input:checked + .form-check-label::before {
    opacity: 0;
}

/* Selected Program Display */
#selected-detalle-display {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(10, 46, 82, 0.05) 0%,
    rgba(26, 58, 95, 0.03) 100%
  );
  border-left: 4px solid var(--primary-blue);
  border-radius: 8px;
  display: none;
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#selected-detalle-display p {
  margin: 0;
  font-weight: 500;
  color: var(--primary-dark-text);
}

#selected-detalle-display strong {
  color: var(--primary-blue);
  font-weight: 700;
}

/* ================================
   SUMMARY SECTION (Confirmación) - Simple & Clean
   ================================ */
.summary-modern {
    margin-bottom: 2rem;
}

.summary-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.summary-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.summary-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 1.3rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.summary-item {
    background-color: var(--light-bg);
    padding: 1.25rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.summary-item:hover {
    background-color: #f0f2f5;
}

.summary-item-full {
    grid-column: 1 / -1;
}

.summary-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.4;
    word-break: break-word;
}

/* ================================
   TERMS & RECAPTCHA - Enhanced
   ================================ */
.terms-container {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--light-bg);
  border-radius: 12px;
  border: 2px solid var(--border-light);
}

.form-check-modern {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-check-input-modern {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  cursor: pointer;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.form-check-input-modern:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.form-check-input-modern:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 46, 82, 0.1);
}

.form-check-label-modern {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.terms-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.terms-link:hover {
  color: var(--accent-gold-dark);
  border-bottom-color: var(--accent-gold-dark);
}

.recaptcha-container {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

.security-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.1) 0%,
    rgba(40, 167, 69, 0.05) 100%
  );
  border-radius: 8px;
  color: #28a745;
  font-weight: 500;
  margin: 1.5rem 0;
}

.security-info i {
  font-size: 1.2rem;
}

/* ================================
   SUBMIT BUTTON
   ================================ */
.submit-container {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.btn-submit-modern {
  position: relative;
  padding: 1.25rem 3rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  border: none;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 20px rgba(10, 46, 82, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-submit-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(10, 46, 82, 0.4);
  background: linear-gradient(
    135deg,
    var(--accent-gold-dark) 0%,
    var(--accent-gold) 100%
  );
}

.btn-submit-modern:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(10, 46, 82, 0.3);
}

.btn-submit-modern:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.btn-content i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-submit-modern:hover .btn-content i {
  transform: translateX(5px);
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.btn-submit-modern:active .btn-ripple {
  width: 300px;
  height: 300px;
  opacity: 0;
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
}

/* ================================
   SUCCESS MESSAGE
   ================================ */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

.success-message-box {
  background-color: white;
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  animation: scaleUp 0.4s 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-icon {
  font-size: 5rem;
  color: #28a745;
  margin-bottom: 1.5rem;
  animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.success-message-box h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.success-message-box p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.success-message-box p:last-of-type {
  margin-bottom: 2rem;
}

.success-message-box .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes scaleUp {
  to {
    transform: scale(1);
  }
}

/* ================================
   VALIDATION STYLES
   ================================ */
.invalid-feedback {
  display: none;
  color: var(--danger-text);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.form-control-modern.is-invalid,
.searchable-list-container.is-invalid,
.selection-container.is-invalid,
.detalle-programa-container.is-invalid {
  border-color: var(--danger-text);
  animation: shake 0.4s ease;
}

.form-control-modern.is-invalid ~ .invalid-feedback,
.searchable-list-container.is-invalid ~ .invalid-feedback,
.selection-container.is-invalid ~ .invalid-feedback,
.detalle-programa-container.is-invalid ~ .invalid-feedback {
  display: block;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .form-container-modern {
    padding: 0 1rem;
    margin: 2rem auto;
  }

  .form-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .section-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .section-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .radio-group-modern,
  .knowledge-source-container {
    grid-template-columns: 1fr;
  }

/* Tablet Landscape and smaller desktops */
@media (max-width: 1024px) {
    .form-container-modern {
        max-width: 95%;
        padding: 0 1rem;
    }

    .form-section {
        padding: 2rem 1.5rem;
    }

    .section-header {
        gap: 1rem;
    }

    .section-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .radio-group-modern,
    .knowledge-source-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .detalle-programa-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .form-container-modern {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    .form-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .section-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .radio-group-modern,
    .knowledge-source-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .selection-container {
        grid-template-columns: 1fr;
    }

    .detalle-programa-container {
        grid-template-columns: 1fr;
        max-height: 400px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .summary-section {
        padding: 1.5rem;
    }

    .summary-title {
        font-size: 1.2rem;
    }
    
    .btn-submit-modern {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* reCAPTCHA responsive */
    .recaptcha-container {
        transform: scale(0.9);
        transform-origin: center;
    }

    .g-recaptcha {
        display: flex;
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .form-section {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .section-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .form-control-modern {
        font-size: 0.95rem;
        padding: 0.9rem 0.9rem 0.9rem 2.8rem;
    }

    .input-group-modern label {
        font-size: 0.8rem;
        left: 2.8rem;
    }

    .radio-label,
    .knowledge-label {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
    }

    .radio-label i,
    .knowledge-label i {
        font-size: 1.5rem;
    }

    .detalle-programa-container .form-check-label {
        padding: 1rem 0.75rem;
        font-size: 0.85rem;
        min-height: 70px;
    }

    .summary-item {
        padding: 1rem;
    }

    .summary-label {
        font-size: 0.75rem;
    }

    .summary-value {
        font-size: 1rem;
    }

    .btn-submit-modern {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    /* reCAPTCHA mobile */
    .recaptcha-container {
        transform: scale(0.85);
        transform-origin: center;
        overflow: hidden;
    }

    .terms-container {
        padding: 1rem;
    }

    .form-check-label-modern {
        font-size: 0.9rem;
    }

    /* Adjust scrollable lists for mobile */
    .scrollable-list {
        max-height: 250px;
    }

    .searchable-list-container {
        font-size: 0.9rem;
    }

    .list-item {
        padding: 0.85rem;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .form-section {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .radio-group-modern,
    .knowledge-source-container {
        gap: 0.5rem;
    }

    /* reCAPTCHA extra small */
    .recaptcha-container {
        transform: scale(0.77);
        transform-origin: 0 0;
        width: 100%;
        overflow: hidden;
    }

    .g-recaptcha {
        transform-origin: 0 0;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .form-section {
        padding: 1rem 1.5rem;
    }

    .section-header {
        flex-direction: row;
        text-align: left;
    }

    .section-icon {
        margin: 0;
    }

    .radio-group-modern,
    .knowledge-source-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================
   HERO SECTION RESPONSIVE (from original)
   ================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

/* ================================
   UTILITY ANIMATIONS
   ================================ */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.8);
  }
}

.glow-animation {
  animation: glow 2s ease-in-out infinite;
}

/* ================================
   ENHANCED MICRO-INTERACTIONS
   ================================ */

/* Ripple effect for buttons */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-submit-modern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit-modern:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* Pulse animation for important elements */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

.section-icon {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Smooth color transition on focus */
.form-control-modern,
.search-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover lift effect for cards */
.radio-card,
.knowledge-card,
.detalle-programa-container .form-check {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon rotation on hover */
.radio-label i,
.knowledge-label i {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.radio-label:hover i,
.knowledge-label:hover i {
    transform: rotate(360deg) scale(1.2);
}

/* Smooth background transition */
.list-item,
.selection-container .form-check-label,
.detalle-programa-container .form-check-label {
    background-size: 200% 200%;
    transition: background-position 0.5s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease;
}

/* Loading state animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(
        90deg,
        var(--light-bg) 0%,
        var(--white) 50%,
        var(--light-bg) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Focus visible for accessibility */
.form-control-modern:focus-visible,
.radio-input:focus-visible + .radio-label,
.knowledge-input:focus-visible + .knowledge-label,
.detalle-programa-container .form-check-input:focus-visible + .form-check-label {
    outline: 3px solid var(--accent-gold-dark);
    outline-offset: 2px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection highlight */
::selection {
    background: var(--accent-gold-dark);
    color: var(--white);
}

::-moz-selection {
    background: var(--accent-gold-dark);
    color: var(--white);
}

/* Utility Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-scale {
    animation: fadeInScale 0.4s ease-out;
}

/* Hover glow effect */
.btn-submit-modern,
.section-icon {
    position: relative;
}

.btn-submit-modern::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-gold-dark), var(--primary-blue), var(--accent-gold-dark));
    border-radius: 14px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.btn-submit-modern:hover::before {
    opacity: 0.3;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Stagger animation for form sections */
.form-section:nth-child(1) {
    animation-delay: 0.1s;
}

.form-section:nth-child(2) {
    animation-delay: 0.2s;
}

.form-section:nth-child(3) {
    animation-delay: 0.3s;
}

/* Smooth transitions for all interactive elements */
button,
a,
input,
select,
textarea {
    transition: all 0.3s ease;
}

/* Prevent layout shift */
.form-section,
.summary-section {
    contain: layout;
}

/* Pulse animation for section icons (including confirmation) */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

.section-icon {
    animation: pulse-glow 3s ease-in-out infinite;
}
