/* ==========================================
   VARIABLES Y RESET
   ========================================== */

:root {
  --primary-color: #10b981;
  --primary-dark: #059669;
  --secondary-color: #6c757d;
  --success-color: #22c55e;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #14b8a6;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --white: #ffffff;
  --black: #000000;

  --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-secondary: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  --gradient-success: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
  --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gradient-dark);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

#app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   ANIMACIONES GLOBALES
   ========================================== */

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

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

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page-transition-out {
  animation: fadeOut 0.4s ease forwards;
}

.page-transition-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* ==========================================
   SELECTOR DE IDIOMA
   ========================================== */

.language-selector-screen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.6s ease;
}

.language-container {
  max-width: 800px;
  width: 100%;
}

.language-header {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeIn 0.8s ease;
}

.language-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.language-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
}

.language-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.language-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  animation: fadeInScale 0.6s ease;
  animation-fill-mode: both;
}

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

.language-card:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(255,255,255,0.1);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-xl);
}

.language-flag {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: pulse 2s ease infinite;
}

.language-card h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.language-card p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

/* ==========================================
   NAVEGACIÓN PRINCIPAL
   ========================================== */

.navigation-screen {
  width: 100%;
  min-height: 100vh;
  padding: 40px 20px 0;
  animation: fadeIn 0.6s ease;
}

.navigation-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.language-badge {
  position: absolute;
  top: 0;
  right: 20px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.language-badge:hover {
  background: rgba(255,255,255,0.2);
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.navigation-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  animation: fadeIn 0.8s ease;
}

.navigation-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  animation: fadeIn 1s ease;
}

.navigation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.nav-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  cursor: pointer;
  transition: all var(--transition-normal);
  animation: fadeInScale 0.6s ease;
  animation-fill-mode: both;
  position: relative;
  overflow: hidden;
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 0;
}

.nav-card:hover::before {
  opacity: 0.1;
}

.nav-card:nth-child(1) { animation-delay: 0.1s; }
.nav-card:nth-child(2) { animation-delay: 0.2s; }
.nav-card:nth-child(3) { animation-delay: 0.3s; }
.nav-card:nth-child(4) { animation-delay: 0.4s; }

.nav-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-xl);
}

.nav-card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  position: relative;
  z-index: 1;
}

.nav-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.nav-card p {
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ==========================================
   PANTALLA DE CONTENIDO
   ========================================== */

.content-screen {
  width: 100%;
  min-height: 100vh;
  padding: 20px 20px 0;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
}

.back-button {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
}

.back-button:hover {
  background: rgba(255,255,255,0.2);
  border-color: var(--primary-color);
  transform: translateX(-5px);
}

/* ==========================================
   SISTEMA DE BLOQUES LEGO
   ========================================== */

.lego-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.lego-block {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  transition: all var(--transition-normal);
  opacity: 0;
  transform: translateY(30px) scale(0.9);
}

.lego-block.animate-in {
  animation: legoBlockIn 0.6s ease forwards;
}

@keyframes legoBlockIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lego-block:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.lego-block.small {
  grid-column: span 1;
}

.lego-block.medium {
  grid-column: span 1;
}

.lego-block.large {
  grid-column: span 2;
}

.lego-block.full-width {
  grid-column: 1 / -1;
}

.lego-block-content {
  text-align: center;
}

.lego-block-content i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: block;
}

.lego-block-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.lego-block-content p {
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}

.block-action {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.block-action:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* ==========================================
   ASISTENTE FLOTANTE
   ========================================== */

.assistant-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease infinite;
}

.assistant-fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

/* ==========================================
   MODAL DEL ASISTENTE
   ========================================== */

.assistant-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.assistant-modal.show {
  opacity: 1;
}

.assistant-content {
  background: rgba(30,30,30,0.95);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: fadeInScale 0.3s ease;
}

