/* ═══════════════════════════════════════════════════════════
   INMUEBLES.CSS — NEW LAW v2.0 LIGHT MODE
   Sistema cromático institucional RUTH (Fondo claro)
   Basado en manual de marca 2026 · WCAG 2.1 AA/AAA
   ═══════════════════════════════════════════════════════════ */

:root {
  /* 01 · BASE INSTITUCIONAL */
  --ink: #0C0E0F;           /* Texto base, encabezados */
  --grafito: #22262A;       /* Superficies oscuras opcionales */
  --gris: #6E7478;          /* Texto secundario, iconos inactivos */
  --gris-suave: #C9CCCE;    /* Bordes secundarios, divisores */
  --humo: #F2F2EF;          /* Fondos secundarios, tarjetas */
  --papel: #FFFFFF;         /* FONDO GENERAL */

  /* 02 · COLOR PROPIETARIO */
  --butter: #FFEDA8;        /* Primario de marca */

  /* 03 · PASTELES NEÓN FUNCIONALES */
  --menta: #A9F5C8;         /* Éxito, confirmación humana */
  --cielo: #B3D4FF;         /* Información, estados de sistema */
  --lila: #CFC0FF;          /* Identificador de áreas/categorías */
  --coral: #FFB3A7;         /* Advertencias sin alarma */

  /* 04 · SEÑAL DE ACCIÓN */
  --magenta: #C42A8E;       /* CTA Principal */
  --magenta-deep: #8E1C66;  /* Estados Hover y Active */
  --magenta-soft: #F9AEDC;  /* Subrayados, realces */

  /* MAPEADO TÉCNICO DE LAYOUT (MODO CLARO) */
  --bg-dark: var(--papel);
  --bg-card: var(--humo);
  --bg-card2: var(--papel);
  --accent: var(--magenta);
  --accent2: var(--magenta-deep);
  --gold: var(--butter);
  --text: var(--ink);
  --muted: var(--gris);
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.12);
  --white-card: var(--papel);
  --step-inactive: var(--gris-suave);
  --step-active: var(--magenta);
  --step-done: var(--menta);
  --success: var(--menta);
  --warning: var(--coral);
  --danger: #DC3545;
  --info: var(--cielo);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', 'Archivo', Helvetica, Arial, sans-serif;
  background: var(--papel);
  color: var(--ink);
  overflow: hidden;
  font-size: 17px;
}

/* ═══════════════════════════════════
   NAVBAR RUTH.IA (ESTILO PREMIUM)
═══════════════════════════════════ */

.navbar-ruth {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 32px rgba(0, 0, 0, 0.04);
  z-index: 1000;
}

.nav-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.nav-btn {
  font-family: 'Manrope', 'Archivo', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  background: transparent;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
}

.nav-btn i {
  font-size: 0.95rem;
}

.nav-btn:hover {
  border-color: var(--magenta);
  color: var(--magenta);
  transform: translateY(-1px);
  background: rgba(196, 42, 142, 0.04);
}

@media (max-width: 768px) {
  .navbar-ruth {
    padding: 0 18px;
  }
  .nav-logo {
    height: 28px;
  }
  .nav-btn {
    font-size: 0.65rem;
    padding: 8px 14px;
  }
}

/* ═══════════════════════════════════
   LAYOUT — PANEL UNICO (FULL WIDTH)
═══════════════════════════════════ */

.workspace {
  display: grid;
  grid-template-columns: 1fr;
  padding:
    clamp(78px, 6vh, 95px)
    clamp(12px, 1.2vw, 24px)
    clamp(12px, 1.2vw, 24px);
  height: 100vh;
  background: var(--papel);
}

.chat-panel.full-width {
  display: flex;
  flex-direction: column;
  background: var(--humo);
  border: 1px solid var(--border);
  border-radius: clamp(14px, 1vw, 20px);
  overflow: hidden;
  height: calc(100vh - clamp(92px, 9vh, 115px));
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.05);
}

@media (max-width: 950px) {
  .workspace {
    height: auto;
    overflow-y: auto;
  }
  .chat-panel.full-width {
    height: calc(100vh - clamp(92px, 9vh, 115px));
    min-height: 650px;
  }
}

/* ═══════════════════════════════════
   PANEL DE CHAT
═══════════════════════════════════ */

.chat-header {
  padding:
    clamp(16px, 1vw, 24px)
    clamp(20px, 1.3vw, 28px);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg,
      rgba(196, 42, 142, 0.04),
      transparent);
  flex-shrink: 0;
}

.chat-header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--ink);
  font-weight: 700;
}

