/* ==========================================================================
   ADMISSION WIZARD - Estilos para el formulario de admisiones
   Unidad Educativa Jacinto Jijón y Caamaño
   ========================================================================== */

:root {
  /* Azul marino institucional */
  --wizard-primary: #1e3a8a;
  --wizard-primary-light: #2563eb;
  --wizard-primary-bg: #eff6ff;
  /* Éxito */
  --wizard-success: #059669;
  --wizard-success-light: #10b981;
  --wizard-success-bg: #ecfdf5;
  /* Estados */
  --wizard-warning: #d97706;
  --wizard-danger: #dc2626;
  /* Tipografía */
  --wizard-dark: #0f172a;
  --wizard-text: #1e293b;
  --wizard-muted: #64748b;
  /* Superficies */
  --wizard-light: #f8fafc;
  --wizard-bg: #f1f5f9;
  --wizard-border: #e2e8f0;
  --wizard-white: #ffffff;
  /* Sombras */
  --wizard-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  --wizard-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
  --wizard-shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  /* Radios */
  --wizard-radius: 10px;
  --wizard-radius-lg: 14px;
  --wizard-radius-xl: 20px;
}

/* Base */
* {
  box-sizing: border-box;
}

body.admission-page {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(160deg, #071330 0%, #0f2150 50%, #1a3468 100%);
  min-height: 100vh;
  color: var(--wizard-text);
  line-height: 1.6;
}

/* Container principal */
.admission-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header institucional */
.admission-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
  padding: 20px 24px;
  box-shadow: var(--wizard-shadow-lg);
  position: relative;
  min-height: 120px;
}

.admission-header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.institution-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.institution-logo img {
  height: 160px;
  width: auto;
}

.institution-info h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wizard-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.institution-info p {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.header-contact {
  text-align: right;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.header-contact p {
  margin: 4px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-contact i {
  color: rgba(255, 255, 255, 0.7);
}

.header-contact a {
  color: var(--wizard-white);
  text-decoration: none;
  font-weight: 500;
}

.header-contact a:hover {
  text-decoration: underline;
}

/* Contenedor del formulario */
.admission-container {
  flex: 1;
  padding: 40px 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--wizard-bg);
}

.admission-content {
  width: 100%;
  max-width: 900px;
}

/* Progress Steps */
.wizard-progress {
  background: var(--wizard-white);
  border-radius: var(--wizard-radius-xl);
  padding: 24px 32px;
  margin-bottom: 24px;
  box-shadow: var(--wizard-shadow-lg);
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: var(--wizard-border);
  border-radius: 2px;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-indicator {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--wizard-white);
  border: 3px solid var(--wizard-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--wizard-muted);
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.step-indicator i {
  font-size: 1.2rem;
}

.wizard-step.active .step-indicator {
  background: var(--wizard-primary);
  border-color: var(--wizard-primary);
  color: var(--wizard-white);
  box-shadow: 0 0 0 4px var(--wizard-primary-bg);
}

.wizard-step.completed .step-indicator {
  background: var(--wizard-success);
  border-color: var(--wizard-success);
  color: var(--wizard-white);
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wizard-muted);
  text-align: center;
  max-width: 100px;
  transition: color 0.3s ease;
}

.wizard-step.active .step-label {
  color: var(--wizard-primary);
}

.wizard-step.completed .step-label {
  color: var(--wizard-success);
}

/* Main Card */
.wizard-card {
  background: var(--wizard-white);
  border-radius: var(--wizard-radius-xl);
  box-shadow: 0 1px 0 rgba(30, 58, 138, 0.06), var(--wizard-shadow-xl);
  border: 1px solid rgba(30, 58, 138, 0.07);
  overflow: hidden;
}

.wizard-card-header {
  background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-primary-light) 100%);
  padding: 32px;
  color: var(--wizard-white);
  text-align: center;
}