.assistant-header {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.assistant-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.close-assistant {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-assistant:hover {
  background: rgba(255,255,255,0.1);
  transform: rotate(90deg);
}

.assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.assistant-messages::-webkit-scrollbar {
  width: 8px;
}

.assistant-messages::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}

.assistant-messages::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.assistant-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

.message {
  max-width: 80%;
  padding: 15px 20px;
  border-radius: var(--border-radius-md);
  animation: fadeIn 0.3s ease;
}

.message.user {
  background: var(--gradient-primary);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.message.assistant {
  background: rgba(255,255,255,0.1);
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

.message.error {
  background: rgba(220,53,69,0.2);
  border: 1px solid var(--danger-color);
  margin-right: auto;
}

.message p {
  margin: 0;
  line-height: 1.5;
}

.typing-dots {
  display: flex;
  gap: 5px;
  padding: 5px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  animation: typingDot 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

.assistant-input {
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 10px;
}

.assistant-input input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.assistant-input input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255,255,255,0.08);
}

.assistant-input input::placeholder {
  color: rgba(255,255,255,0.5);
}

.assistant-input button {
  background: var(--primary-color);
  border: none;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-size: 1.3rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.assistant-input button:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* ==========================================
   LOADER
   ========================================== */

.loader-screen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.loader {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-screen p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  animation: pulse 2s ease infinite;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .language-title {
    font-size: 2rem;
  }

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

  .language-options {
    grid-template-columns: 1fr;
  }

  .navigation-title {
    font-size: 1.8rem;
  }

  .navigation-grid {
    grid-template-columns: 1fr;
  }

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

  .lego-block.large,
  .lego-block.medium,
  .lego-block.small {
    grid-column: span 1;
  }

  .language-badge {
    position: relative;
    top: auto;
    right: auto;
    display: inline-block;
    margin-bottom: 20px;
  }

  .content-header {
    flex-direction: column;
    gap: 15px;
  }

  .assistant-fab {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }

  .app-footer {
    padding: 20px 15px;
  }

  .app-footer p {
    font-size: 0.85rem;
  }
}

/* ==========================================
   ENLACES ESTILIZADOS EN MENSAJES
   ========================================== */

.message a.link-styled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin: 8px 4px;
  border-radius: var(--border-radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  vertical-align: middle;
}

.message a.link-styled:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-md);
}

.message a.link-styled i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.message a.link-styled span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

/* Estilos específicos por tipo de enlace */

.link-linkedin {
  background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
  border-color: #0077b5;
}

.link-linkedin:hover {
  background: linear-gradient(135deg, #005582 0%, #0077b5 100%);
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.4);
}

.link-github {
  background: linear-gradient(135deg, #333 0%, #24292e 100%);
  border-color: #333;
}

.link-github:hover {
  background: linear-gradient(135deg, #24292e 0%, #000 100%);
  box-shadow: 0 4px 15px rgba(36, 41, 46, 0.4);
}

.link-instagram {
  background: linear-gradient(135deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  border-color: #e6683c;
}

.link-instagram:hover {
  background: linear-gradient(135deg, #d87b2c 0%,#d15933 25%,#c4213a 50%,#b61d5b 75%,#a51477 100%);
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.link-website {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
}

.link-website:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.link-email {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-color: #f093fb;
}

.link-email:hover {
  background: linear-gradient(135deg, #e47fe8 0%, #e74759 100%);
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.link-phone {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-color: #25D366;
}

.link-phone:hover {
  background: linear-gradient(135deg, #1faa52 0%, #0e6b5f 100%);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Ajuste para que los enlaces se vean bien en el mensaje */
.message p {
  display: block;
  width: 100%;
  margin: 0 0 12px 0;
  line-height: 1.8;
}

.message p:last-child {
  margin-bottom: 0;
}

.message.assistant p {
  line-height: 1.8;
}

/* Estilos para formato Markdown */
.message strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.message em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

/* Mejor espaciado para listas y párrafos */
.message br {
  display: block;
  content: "";
  margin: 8px 0;
}

/* Animación de aparición para enlaces */
@keyframes linkFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.message a.link-styled {
  animation: linkFadeIn 0.3s ease;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .message a.link-styled {
    padding: 6px 12px;
    font-size: 0.85rem;
    gap: 6px;
  }

  .message a.link-styled span {
    max-width: 180px;
  }

  .message a.link-styled i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .language-card {
    padding: 30px 20px;
  }

  .language-flag {
    font-size: 3rem;
  }

  .nav-card {
    padding: 30px 20px;
  }

  .assistant-content {
    max-height: 90vh;
    border-radius: var(--border-radius-lg);
  }

  .message a.link-styled {
    padding: 5px 10px;
    font-size: 0.8rem;
    gap: 5px;
    margin: 5px 2px;
  }

  .message a.link-styled span {
    max-width: 150px;
  }
}

/* ==========================================
   FOOTER
   ========================================== */

.app-footer {
  width: 100%;
  text-align: center;
  padding: 30px 20px;
  margin-top: auto;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.app-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.app-footer .heart {
  color: #f56565;
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
  font-size: 1.1rem;
}

.app-footer strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.15);
  }
  20%, 40% {
    transform: scale(1);
  }
}

/* Ajustes para que el footer esté al final de la página */
.language-selector-screen,
.navigation-screen,
.content-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.language-container,
.navigation-grid {
  flex: 1;
}

/* ==========================================
   PERSONALIZACIÓN SWEETALERT2
   ========================================== */

.swal2-popup {
  background: rgba(26, 32, 44, 0.98) !important;
  border: 2px solid rgba(255,255,255,0.1) !important;
  border-radius: var(--border-radius-lg) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: var(--shadow-xl) !important;
}

.swal2-title {
  color: var(--white) !important;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
}

.swal2-html-container {
  color: rgba(255,255,255,0.8) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.swal2-icon.swal2-success {
  border-color: #28a745 !important;
  color: #28a745 !important;
}

.swal2-icon.swal2-error {
  border-color: #dc3545 !important;
  color: #dc3545 !important;
}

.swal2-icon.swal2-warning {
  border-color: #ffc107 !important;
  color: #ffc107 !important;
}

.swal2-icon.swal2-info {
  border-color: #17a2b8 !important;
  color: #17a2b8 !important;
}

.swal2-icon.swal2-question {
  border-color: #10b981 !important;
  color: #10b981 !important;
}

.swal2-styled.swal2-confirm {
  background: #10b981 !important;
  border: none !important;
  border-radius: var(--border-radius-md) !important;
  padding: 12px 30px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  transition: all var(--transition-fast) !important;
}

.swal2-styled.swal2-confirm:hover {
  background: #059669 !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}

.swal2-styled.swal2-cancel {
  background: rgba(220, 53, 69, 0.8) !important;
  border: none !important;
  border-radius: var(--border-radius-md) !important;
  padding: 12px 30px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  transition: all var(--transition-fast) !important;
}

.swal2-styled.swal2-cancel:hover {
  background: #c82333 !important;
  transform: scale(1.05) !important;
}

.swal2-close {
  color: rgba(255,255,255,0.7) !important;
  font-size: 2rem !important;
  transition: all var(--transition-fast) !important;
}

.swal2-close:hover {
  color: var(--white) !important;
  transform: rotate(90deg) !important;
}

/* ==========================================
   PERSONALIZACIÓN TOASTIFY
   ========================================== */

.toastify {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  padding: 16px 20px !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  min-width: 280px !important;
  max-width: 400px !important;
}

.toastify.on {
  opacity: 1 !important;
}

.toastify-right {
  right: 15px !important;
}

.toastify-top {
  top: 15px !important;
}

/* Animación personalizada para Toastify */
@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toastify {
  animation: toastSlideIn 0.3s ease !important;
}

/* ==========================================
   RESPONSIVE PARA NOTIFICACIONES
   ========================================== */

@media (max-width: 768px) {
  .swal2-popup {
    width: 90% !important;
    padding: 20px !important;
  }

  .swal2-title {
    font-size: 1.5rem !important;
  }

  .swal2-html-container {
    font-size: 0.95rem !important;
  }

  .toastify {
    min-width: 250px !important;
    max-width: 90% !important;
    font-size: 13px !important;
    padding: 14px 18px !important;
  }

  .toastify-right {
    right: 10px !important;
  }

  .toastify-top {
    top: 10px !important;
  }
}