.chat-header p {
  margin-top: 4px;
  font-size: clamp(0.75rem, 0.85vw, 0.9rem);
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ═══════════════════════════════════
   MIGAS DE PAN (PROGRESO)
═══════════════════════════════════ */

.breadcrumb-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(196, 42, 142, 0.03);
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gris-suave);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.4s ease;
  white-space: nowrap;
}

.step .step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gris-suave);
  color: var(--papel);
  font-size: 1rem;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.step .step-label {
  transition: all 0.4s ease;
  font-weight: 600;
}

.step-connector {
  width: 28px;
  height: 2px;
  background: var(--gris-suave);
  margin: 0 4px;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

/* Estados de los pasos */
.step.active .step-icon {
  background: var(--magenta);
  color: var(--papel);
  box-shadow: 0 0 25px rgba(196, 42, 142, 0.3);
}

.step.active {
  color: var(--magenta);
}

.step.done .step-icon {
  background: var(--menta);
  color: var(--ink);
  box-shadow: 0 0 20px rgba(169, 245, 200, 0.3);
}

.step.done {
  color: var(--menta);
}

.step-connector.done {
  background: var(--menta);
}

/* Responsive de migas */
@media (max-width: 768px) {
  .breadcrumb-progress {
    padding: 10px 12px;
    gap: 0;
    overflow-x: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  .step .step-label {
    display: none;
  }
  .step .step-icon {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
  .step-connector {
    width: 16px;
  }
  .step {
    gap: 0;
  }
}

@media (max-width: 480px) {
  .step .step-label {
    display: none;
  }
  .step .step-icon {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }
  .step-connector {
    width: 10px;
  }
}

/* ═══════════════════════════════════
   CHAT WRAPPER (SCROLL)
═══════════════════════════════════ */

.chat-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: clamp(16px, 1.2vw, 28px);
}

.chat-wrapper::-webkit-scrollbar {
  width: 8px;
}

.chat-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.chat-wrapper::-webkit-scrollbar-thumb {
  background: rgba(196, 42, 142, 0.25);
  border-radius: 20px;
}

.chat-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 42, 142, 0.45);
}

/* ═══════════════════════════════════
   MENSAJES MEJORADOS
═══════════════════════════════════ */

.bot-message,
.user-message {
  margin: 14px 0;
  display: flex;
  animation: slideUp 0.35s ease-in-out;
}

.bot-message {
  justify-content: flex-start;
}

.user-message {
  justify-content: flex-end;
}

.bubble {
  padding:
    clamp(12px, 0.9vw, 16px)
    clamp(16px, 1.1vw, 22px);
  border-radius: 14px;
  max-width: 85%;
  word-break: break-word;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  line-height: 1.6;
}

.bot-message .bubble {
  background: var(--papel);
  color: var(--ink);
  border-radius: 16px 16px 16px 4px;
  border-left: 3px solid var(--magenta);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.user-message .bubble {
  background: var(--magenta);
  color: var(--papel);
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 2px 12px rgba(196, 42, 142, 0.15);
}

/* ═══════════════════════════════════
   ALERTAS MEJORADAS
═══════════════════════════════════ */

/* Alerta de éxito */
.alert-success-custom {
  background: rgba(169, 245, 200, 0.15);
  border: 2px solid var(--menta);
  border-radius: 14px;
  padding: 18px 22px;
  color: var(--ink);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 0 30px rgba(169, 245, 200, 0.1);
  animation: pulseSuccess 2s ease-in-out infinite;
  max-width: 92%;
}

.alert-success-custom i {
  font-size: 2rem;
  color: var(--menta);
  flex-shrink: 0;
}

.alert-success-custom .alert-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #1a7a3a;
  display: block;
  margin-bottom: 3px;
}

.alert-success-custom .alert-text {
  font-size: 0.95rem;
}

/* Alerta de advertencia */
.alert-warning-custom {
  background: rgba(255, 179, 167, 0.15);
  border: 2px solid var(--coral);
  border-radius: 14px;
  padding: 18px 22px;
  color: var(--ink);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 92%;
}

.alert-warning-custom i {
  font-size: 2rem;
  color: var(--coral);
  flex-shrink: 0;
}

.alert-warning-custom .alert-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #b85a4a;
  display: block;
  margin-bottom: 3px;
}

.alert-warning-custom .alert-text {
  font-size: 0.95rem;
}

/* Alerta de error */
.alert-danger-custom {
  background: rgba(220, 53, 69, 0.10);
  border: 2px solid var(--danger);
  border-radius: 14px;
  padding: 18px 22px;
  color: var(--ink);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 92%;
}