.wizard-card-header.privacy {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.wizard-card-header.student {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

.wizard-card-header.parents {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.wizard-card-header.medical {
  background: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
}

.wizard-card-header.academic {
  background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
}

.wizard-card-header.confirmation {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.wizard-card-header-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.wizard-card-header-icon i {
  font-size: 2.5rem;
}

.wizard-card-header h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.wizard-card-header p {
  margin: 8px 0 0;
  opacity: 0.9;
  font-size: 1rem;
}

.wizard-card-body {
  padding: 40px;
}

/* Sección del paso */
.wizard-section {
  margin-bottom: 32px;
}

.wizard-section:last-child {
  margin-bottom: 0;
}

.wizard-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wizard-dark);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--wizard-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.wizard-section-title i {
  color: var(--wizard-primary);
}

/* Form Elements */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-row.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.form-row.single {
  grid-template-columns: 1fr;
}

.form-group {
  margin-bottom: 0;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wizard-dark);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--wizard-danger);
  margin-left: 2px;
}

.form-label .optional {
  color: var(--wizard-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--wizard-border);
  border-radius: var(--wizard-radius);
  background: var(--wizard-white);
  color: var(--wizard-dark);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--wizard-primary);
  box-shadow: 0 0 0 4px var(--wizard-primary-bg);
}

.form-control::placeholder {
  color: #9ca3af;
}

.form-control.is-invalid {
  border-color: var(--wizard-danger);
}

.form-control.is-valid {
  border-color: var(--wizard-success);
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 20px;
  padding-right: 48px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--wizard-muted);
  margin-top: 6px;
}

.form-error {
  font-size: 0.85rem;
  color: var(--wizard-danger);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Photo Upload */
.photo-upload-container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  background: var(--wizard-light);
  border-radius: var(--wizard-radius);
  border: 2px dashed var(--wizard-border);
}

.photo-preview {
  width: 150px;
  height: 180px;
  background: var(--wizard-white);
  border-radius: var(--wizard-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--wizard-border);
  flex-shrink: 0;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-placeholder {
  text-align: center;
  color: var(--wizard-muted);
}

.photo-preview-placeholder i {
  font-size: 3rem;
  margin-bottom: 8px;
  display: block;
}

.photo-upload-info {
  flex: 1;
}

.photo-upload-info h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--wizard-dark);
}

.photo-upload-info p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--wizard-muted);
}

.photo-upload-info ul {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--wizard-muted);
}

.photo-upload-info ul li {
  margin-bottom: 4px;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--wizard-primary);
  color: var(--wizard-white);
  border: none;
  border-radius: var(--wizard-radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-upload:hover {
  background: var(--wizard-primary-light);
  transform: translateY(-2px);
}

input[type="file"] {
  display: none;
}

/* Checkboxes y Radio buttons */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--wizard-light);
  border-radius: var(--wizard-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.form-check:hover {
  background: var(--wizard-primary-bg);
}

.form-check.selected {
  background: var(--wizard-primary-bg);
  border-color: var(--wizard-primary);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--wizard-primary);
  flex-shrink: 0;
}

.form-check-content {
  flex: 1;
}

.form-check-label {
  font-weight: 600;
  color: var(--wizard-dark);
  display: block;
  margin-bottom: 4px;
  cursor: pointer;
}

.form-check-description {
  font-size: 0.85rem;
  color: var(--wizard-muted);
  margin: 0;
}

/* Grade Selection */
.grade-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.grade-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--wizard-light);
  border-radius: var(--wizard-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.grade-option:hover {
  border-color: var(--wizard-primary-light);
  background: var(--wizard-primary-bg);
}

.grade-option.selected {
  border-color: var(--wizard-primary);
  background: var(--wizard-primary-bg);
}

.grade-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--wizard-primary);
}

.grade-option span {
  font-weight: 500;
  color: var(--wizard-dark);
}

/* Privacy Policy Box */
.privacy-policy-box {
  background: var(--wizard-light);
  border-radius: var(--wizard-radius);
  padding: 24px;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 24px;
  border: 1px solid var(--wizard-border);
}

.privacy-policy-box h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: var(--wizard-dark);
}

.privacy-policy-box p,
.privacy-policy-box ul {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--wizard-text);
}

.privacy-policy-box ul {
  padding-left: 24px;
}

.privacy-policy-box li {
  margin-bottom: 8px;
}

.privacy-accept-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: var(--wizard-radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 2px solid #93c5fd;
}

.privacy-accept-box i {
  font-size: 1.5rem;
  color: #1e3a8a;
  flex-shrink: 0;
}

