:root {
  --bg-color: #0f0f0f;
  --surface-color: #1a1a1a;
  --surface-glass: rgba(26, 26, 26, 0.8);
  --primary-color: #ff5864;
  --primary-hover: #fa4b57;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --border-color: #333;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  background: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1 {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #ddd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

p.subtitulo {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.5;
}

/* Components */
.logo-container {
  margin-bottom: 1.5rem;
}

.logo-container img {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(255, 88, 100, 0.2));
}

.card-glass,
.acciones,
.seguridad {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
}

/* Buttons */
.boton-subida {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff3b49 100%);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 88, 100, 0.3);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.boton-subida:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 88, 100, 0.4);
}

.boton-subida:active {
  transform: translateY(1px);
}

/* Button Container & Variants */
.botones-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.boton-camara,
.boton-video {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.boton-camara:hover,
.boton-video:hover {
  background: rgba(255, 88, 100, 0.1);
  box-shadow: 0 0 15px rgba(255, 88, 100, 0.2);
}

.boton-copiar {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff3b49 100%);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 88, 100, 0.3);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 100%;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.boton-copiar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 88, 100, 0.4);
}

/* Inputs & Forms */
input[type="file"] {
  display: none;
}

.enlace-generado {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  padding: 12px;
  border-radius: 8px;
  word-wrap: break-word;
  font-family: monospace;
  font-size: 0.9em;
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modules */
.acciones {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.acciones.show {
  /* Utility class for JS toggling */
  display: flex;
}

.seguridad {
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
  padding-top: 2rem;
  width: 100%;
  max-width: 800px;
  /* Remove text-align: left from here to let grid handle it, or keep it as fallback */
}

.seguridad h2 {
  color: var(--primary-color);
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-align: center;
}

.seguridad-fila {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px 2rem;
  /* 12px vertical gap, 2rem horizontal gap */
  justify-items: start;
  text-align: left;
  width: 100%;
}

.seguridad-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seguridad-lista li {
  margin-bottom: 0;
  /* Margin replaced by gap in parent */
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95em;
}

.seguridad-lista li::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Animations */
@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
}

.blink {
  animation: blink 1s ease-in-out infinite;
}

.archivo-subido-msg {
  font-size: 1.8em;
  font-weight: 800;
  color: #4ade80;
  /* Verde vibrante */
  margin-bottom: 0.5rem;
  animation: blink 1.5s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.upload-progress-container {
  width: 100%;
  max-width: 480px;
  margin: 20px auto;
  display: none;
  text-align: left;
}

.upload-status-text {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.9em;
  font-weight: 600;
  display: block;
}

.progress-bar-bg {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
  position: relative;
}

.upload-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color) 0%, #ff8a91 50%, var(--primary-color) 100%);
  background-size: 200% 100%;
  animation: progress-shimmer 2s linear infinite;
  transition: width 0.3s ease-out;
  border-radius: 10px;
}

@keyframes progress-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}

.toast {
  background-color: var(--surface-color);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}