.alert-danger-custom i {
  font-size: 2rem;
  color: var(--danger);
  flex-shrink: 0;
}

.alert-danger-custom .alert-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #b02a37;
  display: block;
  margin-bottom: 3px;
}

.alert-danger-custom .alert-text {
  font-size: 0.95rem;
}

/* Alerta de información */
.alert-info-custom {
  background: rgba(179, 212, 255, 0.15);
  border: 2px solid var(--cielo);
  border-radius: 14px;
  padding: 18px 22px;
  color: var(--ink);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 92%;
}

.alert-info-custom i {
  font-size: 2rem;
  color: var(--cielo);
  flex-shrink: 0;
}

.alert-info-custom .alert-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #2a6fa8;
  display: block;
  margin-bottom: 3px;
}

.alert-info-custom .alert-text {
  font-size: 0.95rem;
}

/* ═══════════════════════════════════
   TARJETA DE FINALIZACIÓN (MEJORADA)
═══════════════════════════════════ */

.completion-card {
  background: linear-gradient(145deg, rgba(169, 245, 200, 0.12), rgba(169, 245, 200, 0.04));
  border: 2px solid var(--menta);
  border-radius: 18px;
  padding: 30px 32px;
  text-align: center;
  box-shadow: 0 0 50px rgba(169, 245, 200, 0.08);
  animation: fadeInUp 0.6s ease-out;
  max-width: 92%;
}

.completion-card .completion-icon {
  font-size: 3.8rem;
  color: var(--menta);
  display: block;
  margin-bottom: 14px;
}

.completion-card .completion-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a7a3a;
  margin-bottom: 8px;
}

.completion-card .completion-subtitle {
  font-size: 1.1rem;
  color: var(--gris);
  margin-bottom: 14px;
}

.completion-card .completion-detail {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.7;
}

.completion-card .completion-divider {
  border: none;
  border-top: 2px solid rgba(169, 245, 200, 0.2);
  margin: 18px 0;
}

.completion-card .completion-badge {
  display: inline-block;
  background: rgba(169, 245, 200, 0.2);
  color: #1a7a3a;
  padding: 6px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-top: 10px;
}

/* ═══════════════════════════════════
   TARJETA DE DOCUMENTOS / ARCHIVOS
═══════════════════════════════════ */

.file-card {
  background: var(--papel);
  border: 1px solid var(--border-strong);
  padding: 18px 22px;
  border-radius: 12px;
  max-width: 92%;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.file-card h5 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.file-card small {
  display: block;
  color: var(--gris);
  font-size: 0.85rem;
}

.file-card i {
  margin-right: 8px;
}

.file-card .btn {
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.file-card .btn:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════
   RESUMEN DE DOCUMENTOS (TABLA BLANCA)
═══════════════════════════════════ */

.resumen-documentos {
  max-width: 95%;
  font-size: 1rem;
}

.resumen-documentos table {
  background: var(--papel) !important;
  margin-bottom: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  border-collapse: collapse;
}

.resumen-documentos th {
  color: var(--magenta);
  border-color: var(--border-strong) !important;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  background: var(--humo) !important;
}

.resumen-documentos td {
  border-color: var(--border-strong) !important;
  font-size: 0.95rem;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--papel) !important;
}

.resumen-documentos td small {
  color: var(--gris);
}

.resumen-documentos tbody tr:nth-child(even) td {
  background: var(--humo) !important;
}

/* ═══════════════════════════════════
   BOTONES MEJORADOS
═══════════════════════════════════ */

.btn-success-custom {
  background: var(--menta);
  color: var(--ink);
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-success-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(169, 245, 200, 0.3);
  background: #8ae0b0;
}

.btn-primary-custom {
  background: var(--magenta);
  color: var(--papel);
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 42, 142, 0.3);
  background: var(--magenta-deep);
}

/* ═══════════════════════════════════
   SUBIDA DE ARCHIVOS
═══════════════════════════════════ */

#fileUploadCard.card {
  background: var(--humo) !important;
  border: 1px solid var(--border) !important;
  color: var(--ink);
  flex-shrink: 0;
  border-radius: 12px;
}

#fileInput {
  background: var(--papel) !important;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  font-size: 0.95rem;
  padding: 10px;
  border-radius: 8px;
}

#fileInput::file-selector-button {
  background: var(--gris-suave);
  color: var(--ink);
  border: none;
  padding: 10px 16px;
  margin-right: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

#fileInput::file-selector-button:hover {
  background: var(--menta);
}

#sendBtn {
  background: var(--menta);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px;
  border-radius: 10px;
  color: var(--ink);
}