.privacy-accept-box .form-check {
  background: transparent;
  padding: 0;
  flex: 1;
}

.privacy-accept-box .form-check:hover {
  background: transparent;
}

/* Buttons */
.wizard-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 2px solid var(--wizard-border);
  margin-top: 32px;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--wizard-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--wizard-primary);
  color: var(--wizard-white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--wizard-primary-light);
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.35);
}

.btn-success {
  background: var(--wizard-success);
  color: var(--wizard-white);
}

.btn-success:hover:not(:disabled) {
  background: var(--wizard-success-light);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--wizard-muted);
  border: 2px solid var(--wizard-border);
}

.btn-outline:hover:not(:disabled) {
  background: var(--wizard-light);
  border-color: var(--wizard-muted);
  color: var(--wizard-dark);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* Alerts */
.wizard-alert {
  padding: 16px 20px;
  border-radius: var(--wizard-radius);
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.wizard-alert i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.wizard-alert.info {
  background: var(--wizard-primary-bg);
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.wizard-alert.success {
  background: var(--wizard-success-bg);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.wizard-alert.warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.wizard-alert.danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Level Cards */
.level-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.level-card {
  background: var(--wizard-white);
  border: 3px solid var(--wizard-border);
  border-radius: var(--wizard-radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.level-card:hover {
  border-color: var(--wizard-primary-light);
  transform: translateY(-4px);
  box-shadow: var(--wizard-shadow-lg);
}

.level-card.selected {
  border-color: var(--wizard-primary);
  background: var(--wizard-primary-bg);
}

.level-card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--wizard-primary) 0%, var(--wizard-primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.level-card-icon i {
  font-size: 2rem;
  color: var(--wizard-white);
}

.level-card-icon img {
  width: 40px;
  height: 40px;
}

.level-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--wizard-dark);
}

.level-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--wizard-muted);
}

.level-card input[type="radio"] {
  display: none;
}

/* Confirmation Summary */
.confirmation-summary {
  background: var(--wizard-light);
  border-radius: var(--wizard-radius);
  overflow: hidden;
}

.summary-section {
  padding: 24px;
  border-bottom: 1px solid var(--wizard-border);
}

.summary-section:last-child {
  border-bottom: none;
}

.summary-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.summary-section-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--wizard-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-section-header h4 i {
  color: var(--wizard-primary);
}

.summary-section-header a {
  font-size: 0.85rem;
  color: var(--wizard-primary);
  text-decoration: none;
}

.summary-section-header a:hover {
  text-decoration: underline;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-item.full-width {
  grid-column: 1 / -1;
}

.summary-item label {
  font-size: 0.8rem;
  color: var(--wizard-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-item span {
  font-weight: 500;
  color: var(--wizard-dark);
}

/* Success Page */
.success-container {
  text-align: center;
  padding: 60px 40px;
}

.success-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--wizard-success) 0%, var(--wizard-success-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  animation: success-bounce 0.6s ease;
}

@keyframes success-bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.success-icon i {
  font-size: 4rem;
  color: var(--wizard-white);
}

.success-container h2 {
  margin: 0 0 16px;
  font-size: 2rem;
  color: var(--wizard-dark);
}

.success-container p {
  margin: 0 0 32px;
  font-size: 1.1rem;
  color: var(--wizard-muted);
}

.tracking-code-box {
  background: var(--wizard-light);
  border: 2px dashed var(--wizard-primary);
  border-radius: var(--wizard-radius);
  padding: 24px;
  margin: 32px 0;
}

.tracking-code-box label {
  display: block;
  font-size: 0.9rem;
  color: var(--wizard-muted);
  margin-bottom: 8px;
}

.tracking-code-box .code {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wizard-primary);
  letter-spacing: 4px;
  font-family: monospace;
}

/* Footer */
.admission-footer {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.admission-footer a {
  color: var(--wizard-white);
}

/* Responsive */
@media (max-width: 992px) {
  .level-cards {
    grid-template-columns: 1fr;
  }

  .wizard-steps {
    gap: 8px;
  }

  .step-label {
    font-size: 0.7rem;
    max-width: 70px;
  }

  .institution-logo img {
    height: 120px;
  }
}

@media (max-width: 768px) {
  .admission-header-content {
    flex-direction: column;
    text-align: center;
  }

  .institution-logo {
    flex-direction: column;
  }

  .institution-logo img {
    height: 100px;
  }

  .institution-info {
    text-align: center;
  }

  .header-contact {
    text-align: center;
  }

  .header-contact p {
    justify-content: center;
  }

  .admission-container {
    padding: 20px 12px;
  }

  .wizard-progress {
    padding: 16px;
  }

  .wizard-steps::before {
    display: none;
  }

  .step-indicator {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .step-label {
    display: none;
  }

  .wizard-card-body {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row.three-cols {
    grid-template-columns: 1fr;
  }

  .photo-upload-container {
    flex-direction: column;
    align-items: center;
  }

  .wizard-buttons {
    flex-direction: column;
  }

  .wizard-buttons .btn {
    width: 100%;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .admission-container {
    padding: 20px 12px;
  }

  .wizard-card-header {
    padding: 24px 16px;
  }

  .wizard-card-header h2 {
    font-size: 1.4rem;
  }

  .wizard-card-body {
    padding: 20px 16px;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.4s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Print styles */
@media print {
  .admission-header,
  .wizard-progress,
  .wizard-buttons,
  .admission-footer {
    display: none;
  }

  .admission-wrapper {
    background: white;
  }

  .wizard-card {
    box-shadow: none;
  }
}

/* ==========================================================================
   BOT GUÍA ANIMADO - Mascota interactiva por paso
   ========================================================================== */

/* ---- Fondo del panel de formulario ---- */
.admission-form-panel {
  background: var(--wizard-bg);
}

/* ---- Barra de progreso: relleno animado ---- */
.wizard-steps::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 40px;
  height: 4px;
  width: var(--progress-width, 0px);
  background: linear-gradient(90deg, var(--wizard-success) 0%, var(--wizard-primary) 100%);
  border-radius: 2px;
  z-index: 0;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Pulso del paso activo */
.wizard-step.active .step-indicator {
  animation: step-pulse 2.5s ease-in-out infinite;
}

@keyframes step-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3); }
  50%       { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.08); }
}

/* ---- Entrada de tarjeta de formulario mejorada ---- */
.wizard-card.fade-in {
  animation: card-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ---- Focus de campos con micro-elevación ---- */
.form-control:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px var(--wizard-primary-bg), 0 6px 16px rgba(30, 64, 175, 0.12);
}

/* ====================================================================
   SECCIÓN DEL BOT GUÍA
   ==================================================================== */

.wizard-guide {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--wizard-radius-xl);
  margin-bottom: 20px;
  box-shadow: var(--wizard-shadow-lg);
  border: 2px solid transparent;
  position: relative;
  overflow: visible;
  animation: guide-enter 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes guide-enter {
  from { opacity: 0; transform: translateY(-18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

/* Paletas por tema */
.guide-theme-purple { background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%); border-color: #c084fc; }
.guide-theme-blue   { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-color: #93c5fd; }
.guide-theme-green  { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-color: #86efac; }
.guide-theme-red    { background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 100%); border-color: #fca5a5; }
.guide-theme-orange { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border-color: #fcd34d; }

/* ---- Contenedor del bot ---- */
.guide-bot-container {
  flex-shrink: 0;
  width: 105px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: bot-float 3.5s ease-in-out infinite;
}

.guide-bot {
  width: 105px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 10px 20px rgba(79, 70, 229, 0.28));
}

@keyframes bot-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* ---- Partes del bot: colores base ---- */
.bot-antenna-wire { stroke: #7c3aed; stroke-width: 3; stroke-linecap: round; }

.bot-antenna-ball {
  fill: #7c3aed;
  animation: antenna-glow 1.6s ease-in-out infinite alternate;
}
@keyframes antenna-glow {
  from { fill: #7c3aed; filter: drop-shadow(0 0 3px rgba(124, 58, 237, 0.8)); }
  to   { fill: #a855f7; filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.9)); }
}

.bot-head   { fill: #4f46e5; }
.bot-eye-bg { fill: #1e1b4b; }

.bot-pupil {
  fill: #93c5fd;
  transform-box: fill-box;
  transform-origin: center;
  animation: eye-blink 5s ease-in-out infinite;
}
@keyframes eye-blink {
  0%, 88%, 100% { transform: scaleY(1);    }
  92%           { transform: scaleY(0.07); }
}

.bot-shine   { fill: white; opacity: 0.88; }
.bot-mouth   { fill: none; stroke: #a5b4fc; stroke-width: 3; stroke-linecap: round; }
.bot-ear     { fill: #3730a3; }
.bot-neck    { fill: #3730a3; }
.bot-body    { fill: #4f46e5; }
.bot-chest   { fill: #3730a3; }

.bot-led-1 { fill: #fbbf24; animation: led-blink 1.8s ease-in-out 0s   infinite; }
.bot-led-2 { fill: #34d399; animation: led-blink 1.8s ease-in-out 0.6s infinite; }
.bot-led-3 { fill: #f87171; animation: led-blink 1.8s ease-in-out 1.2s infinite; }
@keyframes led-blink {
  0%, 100% { opacity: 1;   }
  50%      { opacity: 0.3; }
}

.bot-arm-part { fill: #3730a3; }
.bot-hand     { fill: #4f46e5; }
.bot-leg      { fill: #3730a3; }
.bot-foot     { fill: #4338ca; }

/* ---- Animaciones de brazos ---- */
.bot-arm-left,
.bot-arm-right {
  transform-box: fill-box;
  transform-origin: 50% 0%;   /* rota desde el hombro */
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* WAVE: brazo izquierdo saluda */
.guide-wave .bot-arm-left {
  animation: arm-wave 0.85s ease-in-out infinite alternate;
}
@keyframes arm-wave {
  from { transform: rotate(-5deg); }
  to   { transform: rotate(-68deg); }
}

/* POINT: brazo derecho señala adelante */
.guide-point .bot-arm-right {
  transform: rotate(-72deg);
  animation: arm-point-wiggle 2s ease-in-out infinite;
}
@keyframes arm-point-wiggle {
  0%, 100% { transform: rotate(-72deg); }
  50%      { transform: rotate(-65deg); }
}

/* INSPECT: ambos brazos ligeramente al frente */
.guide-inspect .bot-arm-left  { transform: rotate(28deg); }
.guide-inspect .bot-arm-right { transform: rotate(-38deg); animation: none; }

/* CELEBRATE: ambos brazos arriba y oscilando */
.guide-celebrate .bot-arm-left {
  animation: celebrate-left 0.65s ease-in-out infinite alternate;
}
.guide-celebrate .bot-arm-right {
  animation: celebrate-right 0.65s ease-in-out infinite alternate;
}
@keyframes celebrate-left  { from { transform: rotate(-80deg); } to { transform: rotate(-55deg); } }
@keyframes celebrate-right { from { transform: rotate(80deg);  } to { transform: rotate(55deg);  } }

/* Ojos y boca festivos en CELEBRATE */
.guide-celebrate .bot-pupil { fill: #fbbf24; }
.guide-celebrate .bot-mouth { stroke: #fbbf24; }

/* ---- Burbuja de mensajes ---- */
.guide-bubble {
  flex: 1;
  min-width: 0;
}

.guide-bubble-inner {
  margin-bottom: 12px;
}

.guide-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px;
  line-height: 1.3;
}

.guide-text {
  font-size: 0.88rem;
  color: #475569;
  margin: 0 0 10px;
  line-height: 1.55;
}

.guide-tips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.guide-tips li {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  line-height: 1.4;
}

.guide-tips li::before {
  content: '💡';
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Footer de la burbuja ---- */
.guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.guide-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.guide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.35s ease;
}

.guide-dot.done   { background: #10b981; }
.guide-dot.active {
  background: #4f46e5;
  width: 22px;
  border-radius: 4px;
  animation: dot-pulse 1.5s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1;   }
  50%      { opacity: 0.65; }
}

.guide-step-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

/* ---- Responsive del guía ---- */
@media (max-width: 640px) {
  .wizard-guide {
    flex-direction: column;
    text-align: center;
    padding: 18px 16px;
    gap: 14px;
  }

  .guide-bot-container {
    width: 80px;
  }

  .guide-bot {
    width: 80px;
  }

  .guide-tips {
    text-align: left;
  }

  .guide-footer {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
}

@media print {
  .wizard-guide { display: none; }
}

/* ==========================================================================
   PANEL IMAGEN INSTITUCIONAL — lateral izquierdo
   ========================================================================== */

/* Cambia el wrapper a fila para alojar el panel lateral */
.admission-wrapper {
  flex-direction: row;
  align-items: stretch;
}

/* ---- Panel de imagen ---- */
.admission-image-panel {
  width: 340px;
  min-width: 340px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 10;
}

.image-panel-bg {
  position: absolute;
  inset: 0;
  background-image: url('http://mmb.edu.ec/wp-content/uploads/2025/01/DJI_0381-scaled.jpg');
  background-size: cover;
  background-position: center top;
  transition: transform 0.6s ease;
}

.admission-image-panel:hover .image-panel-bg {
  transform: scale(1.03);
}

/* Gradiente oscuro sobre la foto */
.image-panel-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(10, 30, 80, 0.72) 0%,
    rgba(8, 20, 55, 0.88) 60%,
    rgba(5, 10, 35, 0.95) 100%
  );
}

/* Contenido encima de la imagen */
.image-panel-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  overflow-y: auto;
  scrollbar-width: none;
}
.image-panel-content::-webkit-scrollbar { display: none; }

/* ---- Marca institucional ---- */
.image-panel-brand {
  text-align: center;
  margin-bottom: 8px;
}

.image-panel-logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  border-radius: 8px;
}

.image-panel-logo-icon {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  backdrop-filter: blur(6px);
}

.image-panel-logo-icon i {
  font-size: 2rem;
  color: #ffffff;
}

.image-panel-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.image-panel-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---- Separador ---- */
.image-panel-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  margin: 22px 0;
  flex-shrink: 0;
}

/* ---- Pasos verticales ---- */
.image-panel-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.ip-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "dot label"
    "line .";
  column-gap: 12px;
  align-items: start;
}

.ip-step-dot {
  grid-area: dot;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.ip-step-done .ip-step-dot {
  background: rgba(16, 185, 129, 0.8);
  border-color: #10b981;
  color: #ffffff;
}

.ip-step-active .ip-step-dot {
  background: rgba(59, 130, 246, 0.9);
  border-color: #93c5fd;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25), 0 0 14px rgba(59, 130, 246, 0.4);
  animation: ip-dot-pulse 2.5s ease-in-out infinite;
}

@keyframes ip-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25), 0 0 14px rgba(59, 130, 246, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.1),  0 0 22px rgba(59, 130, 246, 0.2); }
}

.ip-step-line {
  grid-area: line;
  width: 2px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  margin: 3px auto 3px;
  border-radius: 1px;
}

.ip-step-done .ip-step-line {
  background: rgba(16, 185, 129, 0.5);
}

.ip-step-active .ip-step-line {
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.6), rgba(255,255,255,0.2));
}

.ip-step-label {
  grid-area: label;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  line-height: 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.ip-step-done .ip-step-label  { color: rgba(255, 255, 255, 0.8); }
.ip-step-active .ip-step-label {
  color: #ffffff;
  font-weight: 700;
}

/* ---- Footer del panel ---- */
.image-panel-footer {
  margin-top: auto;
  padding-top: 20px;
}

.image-panel-quote {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-left: 3px solid rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 0 8px 8px 0;
}

.image-panel-year {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Panel del formulario ---- */
.admission-form-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- Banner superior en tablet (reemplaza el panel lateral) ---- */
@media (max-width: 1100px) {
  .admission-image-panel {
    width: 280px;
    min-width: 280px;
  }
}

@media (max-width: 860px) {
  /* Colapsa panel lateral en banner horizontal superior */
  .admission-wrapper {
    flex-direction: column;
  }

  .admission-image-panel {
    width: 100%;
    min-width: 0;
    height: 200px;
    position: relative;
    top: auto;
  }

  .image-panel-content {
    padding: 20px 24px;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    overflow: hidden;
  }

  .image-panel-brand {
    text-align: left;
    margin-bottom: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .image-panel-logo-img {
    height: 60px;
    margin-bottom: 0;
  }

  .image-panel-logo-icon {
    width: 52px;
    height: 52px;
    margin: 0;
    flex-shrink: 0;
  }

  .image-panel-title  { font-size: 1rem; }
  .image-panel-subtitle { font-size: 0.75rem; }

  .image-panel-sep   { display: none; }

  .image-panel-steps {
    flex-direction: row;
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
  }

  .ip-step {
    grid-template-columns: 24px;
    grid-template-rows: auto;
    grid-template-areas: "dot";
    column-gap: 0;
  }

  .ip-step-line  { display: none; }
  .ip-step-label { display: none; }

  .ip-step-dot {
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
  }

  .image-panel-footer { display: none; }
}

@media (max-width: 560px) {
  .admission-image-panel {
    height: 140px;
  }

  .image-panel-content {
    padding: 16px;
  }

  .image-panel-steps {
    flex-wrap: wrap;
    max-width: 120px;
    gap: 4px;
  }
}

@media print {
  .admission-image-panel { display: none; }
  .admission-wrapper { flex-direction: column; }
}

/* ==========================================================================
   VITRINA ANIMADA + ÍCONOS POR PASO
   ========================================================================== */

/* ---- Íconos en los dots del stepper ---- */
.ip-step-dot i {
  font-size: 0.82rem;
  display: block;
  transform-origin: center;
  line-height: 1;
}

/* ---- Vitrina del paso activo ---- */
.ip-spotlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 18px;
}

.ip-spotlight-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Anillos expansivos */
.ip-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ip-ring-1 { animation: ip-ring-expand 2.6s ease-out infinite 0s; }
.ip-ring-2 { animation: ip-ring-expand 2.6s ease-out infinite 0.85s; }
.ip-ring-3 { animation: ip-ring-expand 2.6s ease-out infinite 1.7s; }

@keyframes ip-ring-expand {
  0%   { width: 68px;  height: 68px;  opacity: 0.55; }
  100% { width: 136px; height: 136px; opacity: 0; }
}

/* Círculo con cristal */
.ip-spotlight-icon-bg {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ip-spotlight-icon {
  font-size: 1.85rem;
  color: #ffffff;
  display: block;
  transform-origin: center;
}

.ip-spotlight-title {
  margin: 11px 0 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  letter-spacing: 0.25px;
  line-height: 1.4;
  max-width: 200px;
}

/* ================================================================
   ANIMACIONES ÚNICAS POR PASO
   (aplicadas al ícono de la vitrina Y al punto activo del stepper)
   ================================================================ */

/* 1 · Privacidad — escudo: pulso protector */
.ip-icon-shield-check .ip-spotlight-icon,
.ip-step-active.ip-icon-shield-check .ip-step-dot i {
  animation: ip-anim-shield 3s ease-in-out infinite;
}
@keyframes ip-anim-shield {
  0%, 100% { transform: scale(1) rotate(0deg); }
  35%       { transform: scale(1.14) rotate(-4deg); }
  65%       { transform: scale(1.14) rotate(4deg); }
}

/* 2 · Estudiante — persona: rebote suave */
.ip-icon-person-badge .ip-spotlight-icon,
.ip-step-active.ip-icon-person-badge .ip-step-dot i {
  animation: ip-anim-person 2s ease-in-out infinite;
}
@keyframes ip-anim-person {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-7px) scale(1.08); }
}

/* 3 · Padres — personas: balanceo grupal */
.ip-icon-people .ip-spotlight-icon,
.ip-step-active.ip-icon-people .ip-step-dot i {
  animation: ip-anim-people 2.6s ease-in-out infinite;
}
@keyframes ip-anim-people {
  0%, 100% { transform: rotate(0deg); }
  25%       { transform: rotate(-9deg); }
  75%       { transform: rotate(9deg); }
}

/* 4 · Escolar — birrete: vuelo + giro */
.ip-icon-mortarboard .ip-spotlight-icon,
.ip-step-active.ip-icon-mortarboard .ip-step-dot i {
  animation: ip-anim-mortarboard 2.3s ease-in-out infinite;
}
@keyframes ip-anim-mortarboard {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-9px) rotate(-12deg); }
}

/* 5 · Revisar — portapapeles: verificación */
.ip-icon-clipboard-check .ip-spotlight-icon,
.ip-step-active.ip-icon-clipboard-check .ip-step-dot i {
  animation: ip-anim-clipboard 3s ease-in-out infinite;
}
@keyframes ip-anim-clipboard {
  0%, 55%, 100% { transform: scale(1) rotate(0deg); }
  20%           { transform: scale(1.12) rotate(-5deg); }
  40%           { transform: scale(1.12) rotate(5deg); }
}

/* 6 · Cita — calendario: ping de alerta */
.ip-icon-calendar-event .ip-spotlight-icon,
.ip-step-active.ip-icon-calendar-event .ip-step-dot i {
  animation: ip-anim-calendar 1.9s ease-in-out infinite;
}
@keyframes ip-anim-calendar {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25%       { transform: scale(1.12) rotate(-6deg); }
  60%       { transform: scale(1.12) rotate(6deg); }
}

/* ---- Responsive: ocultar vitrina en banner horizontal ---- */
@media (max-width: 860px) {
  .ip-spotlight { display: none; }
}

/* ==========================================================================
   WIDGET ÁGUILA ASESORA
   ========================================================================== */

.eagle-advisor {
  display: flex;
  align-items: center;
  gap: 0;
  background: linear-gradient(135deg, #fffdf4 0%, #fef9e7 100%);
  border: 1px solid #e9c46a;
  border-left: 5px solid #D4A820;
  border-radius: var(--wizard-radius-lg);
  box-shadow: 0 4px 16px rgba(212, 168, 32, 0.12), 0 1px 4px rgba(0,0,0,0.06);
  padding: 12px 16px 12px 8px;
  margin-bottom: 20px;
  position: relative;
  overflow: visible;
  animation: eagle-advisor-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes eagle-advisor-enter {
  from { opacity: 0; transform: translateY(-16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

/* Estado cerrado */
.eagle-advisor.eagle-dismissed {
  animation: eagle-advisor-leave 0.35s ease forwards;
}
@keyframes eagle-advisor-leave {
  to { opacity: 0; transform: translateY(-10px) scale(0.96); max-height: 0; padding: 0; margin: 0; }
}

/* ---- Figura del águila ---- */
.eagle-advisor-figure {
  flex-shrink: 0;
  width: 72px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

/* SVG flotante */
.eagle-svg {
  width: 62px;
  height: auto;
  display: block;
  animation: eagle-body-float 3.2s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(107, 64, 5, 0.2));
}

@keyframes eagle-body-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* Alas */
.eagle-svg-wing-l {
  transform-origin: 30px 70px;
  animation: eagle-wing-l 2.6s ease-in-out infinite;
}

.eagle-svg-wing-r {
  transform-origin: 60px 70px;
  animation: eagle-wing-r 2.6s ease-in-out infinite;
}

@keyframes eagle-wing-l {
  0%, 100% { transform: rotate(0deg); }
  50%       { transform: rotate(-22deg); }
}

@keyframes eagle-wing-r {
  0%, 100% { transform: rotate(0deg); }
  50%       { transform: rotate(22deg); }
}

/* ---- Contenido de la burbuja ---- */
.eagle-advisor-body {
  flex: 1;
  min-width: 0;
  padding: 0 8px;
}

.eagle-advisor-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #B8900E;
  margin-bottom: 4px;
}

.eagle-advisor-label i {
  font-size: 0.8rem;
  animation: bulb-glow 2s ease-in-out infinite;
}

@keyframes bulb-glow {
  0%, 100% { color: #B8900E; }
  50%       { color: #f59e0b; filter: drop-shadow(0 0 4px rgba(245,158,11,0.6)); }
}

.eagle-advisor-tip {
  margin: 0;
  font-size: 0.9rem;
  color: #4a3000;
  line-height: 1.5;
  font-weight: 450;
}

/* ---- Botón cerrar ---- */
.eagle-advisor-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e9c46a;
  background: rgba(255,255,255,0.8);
  color: #9a7400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.2s ease;
  align-self: flex-start;
  margin-top: 2px;
}

.eagle-advisor-close:hover {
  background: #fde68a;
  border-color: #D4A820;
  color: #78350f;
  transform: scale(1.1);
}

/* ---- Responsive ---- */
@media (max-width: 560px) {
  .eagle-advisor-figure { width: 54px; }
  .eagle-svg { width: 48px; }
  .eagle-advisor-tip { font-size: 0.82rem; }
}