#sendBtn:hover {
  background: #8ae0b0;
}

/* ═══════════════════════════════════
   INPUT DE TEXTO
═══════════════════════════════════ */

.input-area {
  display: flex;
  gap: clamp(10px, 0.8vw, 16px);
  padding: clamp(14px, 1vw, 20px);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--humo);
  border-radius: 0 0 clamp(14px, 1vw, 20px) clamp(14px, 1vw, 20px);
}

.input-area input {
  flex: 1;
  background: var(--papel) !important;
  color: var(--ink) !important;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0 18px;
  height: clamp(48px, 5vh, 56px);
  font-size: clamp(0.95rem, 1vw, 1.05rem);
}

.input-area input::placeholder {
  color: var(--gris) !important;
  font-size: 0.95rem;
}

.input-area input:focus {
  outline: none !important;
  background: var(--papel) !important;
  border-color: var(--magenta) !important;
  box-shadow: 0 0 0 4px rgba(196, 42, 142, 0.12) !important;
}

.input-area input:disabled {
  background: var(--humo) !important;
  color: var(--gris) !important;
  cursor: not-allowed;
}

#sendTextBtn {
  width: clamp(56px, 4.5vw, 66px);
  height: clamp(48px, 5vh, 56px);
  border: none;
  border-radius: clamp(12px, 0.8vw, 16px);
  background: var(--magenta);
  color: var(--papel);
  font-family: 'Manrope', 'Archivo', sans-serif;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.35s ease;
  box-shadow: 0 5px 20px rgba(196, 42, 142, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

#sendTextBtn i {
  font-size: 1.3rem;
}

#sendTextBtn:hover {
  transform: translateY(-3px);
  background: var(--magenta-deep);
  box-shadow: 0 12px 30px rgba(196, 42, 142, 0.45);
}

#sendTextBtn:active {
  transform: scale(0.96);
}

#sendTextBtn:disabled {
  background: var(--gris-suave);
  color: var(--gris);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ═══════════════════════════════════
   SELECTORES DE FECHA Y HORA
═══════════════════════════════════ */

input[type="date"],
input[type="time"] {
  background: var(--papel) !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--ink) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  width: 100%;
  font-family: 'Manrope', 'Archivo', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="date"]:focus,
input[type="time"]:focus {
  border-color: var(--magenta) !important;
  box-shadow: 0 0 0 3px rgba(196, 42, 142, 0.12) !important;
  outline: none !important;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.3);
  cursor: pointer;
  padding: 4px;
}

input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="time"]::-webkit-datetime-edit-text,
input[type="time"]::-webkit-datetime-edit-hour-field,
input[type="time"]::-webkit-datetime-edit-minute-field {
  color: var(--ink);
}

input[type="date"]:disabled,
input[type="time"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-confirmar-fecha {
  background: var(--menta) !important;
  color: var(--ink) !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  width: 100% !important;
}

.btn-confirmar-fecha:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(169, 245, 200, 0.3);
  background: #8ae0b0 !important;
}

.btn-confirmar-fecha:active {
  transform: scale(0.97);
}

/* ═══════════════════════════════════
   ESTADOS DESHABILITADOS
═══════════════════════════════════ */

#fileInput:disabled,
.form-control:disabled {
  background: var(--humo) !important;
  color: var(--gris);
  cursor: not-allowed;
  border-color: var(--border) !important;
}

.btn:disabled,
#sendBtn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: var(--gris-suave);
  color: var(--gris);
}

/* ═══════════════════════════════════
   FONDO DINÁMICO RUTH
═══════════════════════════════════ */

#network-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ═══════════════════════════════════
   SELECCIÓN DE TEXTO
═══════════════════════════════════ */

::selection {
  background: rgba(196, 42, 142, 0.20);
  color: var(--ink);
}
::-moz-selection {
  background: rgba(196, 42, 142, 0.20);
  color: var(--ink);
}

/* ═══════════════════════════════════
   FOCO ACCESIBLE
═══════════════════════════════════ */

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ═══════════════════════════════════
   MICRO-INTERACCIONES
═══════════════════════════════════ */

button,
.btn,
.nav-btn,
a[class*="btn"] {
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

button:active,
.btn:active,
.nav-btn:active,
a[class*="btn"]:active {
  transform: translateY(1px) scale(.99);
}

/* ═══════════════════════════════════
   ANIMACIONES
═══════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseSuccess {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(169, 245, 200, 0.1);
  }
  50% {
    box-shadow: 0 0 50px rgba(169, 245, 200, 0.2);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.summary-card,
.success-card {
  animation: fadeIn 0.4s ease-in-out;
}